[patch] libstdc++/70503 Ensure std::thread helpers have internal linkage
Jonathan Wakely
jwakely@redhat.com
Thu Apr 7 13:35:00 GMT 2016
On 07/04/16 15:27 +0200, Tom de Vries wrote:
>Hi,
>
>FYI, this testcase fails for me as follows:
>...
>/usr/bin/ld: Dwarf Error: found dwarf version '4', this reader only
>handles version 2 and 3 information.^M
>/tmp/ccMBMHB5.o: In function `main':^M
>70503.cc:(.text.startup.main+0x5): undefined reference to
>`execute_native_thread_routine'^M
>/usr/bin/ld: Dwarf Error: found dwarf version '0', this reader only
>handles version 2 and 3 information.^M
>70503.cc:(.text.startup.main+0xa): undefined reference to
>`execute_native_thread_routine_compat'^M
>collect2: error: ld returned 1 exit status^M
>compiler exited with status 1
>output is:
>/usr/bin/ld: Dwarf Error: found dwarf version '4', this reader only
>handles version 2 and 3 information.^M
>/tmp/ccMBMHB5.o: In function `main':^M
>70503.cc:(.text.startup.main+0x5): undefined reference to
>`execute_native_thread_routine'^M
>/usr/bin/ld: Dwarf Error: found dwarf version '0', this reader only
>handles version 2 and 3 information.^M
>70503.cc:(.text.startup.main+0xa): undefined reference to
>`execute_native_thread_routine_compat'^M
>collect2: error: ld returned 1 exit status^M
>
>FAIL: 30_threads/thread/70503.cc (test for errors, line 31)
>FAIL: 30_threads/thread/70503.cc (test for errors, line 32)
>FAIL: 30_threads/thread/70503.cc (test for excess errors)
Hmm, I'm not sure whether it's better to use -gdwarf-2 or add
{ dg-prune-output "dwarf version" }
More information about the Libstdc++
mailing list