Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143871 - g++ and binutils linking failure.
Summary: g++ and binutils linking failure.
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-14 03:42 UTC by palcek smuk
Modified: 2006-11-05 13:38 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,3.18 KB, text/plain)
2006-08-30 14:20 UTC, Pierre Y.
Details
emerge --info (emerge-info,3.07 KB, text/plain)
2006-10-16 23:45 UTC, RijilV
Details

Note You need to log in before you can comment on or make changes to this bug.
Description palcek smuk 2006-08-14 03:42:40 UTC
I've got a problem compiling bmpx, but I don't really know what this ld returned status 1 is:

`.gnu.linkonce.r._ZNSt6vectorIN5boost6tuples5tupleIbSsNS0_7variantIbidN4Glib7ustringENS0_6detail7variant5void_ES8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_EENS1_9null_typeESA_SA_SA_SA_SA_SA_EESaISB_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPSB_SD_EERKSB_' of bmp2_bin-library_ui_modify_tracks.o: defined in discarded section `.gnu.linkonce.t._ZNSt6vectorIN5boost6tuples5tupleIbSsNS0_7variantIbidN4Glib7ustringENS0_6detail7variant5void_ES8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_EENS1_9null_typeESA_SA_SA_SA_SA_SA_EESaISB_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPSB_SD_EERKSB_' of bmp2_bin-library_ui_modify_tracks.o
collect2: ld returned 1 exit status
make[3]: *** [bmp2-bin] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

!!! ERROR: media-sound/bmpx-0.20.3 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_compile
  ebuild.sh, line 938:   Called src_compile
  bmpx-0.20.3.ebuild, line 65:   Called die


