Hello,
I was trying this procedure to hopefully document it in GNU/Hurd site,
as Samuel suggested.
Things go fine until I try to build mig. This is the versions I used
so far:
* binutils : 2.47
* gcc : 13.5.0
* gnumach : latest git
* mig : latest git
On Tue, Jan 24, 2023 at 10:29:15PM +0300, Sergey Bugaev wrote:
>
> Now, onto building MIG:
> $ git clone git://git.savannah.gnu.org/hurd/mig.git
> $ cd mig
> $ autoreconf -i
> $ mkdir build && cd build
> $ ../configure --target=i686-gnu --prefix=$PREFIX
> $ make -j8
> $ make install
>
Here the `make -j8` command fails with the following error:
---8<---8<---8<---
demo@charsi:~/hurd/cross-gnu/prefix/src/mig/build$ make -j8
...
gawk -f ../gensym.awk ../cpu.sym > cpu.symc
/bin/bash ../build-aux/ylwrap ../parser.y y.tab.c parser.c y.tab.h `echo
parser.c | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e
s/c$/h/` y.output parser.output -- bison -y -d
i686-gnu-gcc -S -ffreestanding -x c -o cpu.symo cpu.symc
In file included from
/home/demo/hurd/cross-gnu/prefix/include/mach/message.h:35,
from cpu.symc:1:
/home/demo/hurd/cross-gnu/prefix/include/mach/kern_return.h:41:10: fatal error:
mach/machine/kern_return.h: No such file or directory
41 | #include <mach/machine/kern_return.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:1059: cpu.symo] Error 1
make[1]: *** Waiting for unfinished jobs....
updating parser.h
make[1]: Leaving directory '/home/demo/hurd/cross-gnu/prefix/src/mig/build'
make: *** [Makefile:598: all-recursive] Error 1
---8<---8<---8<---
It seems to me that install-data from gnumach does not
install the link from mach/machine to mach/i386. Because
after creating it manually, the build succeeds.
So, should gnumach be taught to install the link?
I can have a look, but it must wait for later.
Regards,
Diego