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

cygwin hosted linux toolchain



  I have one problem when I building a cross-toolchain in cygwin.
  The soures I prepared is:
binutils-2.14
linux-2.4.18
gcc-3.3.4
glibc-2.3.2

target=i386-pc-linux-gnu
host=build=i386-pc-cygwin
prefix=/usr/local/i386-linux-crosstoolchain-for-cygwin

  The steps of building is as follows:

1. for binutils:
kenny_zhang@kenny-c4 /usr/src/binutils-2.14
$ ./configure --target=i386-pc-linux-gnu
--prefix=/usr/local/i386-linux-crosstoolchain-for-cygwin/
$ make
$ make install

2. prepare the kernel-headers into /usr/src/kernel-include-2.4.18

3. for gcc:
kenny_zhang@kenny-c4 /usr/src/gcc-3.3.4/build
$ ../configure --target=i386-pc-linux-gnu
--prefix=/usr/local/i386-linux-crosstoolchain-for-cygwin/
--with-headers=/usr/src/kernel-include-2.4.18/ --enable-languages=c
--disable-threads
$ make

  And after a while, the error message occurred as follows:
...
SHLIB_INSTALL='$(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$(slibdir)
@shlib_slibd
ir_qual@; /bin/sh /usr/src/gcc-3.3.4/install-sh -c -m 644
@shlib_dir@@shlib_so_n
ame@.so.1 $(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_so_name@.so.1; rm
-f $
(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name@.so; ln -s
@shlib_so_na
me@.so.1 $(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name@.so' \
SHLIB_EXT='.so' \
SHLIB_MULTILIB='' \
SHLIB_MKMAP='./mkmap-symver.awk' \
SHLIB_MKMAP_OPTS='' \
SHLIB_MAPFILES='./libgcc-std.ver ./config/libgcc-glibc.ver' \
SHLIB_NM_FLAGS='-pg' \
MULTILIB_OSDIRNAMES='' \
mkinstalldirs='/bin/sh ./mkinstalldirs' \
  /bin/sh mklibgcc > tmp-libgcc.mk
mv tmp-libgcc.mk libgcc.mk
TM_DEFINES="" \
HEADERS="ansidecl.h  i386/xm-cygwin.h i386/i386.h i386/unix.h i386/att.h
dbxelf.
h elfos.h svr4.h linux.h i386/linux.h defaults.h" XM_DEFINES="POSIX" \
TARGET_CPU_DEFAULT="" \
/bin/sh ./mkconfig.sh tconfig.h
/usr/src/gcc-3.3.4/gcc/xgcc -B/usr/src/gcc-3.3.4/gcc/
-B/usr/local/i386-linux-cr
osstoolchain-for-cygwin//i386-pc-linux-gnu/bin/
-B/usr/local/i386-linux-crosstoo
lchain-for-cygwin//i386-pc-linux-gnu/lib/ -isystem
/usr/local/i386-linux-crossto
olchain-for-cygwin//i386-pc-linux-gnu/include -O2 -DIN_GCC -DCROSS_COMPILE
-W
-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
./includ
e  -I. -I. -I. -I./. -I./config -I./../include  -g0
-finhibit-size-directive -fn
o-inline-functions -fno-exceptions -fno-zero-initialized-in-bss
-fno-omit-frame-
pointer \
   -c ./crtstuff.c -DCRT_BEGIN \
  -o crtbegin.o
In file included from crtstuff.c:62:
tsystem.h:72:19: stdio.h: No such file or directory
tsystem.h:75:23: sys/types.h: No such file or directory
tsystem.h:78:19: errno.h: No such file or directory
tsystem.h:85:20: string.h: No such file or directory
tsystem.h:89:20: stdlib.h: No such file or directory
tsystem.h:90:20: unistd.h: No such file or directory
tsystem.h:96:18: time.h: No such file or directory
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory `/usr/src/gcc-3.3.4/gcc'
make: *** [all-gcc] Error 2


Would you please give me some advices?

Best regards,

             Kenny Zhang
---------------------------
MP: 13122841159
Tel:86-21-64956606-860
Email:kenny_zhang@agit.com.cn
Shanghai Agit Communication Tech Co.,Ltd
No.481 Guiping Road, Caohejing Shanghai, 200233



Reply to: