I'm actually running this on netbsd-current just to see if the steps I'm taking are correct, but the config.log for minix says:
configure:3811: result: unsupported
configure:3833: checking how to run the C preprocessor
configure:3864: /home/radzio/experiments/obj.evbearm-el/tools/gcc/build/./gcc/xgcc -B/home/radzio/experiments/obj.evbearm-el/tools/gcc/build/./gcc/ -B/home/radzio/experiments/minix/../obj.evbearm-el/tooldir.Linux-4.14.5-1-ARCH-x86_64/arm-elf32-minix/bin/ -B/home/radzio/experiments/minix/../obj.evbearm-el/tooldir.Linux-4.14.5-1-ARCH-x86_64/arm-elf32-minix/lib/ -isystem /home/radzio/experiments/minix/../obj.evbearm-el/tooldir.Linux-4.14.5-1-ARCH-x86_64/arm-elf32-minix/include -isystem /home/radzio/experiments/minix/../obj.evbearm-el/tooldir.Linux-4.14.5-1-ARCH-x86_64/arm-elf32-minix/sys-include -E conftest.c
In file included from conftest.c:10:0:
/usr/include/limits.h:124:26: error: no include path in which to search for limits.h
# include_next <limits.h>
^
configure:3864: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "
http://www.gnu.org/software/libgcc/"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
[...]
configure:3864: /home/radzio/experiments/obj.evbearm-el/tools/gcc/build/./gcc/xgcc -B/home/radzio/experiments/obj.evbearm-el/tools/gcc/build/./gcc/ -B/home/radzio/experiments/minix/../obj.evbearm-el/tooldir.Linux-4.14.5-1-ARCH-x86_64/arm-elf32-minix/bin/ -B/home/radzio/experiments/minix/../obj.evbearm-el/tooldir.Linux-4.14.5-1-ARCH-x86_64/arm-elf32-minix/lib/ -isystem /home/radzio/experiments/minix/../obj.evbearm-el/tooldir.Linux-4.14.5-1-ARCH-x86_64/arm-elf32-minix/include -isystem /home/radzio/experiments/minix/../obj.evbearm-el/tooldir.Linux-4.14.5-1-ARCH-x86_64/arm-elf32-minix/sys-include -E -traditional-cpp conftest.c
In file included from /usr/include/features.h:424:0,
from /usr/include/assert.h:36,
from conftest.c:13:
/usr/include/sys/cdefs.h:30:3: error: #error "You need a ISO C conforming compiler to use the glibc headers"
# error "You need a ISO C conforming compiler to use the glibc headers"
^
[...]
configure:3864: /lib/cpp conftest.c
/home/radzio/experiments/minix/external/gpl3/gcc/dist/libgcc/configure: line 1456: /lib/cpp: No such file or directory
configure:3864: $? = 127
configure: failed program was:
[...]
configure:3953: error: in `/home/radzio/experiments/obj.evbearm-el/tools/gcc/build/arm-elf32-minix/libgcc':
configure:3956: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
And what it outputs there is true. I can't see limits.h in the obj.evbearm-el directory. The same for current netbsd.