This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


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

Header problems building cross gcc i686-pc-linux-gnu to i686-pc-cygwin


Hello all,

I am having problems building a GNU/Linux to Cygwin cross compiler.
I configure gcc using:

../../foreign/gcc-2.95.3-4/configure --target=i686-pc-cygwin
--with-target-headers=/win32/c/Cygwin/usr/include/
--prefix=/home/jcast/ --with-as=/home/jcast/bin/i686-pc-cygwin-as

When I attempt to build (using `make'), I get the following error
message:

for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3 \
_ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 \
_floatdidf _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi \
_fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi \
_fixtfdi _fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf \
_bb _shtab _clear_cache _trampoline __main _exit _ctors _pure; \
do \
  echo ${name}; \
  /home/jcast/Source/builds/cygwin-gcc/gcc/xgcc \
-B/home/jcast/Source/builds/cygwin-gcc/gcc/ \
-B/home/jcast//i686-pc-cygwin/bin/ \
-I/home/jcast//i686-pc-cygwin/include -O2 \
-I../../../foreign/gcc-2.95.3-4/gcc/../winsup/include -DCROSS_COMPILE \
-DIN_GCC     -g -O2 -I./include   -g1  -DIN_LIBGCC2 \
-D__GCC_FLOAT_NOT_NEEDED   -I. -I../../../foreign/gcc-2.95.3-4/gcc \
-I../../../foreign/gcc-2.95.3-4/gcc/config \
-I../../../foreign/gcc-2.95.3-4/gcc/../include -c -DL${name} \
       ../../../foreign/gcc-2.95.3-4/gcc/libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  i686-pc-cygwin-ar rc tmplibgcc2.a ${name}.o; \
  rm -f ${name}.o; \
done
_muldi3
../../../foreign/gcc-2.95.3-4/gcc/libgcc2.c:41: stdlib.h: No such file
or directory
../../../foreign/gcc-2.95.3-4/gcc/libgcc2.c:42: unistd.h: No such file
or directory
make[1]: *** [libgcc2.a] Error 1
make[1]: Leaving directory `/home/jcast/Source/builds/cygwin-gcc/gcc'
make: *** [all-gcc] Error 2

Any help would be greatly appreciated; I do not want to have to build
Cygwin apps from within WinDOS (I just want to support other people's
brain-damaged choices, not have to make those choices myself).

Jon Cast

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


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