Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libselinux 3.7 doesn't compile with ld.lld #461

Open
theoparis opened this issue Jan 30, 2025 · 1 comment
Open

libselinux 3.7 doesn't compile with ld.lld #461

theoparis opened this issue Jan 30, 2025 · 1 comment

Comments

@theoparis
Copy link

theoparis commented Jan 30, 2025

ld.lld: error: version script assignment of 'AUDIT2WHY_2.9' to symbol 'initaudit2why' failed: symbol not defined
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/lib/ccache/bin/clang' failed with exit code 1
make[1]: *** [Makefile:151: pywrap] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-libs/libselinux-3.7-r1/work/libselinux-3.7-abi_x86_64.amd64/src'

I encountered this gentoo bug when building a system with LLVM + systemd + linux. I think these issues are supposed to be resolved upstream and not through workarounds like -Wl,--undefined-version - although I have no idea what the correct fix in the code is so I'm posting this issue here.

@WavyEbuilder
Copy link

WavyEbuilder commented Jan 30, 2025

I'm aware of this, and I intend to deal with it shortly when I have some time, hopefully this or next week.

(For others encountering this, as mentioned above set LDFLAGS="[... other ld flags here] -Wl,--undefined-version" for now.) Note this only occurs when building the python bindings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants