Building Minix from git repo

516 views
Skip to first unread message

Peter Shkenev

unread,
Oct 15, 2020, 3:14:52 PM10/15/20
to minix3
Hello, I am tried to cross-compile MINIX 3 from git current version using instructions from
https://wiki.minix3.org/doku.php?id=developersguide:crosscompiling . I use the releasetools/x86_cdimage.sh script

I am on Arch Linux, kernel version 5.8.14-arch1-1, GCC version 10.2.0 (but I also have clang version 10.0.1).

Firstly, make failed to build because of multiple definition of debug_file variable. Well, I defined it as static in usr.bin/make/make.h. And make succeeded.

But then I have output which is attached to the message.

As far as I understand, nbsed was not compiled, and that lead to segmentation fault and failure. Why did it happen and how can I overcome this?

Best regards,
Peter
output.txt

stux...@gmail.com

unread,
Oct 22, 2020, 8:11:16 PM10/22/20
to minix3
Hi Peter,

I've only cross compiled Minix on Ubuntu and Debian.  Most recently there was this issue:

But it looks different from what you've reported. 


I haven't had time to test cross compilations recently, even on Debian.  Much less with newer versions of gcc and clang.  It's possible that you're missing dependencies in Arch that may be automatic with Debian.  If you can, try compiling on a Debian VM (perhaps with the pull request that fixes Debian 10 cross compilation issues) and see what happens.


Good luck and I hope this helps a little!  Keep us informed with your progress.

-stux

Peter Shkenev

unread,
Oct 24, 2020, 2:01:09 PM10/24/20
to minix3
Hello Stux,

Thank you for answer. I set up a Debian 10 VM and applied patch you mentioned. At the moment of writing, tools had built successfully!

So, Debian 10 has version 8.x of GCC, while Arch has 10.x . I will try to investigate build process once I have enough time.

Also, it would be great if parallel builds were supported. These could speed things up.

Best regards,
Peter
пятница, 23 октября 2020 г. в 03:11:16 UTC+3, stux...@gmail.com:

Peter Shkenev

unread,
Oct 28, 2020, 2:31:41 PM10/28/20
to minix3
So, I have finished building MINIX in Debian. Everything is just fine.

It looks like one need to do build.sh ... release in order to create iso file. It should be specified in wiki

Somebody also can update information about systems on which build is possible.

Best regards,
Peter

суббота, 24 октября 2020 г. в 21:01:09 UTC+3, Peter Shkenev:
Reply all
Reply to author
Forward
0 new messages