Package Details: linuxcnc 2.9.2-2

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.167879
First Submitted: 2018-11-24 01:49 (UTC)
Last Updated: 2024-03-04 22:44 (UTC)

Latest Comments

1 2 3 4 5 6 Next › Last »

InnerBushman commented on 2024-04-23 10:16 (UTC) (edited on 2024-04-23 10:21 (UTC) by InnerBushman)

Hi. For some reason in /etc/profile.d/linuxcnc.sh the line is added as:

export TCLLIBPATH=/usr/lib/tcltk/linuxcnc:/usr/lib/tcltk/linuxcnc:/usr/lib/tcltk/linuxcnc:/usr/lib/tcltk/linuxcnc

Anyone have any idea what's causing it to get duplicated 4 times?

PS: @FabioLolix have you considered adding GPereira as co-maintainer yet?

GPereira commented on 2024-03-15 15:39 (UTC)

Hello FabioLolix, can you add me as a co-maintainer? I am the initial submitter of this package and would like to continue involved in maintaining it.

carlosal1015 commented on 2024-03-04 19:22 (UTC)

Hi, I have the following message error

Compiling realtime hal/drivers/hal_gpio.c
hal/drivers/hal_gpio.c: In function ‘build_chips_collection’:
hal/drivers/hal_gpio.c:167:17: warning: implicit declaration of function ‘gpiod_line_find’; did you mean ‘gpiod_line_config_new’? [-Wimplicit-function-declaration]
  167 |     temp_line = gpiod_line_find(name);
      |                 ^~~~~~~~~~~~~~~
      |                 gpiod_line_config_new
hal/drivers/hal_gpio.c:167:15: warning: assignment to ‘struct gpiod_line *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  167 |     temp_line = gpiod_line_find(name);
      |               ^
hal/drivers/hal_gpio.c:172:17: warning: implicit declaration of function ‘gpiod_line_get_chip’ [-Wimplicit-function-declaration]
  172 |     temp_chip = gpiod_line_get_chip(temp_line);
      |                 ^~~~~~~~~~~~~~~~~~~
hal/drivers/hal_gpio.c:172:15: warning: assignment to ‘struct gpiod_chip *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  172 |     temp_chip = gpiod_line_get_chip(temp_line);
      |               ^
hal/drivers/hal_gpio.c:174:28: warning: implicit declaration of function ‘gpiod_chip_name’; did you mean ‘gpiod_chip_close’? [-Wimplicit-function-declaration]
  174 |                 && (strcmp(gpiod_chip_name((*ptr)[c].chip), gpiod_chip_name(temp_chip))
      |                            ^~~~~~~~~~~~~~~
      |                            gpiod_chip_close
hal/drivers/hal_gpio.c:174:28: warning: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
  174 |                 && (strcmp(gpiod_chip_name((*ptr)[c].chip), gpiod_chip_name(temp_chip))
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |             gpiod_line_request_set_value
hal/drivers/hal_gpio.c:249:25: warning: implicit declaration of function ‘gpiod_line_name’; did you mean ‘gpiod_line_info_free’? [-Wimplicit-function-declaration]
  249 |             line_name = gpiod_line_name(gpiod_line_bulk_get_line(gpio->in_chips[c].bulk, i));
      |                         ^~~~~~~~~~~~~~~
      |                         gpiod_line_info_free
hal/drivers/hal_gpio.c:249:41: warning: implicit declaration of function ‘gpiod_line_bulk_get_line’; did you mean ‘gpiod_line_info_get_drive’? [-Wimplicit-function-declaration]
  249 |             line_name = gpiod_line_name(gpiod_line_bulk_get_line(gpio->in_chips[c].bulk, i));
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~
      |                                         gpiod_line_info_get_drive
hal/drivers/hal_gpio.c:249:23: warning: assignment to ‘const char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  249 |             line_name = gpiod_line_name(gpiod_line_bulk_get_line(gpio->in_chips[c].bulk, i));
      |                       ^
hal/drivers/hal_gpio.c:265:13: warning: implicit declaration of function ‘gpiod_line_request_bulk_output’; did you mean ‘gpiod_line_request_set_value’? [-Wimplicit-function-declaration]
  265 |         if (gpiod_line_request_bulk_output(gpio->out_chips[c].bulk, "linuxcnc", gpio->out_chips[c].vals) < 0){
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |             gpiod_line_request_set_value
hal/drivers/hal_gpio.c:271:23: warning: 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: In function ‘hal_gpio_read’:
hal/drivers/hal_gpio.c:322:9: warning: implicit declaration of function ‘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: In function ‘hal_gpio_write’:
hal/drivers/hal_gpio.c:342:9: warning: implicit declaration of function ‘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] Error 1
make: *** Waiting for unfinished jobs....
==> ERROR: A failure occurred in build().

vs220 commented on 2024-02-28 10:45 (UTC) (edited on 2024-02-28 11:42 (UTC) by vs220)

line 28 PKGBUILD change to

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

colons: perceived by TCL as part of the path, apparently from the inheritance of Windows paths like C:/Tcl/lib https://wiki.tcl-lang.org/page/TCLLIBPATH

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);