Re: cross-compiling kernel

2017-08-07 Thread Riccardo Mottola
Hi, Valery Ushakov 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. Fine, I followed this: https://www.netbsd.org/docs/guide/en/chap-build.html just with"i386" instead of sparc64

Re: cross-compiling kernel

2017-08-06 Thread Riccardo Mottola
Hi, Valery Ushakov wrote: 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. I have this in mk.conf : CFLAGS+= -march=core2 CXXFLcoAGS +=

Re: cross-compiling kernel

2017-08-04 Thread Valery Ushakov
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

Re: cross-compiling kernel

2017-08-04 Thread Riccardo Mottola
Hi, co...@sdf.org wrote: ./build.sh -U -u -m i386 kernel=CONFNAME doesn't work? no it doesn't work: it fails with the same issue of nbmake-i386 depend: it wants an i486 gcc! Should I have it? should it have been built by the official amd64 tools or the i386 tools I tried to build? disc$

Re: cross-compiling kernel

2017-08-04 Thread coypu
./build.sh -U -u -m i386 kernel=CONFNAME doesn't work?