https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94138

            Bug ID: 94138
           Summary: [gcc10]  unresolvable R_X86_64_TPOFF32 relocation
                    against symbol when LTO activated
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: laurent.stacul at gmail dot com
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

Hello,

I am trying to build Facebook Folly library and I have this linkage problem
when LTO is activated.

/gcc/x86_64-1a-linux-gnu/10.0.1/../../../../x86_64-1a-linux-gnu/bin/ld:
cache_locality_test.ltrans0.ltrans.o(.text+0x45bb): unresolvable
R_X86_64_TPOFF32 relocation against symbol
`_ZN5folly14AccessSpreaderISt6atomicE8cpuCacheE'

I tried to create a small reproducer of this error but I failed. So I fallback
to sending you the preprocessed files in attachment.

My system:
$ uname -a
Linux 6248633baf95 5.3.0-40-generic #32-Ubuntu SMP Fri Jan 31 20:24:34 UTC 2020
x86_64 x86_64 x86_64 GNU/Linux
$ ./libc.so.6
GNU C Library (GNU libc) stable release version 2.31.
$ ./gcc --version
gcc (GCC) 10.0.1 20200305 (experimental)
$ ld --version
GNU ld (GNU Binutils) 2.34.0.20200305

I will try to get a reproducer in parallel but for the time being being it is
all I can provide. Tell me is you missed some files.

If you need a quick look at the code:
https://github.com/facebook/folly/blob/master/folly/concurrency/CacheLocality.h

Thanks in advance for your help.
Stac

Reply via email to