- Posts: 5
- Thank you received: 0
(Solved) Faulty AUR packages for linuxcnc and linuxcnc-sim for arch linux
- BeagleBrainz
- New Member
-
- Thank you received: 0
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.
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.
- tommylight
-
- Away
- Administrator
-
- Posts: 22012
- Thank you received: 4
www.google.com/search?source=hp&ei=HKv0X...P4AQAQ4dUDCAY&uact=5
Please Log in to join the conversation.
Please Log in to join the conversation.
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.
Apparently it is only a problem with GCC 10+
github.com/LinuxCNC/linuxcnc/pull/827
Please Log in to join the conversation.
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
- Posts: 22012
- Thank you received: 4
Please Log in to join the conversation.
Please Log in to join the conversation.
