This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
building newlib with i386-coff-gcc
- To: newlib at sourceware dot cygnus dot com
- Subject: building newlib with i386-coff-gcc
- From: flo <florian dot zimmermann at cse dot de>
- Date: Wed, 15 Aug 2001 10:34:12 +0200
hi,
i do not know how to get with my cross-compiled i386-coff
the newlib working.
first i built binutils:
# ../binutils/configure --target=$target --prefix=$prefix -v
# make all install
then gcc-2.95.3:
# ../gcc/configure --target=$target --prefix=$prefix --with-newlib
--without-headers -v
# make install-gcc-cross
# PATH=$PATH:$prefix/bin
# export CC_FOR_TARGET=/bar/bin/i386-coff-gcc
# export AS_FOR_TARGET=/bar/bin/i386-coff-as
# export LD_FOR_TARGET=/bar/bin/i386-coff-ld
# export AR_FOR_TARGET=/bar/bin/i386-coff-ar
# export RANLIB_FOR_TARGET=/bar/bin/i386-coff-ranlib
# ../newlib/configure --target=$target --prefix=$prefix -v
# make
^C
(Makefile does not use i386-coff-gcc as expected but gcc)
so i edit in my BUILD directory the Makefile and replaced
gcc with i386-coff-gcc and as with ...etc.
# make clean all
[snip]
make[1]: Leaving directory `/download/build_newlib'
Making all in libc
make[1]: Entering directory `/download/build_newlib/libc'
Making all in stdlib
make[2]: Entering directory `/download/build_newlib/libc/stdlib'
i386-coff-gcc -DPACKAGE=\"newlib\" -DVERSION=\"1.9.0\" -I.
-I../../../newlib-1.9.0/newlib/libc/stdlib -O2 -Wall
-D_I386MACH_ALLOW_HW_INTERRUPTS -D_LOOSE_KERNEL_NAMES -fPIC
-D_I386MACH_NEED_SOTYPE_FUNCTION -DMISSING_SYSCALL_NAMES -I../../targ-include
-I../../../newlib-1.9.0/newlib/libc/../libc/include -fno-builtin -g -O2
-c ../../../newlib-1.9.0/newlib/libc/stdlib/__adjust.c
In file included from
../../../newlib-1.9.0/newlib/libc/../libc/include/time.h:32,
from
../../../newlib-1.9.0/newlib/libc/../libc/include/sys/reent.h:14,
from
../../../newlib-1.9.0/newlib/libc/../libc/include/reent.h:48,
from ../../../newlib-1.9.0/newlib/libc/stdlib/__adjust.c:6:
../../targ-include/sys/types.h:27: linux/types.h: Datei oder Verzeichnis
nicht gefunden
In file included from
../../../newlib-1.9.0/newlib/libc/../libc/include/errno.h:1,
from ../../../newlib-1.9.0/newlib/libc/stdlib/std.h:3,
from ../../../newlib-1.9.0/newlib/libc/stdlib/__adjust.c:7:
../../targ-include/sys/errno.h:26: asm/errno.h: Datei oder Verzeichnis nicht
gefunden
In file included from /bar/lib/gcc-lib/i386-coff/2.95.3/include/limits.h:117,
from /bar/lib/gcc-lib/i386-coff/2.95.3/include/syslimits.h:7,
from /bar/lib/gcc-lib/i386-coff/2.95.3/include/limits.h:11,
from ../../../newlib-1.9.0/newlib/libc/stdlib/std.h:4,
from ../../../newlib-1.9.0/newlib/libc/stdlib/__adjust.c:7:
/bar/lib/gcc-lib/i386-coff/2.95.3/../../../../i386-coff/sys-include/limits.h:27:
warning: `/*' within comment
make[2]: *** [__adjust.o] Error 1
make[2]: Leaving directory `/download/build_newlib/libc/stdlib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/download/build_newlib/libc'
make: *** [all-recursive] Error 1
#
first error is missing linux/types.h
# find ../newlib/ -name types.h
../newlib-1.9.0/newlib/libc/include/machine/types.h
../newlib-1.9.0/newlib/libc/include/sys/types.h
../newlib-1.9.0/newlib/libc/sys/linux/sys/types.h
../newlib-1.9.0/newlib/libc/sys/rtems/sys/types.h
so the -I directives aren't set properly (what went wrong here?)
as i read in the mailinglist-archives the same problem occured elsewhere but
without a solution ;((
please help, i really get distressed...
if i should post more information holler ;-)
thx a lot,
flo