krfkeith / sx-gcc

Automatically exported from code.google.com/p/sx-gcc
0 stars 0 forks source link

the issue with duplicate names of debugging symbols #139

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The "23_containers/bitset/input/1.cc" test case produces the following
linker errors if the debugging information is enabled (i.e. "-g" option is
used):

/tmp/ccNf4mZo.o:1.cc:(.lo.b._Z+0x0): multiple definition of `__eof'

/tmp/ccNf4mZo.o:1.cc:(.lo.b._Z+0x0): first defined here

/tmp/ccNf4mZo.o:1.cc:(.lo.b._Z+0x0): multiple definition of `__eof'

/tmp/ccNf4mZo.o:1.cc:(.lo.b._Z+0x0): first defined here

collect2: ld returned 1 exit status

The problem is in multiple definition of the "__eof" debugging symbol:

.def    __eof;  .val
_ZZStrsIcSt11char_traitsIcELm5EERSt13basic_istreamIT_T0_ES6_RSt6bitsetIXT1_EEE5_
_eof;
.scl    2;  .type   04; .endef

...

.def    __eof;  .val
_ZZStrsIcSt11char_traitsIcELm0EERSt13basic_istreamIT_T0_ES6_RSt6bitsetIXT1_EEE5_
_eof;
.scl    2;  .type   04; .endef

Original issue reported on code.google.com by nou...@gmail.com on 1 Jul 2009 at 12:45

GoogleCodeExporter commented 9 years ago
disable debugging for C++ and remove all related hacks for release: SDB 
debugging
format just can't cope.

Original comment by jmoc...@gmail.com on 9 Oct 2009 at 9:25