-
Type:
Bug
-
Resolution: Won't Fix
-
Priority:
P4
-
None
-
Affects Version/s: 27
-
Component/s: infrastructure
-
None
-
x86_64, aarch64
-
linux
On some gcc - based Linux devkits like older Fedora with gcc 14, the build on Linux x86_64 fails with --enable-linktime-gc set.
Error output :
support_native_java.desktop_libfontmanager_BUILD_LIBFONTMANAGER_run_ld :
/devkits/x86_64-linux-gnu-to-x86_64-linux-gnu-fedora27-gcc14.2.0/bin/../lib/gcc/x86_64-linux-gnu/14.2.0/../../../../x86_64-linux-gnu/lib/../lib64/libstdc++.a(eh_throw.o)(.note.stapsdt+0x14):
error: relocation refers to local symbol ".text.__cxa_throw" [5], which is defined in a discarded section
Reason seems to be that some toolchains eliminate __cxa_throw which is still referenced by other sections.
We could keep this wrongly eliminated symbol by adding some linker flags.
Error output :
support_native_java.desktop_libfontmanager_BUILD_LIBFONTMANAGER_run_ld :
/devkits/x86_64-linux-gnu-to-x86_64-linux-gnu-fedora27-gcc14.2.0/bin/../lib/gcc/x86_64-linux-gnu/14.2.0/../../../../x86_64-linux-gnu/lib/../lib64/libstdc++.a(eh_throw.o)(.note.stapsdt+0x14):
error: relocation refers to local symbol ".text.__cxa_throw" [5], which is defined in a discarded section
Reason seems to be that some toolchains eliminate __cxa_throw which is still referenced by other sections.
We could keep this wrongly eliminated symbol by adding some linker flags.
- duplicates
-
JDK-8377366 Build of libfontmanager.so fails on Linux x86_64 when using gcc13 based devkit and --enable-linktime-gc
-
- Closed
-
- relates to
-
JDK-8236714 enable link-time section-gc for linux to remove unused code
-
- Resolved
-
-
JDK-8377366 Build of libfontmanager.so fails on Linux x86_64 when using gcc13 based devkit and --enable-linktime-gc
-
- Closed
-