https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112858
Bug ID: 112858 Summary: nvptx: 'unresolved symbol __cxa_thread_atexit_impl' Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: testsuite-fail Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: tschwinge at gcc dot gnu.org CC: vries at gcc dot gnu.org Target Milestone: --- With commit r14-6082-gf4dd9416843308d4ae519983415fe62212662536 "libsupc++: try cxa_thread_atexit_impl at runtime", there's one regression in nvptx target testing (only visible on top of my WIP C++ enablement changes): [-PASS:-]{+FAIL:+} g++.dg/tls/thread_local6.C -std=c++14 (test for excess errors) [-PASS:-]{+UNRESOLVED:+} g++.dg/tls/thread_local6.C -std=c++14 [-execution test-]{+compilation failed to produce executable+} [-PASS:-]{+FAIL:+} g++.dg/tls/thread_local6.C -std=c++17 (test for excess errors) [-PASS:-]{+UNRESOLVED:+} g++.dg/tls/thread_local6.C -std=c++17 [-execution test-]{+compilation failed to produce executable+} [-PASS:-]{+FAIL:+} g++.dg/tls/thread_local6.C -std=c++20 (test for excess errors) [-PASS:-]{+UNRESOLVED:+} g++.dg/tls/thread_local6.C -std=c++20 [-execution test-]{+compilation failed to produce executable+} UNSUPPORTED: g++.dg/tls/thread_local6.C -std=c++98 unresolved symbol __cxa_thread_atexit_impl collect2: error: ld returned 1 exit status Very likely, this isn't an issue with that commit, but rather due to GCC/nvptx' deficient implementation of weak symbols.