emerge --info
Portage 2.1.1_pre5 (default-linux/amd64/2005.1, gcc-3.4.5/amd64-vanilla, glibc-2.3.6-r3, 2.6.17-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r4 x86_64 AMD Sempron(tm) Processor 3100+
Gentoo Base System version 1.12.4
Last Sync: Sun, 13 Aug 2006 18:50:01 +0000
ccache version 2.4 [disabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
Comment 1 Pierre Y. 2006-08-30 14:18:32 UTC
Confirmed. bmpx 0.20.3, 0.21 (zugaina) and svn "vanilla" fails too. I get tons of such error messages, ending with "ld error status 1" :

`.gnu.linkonce.t._ZNSt8_Rb_treeISsSt4pairIKSsN5boost7variantIbidN4Glib7ustringENS2_6detail7variant5void_ES8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_EEESt10_Select1stISA_ESt4lessISsESaISA_EE9_M_insertEPSt18_Rb_tree_node_baseSI_RKSA_' referenced in section `.gnu.linkonce.r._ZNSt8_Rb_treeISsSt4pairIKSsN5boost7variantIbidN4Glib7ustringENS2_6detail7variant5void_ES8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_EEESt10_Select1stISA_ESt4lessISsESaISA_EE9_M_insertEPSt18_Rb_tree_node_baseSI_RKSA_' of bmp2_bin-dialog-trackinfo.o: defined in discarded section `.gnu.linkonce.t._ZNSt8_Rb_treeISsSt4pairIKSsN5boost7variantIbidN4Glib7ustringENS2_6detail7variant5void_ES8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_EEESt10_Select1stISA_ESt4lessISsESaISA_EE9_M_insertEPSt18_Rb_tree_node_baseSI_RKSA_' of bmp2_bin-dialog-trackinfo.o
`.gnu.linkonce.t._ZNSt8_Rb_treeISsSt4pairIKSsN5boost7variantIbidN4Glib7ustringENS2_6detail7variant5void_ES8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_EEESt10_Select1stISA_ESt4lessISsESaISA_EE9_M_insertEPSt18_Rb_tree_node_baseSI_RKSA_' referenced in section `.gnu.linkonce.r._ZNSt8_Rb_treeISsSt4pairIKSsN5boost7variantIbidN4Glib7ustringENS2_6detail7variant5void_ES8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_EEESt10_Select1stISA_ESt4lessISsESaISA_EE9_M_insertEPSt18_Rb_tree_node_baseSI_RKSA_' of bmp2_bin-dialog-trackinfo.o: defined in discarded section `.gnu.linkonce.t._ZNSt8_Rb_treeISsSt4pairIKSsN5boost7variantIbidN4Glib7ustringENS2_6detail7variant5void_ES8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_S8_EEESt10_Select1stISA_ESt4lessISsESaISA_EE9_M_insertEPSt18_Rb_tree_node_baseSI_RKSA_' of bmp2_bin-dialog-trackinfo.o
...
`.gnu.linkonce.t._ZN5boost6tuples5tupleIN3Bmp2DB10MatchStyleESsNS_7variantIbidN4Glib7ustringENS_6detail7variant5void_ESA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_EENS0_9null_typeESC_SC_SC_SC_SC_SC_EC1ERKS4_RKSsRKSB_' referenced in section `.gnu.linkonce.r._ZN5boost6tuples5tupleIN3Bmp2DB10MatchStyleESsNS_7variantIbidN4Glib7ustringENS_6detail7variant5void_ESA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_EENS0_9null_typeESC_SC_SC_SC_SC_SC_EC1ERKS4_RKSsRKSB_' of bmp2_bin-library-ui.o: defined in discarded section `.gnu.linkonce.t._ZN5boost6tuples5tupleIN3Bmp2DB10MatchStyleESsNS_7variantIbidN4Glib7ustringENS_6detail7variant5void_ESA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_EENS0_9null_typeESC_SC_SC_SC_SC_SC_EC1ERKS4_RKSsRKSB_' of bmp2_bin-library-ui.o
`.gnu.linkonce.t._ZN5boost6tuples5tupleIN3Bmp2DB10MatchStyleESsNS_7variantIbidN4Glib7ustringENS_6detail7variant5void_ESA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_EENS0_9null_typeESC_SC_SC_SC_SC_SC_EC1ERKS4_RKSsRKSB_' referenced in section `.gnu.linkonce.r._ZN5boost6tuples5tupleIN3Bmp2DB10MatchStyleESsNS_7variantIbidN4Glib7ustringENS_6detail7variant5void_ESA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_EENS0_9null_typeESC_SC_SC_SC_SC_SC_EC1ERKS4_RKSsRKSB_' of bmp2_bin-library-ui.o: defined in discarded section `.gnu.linkonce.t._ZN5boost6tuples5tupleIN3Bmp2DB10MatchStyleESsNS_7variantIbidN4Glib7ustringENS_6detail7variant5void_ESA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_SA_EENS0_9null_typeESC_SC_SC_SC_SC_SC_EC1ERKS4_RKSsRKSB_' of bmp2_bin-library-ui.o
collect2: ld returned 1 exit status
Comment 2 Pierre Y. 2006-08-30 14:20:47 UTC
Created attachment 95513 [details]
emerge --info

My emerge --info
Comment 3 Joe Kappus 2006-09-08 21:02:13 UTC
this is a KNOWN bug with SMP enabled.. it is true across Pentium D and Core Duo.  I recommend this bug gets assigned to the gcc department if it goes anywhere.

Other then that, I am currently having this investigated by the main bmpx dev, deadchip.  He seems to think boost is causing these problems.  In any case, if you want it to build on your system, you will have to disable SMP in the kernel, or build it on another system without it.  (sucks, but until we figure it out it's the only way).  I notice you are running a Sempron, can you tell me if you have SMP enabled in the kernel? (uname -a would show it as well)

One other thing is that, this bug stretches across gcc version from 3.4 to 4.1.  
Comment 4 palcek smuk 2006-09-08 23:59:26 UTC
I don't have smp enabled.
Linux ecchi 2.6.17-gentoo-r7 #1 Fri Sep 8 20:45:18 CEST 2006 x86_64 AMD Sempron(tm) Processor 3100+ AuthenticAMD GNU/Linux
Comment 5 Alex Zanetti de Lima 2006-09-13 08:14:56 UTC
I don't have SMP enabled here too but still have the same linking error.

Linux notexerozo 2.6.15-gentoo-r5 #13 Wed Jun 14 16:27:09 BRT 2006 i686 Intel(R) Pentium(R) M processor 1.60GHz GenuineIntel GNU/Linux

(In reply to comment #4)
> I don't have smp enabled.
> Linux ecchi 2.6.17-gentoo-r7 #1 Fri Sep 8 20:45:18 CEST 2006 x86_64 AMD
> Sempron(tm) Processor 3100+ AuthenticAMD GNU/Linux
> 

Comment 6 Joe Kappus 2006-09-14 16:26:50 UTC
it stopped happening here, so beats me.. but its not a bmpx bug just because it happens with it.  This appears to be either a bug in gcc or a bug in the boost library.  But I am unable to reproduce anymore.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2006-10-04 08:26:50 UTC
Does this still happen with 0.32.0 ?
Comment 8 RijilV 2006-10-16 23:45:43 UTC
Created attachment 99857 [details]
emerge --info

my horrible make.conf
Comment 9 RijilV 2006-10-16 23:47:32 UTC
(In reply to comment #7)
> Does this still happen with 0.32.0 ?
> 

Err, what I really wanted to do was say, yes, this still happens with 0.32.0 on a non-SMP machine
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2006-10-18 13:21:46 UTC
It might be problem with dev-libs/boost, C++ library. Can you try to build some of these apps listed in (I suggest inkscape and OOo),

http://tinderbox.dev.gentoo.org/misc/rindex/dev-libs/boost

And you guys in cpp herd, any insight (like, seen this before)?

Also, RijilV. Please reorganize your CFLAGS. They are broken. Check out http://www.gentoo.org/news/en/gwn/20061009-newsletter.xml for reference.

Thanks, drac
Comment 11 Tiziano Müller (RETIRED) gentoo-dev 2006-10-18 14:35:47 UTC
Well, the chance is high that this is a bug in the compiler: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16625

You might want to:
- make sure you used the same version of gcc to compile boost and bmpx
- update your gcc to 4.1.1 which is stable on amd64
Comment 12 Richard Karnesky 2006-10-18 15:52:51 UTC
Thanks--I had the same bug re-emerging boost and bmpx with gcc-4.1.1 worked for me.
Comment 13 Tiziano Müller (RETIRED) gentoo-dev 2006-10-18 16:16:00 UTC
Final fix for now: Update to gcc-4.1.1.
Closing it. Please reopen if necessary, thanks for reporting.
Comment 14 Milosz Derezynski 2006-10-19 05:58:50 UTC
I'm not entirely sure what is wrong, but it appears to be a compatibility issue between gcc and binutils. It is most definitely NOT a bug with BMPx or Boost. Those are link errors.

Some people have hit the same problem building STLport and cppu:

http://www.openoffice.org/servlets/ReadMsg?list=dev&msgNo=16340

gcc|binutils|works:

3.4.3|2.15.94.0.2|yes 
3.4.3|2.16.91.0.6|error
3.4.5|2.15.94.0.2|with warnings
3.4.5|2.16.91.0.6|error

(note courtesy C.K.Xiong)
Comment 15 Samuli Suominen (RETIRED) gentoo-dev 2006-10-19 09:36:52 UTC
And people read, http://www.gentoo.org/doc/en/gcc-upgrading.xml

(Reopening just to mark it yet again RESOLVED, WORKSFORME)
Comment 16 Samuli Suominen (RETIRED) gentoo-dev 2006-10-19 09:37:56 UTC
As said in previous comment, it works in system with no mixed stable and ~arch or package.masked GCCs and on system which is build with one single GCC as said in GCC upgrading page.
Comment 17 Samuli Suominen (RETIRED) gentoo-dev 2006-10-19 09:39:00 UTC
Wanted to say actually mixed GCC and binutils versions in previous comment, sorry about bugspam.
Comment 18 Samuli Suominen (RETIRED) gentoo-dev 2006-11-05 06:25:10 UTC
Reopening as reassining to toolchain. Requested by upstream.
Comment 19 Tiziano Müller (RETIRED) gentoo-dev 2006-11-05 12:23:22 UTC
Removing cpp from the CC list since there's nothing we could do here (anymore/at the moment). Please re-add us if you think otherwise. Thanks.
Comment 20 SpanKY gentoo-dev 2006-11-05 13:38:29 UTC
if it's broken only with gcc-3.x then i dont care

upgrade to gcc-4.1.1