This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


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

Re: Problem when make gcc cross compiler for MIPS platform


Jonathan Larmour wrote:
> 
> Ling Su wrote:
> > /src/gcc_build/gcc/xgcc -B/src/gcc_build/gcc/ -B/usr/local/cross/H-i686-pc-l
> > inux-gnu/mips64vr4300-elf/bin/ -I/usr/local/cross/H-i686-pc-linux-gnu/mips64
> > vr4300-elf/include -O2  -DCROSS_COMPILE -DIN_GCC    -g -O2 -isystem
> > ./include  -G
> > -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc   -g -O2 -I. -I/sr
> > c/gcc/egcs-20000530/gcc -I/src/gcc/egcs-20000530/gcc/config -I/src/gcc/egcs-
> > 20000530/gcc/../include \
> >   -c /src/gcc/egcs-20000530/gcc/cp/tinfo2.cc
> > /src/gcc/egcs-20000530/gcc/cp/tinfo2.cc:31:33: stdlib.h: No such file or
> > directory
> 
> Are you sure you configured with "--with-newlib" ? To check, look at the
> top-level config.status file in your gcc build tree.

Actually I just had a closer look and there is a problem in the gcc
sources. You will need the attached patch which I have sent off for
approval.

Alternatively use an older snapshot (29th May or earlier) for now.

Jifl
-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault
Index: cp/tinfo2.cc
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/tinfo2.cc,v
retrieving revision 1.25
diff -u -5 -p -r1.25 tinfo2.cc
--- cp/tinfo2.cc	2000/05/30 15:44:20	1.25
+++ cp/tinfo2.cc	2000/06/01 17:05:42
@@ -26,11 +26,15 @@
 // the GNU General Public License.  This exception does not however
 // invalidate any other reasons why the executable file might be covered by
 // the GNU General Public License.
 
 #include <stddef.h>
+#ifndef inhibit_libc
 #include <stdlib.h>		// for abort
+#else
+extern void abort(void);
+#endif
 #include "tinfo.h"
 #include "new"			// for placement new
 
 using std::type_info;
 

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