Summary: | dev-libs/libffi-3.4.4-r1 fails to link with clang-17: error: version script assignment of 'LIBFFI_BASE_8.0' to symbol 'ffi_java_raw_call' failed: symbol not defined | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | ppw0 |
Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | parona |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=912034 https://github.com/libffi/libffi/pull/800 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 731004, 912821 | ||
Attachments: |
build log
emerge --info |
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(+) |
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.