public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Linking libstdc++ with gcc-3.0.2 prerelease fails on IA64
@ 2001-10-14 16:39 Krishnakumar B
  2001-10-15 10:24 ` Janis Johnson
  0 siblings, 1 reply; 7+ messages in thread
From: Krishnakumar B @ 2001-10-14 16:39 UTC (permalink / raw)
  To: gcc

Hi,

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.

/u/kitty/tools/gcc-3.0.2-20011014/ia64-redhat-linux/gcc/xgcc
-B/u/kitty/tools/gcc-3.0.2-20011014/ia64-redhat-linux/gcc/ -nostdinc++
-L/u/kitty/tools/gcc-3.0.2-20011014/ia64-redhat-linux/ia64-redhat-linux/libstdc++-v3/src
-L/u/kitty/tools/gcc-3.0.2-20011014/ia64-redhat-linux/ia64-redhat-linux/libstdc++-v3/src/.libs
-B/opt/ia64-redhat-linux/bin/ -B/opt/ia64-redhat-linux/lib/ -isystem
/opt/ia64-redhat-linux/include -shared -nostdlib /usr/lib/crti.o
/u/kitty/tools/gcc-3.0.2-20011014/ia64-redhat-linux/gcc/crtbeginS.o
.libs/basic_file.o .libs/bitset.o .libs/c++locale.o .libs/cmath.o
.libs/codecvt.o .libs/complex_io.o .libs/functexcept.o .libs/globals.o
.libs/ios.o .libs/limits.o .libs/locale.o .libs/locale-inst.o
.libs/localename.o .libs/misc-inst.o .libs/stdexcept.o .libs/stl-inst.o
.libs/string-inst.o .libs/strstream.o .libs/valarray-inst.o
.libs/wstring-inst.o -Wl,--whole-archive ../libmath/.libs/libmath.a
../libsupc++/.libs/libsupc++convenience.a -Wl,--no-whole-archive
-L/u/kitty/tools/gcc-3.0.2-20011014/ia64-redhat-linux/ia64-redhat-linux/libstdc++-v3/src
-L/u/kitty/tools/gcc-3.0.2-20011014/ia64-redhat-linux/ia64-redhat-linux/libstdc++-v3/src/.libs
-lm ../libmath/.libs/libmath.a -lm
../libsupc++/.libs/libsupc++convenience.a -lm
-L/u/kitty/tools/gcc-3.0.2-20011014/ia64-redhat-linux/gcc -lgcc_s -lgcc -lc
-lgcc_s -lgcc -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc
/u/kitty/tools/gcc-3.0.2-20011014/ia64-redhat-linux/gcc/crtendS.o
/usr/lib/crtn.o  -Wl,-soname -Wl,libstdc++.so.3 -o .libs/libstdc++.so.3.0.2
.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
.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
collect2: ld returned 1 exit status
make[4]: *** [libstdc++.la] Error 1
make[4]: Leaving directory
`/u/kitty/tools/gcc-3.0.2-20011014/ia64-redhat-linux/ia64-redhat-linux/libstdc++-v3/src'
make[3]: *** [all-recursive] Error 1

Some more info:

toutatis> ld -v
GNU ld version 2.11.92.0.5 20011005

toutatis> gcc -v
Reading specs from /opt/lib/gcc-lib/ia64-unknown-linux/3.0.2/specs
Configured with: ../configure --prefix=/opt --enable-shared --enable-threads=posix
Thread model: posix
gcc version 3.0.2 20010917 (prerelease)

toutatis> uname -a
Linux toutatis 2.4.9 #16 SMP Mon Sep 10 11:22:11 CDT 2001 ia64 unknown

