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]

Error compiling bootstrap-gcc: canīt find signal.h


Hi all,

	Iīm trying to build a cross compilar hosted on a cygwin-Win2k PC for
a linux based Geode GX (x86) embedded system. Iīm following
http://www.billgatliff.com īs CrossGCC FAQ and it fails building the
bootstrap-gcc compiler.

	The log file recorded from the building process goes as attachment.

	I'm trying with the following software:

	- Cygwin 1.3.2 (0.39/3/2)
	- Binutils 2.11.2
	- GCC 3.0.1
	- Newlib 1.9.0
	- GDB 5.0

	Have no problems building and installing the binutils package but
Iīm taking the next one on the bootstrap-gcc building process:

make
GCC_FOR_TARGET="/home/Administrador/i586-elf-linux-gnu/build-gcc/gcc/xgcc
-B/home/Administrador/i586-elf-linux-gnu/build-gcc/gcc/
-B/usr/local/i586-elf-linux-gnu/bin/ -B/usr/local/i586-elf-linux-gnu/lib/
-isystem /usr/local/i586-elf-linux-gnu/include" \
  HOST_PREFIX="" HOST_PREFIX_1="loser-" \
  AR_FOR_TARGET="i586-elf-linux-gnu-ar" \
  AR_CREATE_FOR_TARGET="i586-elf-linux-gnu-ar  rc" \
  AR_FLAGS_FOR_TARGET="" \
  OLDCC="cc" CCLIBFLAGS="-O" \
  CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long" \
  RANLIB_FOR_TARGET="i586-elf-linux-gnu-ranlib" \
  RANLIB_TEST_FOR_TARGET="[ -f i586-elf-linux-gnu-ranlib ] || ( [
"i686-pc-cygwin" = "i586-elf-linux-gnu" ] && [ -f /usr/bin/ranlib -o -f
/bin/ranlib ] )" \
  NM_FOR_TARGET="i586-elf-linux-gnu-nm" AWK="gawk" \
  LIBGCC2_CFLAGS="-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" \
  INCLUDES="-I. -I. -I../../gcc-3.0.1/gcc -I../../gcc-3.0.1/gcc/.
-I../../gcc-3.0.1/gcc/config -I../../gcc-3.0.1/gcc/../include"
MAYBE_USE_COLLECT2="" \
  CONFIG_H="tconfig.h  insn-codes.h insn-flags.h" MACHMODE_H="machmode.h
machmode.def" \
  LIB1ASMSRC='' \
  MAKEOVERRIDES= \
  -f libgcc.mk all
make[2]: Entering directory
`/home/Administrador/i586-elf-linux-gnu/build-gcc/gcc'
for d in libgcc; do \
  if [ -d $d ]; then true; else mkdir $d; fi \
done
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/home/Administrador/i586-elf-linux-gnu/build-gcc/gcc/xgcc
-B/home/Administrador/i586-elf-linux-gnu/build-gcc/gcc/
-B/usr/local/i586-elf-linux-gnu/bin/ -B/usr/local/i586-elf-linux-gnu/lib/
-isystem /usr/local/i586-elf-linux-gnu/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../../gcc-3.0.1/gcc -I../../gcc-3.0.1/gcc/.
-I../../gcc-3.0.1/gcc/config -I../../gcc-3.0.1/gcc/../include  -DL_muldi3 -c
../../gcc-3.0.1/gcc/libgcc2.c -o libgcc/./_muldi3.o
In file included from tm.h:7,
                 from ../../gcc-3.0.1/gcc/config/i386/xm-i386.h:39,
                 from tconfig.h:3,
                 from ../../gcc-3.0.1/gcc/libgcc2.c:36:
../../gcc-3.0.1/gcc/config/i386/linux.h:236:20: signal.h: No such file or
directory
../../gcc-3.0.1/gcc/config/i386/linux.h:237:26: sys/ucontext.h: No such file
or directory
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory
`/home/Administrador/i586-elf-linux-gnu/build-gcc/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory
`/home/Administrador/i586-elf-linux-gnu/build-gcc/gcc'
make: *** [all-gcc] Error 2 

	I've configure the gcc package with 

	../gcc-3.0.1/configure --host=i686-pc-cygwin
--target=i586-elf-linux-gnu --enable-language=c --with-newlib 2>&1 |tee
configure_gcc.log

	and take no problems. Then I use this command to build it:

	make all-gcc install-gcc 2>&1 |tee make_gcc.log

	and take the error.

	I've omitted the --without-headers flag following the suggestions
from M.R. Brown's mail but this can't solve the error.

	Any new suggestions?

	Thanks to all in advance.



 <<make_gcc.log>> 

Gorka Usabiaga Arizmendi
* Elektronika eta Mikroelektronika Saila
      IKERLAN, KOOP. E.
      J. M. Arizmendiarrieta Pasealekua, 2
      20500 Arrasate, Gipuzkoa, Espaņa
* E-Mail: gusabiaga@ikerlan.es
*   Tel.: (+34) 943 712400
* Fax: (+34) 943 796944
Web: www.ikerlan.es

make_gcc.log

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

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