From mboxrd@z Thu Jan 1 00:00:00 1970 From: Janis Johnson To: "H . J . Lu" Cc: Krishnakumar B , Janis Johnson , gcc@gcc.gnu.org, binutils@sourceware.cygnus.com Subject: Re: Linking libstdc++ with gcc-3.0.2 prerelease fails on IA64 Date: Mon, 15 Oct 2001 14:14:00 -0000 Message-id: <20011015141638.A16738@us.ibm.com> References: <15306.8690.271832.77982@samba.doc.wustl.edu> <20011015102655.A24158@us.ibm.com> <20011015110436.A2529@lucon.org> <15307.10804.121457.337095@samba.doc.wustl.edu> <20011015115913.A3449@lucon.org> X-SW-Source: 2001-10/msg00881.html On Mon, Oct 15, 2001 at 11:59:13AM -0700, H . J . Lu wrote: > On Mon, Oct 15, 2001 at 01:25:56PM -0500, Krishnakumar B wrote: > > On Monday, 15 October 2001, H . J . Lu wrote: > > > On Mon, Oct 15, 2001 at 10:26:55AM -0700, Janis Johnson wrote: > > > > On Sun, Oct 14, 2001 at 06:38:26PM -0500, Krishnakumar B wrote: > > > > > > > > > > I am trying to bootstrap IA-64. During the link stage of libstdc++, I get > > > > > the following message. I can reproduce the failure at the same stage with > > > > > the snapshots 200011001 and 20011007 also. > > > > > > > > > > .libs/string-inst.o:/u/kitty/tools/gcc-3.0.2-20011014/ia64-redhat-linux/ia64-redhat-linux/libstdc++-v3/include/bits/basic_string.h:238: > > > > > unsupported reloc > > > > > > > > I see this with the mainline CVS. Rather than looking into it I've just > > > > avoided building c++ and java. Unless someone already knows what the > > > > problem is I can look into it. > > > > > > > > > > I believe it is a binutils bug. Please tell me how to reproduce it. I > > > will make sure it is fixed. > > > > Just try bootstrapping gcc on IA64. Linking libstdc++ fails with this > > error. True for both the mainline or prerelease. I resorted to linking > > using binutils 2.11.90.0.8 though I am sure that it will link with any > > binutils other than 2.11.92.0.5. > > > > I need the exact steps in order to duplicate the problem. OK, here's what I did on an IA-64 system; it's pretty basic. gcc-mainline is a symbolic link to the CVS gcc tree, last updated Wed Oct 10 19:07:42 UTC 2001. ld -v: GNU ld version 2.11.92.0.5 20011005. gcc -v (partial): gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-96). uname -a: Linux elm3a81 2.4.7-2smp #1 SMP Tue Aug 14 04:31:14 EDT 2001 ia64 unknown mkdir gcc-obj cd gcc-obj ../gcc-mainline/configure --prefix=/home/janis/gnu/tools \ --enable-languages="c,c++" > configure.log 2>&1 make > make.log 2>&1 I've got two object files that will cause the same failure with the command "ld -G stl-inst.o string-inst.o -o libx.so", with either a native ia64-linux linker or a cross linker on i686-pc-linux-gnu (both 2.11.92.0.5). Let me know if you'd like those files. Janis