toutatis> /lib/libc.so.6.1
GNU C Library stable release version 2.2.4, by Roland McGrath et al.
Copyright (C) 1992-1999, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 2.96 20000731 (Red Hat Linux 7.1 2.96-98).
Compiled on a Linux 2.4.7-10smp system on 2001-09-28.
Available extensions:
          GNU libio by Per Bothner
          crypt add-on version 2.1 by Michael Glad and others
          The C stubs add-on version 2.1.2.
          linuxthreads-0.9 by Xavier Leroy
          BIND-8.2.3-T5B
          libthread_db work sponsored by Alpha Processor Inc
          NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Report bugs using the `glibcbug' script to <bugs@gnu.org>.

-- 
Krishnakumar B <kitty at cs dot wustl dot edu>
Distributed Object Computing Laboratory, Washington University in St.Louis

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linking libstdc++ with gcc-3.0.2 prerelease fails on IA64
  2001-10-14 16:39 Linking libstdc++ with gcc-3.0.2 prerelease fails on IA64 Krishnakumar B
@ 2001-10-15 10:24 ` Janis Johnson
  2001-10-15 11:04   ` H . J . Lu
  0 siblings, 1 reply; 7+ messages in thread
From: Janis Johnson @ 2001-10-15 10:24 UTC (permalink / raw)
  To: Krishnakumar B; +Cc: gcc

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.
 
> Some more info:
> 
> toutatis> ld -v
> GNU ld version 2.11.92.0.5 20011005

Mine, too.

> toutatis> gcc -v
> Reading specs from /opt/lib/gcc-lib/ia64-unknown-linux/3.0.2/specs
> Configured with: ../configure --prefix=/opt --enable-shared --enable-threads=posix
> Thread model: posix
> gcc version 3.0.2 20010917 (prerelease)

As I said, the same failure occurs with the CVS mainline.
 
> toutatis> uname -a
> Linux toutatis 2.4.9 #16 SMP Mon Sep 10 11:22:11 CDT 2001 ia64 unknown

Mine is: 
Linux elm3a81 2.4.7-2smp #1 SMP Tue Aug 14 04:31:14 EDT 2001 ia64 unknown

> toutatis> /lib/libc.so.6.1
> GNU C Library stable release version 2.2.4, by Roland McGrath et al.

Mine, too.

Janis

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linking libstdc++ with gcc-3.0.2 prerelease fails on IA64
  2001-10-15 10:24 ` Janis Johnson
@ 2001-10-15 11:04   ` H . J . Lu
  2001-10-15 11:26     ` Krishnakumar B
  2001-10-15 11:32     ` Janis Johnson
  0 siblings, 2 replies; 7+ messages in thread
From: H . J . Lu @ 2001-10-15 11:04 UTC (permalink / raw)
  To: Janis Johnson; +Cc: Krishnakumar B, gcc, binutils

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.

Thanks.


H.J.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linking libstdc++ with gcc-3.0.2 prerelease fails on IA64
  2001-10-15 11:04   ` H . J . Lu
@ 2001-10-15 11:26     ` Krishnakumar B
  2001-10-15 11:59       ` H . J . Lu
  2001-10-15 11:32     ` Janis Johnson
  1 sibling, 1 reply; 7+ messages in thread
From: Krishnakumar B @ 2001-10-15 11:26 UTC (permalink / raw)
  To: H . J . Lu; +Cc: Janis Johnson, gcc, binutils

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.

-kitty.
> 
> Thanks.
> 
> 
> H.J.

-- 
Krishnakumar B <kitty at cs dot wustl dot edu>
Distributed Object Computing Laboratory, Washington University in St.Louis

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linking libstdc++ with gcc-3.0.2 prerelease fails on IA64
  2001-10-15 11:04   ` H . J . Lu
  2001-10-15 11:26     ` Krishnakumar B
@ 2001-10-15 11:32     ` Janis Johnson
  1 sibling, 0 replies; 7+ messages in thread
From: Janis Johnson @ 2001-10-15 11:32 UTC (permalink / raw)
  To: H . J . Lu; +Cc: Janis Johnson, Krishnakumar B, gcc, binutils

On Mon, Oct 15, 2001 at 11:04:36AM -0700, 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.

Yes, the failure occurs with GNU ld version 2.11.92.0.5 20011005 but not
with GNU ld version 2.11.90.0.8 (with BFD 2.11.90.0.8).  Build C and C++;
it doesn't require a bootstrap.  I get the same failure with a cross
build on i686-unknown-linux-gnu.  Use any recent 3.0 or 3.1 GCC source.

Janis

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linking libstdc++ with gcc-3.0.2 prerelease fails on IA64
  2001-10-15 11:26     ` Krishnakumar B
@ 2001-10-15 11:59       ` H . J . Lu
  2001-10-15 14:14         ` Janis Johnson
  0 siblings, 1 reply; 7+ messages in thread
From: H . J . Lu @ 2001-10-15 11:59 UTC (permalink / raw)
  To: Krishnakumar B; +Cc: Janis Johnson, gcc, binutils

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.


H.J.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linking libstdc++ with gcc-3.0.2 prerelease fails on IA64
  2001-10-15 11:59       ` H . J . Lu
@ 2001-10-15 14:14         ` Janis Johnson
  0 siblings, 0 replies; 7+ messages in thread
From: Janis Johnson @ 2001-10-15 14:14 UTC (permalink / raw)
  To: H . J . Lu; +Cc: Krishnakumar B, Janis Johnson, gcc, binutils

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-10-15 14:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-14 16:39 Linking libstdc++ with gcc-3.0.2 prerelease fails on IA64 Krishnakumar B
2001-10-15 10:24 ` Janis Johnson
2001-10-15 11:04   ` H . J . Lu
2001-10-15 11:26     ` Krishnakumar B
2001-10-15 11:59       ` H . J . Lu
2001-10-15 14:14         ` Janis Johnson
2001-10-15 11:32     ` Janis Johnson

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).