Re: Developer environment setup problem
Milos Nikic <[email protected]> Mon, 16 Jun 2025 08:10:13 -0700
| Newsgroups | gmane.os.hurd.general,gmane.os.hurd.bugs |
|---|---|
| Message-ID | <CAOeJtk_SfT3G0_p7uRwvLSgZotCJxSR9-UUNO28022NZa1YK7g@mail.gmail.com> |
--0000000000007e049d0637b1ccfb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, Thanks for the email. The thing is I am not cross compiling. I am instead compiling from inside Hurd (in Qemu). Yet cannot seem to get it quite right (even though it compiles successfully inside Hurd, when I copy it to /boot it panics on the next reboot). Is a cross compiling route recommended instead? On Mon, Jun 16, 2025 at 2:41=E2=80=AFAM Almudena Garcia <liberamenso10000@g= mail.com> wrote: > Hi: > > To cross-compile gnumach from Linux you have to specify some flags in > configure, to indicate the hurd architecture. > > You can find the flag list here: > https://www.gnu.org/software/hurd/microkernel/mach/gnumach/building.html > > Read the instructions for non-Debian systems and 64-bit, and try again > > P.S.: I redirect this mail to bug-hurd, which is the main maillist now > > El lunes 16 de junio de 2025, Milos Nikic escribi=C3=B3: > > 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 =3D 0xc10a73f6 > > Kernel Page fault trap, eip 0xc10a73f6 > > kernel trap, type 14, code =3D 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 > > > > -- > Enviado desde mi dispositivo Sailfish --0000000000007e049d0637b1ccfb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hello,=C2=A0</div><div><br></div><div>Thanks for the = email.</div><div>The thing is I am not cross compiling. I am instead compil= ing from inside Hurd (in Qemu).</div><div>Yet cannot seem to get it quite r= ight (even though it compiles successfully=C2=A0inside Hurd, when I copy it= to /boot it panics on the next reboot).</div><div><br></div><div>Is a cros= s compiling=C2=A0route recommended instead?</div><div><br></div></div><br><= div class=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" class=3D"g= mail_attr">On Mon, Jun 16, 2025 at 2:41=E2=80=AFAM Almudena Garcia <<a h= ref=3D"mailto:[email protected]">[email protected]</a>>= ; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px= 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi:<br> <br> To cross-compile gnumach from Linux you have to specify some flags in confi= gure, to indicate the hurd architecture.<br> <br> You can find the flag list here:<br> <a href=3D"https://www.gnu.org/software/hurd/microkernel/mach/gnumach/build= ing.html" rel=3D"noreferrer" target=3D"_blank">https://www.gnu.org/software= /hurd/microkernel/mach/gnumach/building.html</a><br> <br> Read the instructions for non-Debian systems and 64-bit, and try again<br> <br> P.S.: I redirect this mail to bug-hurd, which is the main maillist now<br> <br> El lunes 16 de junio de 2025, Milos Nikic escribi=C3=B3:<br> > Hello there,<br> > <br> > I am Milos, I am interested in writing code for Hurd.<br> > I am developing inside qemu (on Arch linux) with debian<br> > image debian-hurd-20230608.img.<br> > It loads, boots and looks good! I can use it!<br> > However, since I want to contribute code I need more than just that.<b= r> > <br> > I git pulled mig, gnumach and hurd.<br> > I have installed MIG.<br> > <br> > $ mig --version<br> > mig (GNU MIG) 1.8<br> > <br> > When i ".configure" and then make gnumach it passes.<br> > However when i copy it to my /boot/ and then point GRUB to it, i get k= ernel<br> > panic on next reboot:.<br> > <br> > "Kernel page fault at address 0xc1000000, eip =3D 0xc10a73f6<br> > Kernel Page fault 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 00008000<br> > ESI c0ff6e28 EDI c0fffffe EBP c07a3010 ESP 00000004<br> > CS 0008 SS 0000 DS 0010 ES 0010 FS 0010 GS 0010<br> > v86:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 DS 000c ES 0000 FS c037 = GS c037<br> > EIP c10a73f6 EFLAGS 00010016<br> > trapno 14: Page fault, error 00000003<br> > panic i386/i386/trap.c:347: kernel_trap: trap"<br> > <br> > I tried on the current HEAD, I also tried with the tag v1.8+git2023052= 6<br> > which is the code that is, I believe, pushed to debian repositories.<b= r> > <br> > I get the same kernel panic, no matter what commit I try.<br> > <br> > I would like to contribute, but I need a way to test my changes locall= y<br> > before sending in patches.<br> > <br> > Is there a recommended way to develop and test? Or if you can help me = what<br> > exactly am i doing or, what am i missing.<br> > <br> > Thanks in advance,<br> > Milos<br> ><br> <br> -- <br> Enviado desde mi dispositivo Sailfish</blockquote></div> --0000000000007e049d0637b1ccfb--