This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: G++ 3.2, Sol 7/sparc, dynamic linking problem?
- From: Phil Edwards <phil at jaj dot com>
- To: "Watts, Simon (UK)" <swatts at northgrum-it dot eu dot com>
- Cc: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- Date: Fri, 20 Sep 2002 11:24:17 -0400
- Subject: Re: G++ 3.2, Sol 7/sparc, dynamic linking problem?
- References: <4F055774D458D51195BC000347246B39E803A2@xcguk001.inri.co.uk>
On Fri, Sep 20, 2002 at 10:27:37AM +0100, Watts, Simon (UK) wrote:
> (1)
> tmp$ g++ cc.cc
> /usr/gnu/bin/ld: cannot find -lgcc_s
> collect2: ld returned 1 exit status
>
> OK, libgcc_s.so is under /usr/gnu/lib/sparcv9, so add
> -L/usr/gnu/lib/sparcv9.
> But, shouldnt this be found by g++/ld?
Yes.
> Built binutils-2.13
> Configured gcc with
> --with-as=/usr/gnu/bin/as
> --with-ld=/usr/gnu/bin/ld
> --disable-multilib (32bit mode solaris kernel)
> --enable-__cxa_atexit
> make bootstrap on GCC
1) I don't think --enable-__cxa_atexit helps you on Solaris. You'd have
to scan their libc.so for a __cxa_atexit symbol. I would but I don't
have access to a Sun at the moment.
2) If you're going to use --with-as and --with-ld to point to GNU tools,
you should also pass --with-gnu-as and --with-gnu-ld. The first two
simply specify a path, the second two specify that GNUism can be used.
and most importantly
3) Lots of bug reports about binutils 2.13 under Solaris. I think if you
downgrade to something in the 2.12.x series the problems go away.
Phil
--
I would therefore like to posit that computing's central challenge, viz. "How
not to make a mess of it," has /not/ been met.
- Edsger Dijkstra, 1930-2002