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


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


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