This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: G++ 3.2, Sol 7/sparc, dynamic linking problem?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]