Skip to content

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

@theoparis

Description

@theoparis
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions