Docker image and repo for Arm64 (new Mac) build of Minix 3.4.0-i386

262 views
Skip to first unread message

Lincoln Ombelets

unread,
Jan 1, 2022, 5:20:44 PM1/1/22
to minix3
Hi,

I have recently discovered Minix and am interested in learning OS development on it. I am working on an aarch64 (arm64) MacBook and was having trouble compiling it, so I've made a Docker image where I was able to compile Minix 3.4.0 for i386. I also wrote a README explaining how I compile on this image and how to get the resultant image running on the QEMU emulator. It's all here: https://github.com/lincdog/minix

I incorporated recent fixes from https://github.com/Stichting-MINIX-Research-Foundation/minix/pull/322 and updated a few config.guess that didn't work properly with Arm64 compilation environments. 

The docker image is here:

There is one version that contains the actual built objects (saves time from compiling the LLVM/clang toolchain) and another that just has the source and nothing built. The source is at /usr/src.

I hope this will help anyone who wants to play around with Minix on an arm64 computer like a new Mac. This Docker image could be built on an x86 Ubuntu base as well.

Thanks,
Lincoln Ombelets

Peter Shkenev

unread,
Jan 4, 2022, 4:14:16 AM1/4/22
to minix3
Hello Lincoln,

Thank you very much for your effort!

What problems did you have while building Minix on Mac?

Best regards,

Peter

воскресенье, 2 января 2022 г. в 01:20:44 UTC+3, lomb...@gmail.com:

Lincoln Ombelets

unread,
Jan 6, 2022, 10:40:42 PM1/6/22
to minix3
Hi Peter,

Thanks! It seems to encounter an implicit function declaration error pretty early on in the toolchain build:

/minix/tools/compat/../../common/lib/libc/cdb/cdbr.c:286:2: error: implicit declaration of function 'mi_vector_hash' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
mi_vector_hash(key, key_len, cdbr->seed, hashes);
^
Compiler info:
 cc --version
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: arm64-apple-darwin21.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

Lincoln
Reply all
Reply to author
Forward
0 new messages