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

More
24 Jun 2020 20:24 - 24 Jun 2020 20:25 #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.
Last edit: 24 Jun 2020 20:25 by archlute.

Please Log in or Create an account to join the conversation.

More
25 Jun 2020 11:13 #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 or Create an account to join the conversation.

More
25 Jun 2020 13:34 #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 or Create an account to join the conversation.

More
25 Jun 2020 13:49 #172733 by tommylight
The following user(s) said Thank You: archlute

Please Log in or Create an account to join the conversation.

More
25 Jun 2020 15:58 #172737 by archlute
Thanks, but no, basic research has already been done without success prior to the initial question.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
26 Jun 2020 12:47 - 26 Jun 2020 12:51 #172796 by andypugh

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.
Last edit: 26 Jun 2020 12:51 by andypugh.
The following user(s) said Thank You: archlute

Please Log in or Create an account to join the conversation.

More
26 Jun 2020 14:10 #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
The following user(s) said Thank You: archlute

Please Log in or Create an account to join the conversation.

More
27 Jun 2020 12:36 #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 or Create an account to join the conversation.

More
27 Jun 2020 12:40 #172855 by tommylight

Please Log in or Create an account to join the conversation.

More
27 Jun 2020 13:57 #172856 by rodw

Please Log in or Create an account to join the conversation.

Time to create page: 0.125 seconds
Powered by Kunena Forum