I get this error after a lot of steps
/home/agx/i586-gnu/include/features.h:219: gnu/stubs.h: No such
file or
directory
but stubs.h does not exist in my filesystem :-)
anybody have some clues ?
below you can see my compilation steps.
Regards,
[EMAIL PROTECTED] [not subscribed]
Compiling the GNU/HURD
Prerequisite:
GNU make
GNU m4
GNU autoconf
GNU automake
Download:
binutils-1.9.1
gcc-2.8.1
gnumach-1.2
mig-1.0.2
glibc-2.0.6
hurd-0.2
Cross compile 'binutils'
------------------------
unpack and go:
./configure --prefix=/home/agx --target=i586-gnu --host=i586-freebsd
--build=i586-freebsd
gmake
gmake install
then you can clean up the source
Cross compile 'gcc' - stage 1
-----------------------------
./configure --prefix=/home/agx --target=i586-gnu --with-gnu-as
--with-gnu-ld --host=i586-freebsd --build=i586-freebsd
gmake -k CFLAGS="-g -O2" LANGUAGES="c"
[... you get an error here about libgcc.a ...]
gmake -k LANGUAGES="c" install
Cross compile 'gcc'
-------------------
./configure --prefix=/home/agx --target=i586-gnu --host=i586-freebsd
--build=i586-freebsd
gmake TARGET-CC=/home/agx/bin/i586-gnu-gcc
[...error... i copied some file from the gnumach source...]
cp /home/agx/src/gnumach-1.2/include/mach/message.h
/home/agx/include/mach/
mkdir /home/agx/lib/gcc-lib/i586-gnu/2.8.1/include/mach
gnumach-1.2/include/mach/ == >
/home/agx/lib/gcc-lib/i586-gnu/2.8.1/include/mach
mkdir /home/agx/lib/gcc-lib/i586-gnu/2.8.1/include/mach/machine
gnumach-1.2/i386/include/mach/ == >
/home/agx/lib/gcc-lib/i586-gnu/2.8.1/include/mach/machine
gmake TARGET-CC=/home/agx/bin/i586-gnu-gcc
gmake install
* hurd dir
mkdir /home/agx/hurd
ln -s /home/agx/i586-gnu/include include
ln -s /home/agx/i586-gnu/lib lib
ln -s /home/agx/hurd/ usr
* gnumach
CC=/home/agx/bin/i586-gnu-gcc ./configure --prefix=/home/agx/hurd
--build=i586-freebsd --host=i586-gnu --enable-com --enable-floppy
--enable-ide --enable-buslogic --enable-aic7xxx --enable-ncr5380
--enable-ncr53c400 --enable-lance --enable-ne2kpci i586-gnu
gmake
[/home/agx/i586-gnu/bin/ld: cannot open -lc: No such file or directory]
gmake install prefix=/home/agx/hurd
[... error ...] edit makefile and put "MAKE=gmake"
this step will install a lot of include files
* GNU libc
MAKE=gmake
CC=/home/agx/bin/i586-gnu-gcc
./configure --build=i586-freebsd --host=i586-gnu --prefix=/home/agx
--disable-profile
gmake -k
[... fails when trying to link programs]
gmake -k install install_root=/hurd
[... again, fails DO NOT WORRY]