This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Error bootstrap for powerpc-linux from cygwin


Hello people,

I'm trying to build a cross compiler for powerpc-linux from a
cygwin-1.3.9 host environment.

After building binutils-2.11.2 for powerpc-linux, I tryed to build the
bootstrat gcc, using gcc-3.0.4.

The configure line was:

$ (gcc_src_dir)/gcc-3.0.4/configure --target=powrpc-linux
--prefix=/ppclinux --without-headers --with-newlib --enable-languages=c

When trying to build, with:

$ make -w all-gcc install-gcc

I get the following error just when xgcc will be used for the first
time:

/tmp/build/linux-gnu/gcc-boot/gcc/xgcc
-B/tmp/build/linux-gnu/gcc-boot/gcc/ -B/ppclinux/powerpc-linux/bin/
-B/ppclinux/powerpc-linux/lib/ -isystem /ppclinux/powerpc-linux/include
-O2  -DCROSS_COMPILE -DIN_GCC    -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -fPIC -g1
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
-I/src/gcc/gcc-3.0.4/gcc -I/src/gcc/gcc-3.0.4/gcc/.
-I/src/gcc/gcc-3.0.4/gcc/config -I/src/gcc/gcc-3.0.4/gcc/../include
-fPIC -mstrict-align -DL_muldi3 -c /src/gcc/gcc-3.0.4/gcc/libgcc2.c -o
libgcc/./_muldi3.o
In file included from tm.h:6,
                 from
/src/gcc/gcc-3.0.4/gcc/config/rs6000/xm-sysv4.h:35,
                 from tconfig.h:3,
                 from /src/gcc/gcc-3.0.4/gcc/libgcc2.c:36:
/src/gcc/gcc-3.0.4/gcc/config/rs6000/linux.h:81:20: signal.h: No such
file or directory
/src/gcc/gcc-3.0.4/gcc/config/rs6000/linux.h:82:26: sys/ucontext.h: No
such file or directory
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory `/tmp/build/linux-gnu/gcc-boot/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/tmp/build/linux-gnu/gcc-boot/gcc'
make: *** [all-gcc] Error 2
make: Leaving directory `/tmp/build/linux-gnu/gcc-boot'

The error was triggered because -DIN_LIBGCC2 switch in the command line
causes linux.h to include <signal.h> (linux.h line 80) and
<sys/ucontext.h> (linux.h line 81).

Someone knows how to solve the problem? Do I need some header files for
the target powerpc-linux even at bootstrap time?


Thanks in advance,

Joćo Cadamuro Junior
LIT / CPDTT / CEFET-PR


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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