public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/53675] New: [4.8 Regression] bootstrap fails on netbsd5.1 due to unsupported dwarf4 info
@ 2012-06-14 21:07 redi at gcc dot gnu.org
2012-06-15 8:30 ` [Bug bootstrap/53675] " rguenth at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2012-06-14 21:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53675
Bug #: 53675
Summary: [4.8 Regression] bootstrap fails on netbsd5.1 due to
unsupported dwarf4 info
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: redi@gcc.gnu.org
Host: x86_64-unknown-netbsd5.1
Target: x86_64-unknown-netbsd5.1
Build: x86_64-unknown-netbsd5.1
Created attachment 27621
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27621
build log
Bootstrap fails on gcc70 in the compile farm with linker errors like this:
/usr/bin/ld: Dwarf Error: found dwarf version '4', this reader only handles
version 2 information.
../src/c++11/.libs/libc++11convenience.a(functexcept.o): In function
`_ZZSt9call_onceIMNSt13__future_base11_State_baseEFvRSt8functionIFSt10unique_ptrINS0_12_Result_baseENS4_8_DeleterEEvEERbEJKPS1_St17reference_wrapperIS8_ESF_IbEEEvRSt9once_flagOT_DpOT0_ENUlvE_4_FUNEv':
functexcept.cc:(.text._ZZSt9call_onceIMNSt13__future_base11_State_baseEFvRSt8functionIFSt10unique_ptrINS0_12_Result_baseENS4_8_DeleterEEvEERbEIKPS1_St17reference_wrapperIS8_ESF_IbEEEvRSt9once_flagOT_DpOT0_ENUlvE_4_FUNEv+0x0):
multiple definition of
`_ZZSt9call_onceIMNSt13__future_base11_State_baseEFvRSt8functionIFSt10unique_ptrINS0_12_Result_baseENS4_8_DeleterEEvEERbEIKPS1_St17reference_wrapperIS8_ESF_IbEEEvRSt9once_flagOT_DpOT0_ENUlvE_4_FUNEv'
/usr/bin/ld: Dwarf Error: found dwarf version '4', this reader only handles
version 2 information.
.libs/compatibility-thread-c++0x.o:compatibility-thread-c++0x.cc:(.text._ZZSt9call_onceIMNSt13__future_base11_State_baseEFvRSt8functionIFSt10unique_ptrINS0_12_Result_baseENS4_8_DeleterEEvEERbEIKPS1_St17reference_wrapperIS8_ESF_IbEEEvRSt9once_flagOT_DpOT0_ENUlvE_4_FUNEv+0x0):
first defined here
../src/c++11/.libs/libc++11convenience.a(functexcept.o): In function
`_ZZSt9call_onceIMSt6threadFvvEJSt17reference_wrapperIS0_EEEvRSt9once_flagOT_DpOT0_ENUlvE_4_FUNEv':
functexcept.cc:(.text._ZZSt9call_onceIMSt6threadFvvEISt17reference_wrapperIS0_EEEvRSt9once_flagOT_DpOT0_ENUlvE_4_FUNEv+0x0):
multiple definition of
`_ZZSt9call_onceIMSt6threadFvvEISt17reference_wrapperIS0_EEEvRSt9once_flagOT_DpOT0_ENUlvE_4_FUNEv'
.libs/compatibility-thread-c++0x.o:compatibility-thread-c++0x.cc:(.text._ZZSt9call_onceIMSt6threadFvvEISt17reference_wrapperIS0_EEEvRSt9once_flagOT_DpOT0_ENUlvE_4_FUNEv+0x0):
first defined here
Binutils is pretty old:
ld -V
GNU ld version 2.16.1
Supported emulations:
elf_x86_64
elf_i386
i386nbsd
Configure command is:
/home/jwakely/src/gcc/configure --prefix=/home/jwakely/gcc/4.x
--with-system-zlib --with-gnu-ld --with-gnu-as --with-dwarf2
--enable-languages=c,c++ --disable-libquadmath --disable-libmudflap
--disable-libitm --disable-decimal-float --disable-nls
Note that I specifically requested --with-dwarf2, which makes no difference.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/53675] [4.8 Regression] bootstrap fails on netbsd5.1 due to unsupported dwarf4 info
2012-06-14 21:07 [Bug bootstrap/53675] New: [4.8 Regression] bootstrap fails on netbsd5.1 due to unsupported dwarf4 info redi at gcc dot gnu.org
@ 2012-06-15 8:30 ` rguenth at gcc dot gnu.org
2012-06-15 19:43 ` redi at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-06-15 8:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53675
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.8.0
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/53675] [4.8 Regression] bootstrap fails on netbsd5.1 due to unsupported dwarf4 info
2012-06-14 21:07 [Bug bootstrap/53675] New: [4.8 Regression] bootstrap fails on netbsd5.1 due to unsupported dwarf4 info redi at gcc dot gnu.org
2012-06-15 8:30 ` [Bug bootstrap/53675] " rguenth at gcc dot gnu.org
@ 2012-06-15 19:43 ` redi at gcc dot gnu.org
2012-06-16 13:22 ` [Bug bootstrap/53675] [4.8 Regression] bootstrap fails on netbsd5.1 with multiple definitions of libstdc++ symbols redi at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2012-06-15 19:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53675
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-06-15 19:43:30 UTC ---
Created attachment 27627
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27627
Build log with new binutils
Using a newer binutils (2.22) the errors about dwarf4 are gone, but the
multiple definition errors remain.
GCC still shouldn't be issuing DWARF4 info when the linker doesn't support it
and --with-dwarf2 is used, but that's not the problem.
Every file that includes <mutex> and uses std::call_once gets a multiple
definition error for the lambda expression on line 815
../src/c++11/.libs/libc++11convenience.a(future.o): In function `operator()':
/home/jwakely/build/x86_64-unknown-netbsd5.1/libstdc++-v3/include/mutex:815:
multiple definition of `void std::call_once<void (std::thread::*)(),
std::reference_wrapper<std::thread> >(std::once_flag&, void
(std::thread::*&&)(),
std::reference_wrapper<std::thread>&&)::{lambda()#1}::_FUN()'
.libs/compatibility-thread-c++0x.o:/home/jwakely/build/x86_64-unknown-netbsd5.1/libstdc++-v3/include/mutex:815:
first defined here
I'll try to reproduce this on other platforms by using --disable-tls, so that
code path is taken.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/53675] [4.8 Regression] bootstrap fails on netbsd5.1 with multiple definitions of libstdc++ symbols
2012-06-14 21:07 [Bug bootstrap/53675] New: [4.8 Regression] bootstrap fails on netbsd5.1 due to unsupported dwarf4 info redi at gcc dot gnu.org
2012-06-15 8:30 ` [Bug bootstrap/53675] " rguenth at gcc dot gnu.org
2012-06-15 19:43 ` redi at gcc dot gnu.org
@ 2012-06-16 13:22 ` redi at gcc dot gnu.org
2012-06-18 17:36 ` [Bug bootstrap/53675] [4.8 Regression] bootstrap fails on non-TLS targets " redi at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2012-06-16 13:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53675
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-06-16
Summary|[4.8 Regression] bootstrap |[4.8 Regression] bootstrap
|fails on netbsd5.1 due to |fails on netbsd5.1 with
|unsupported dwarf4 info |multiple definitions of
| |libstdc++ symbols
Ever Confirmed|0 |1
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/53675] [4.8 Regression] bootstrap fails on non-TLS targets with multiple definitions of libstdc++ symbols
2012-06-14 21:07 [Bug bootstrap/53675] New: [4.8 Regression] bootstrap fails on netbsd5.1 due to unsupported dwarf4 info redi at gcc dot gnu.org
` (2 preceding siblings ...)
2012-06-16 13:22 ` [Bug bootstrap/53675] [4.8 Regression] bootstrap fails on netbsd5.1 with multiple definitions of libstdc++ symbols redi at gcc dot gnu.org
@ 2012-06-18 17:36 ` redi at gcc dot gnu.org
2012-06-18 20:17 ` redi at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2012-06-18 17:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53675
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target|x86_64-unknown-netbsd5.1 |
Host|x86_64-unknown-netbsd5.1 |
Summary|[4.8 Regression] bootstrap |[4.8 Regression] bootstrap
|fails on netbsd5.1 with |fails on non-TLS targets
|multiple definitions of |with multiple definitions
|libstdc++ symbols |of libstdc++ symbols
Build|x86_64-unknown-netbsd5.1 |
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-06-18 17:36:41 UTC ---
Reproduced on x86_64-unknown-linux-gnu (using gcc20 in the compile farm)
configured with --disable-tls, with binutils version:
GNU ld (GNU Binutils for Debian) 2.20.1-system.20100303
/usr/bin/ld: Dwarf Error: found dwarf version '49668', this reader only handles
version 2 and 3 information.
../../src/debug/c++11/.libs/libc++11convenience.a(future.o): In function
`_ZZSt9call_onceIMSt6threadFvvEJSt17reference_wrapperIS0_EEEvRSt9once_flagOT_DpOT0_ENKUlvE_cvPFvvEEv':
future.cc:(.text._ZZSt9call_onceIMSt6threadFvvEISt17reference_wrapperIS0_EEEvRSt9once_flagOT_DpOT0_ENKUlvE_cvPFvvEEv+0x0):
multiple definition of
`_ZZSt9call_onceIMSt6threadFvvEISt17reference_wrapperIS0_EEEvRSt9once_flagOT_DpOT0_ENKUlvE_cvPFvvEEv'
/usr/bin/ld: Dwarf Error: found dwarf version '17193', this reader only handles
version 2 and 3 information.
.libs/compatibility-thread-c++0x.o:compatibility-thread-c++0x.cc:(.text._ZZSt9call_onceIMSt6threadFvvEISt17reference_wrapperIS0_EEEvRSt9once_flagOT_DpOT0_ENKUlvE_cvPFvvEEv+0x0):
first defined here
Full configure command:
/home/jwakely/src/gcc/configure --prefix=/home/jwakely/gcc/4.x
--with-system-zlib --with-gnu-ld --with-gnu-as --disable-libitm
--disable-libquadmath --disable-libmudflap --enable-libstdcxx-debug
--enable-languages=c,c++ --disable-bootstrap --disable-tls
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/53675] [4.8 Regression] bootstrap fails on non-TLS targets with multiple definitions of libstdc++ symbols
2012-06-14 21:07 [Bug bootstrap/53675] New: [4.8 Regression] bootstrap fails on netbsd5.1 due to unsupported dwarf4 info redi at gcc dot gnu.org
` (3 preceding siblings ...)
2012-06-18 17:36 ` [Bug bootstrap/53675] [4.8 Regression] bootstrap fails on non-TLS targets " redi at gcc dot gnu.org
@ 2012-06-18 20:17 ` redi at gcc dot gnu.org
2012-07-03 20:55 ` redi at gcc dot gnu.org
2012-07-04 9:23 ` redi at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2012-06-18 20:17 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53675
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-06-18 20:17:10 UTC ---
git bisect shows it was caused by the patch for PR 53137
f899a730d4f41b6a20b5508059a450f3a9347316 is the first bad commit
commit f899a730d4f41b6a20b5508059a450f3a9347316
Author: jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Fri Jun 1 16:55:17 2012 +0000
PR c++/53137
* pt.c (instantiate_class_template_1): Set LAMBDA_EXPR_THIS_CAPTURE.
(instantiate_decl): Don't push_to_top_level for local class methods.
(instantiate_class_template_1): Or for local classes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@188117
138bc75d-0d04-0410-961f-82ee72b054a4
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/53675] [4.8 Regression] bootstrap fails on non-TLS targets with multiple definitions of libstdc++ symbols
2012-06-14 21:07 [Bug bootstrap/53675] New: [4.8 Regression] bootstrap fails on netbsd5.1 due to unsupported dwarf4 info redi at gcc dot gnu.org
` (4 preceding siblings ...)
2012-06-18 20:17 ` redi at gcc dot gnu.org
@ 2012-07-03 20:55 ` redi at gcc dot gnu.org
2012-07-04 9:23 ` redi at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2012-07-03 20:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53675
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-07-03 20:55:25 UTC ---
fixed, probably by Jason's patch for PR 53821
*** This bug has been marked as a duplicate of bug 53821 ***
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/53675] [4.8 Regression] bootstrap fails on non-TLS targets with multiple definitions of libstdc++ symbols
2012-06-14 21:07 [Bug bootstrap/53675] New: [4.8 Regression] bootstrap fails on netbsd5.1 due to unsupported dwarf4 info redi at gcc dot gnu.org
` (5 preceding siblings ...)
2012-07-03 20:55 ` redi at gcc dot gnu.org
@ 2012-07-04 9:23 ` redi at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2012-07-04 9:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53675
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-07-04 09:22:58 UTC ---
I'm still seeing junk dwarf info:
/usr/bin/ld: Dwarf Error: found dwarf version '0', this reader only handles
version 2 and 3 information.
2.cc:(.text._Z6test01v+0x73): undefined reference to
`std::chrono::steady_clock::now()'
/usr/bin/ld: Dwarf Error: found dwarf version '12425', this reader only handles
version 2 and 3 information.
2.cc:(.text._Z6test01v+0xe1): undefined reference to
`std::chrono::steady_clock::now()'
collect2: error: ld returned 1 exit status
Will investigate ...
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-07-04 9:23 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-14 21:07 [Bug bootstrap/53675] New: [4.8 Regression] bootstrap fails on netbsd5.1 due to unsupported dwarf4 info redi at gcc dot gnu.org
2012-06-15 8:30 ` [Bug bootstrap/53675] " rguenth at gcc dot gnu.org
2012-06-15 19:43 ` redi at gcc dot gnu.org
2012-06-16 13:22 ` [Bug bootstrap/53675] [4.8 Regression] bootstrap fails on netbsd5.1 with multiple definitions of libstdc++ symbols redi at gcc dot gnu.org
2012-06-18 17:36 ` [Bug bootstrap/53675] [4.8 Regression] bootstrap fails on non-TLS targets " redi at gcc dot gnu.org
2012-06-18 20:17 ` redi at gcc dot gnu.org
2012-07-03 20:55 ` redi at gcc dot gnu.org
2012-07-04 9:23 ` redi at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).