Here are the steps I follow to reproduce the issue:
- Build with Clang/LLD 19
- Wait
This is what I expected to happen:
A successful compilation.
This is what happened instead:
ld.lld: error: version script assignment of 'global' to symbol 'rtapi_app_exit' failed: symbol not defined
It worked properly before this:
LLD recently changed their behavior to: --no-undefined-version by default:
https://reviews.llvm.org/D135402
Passing:
LDFLAGS="-Wl,--undefined-version" make works around the problem, however there should be a more proper fix.
Information about my hardware and software:
- I am using this Linux distribution and version (often, shown by
lsb_release -a):
- I am using this kernel version (shown by
uname -a): Linux ntu-gentoo 6.12.1-BUILD SMP Fri Nov 22 18:35:05 CST 2024 x86_64 AMD Ryzen 7 2700X Eight-Core Processor AuthenticAMD GNU/Linux
- I am running ...
- I am using this LinuxCNC version (shown in package manager or, for git versions,
scripts/get-version-from-git): Latest 2.9 or master checkout
Here are the steps I follow to reproduce the issue:
This is what I expected to happen:
A successful compilation.
This is what happened instead:
ld.lld: error: version script assignment of 'global' to symbol 'rtapi_app_exit' failed: symbol not defined
It worked properly before this:
LLD recently changed their behavior to: --no-undefined-version by default:
https://reviews.llvm.org/D135402
Passing:
LDFLAGS="-Wl,--undefined-version" makeworks around the problem, however there should be a more proper fix.Information about my hardware and software:
lsb_release -a):uname -a): Linux ntu-gentoo 6.12.1-BUILD SMP Fri Nov 22 18:35:05 CST 2024 x86_64 AMD Ryzen 7 2700X Eight-Core Processor AuthenticAMD GNU/Linuxscripts/get-version-from-git): Latest 2.9 or master checkout