Re: "Cross" building for same architecture, different CPUTYPE

2018-03-07 Thread Christian Ullrich
* Marek Zarychta wrote: * Warner Losh wrote: I'd suggest *NOT* setting CPUTYPE and instead using TARGET_CPUTYPE to do these sorts of things. CPUTYPE is known to only work on native builds Maybe you should try to build using different make.conf(5) files for each build? It can be improved

Re: "Cross" building for same architecture, different CPUTYPE

2018-03-05 Thread Marek Zarychta
On Sun, Mar 04, 2018 at 07:32:09PM +0100, Christian Ullrich wrote: > * Warner Losh wrote: > > > On Sun, Mar 4, 2018 at 10:43 AM, Dimitry Andric > > wrote: > > > > Again, this depends on how exactly you are overriding CPUTYPE. > > > > I'd suggest

Re: "Cross" building for same architecture, different CPUTYPE

2018-03-04 Thread Christian Ullrich
* Warner Losh wrote: On Sun, Mar 4, 2018 at 10:43 AM, Dimitry Andric > wrote: Again, this depends on how exactly you are overriding CPUTYPE. I'd suggest *NOT* setting CPUTYPE and instead using TARGET_CPUTYPE to do these sorts of things. CPUTYPE

Re: "Cross" building for same architecture, different CPUTYPE

2018-03-04 Thread Christian Ullrich
* Dimitry Andric wrote: On 4 Mar 2018, at 18:29, Christian Ullrich wrote: I have CPUTYPE?=core-avx2 in make.conf, but that should be irrelevant here. Actually, that *is* relevant for the stages after bootstrap-tools, build-tools and cross-tools. E.g. 4.x and later.

Re: "Cross" building for same architecture, different CPUTYPE

2018-03-04 Thread Warner Losh
On Sun, Mar 4, 2018 at 10:43 AM, Dimitry Andric wrote: > Again, this depends on how exactly you are overriding CPUTYPE. I'd suggest *NOT* setting CPUTYPE and instead using TARGET_CPUTYPE to do these sorts of things. CPUTYPE is known to only work on native builds and is tricky

Re: "Cross" building for same architecture, different CPUTYPE

2018-03-04 Thread Dimitry Andric
On 4 Mar 2018, at 18:29, Christian Ullrich wrote: > > I'm trying to buildworld/buildkernel of stable/11 r330373 for an Intel Atom > CPU (CPUTYPE=slm) on a (slightly faster, CPUTYPE=core-avx2) build machine. > That works fine, but make installkernel on the Atom box fails

"Cross" building for same architecture, different CPUTYPE

2018-03-04 Thread Christian Ullrich
Hello, I'm trying to buildworld/buildkernel of stable/11 r330373 for an Intel Atom CPU (CPUTYPE=slm) on a (slightly faster, CPUTYPE=core-avx2) build machine. That works fine, but make installkernel on the Atom box fails with a SIGILL (signal 4) in the "install" command (sorry, no log or