This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: mips-elf can't create executables for libstdc++ testsuite
- From: cgd at broadcom dot com
- To: phil at jaj dot com
- Cc: gcc-bugs at gcc dot gnu dot org,echristo at redhat dot com
- Date: 18 Nov 2002 11:10:54 -0800
- Subject: Re: mips-elf can't create executables for libstdc++ testsuite
- References: <20021118080127.A1105@disaster.jaj.com><mailpost.1037624597.1582@news-sj1-1>
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.
> 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?
> and so forth. If I run the command manually and add -lc on the very end,
> I get
> [ kill, getpid, strlen, memcpy undefined ]
note that kill and getpid are normally provided by libgloss, which is
normally provided by -Tidt.ld as well.
> At this point I decided that was doing something stupid, somewhere,
> because I know that others have gotten mips-elf to work. :-)
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.
cgd