Build fails with --enable-linktime-gc set when using some devkits/toolchains

XMLWordPrintable

    • 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.

            Assignee:
            Matthias Baesken
            Reporter:
            Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: