- LinuxCNC
- Installing LinuxCNC
- (Solved) Faulty AUR packages for linuxcnc and linuxcnc-sim for arch linux
(Solved) Faulty AUR packages for linuxcnc and linuxcnc-sim for arch linux
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 or Create an account to join the conversation.
- BeagleBrainz
- Offline
- User is blocked
- Posts: 1437
- Thank you received: 570
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.
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.
- tommylight
- Away
- Moderator
- Posts: 19203
- Thank you received: 6437
www.google.com/search?source=hp&ei=HKv0X...P4AQAQ4dUDCAY&uact=5
Please Log in or Create an account to join the conversation.
Please Log in or Create an account 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';
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 or Create an account to join the conversation.
Apparently it is only a problem with GCC 10+
github.com/LinuxCNC/linuxcnc/pull/827
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
- Posts: 19203
- Thank you received: 6437
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- LinuxCNC
- Installing LinuxCNC
- (Solved) Faulty AUR packages for linuxcnc and linuxcnc-sim for arch linux