https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94138
--- Comment #10 from Martin Liška <marxin at gcc dot gnu.org> --- Ok, I see in the .s file: $ grep _ZN5folly14AccessSpreaderISt6atomicE8cpuCacheE cache_locality_test.ltrans0.s leaq _ZN5folly14AccessSpreaderISt6atomicE8cpuCacheE@tpoff, %rbp leaq _ZN5folly14AccessSpreaderISt6atomicE8cpuCacheE@tpoff, %rbx So the symbols is a TLS static variable: $ grep cpuCache *.ii static __thread CpuCache cpuCache; Can you please reduce the .ii file with creduce: https://gcc.gnu.org/bugs/minimize.html ? That should be doable by grepping for the: unresolvable R_X86_64_TPOFF32 relocation against symbol `_ZN5folly14AccessSpreaderISt6atomicE8cpuCacheE' error message.