Thanks for the answer.
I have already tried to follow the commands in README.mknative, but it seems I'm doing something wrong.
On the host (!= target) I have trouble executing step 3: In src/tools/gcc, do "nbmake-MACHINE HAVE_GCC=48 bootstrap-libgcc".
The command I run: ../../../obj.netbsd/tooldir.Linux-4.13.3-1-ARCH-i686/bin/nbmake-evbearm-el MKGCCCMDS=yes HAVE_GCC=48 bootstrap-libgcc
is failing with the reason:
checking how to run the C preprocessor... /lib/cpp
configure: error: in `/home/rchmiela/experiments/obj.netbsd/tools/gcc/build/arm--netbsdelf-eabi/libgcc':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
nbgmake: *** [configure-target-libgcc] Error 1
Should I be running this command on target? Or maybe it's the fault of my host gcc (7.2.0)?