On Fri, Aug 04, 2017 at 14:18:36 +0200, Riccardo Mottola wrote: > Is building an x86 a "full cross compile"? I suppose yes and I > followef the NetBSD build for sparc, just with x86.
Yes, it's full cross compilation. > I want to use the standard kernel GENERIC, thus I did: > > ./build.sh -U -m i386 -u tools > > I don't get a full x86 toolchain though, in /usr/obj I find: > $ ls /usr/obj/ > sys tools > tooldir.NetBSD-8.99.1-amd64 > > I expected instead something like: > /usr/obj/tooldir.NetBSD-8.99.1-i386 [...] > ===> TOOLDIR path: /usr/src/obj/tooldir.NetBSD-8.99.1-amd64 [...] > so it is expected apparently. TOOLDIR defaults to tooldir.${host_ostype}, so it reflects your os. > although I find inside multiple binaries, e.g. : > /usr/obj/tooldir.NetBSD-8.99.1-amd64/bin/nbmake > /usr/obj/tooldir.NetBSD-8.99.1-amd64/bin/nbmake-amd64 > /usr/obj/tooldir.NetBSD-8.99.1-amd64/bin/nbmake-i386 > > I thus tried: > $ /usr/obj/tooldir.NetBSD-8.99.1-amd64/bin/nbmake-i386 depend > > but this fails: > /usr/src/obj/tooldir.NetBSD-8.99.1-amd64/bin/nbgenassym: > /usr/src/obj/tooldir.NetBSD-8.99.1-amd64/bin/i486--netbsdelf-gcc: not found > > I have several i486 tools, but not all: > /usr/obj/tooldir.NetBSD-8.99.1-amd64/bin/i486--netbsdelf-dbsym > /usr/obj/tooldir.NetBSD-8.99.1-amd64/bin/i486--netbsdelf-fdisk > /usr/obj/tooldir.NetBSD-8.99.1-amd64/bin/i486--netbsdelf-install > /usr/obj/tooldir.NetBSD-8.99.1-amd64/bin/i486--netbsdelf-mdsetimage This is strange. Anything in your /etc/mk.conf or environment? You can look at the /usr/obj/tooldir.NetBSD-8.99.1-amd64/bin/nbmake-i386 make wrapper script and check what does it set TOOLDIR too. -uwe