#Compiling NetBSD on arch linux.

6 messages · Page 1 of 1 (latest)

next pollen
#

to compile NetBSD you have to clone the repo first on some place by your choice

https://github.com/NetBSD/src.git

then cd into it using

cd src

and then you have to build the toolchain using the build.sh script the next way:

./build.sh -U -O ~/obj -j8 -m evbarm -a aarch64 tools

you'll have to replace the -j8 depending on how many cores you have on your processor, if you don't know how many you have, you can check with

nproc --all

tried on two arch machines, didn't work, tried on a debian machine and it worked out perfectly.

gleaming fractal
#

Could you post the errors?

#

Wgetpaste is convenient

next pollen
# gleaming fractal Could you post the errors?
*** Failed target: makeinfo.o
*** In directory: /home/username/obj/tools/texinfo/build/makeinfo
*** Failed commands:
        if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<;  then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
        => if cc -DHAVE_CONFIG_H -I. -I/home/username/Desktop/src/tools/texinfo/../../external/gpl2/texinfo/dist/makeinfo -I.. -I/home/username/Desktop/src/tools/texinfo/../../external/gpl2/texinfo/dist/lib -I../intl -DLOCALEDIR=\"/home/username/obj/tooldir.Linux-6.15.6-arch1-1-x86_64/share/locale\"   -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -O -MT makeinfo.o -MD -MP -MF ".deps/makeinfo.Tpo" -c -o makeinfo.o /home/username/Desktop/src/tools/texinfo/../../external/gpl2/texinfo/dist/makeinfo/makeinfo.c;  then mv -f ".deps/makeinfo.Tpo" ".deps/makeinfo.Po"; else rm -f ".deps/makeinfo.Tpo"; exit 1; fi
*** [makeinfo.o] Error code 1
#

I even get

error: initialization of 'void (*)(void)' from incompatible pointer type 'void (*)(int)' [-Wincompatible-pointer-types]
#

maybe the compiler I use is too new?