This is the mail archive of the gcc-bugs@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: mips-elf can't create executables for libstdc++ testsuite


On Mon, Nov 18, 2002 at 11:10:54AM -0800, cgd@broadcom.com wrote:
> At Mon, 18 Nov 2002 13:03:17 +0000 (UTC), "Phil Edwards" wrote:
> > [ ... ]
> > -L/home/pme/build/build-2002-11-17-mips/mips-elf//libstdc++-v3/testsuite -lv3test -lm
> > -Wl,-Tidt.ld  -o ./header_cerrno.exe
> > 
> > 
> > Note that nothing adds -lc anywhere.  When the command is repeated
> > mainually and -v added, -lc never appears at all.
> 
> Note that -Tidt.ld specifies:
> 
> GROUP(-lc -lidt -lgcc)
> 
> and that is the mechanism by which libc is (supposed to be) included.

Ah.


> > This leads to link errors like
> > [ memset, memcpy, strlen, abort undefined ]
> 
> were these the entire set of undefined symbols?  or were kill, getpid,
> etc., in there as well?

Those were it.  I only get the _kill_r and the rest when I add -lc.


> I've gotten mips-elf and similar targets to work, using the
> description of how to do it on the sim testing page, as of a few weeks
> ago.  I've not tried it since.

Does any of this look suspicious?

    % ./mips-elf-gcc -v
    Reading specs from ./../lib/gcc-lib/mips-elf/3.3/specs
    Configured with: /home/pme/src/unified/configure
    --prefix=/home/pme/build/install-2002-11-18-mips --enable-shared --disable-nls
    --host=athlon_mp-pc-linux-gnu --enable-languages=c++ --disable-symvers
    --with-newlib --enable-sim --target=mips-elf
    Thread model: single
    gcc version 3.3 20021118 (experimental)

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]