Created attachment 872052 [details] build log In a clang-17[default-libcxx] environment, trying to emerge libffi-3.4.4-r1 fails during the linking phase: --- x86_64-pc-linux-gnu-ld: error: version script assignment of 'LIBFFI_BASE_8.0' to symbol 'ffi_java_raw_call' failed: symbol not defined x86_64-pc-linux-gnu-ld: error: version script assignment of 'LIBFFI_CLOSURE_8.0' to symbol 'ffi_prep_java_raw_closure' failed: symbol not defined x86_64-pc-linux-gnu-ld: error: version script assignment of 'LIBFFI_CLOSURE_8.0' to symbol 'ffi_prep_java_raw_closure_loc' failed: symbol not defined clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [Makefile:1102: libffi.la] Error 1 make[2]: Leaving directory '/var/tmp/portage/dev-libs/libffi-3.4.4-r1/work/libffi-3.4.4-abi_x86_32.x86' make[1]: *** [Makefile:1397: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/dev-libs/libffi-3.4.4-r1/work/libffi-3.4.4-abi_x86_32.x86' make: *** [Makefile:625: all] Error 2 --- This error can be bypassed by issuing "-Wl,--undefined-version" to LDFLAGS. Attaching logs.
Created attachment 872053 [details] emerge --info
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f1da16cf19f06d8a7930165976a0b7c1d76262e commit 6f1da16cf19f06d8a7930165976a0b7c1d76262e Author: Sam James <sam@gentoo.org> AuthorDate: 2023-12-13 01:53:21 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-12-13 01:53:21 +0000 dev-libs/libffi: backport lld 17 fix Closes: https://bugs.gentoo.org/915086 Bug: https://bugs.gentoo.org/912034 Signed-off-by: Sam James <sam@gentoo.org> dev-libs/libffi/files/libffi-3.4.4-lld-17.patch | 34 ++++++++++ dev-libs/libffi/libffi-3.4.4-r3.ebuild | 82 +++++++++++++++++++++++++ 2 files changed, 116 insertions(+)