(Solved) Faulty AUR packages for linuxcnc and linuxcnc-sim for arch linux

More
6 years 4 months ago #172630 by archlute
Hello experts,
anyone out there who could manage to install linuxcnc on arch linux? Both package builts in the AUR are not working. Any suggestions are welcome. Thank you.

Please Log in to join the conversation.

  • BeagleBrainz
  • New Member
  • New Member
More
6 years 4 months ago #172701 by BeagleBrainz
That's like saying "my car doesn't work".

So my first suggestion would be to properly describe the issues.

Or either use one of the Live Debian or Live Mint ISOs for a super quick & easy install.

Please Log in to join the conversation.

More
6 years 4 months ago #172730 by archlute
Thanks a lot for your reply. It was not intended to bother someone with AUR maintainance, because it seemed off-topic in this forum. The idea was to check if someone could manage to make linuxCNC run on Arch. But for a more profound reply:

The final massage of makepkg is:

Linking classicladder
/usr/bin/ld: objects/hal/classicladder/files_project.o:/home/"name"/AUR/linuxcnc/linuxcnc-sim/src/linuxcnc/src/hal/classicladder/files_project.c:159: multiple definition of `FileName'; objects/hal/classicladder/files.o:/home/"name"/AUR/linuxcnc/linuxcnc-sim/src/linuxcnc/src/hal/classicladder/files.c:1298: first defined here
collect2: error: ld returned 1 as end status
make: *** [hal/classicladder/Submakefile:49: ../bin/classicladder] error 1
==> ERROR: An error occured in build().
canceled...

Please Log in to join the conversation.

More
6 years 4 months ago #172733 by tommylight

Please Log in to join the conversation.

More
6 years 4 months ago #172737 by archlute
Thanks, but no, basic research has already been done without success prior to the initial question.

Please Log in to join the conversation.

More
6 years 4 months ago #172796 by andypugh

archlute wrote: The final massage of makepkg is:

Linking classicladder
/usr/bin/ld: objects/hal/classicladder/files_project.o:/home/"name"/AUR/linuxcnc/linuxcnc-sim/src/linuxcnc/src/hal/classicladder/files_project.c:159: multiple definition of `FileName';


It seems that you are building 2.7. (as that line is 163 in 2.8 and Master) github.com/LinuxCNC/linuxcnc/blob/2.7/sr...files_project.c#L159


objects/hal/classicladder/files.o:/home/"name"/AUR/linuxcnc/linuxcnc-sim/src/linuxcnc/src/hal/classicladder/files.c:1298: first defined here


github.com/LinuxCNC/linuxcnc/blob/2.7/sr...ladder/files.c#L1298

So, it's not wrong.....
This (apparently) is one way to create a global variable, but not a good way. It seems to work with the compilers that LinuxCNC uses, though. Do you know which compiler you are using?
I am not clear if LinuxCNC built on Debian creates two separate variables in this situation, or creates a limited-scope global.
I think it is untidy and should be fixed....

My first suggestion would be to have a single declaration in file.h, but I will ask the proper programmers on the developers list for advice.

Please Log in to join the conversation.

More
6 years 4 months ago #172799 by andypugh
This has been fixed in the latest linuxcnc.
Apparently it is only a problem with GCC 10+

github.com/LinuxCNC/linuxcnc/pull/827

Please Log in to join the conversation.

More
6 years 4 months ago #172854 by archlute
The AUR package maintainer uploaded an upgrade. Makepkg now works without error messages and results in an installable package. Thanks a lot to everybody. Could this thread be marked as fixed?

Please Log in to join the conversation.

More
6 years 4 months ago #172855 by tommylight

Please Log in to join the conversation.

More
6 years 4 months ago #172856 by rodw

Please Log in to join the conversation.

Time to create page: 0.067 seconds
Powered by Kunena Forum