Developer environment setup problem

Milos Nikic <[email protected]> Sun, 15 Jun 2025 17:16:54 -0700
Newsgroups gmane.os.hurd.general
Message-ID <CAOeJtk_BpumGcucCEhE1ew6W8xNWm4F=qjeqzEjYMuHa8nCuyw@mail.gmail.com>
--000000000000bb21f20637a55180
Content-Type: text/plain; charset="UTF-8"

Hello there,

I am Milos, I am interested in writing code for Hurd.
I am developing inside qemu (on Arch linux) with debian
image debian-hurd-20230608.img.
It loads, boots and looks good! I can use it!
However, since I want to contribute code I need more than just that.

I git pulled mig, gnumach and hurd.
I have installed MIG.

$ mig --version
mig (GNU MIG) 1.8

When i ".configure" and then make gnumach it passes.
However when i copy it to my /boot/ and then point GRUB to it, i get kernel
panic on next reboot:.

"Kernel page fault at address 0xc1000000, eip = 0xc10a73f6
Kernel Page fault trap, eip 0xc10a73f6
kernel trap, type 14, code = 3
Dump of i386_saved_state c11dbe98:
EAX fffffffc EBX c008993c ECX 3fc22677 EDX 00008000
ESI c0ff6e28 EDI c0fffffe EBP c07a3010 ESP 00000004
CS 0008 SS 0000 DS 0010 ES 0010 FS 0010 GS 0010
v86:            DS 000c ES 0000 FS c037 GS c037
EIP c10a73f6 EFLAGS 00010016
trapno 14: Page fault, error 00000003
panic i386/i386/trap.c:347: kernel_trap: trap"

I tried on the current HEAD, I also tried with the tag v1.8+git20230526
which is the code that is, I believe, pushed to debian repositories.

I get the same kernel panic, no matter what commit I try.

I would like to contribute, but I need a way to test my changes locally
before sending in patches.

Is there a recommended way to develop and test? Or if you can help me what
exactly am i doing or, what am i missing.

Thanks in advance,
Milos

--000000000000bb21f20637a55180
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello there,</div><div><br></div><div>I am Milos, I a=
m interested in writing code for Hurd.</div><div>I am developing inside qem=
u (on Arch linux) with debian image=C2=A0debian-hurd-20230608.img.</div><di=
v>It loads, boots and looks good! I can use it!</div><div>However, since I =
want to contribute code=C2=A0I need more than just that.</div><div><br></di=
v><div>I git pulled mig, gnumach and hurd.</div><div>I have installed MIG.=
=C2=A0</div><div><br></div><div>$ mig --version<br>mig (GNU MIG) 1.8</div><=
div><br></div><div>When i &quot;.configure&quot; and then make gnumach it p=
asses.</div><div>However when i copy it to my /boot/ and then point GRUB to=
 it, i get kernel panic on next reboot:.</div><div><br></div><div>&quot;Ker=
nel page fault at address 0xc1000000, eip =3D 0xc10a73f6<br>Kernel Page fau=
lt trap, eip 0xc10a73f6<br>kernel trap, type 14, code =3D 3<br>Dump of i386=
_saved_state c11dbe98:<br>EAX fffffffc EBX c008993c ECX 3fc22677 EDX 000080=
00<br>ESI c0ff6e28 EDI c0fffffe EBP c07a3010 ESP 00000004<br>CS 0008 SS 000=
0 DS 0010 ES 0010 FS 0010 GS 0010<br>v86: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0DS 000c ES 0000 FS c037 GS c037<br>EIP c10a73f6 EFLAGS 00010016<b=
r>trapno 14: Page fault, error 00000003<br>panic i386/i386/trap.c:347: kern=
el_trap: trap&quot;</div><div><br></div><div>I tried on the current=C2=A0HE=
AD, I also tried with the tag=C2=A0v1.8+git20230526 which is the code that =
is, I believe, pushed to debian repositories.</div><div><br></div><div>I ge=
t the same kernel panic, no matter what commit I try.</div><div><br></div><=
div>I would like to contribute, but I need a way to test my changes locally=
 before sending in patches.</div><div><br></div><div>Is there a recommended=
 way to develop and test? Or if you can help me what exactly am i doing or,=
 what am i missing.</div><div><br></div><div>Thanks in advance,</div><div>M=
ilos</div><div><br></div></div>

--000000000000bb21f20637a55180--