[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cross-compiling on ppc to i686



Selon Guido Guenther <agx@debian.org>:

> On Wed, Oct 15, 2003 at 04:52:44PM +0200, Guido Guenther wrote:
> > You need the glibc+headers if you don't bootstrap with --newlib.
> Aeeh...--with-newlib that is. I usually use:
>  ../gcc-${GCC}/configure --enable-languages=c --disable-shared --with-newlib
> --disable-threads ...
> to bootstrap cross gcc.
> Cheers,
>  -- Guido
> 

Yes you're right ! seems logic we need the target lib/headers to get
the cross compiler up. But unfortunately I get exacly the same result
with the --with-newlib option :

make[1]: Entering directory `/home/kamy/src/gcc-build/gcc'
make \
  CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -fno-common " \
  CONFIG_H="tconfig.h ../../gcc-3.4-20031008/gcc/../include/ansidecl.h"
TM_H="tm.h      ../../gcc-3.4-20031008/gcc/config/i386/i386.h
../../gcc-3.4-20031008/gcc/config/i386/unix.h
../../gcc-3.4-20031008/gcc/config/i386/att.h
../../gcc-3.4-20031008/gcc/config/dbxelf.h
../../gcc-3.4-20031008/gcc/config/elfos.h
../../gcc-3.4-20031008/gcc/config/svr4.h
../../gcc-3.4-20031008/gcc/config/linux.h
../../gcc-3.4-20031008/gcc/config/i386/linux.h
../../gcc-3.4-20031008/gcc/defaults.h insn-constants.h insn-flags.h" \
  MAKEOVERRIDES= \
  -f libgcc.mk all
make[2]: Entering directory `/home/kamy/src/gcc-build/gcc'
for d in libgcc; do \
  if [ -d $d ]; then true; else /bin/sh ../../gcc-3.4-20031008/gcc/mkinstalldirs
$d; fi; \
done
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/home/kamy/src/gcc-build/gcc/xgcc -B/home/kamy/src/gcc-build/gcc/
-B/home/kamy/i686-linux/bin/ -B/home/kamy/i686-linux/lib/ -isystem
/home/kamy/i686-linux/include -isystem /home/kamy/i686-linux/sys-include -O2
-DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
-I../../gcc-3.4-20031008/gcc -I../../gcc-3.4-20031008/gcc/.
-I../../gcc-3.4-20031008/gcc/../include   -DL_muldi3 -c
../../gcc-3.4-20031008/gcc/libgcc2.c -o libgcc/./_muldi3.o
In file included from ./tm.h:11,
                 from ../../gcc-3.4-20031008/gcc/libgcc2.c:43:
../../gcc-3.4-20031008/gcc/config/i386/linux.h:220:20: signal.h: No such file or
directory
../../gcc-3.4-20031008/gcc/config/i386/linux.h:221:26: sys/ucontext.h: No such
file or directory
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory `/home/kamy/src/gcc-build/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory `/home/kamy/src/gcc-build/gcc'
make: *** [all-gcc] Error 2

Do you think i should build the glibc and then rebuild gcc with
--with-headers and --with-libs options ?


-- 
--
  ____
 /    \  / antoine.terrienne@free.fr
|  o o | - http://antoine.terrienne.free.fr
|   o  | \ #153026466
\  V V /
 \_/\_/



Reply to: