Package Details: linuxcnc 2.9.4-1

Git Clone URL: https://aur.archlinux.org/linuxcnc.git (read-only, click to copy)
Package Base: linuxcnc
Description: Controls CNC machines. It can drive milling machines, lathes, 3d printers, laser cutters, plasma cutters, robot arms, hexapods, and more (formerly EMC2)
Upstream URL: https://linuxcnc.org/
Keywords: 3d cnc printing
Licenses: GPL2, custom: unredestributable
Submitter: GPereira
Maintainer: FabioLolix
Last Packager: FabioLolix
Votes: 9
Popularity: 0.000066
First Submitted: 2018-11-24 01:49 (UTC)
Last Updated: 2025-03-07 18:42 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 Next › Last »

Nebulosa commented on 2024-02-27 15:47 (UTC) (edited on 2024-03-01 08:12 (UTC) by Nebulosa)

Here an updated PKGBUILD according comments below, right version of libgpiod, rewrited function package (delete duplicate commands), right version of licences etc:

https://0x0.st/HRkB.txt

Note: linuxcnc.sh not needed, you should do export TCLLIBPATH=/usr/lib/tcltk/linuxcnc or reboot before first launch linuxcnc

s218 commented on 2024-02-25 16:10 (UTC) (edited on 2024-02-25 16:11 (UTC) by s218)

Colleagues suggest a solution, current as of 2023-02-25 -. https://archlinux.org.ru/forum/post/260540/

error, typo in the file PKGBUILD.

should be /usr/lib/tcltk/linuxcnc if :/usr/lib/tcltk/linuxcnc then :/usr/lib/tcltk/linuxcnc then

it seems to be a bug in the package builder that they added colons and when TCLLIBPATH is empty it substitutes them.

line28

echo "export TCLLIBPATH=$TCLLIBPATH:/usr/lib/tcltk/linuxcnc" > ${pkgname}.sh

try running an already built package like this

export TCLLIBPATH=/usr/lib/tcltk/linuxcnc

linuxcnc

if it helps, you can rebuild with the fixes

PKGBUILD line 28

change to

echo "export TCLLIBPATH=/usr/lib/tcltk/linuxcnc" > ${pkgname}.sh

vs220 commented on 2024-02-25 13:59 (UTC)

@ivanovp test with libgpiod downgrade to 1.6.4.2

s218 commented on 2024-02-24 19:31 (UTC)

  |             gpiod_line_request_set_value

hal/drivers/hal_gpio.c:271:23: предупреждение: assignment to «const char *» from «int» makes pointer from integer without a cast [-Wint-conversion] 271 | line_name = gpiod_line_name(gpiod_line_bulk_get_line(gpio->out_chips[c].bulk, i)); | ^ hal/drivers/hal_gpio.c: В функции «hal_gpio_read»: hal/drivers/hal_gpio.c:322:9: предупреждение: неявная декларация функции «gpiod_line_get_value_bulk» [-Wimplicit-function-declaration] 322 | gpiod_line_get_value_bulk(gpio->in_chips[c].bulk, gpio->in_chips[c].vals); | ^ hal/drivers/hal_gpio.c: В функции «hal_gpio_write»: hal/drivers/hal_gpio.c:342:9: предупреждение: неявная декларация функции «gpiod_line_set_value_bulk» [-Wimplicit-function-declaration] 342 | gpiod_line_set_value_bulk(gpio->out_chips[c].bulk, gpio->out_chips[c].vals); | ^ make: *** [Makefile:1253: objects/rthal/drivers/hal_gpio.o] Ошибка 1 ==> ОШИБКА: Произошел сбой в build(). Прерывание...

ivanovp commented on 2024-02-17 18:32 (UTC)

I tried to compile it, I got an error: https://pastebin.com/J9acSDzq

In file included from hal/drivers/hal_gpio.c:39: hal/drivers/hal_gpio.c:188:50: error: invalid application of ‘sizeof’ to incomplete type ‘struct gpiod_line_bulk’ 188 | (ptr)[c].bulk = rtapi_kmalloc(sizeof((*ptr)[c].bulk), RTAPI_GFP_KERNEL);

Tweety commented on 2024-01-13 10:02 (UTC)

Hi jkercher,

just after reinstalling I ran into a dependency problem at linuxcnc startup regarding OpenGL.

Installing python-openglpackage solved it for me. Should that be in the dependency check too?

greez2all Tweety

jkercher commented on 2024-01-09 15:36 (UTC) (edited on 2024-01-09 15:41 (UTC) by jkercher)

@FabioLolix

Done

E: Hey, while you are in there, I noticed --disable-gtk2 is now unrecognized by the configure script.

Tweety commented on 2024-01-08 19:41 (UTC)

Hi all,

thanks for the hint. using the old version solved the problem for me in the meantime.

Maybe putting 1.6.4 into the NoUpgrade list will help until a clean solution is available?

greez2all Tweety

FabioLolix commented on 2024-01-07 12:51 (UTC)

Yesterday a rebuild failed for me too

@jkercher would you like to report the issue upstream while I make a libgpiod-1.6.4 pkgbuild?

jkercher commented on 2024-01-07 12:37 (UTC)

The struct gpiod_line_bulk error is because of libgpiod being updated. If I'm reading the source correctly, the latest version linuxcnc would be compatible with is v1.6.4. Looks like we need to do that manually for now until linuxcnc is fixed upstream.

For a lazy work around, I just grabbed the libgpiod-git (aur) PKGCONFIG and did one of these guys:

@@ -21,6 +21,7 @@ pkgver() {

 build() {
   cd "${pkgname%-git}"
+  git checkout v1.6.4
   ./autogen.sh \
     --enable-tools=yes \
     --enable-bindings-cxx \

We can add a check for this. Something like this can tell if you have the correct version:

if ! objdump -T /usr/lib/libgpiod.so | grep -qs gpiod_chip_find_line; then
        echo 'found libgpiod v2.  Need v1'
        exit 2
fi