Hi all,
I'm trying to setup a cross-compiler under Linux using Igor Khavkine's
instructions
(http://pages.hotbot.com/sf/igorkh/gnumach-cross.txt).
binutils (v2.9.5.0.41) compiles just fine, but gcc fails with the
following error :
$ cd /usr/local/src/hurd/gcc
$ ./configure --prefix=/usr/local --with-gnu-as --with-gnu-ld \
--target=i386-pc-gnu --host=i586-pc-linux-gnu
$ make LANGUAGES="c"
make[2]: Leaving directory `/usr/local/src/hurd/gcc-2.95.2/gcc/intl'
rm -f tmplibgcc2.a
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}; \
/usr/local/src/hurd/gcc-2.95.2/gcc/xgcc
-B/usr/local/src/hurd/gcc-2.95.2/gcc/ -B/usr/local/i386-pc-gnu/bin/
-I/usr/local/i386-pc-gnu/include -O2 -DCROSS_COMPILE -DIN_GCC -g
-O2 -I./include -fPIC -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I.
-I. -I./config -I./../include -c -DL${name} \
./libgcc2.c -o ${name}.o; \
if [ $? -eq 0 ] ; then true; else exit 1; fi; \
i386-pc-gnu-ar rc tmplibgcc2.a ${name}.o; \
rm -f ${name}.o; \
done
_muldi3
In file included from tconfig.h:5,
from ./libgcc2.c:33:
config/xm-gnu.h:31: fcntl.h: Aucun fichier ou r�pertoire de ce type
./libgcc2.c:41: stdlib.h: Aucun fichier ou r�pertoire de ce type
./libgcc2.c:42: unistd.h: Aucun fichier ou r�pertoire de ce type
make[1]: *** [libgcc2.a] Error 1
make[1]: Leaving directory `/usr/local/src/hurd/gcc-2.95.2/gcc'
make: *** [all-gcc] Error 2
??? Of course I do have these header files in /usr/include (and the
configure script did happily check for them). So what could be wrong ?
Now, an unrelated question :
under the Hurd, when I set up a translator for my CD drive like this :
settrans -ca /cdrom /hurd/isofs /dev/hd1,
it works, but the CD gets locked even when the working dir isn't /cdrom.
It's still locked even if I stop the translator with settrans -fg
/cdrom
Is this normal behavior ?? My Hurd has been set using the latest tarball
and works fine otherwise.
David