Re: Build failure 'wmmintrin.h' file not found

2017-01-18 Thread Warner Losh
On Wed, Jan 18, 2017 at 1:21 PM, Dimitry Andric  wrote:
> On 18 Jan 2017, at 14:42, Magnus Ringman  wrote:
>>
>> On Wed, Jan 18, 2017 at 2:16 PM, Hans Petter Selasky 
>> wrote:
> ...
>>> And the error popped out. I'm not observing this error when building a
>>> 12-current kernel from an 11-stable install.
>>
>>
>> Isn't it all bets are off if going to -current from anything but most
>> recent -stable?

Nope. There's a range of supported major branches. This has been the
case for at least 15 years. Typically, we've supported 2-4 old
branches building current due to the needs of the FreeBSD community
and that community making sure it works often enough that we don't
just shut the door to it entirely. Each individual developer only
needs to test the latest branch, but that's not the same as what's
supported. From time to time we bump the minimum system, but it isn't
in lock step with the major branches.

>> Recommended practice[citation needed] would be
>> 10-stable->11-stable->12-current.
>
> That is the safest way, indeed.  But it should not be totally impossible
> to build recent versions of -current on 10.x.

We support building world on 10.3 and newer for -current today. There
were compiler changes to fix bad code generation between 10.2 and
10.3, however, so the usual "any stable-10' is no longer the case. In
fact, it's still supported building from the tip of stable/9 for
current. However, the same compiler bug is not fixed in the last 9.x
release, so there the upgrade is needed.

> Normally, buildworld takes care of the heavy lifting by building all the
> needed tools first.  But if you build only parts of the tree, you might
> encounter "interesting" situations. :)

Anything less than buildworld is defintely not supported when the host
system isn't completely up to date. Well, make kernel-toolchain is
sufficient for make buildkernel.

Warner
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Build failure 'wmmintrin.h' file not found

2017-01-18 Thread Dimitry Andric
On 18 Jan 2017, at 14:42, Magnus Ringman  wrote:
> 
> On Wed, Jan 18, 2017 at 2:16 PM, Hans Petter Selasky 
> wrote:
...
>> And the error popped out. I'm not observing this error when building a
>> 12-current kernel from an 11-stable install.
> 
> 
> Isn't it all bets are off if going to -current from anything but most
> recent -stable?
> Recommended practice[citation needed] would be
> 10-stable->11-stable->12-current.

That is the safest way, indeed.  But it should not be totally impossible
to build recent versions of -current on 10.x.

Normally, buildworld takes care of the heavy lifting by building all the
needed tools first.  But if you build only parts of the tree, you might
encounter "interesting" situations. :)

-Dimitry



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Build failure 'wmmintrin.h' file not found

2017-01-18 Thread Dimitry Andric
On 18 Jan 2017, at 14:16, Hans Petter Selasky  wrote:
> 
> On 01/18/17 14:13, Dimitry Andric wrote:
>> On 18 Jan 2017, at 13:36, Hans Petter Selasky  wrote:
>>> 
>>> I'm seeing the following build-error trying to build 12-current from 
>>> 10-stable:
>>> 
>>> xxx/freebsd/sys/crypto/aesni/aesni_ghash.c:75:10: fatal error: 
>>> 'wmmintrin.h' file not found
>>> #include 
>>> 
>>> Missing header exists:
>>> 
>>> xxx/freebsd/contrib/llvm/tools/clang/lib/Headers/wmmintrin.h
>>> 
>>> Missing include directory or compiler magic?
>> 
>> What are you building, and how?  Did you do a buildworld before buildkernel?
>> 
>> -Dimitry
>> 
> 
> I did:
> 
> make toolchain -jXX
> 
> And then:
> 
> make buildkernel -jXX
> 
> And the error popped out.

As far as I can see, the toolchain target does not install headers and
libraries.  Can you try the kernel-toolchain target instead?


> I'm not observing this error when building a 12-current kernel from an 
> 11-stable install.

Probably not, because you will be using /usr/bin/cc, and the wmmintrin.h
header in the base system.

-Dimitry



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Build failure 'wmmintrin.h' file not found

2017-01-18 Thread Magnus Ringman
On Wed, Jan 18, 2017 at 2:16 PM, Hans Petter Selasky 
wrote:

> On 01/18/17 14:13, Dimitry Andric wrote:
>
>> On 18 Jan 2017, at 13:36, Hans Petter Selasky  wrote:
>>
>>>
>>> I'm seeing the following build-error trying to build 12-current from
>>> 10-stable:
>>>
>>> xxx/freebsd/sys/crypto/aesni/aesni_ghash.c:75:10: fatal error:
>>> 'wmmintrin.h' file not found
>>> #include 
>>>
>>> Missing header exists:
>>>
>>> xxx/freebsd/contrib/llvm/tools/clang/lib/Headers/wmmintrin.h
>>>
>>> Missing include directory or compiler magic?
>>>
>>
>> What are you building, and how?  Did you do a buildworld before
>> buildkernel?
>>
>> -Dimitry
>>
>>
> I did:
>
> make toolchain -jXX
>
> And then:
>
> make buildkernel -jXX
>
>

> And the error popped out. I'm not observing this error when building a
> 12-current kernel from an 11-stable install.


Isn't it all bets are off if going to -current from anything but most
recent -stable?
Recommended practice[citation needed] would be
10-stable->11-stable->12-current.
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Build failure 'wmmintrin.h' file not found

2017-01-18 Thread Hans Petter Selasky

On 01/18/17 14:13, Dimitry Andric wrote:

On 18 Jan 2017, at 13:36, Hans Petter Selasky  wrote:


I'm seeing the following build-error trying to build 12-current from 10-stable:

xxx/freebsd/sys/crypto/aesni/aesni_ghash.c:75:10: fatal error: 'wmmintrin.h' 
file not found
#include 

Missing header exists:

xxx/freebsd/contrib/llvm/tools/clang/lib/Headers/wmmintrin.h

Missing include directory or compiler magic?


What are you building, and how?  Did you do a buildworld before buildkernel?

-Dimitry



I did:

make toolchain -jXX

And then:

make buildkernel -jXX

And the error popped out. I'm not observing this error when building a 
12-current kernel from an 11-stable install.


--HPS
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Build failure 'wmmintrin.h' file not found

2017-01-18 Thread Dimitry Andric
On 18 Jan 2017, at 13:36, Hans Petter Selasky  wrote:
> 
> I'm seeing the following build-error trying to build 12-current from 
> 10-stable:
> 
> xxx/freebsd/sys/crypto/aesni/aesni_ghash.c:75:10: fatal error: 'wmmintrin.h' 
> file not found
> #include 
> 
> Missing header exists:
> 
> xxx/freebsd/contrib/llvm/tools/clang/lib/Headers/wmmintrin.h
> 
> Missing include directory or compiler magic?

What are you building, and how?  Did you do a buildworld before buildkernel?

-Dimitry



signature.asc
Description: Message signed with OpenPGP using GPGMail


Build failure 'wmmintrin.h' file not found

2017-01-18 Thread Hans Petter Selasky

Hi,

I'm seeing the following build-error trying to build 12-current from 
10-stable:


xxx/freebsd/sys/crypto/aesni/aesni_ghash.c:75:10: fatal error: 
'wmmintrin.h' file not found

#include 

Missing header exists:

xxx/freebsd/contrib/llvm/tools/clang/lib/Headers/wmmintrin.h

Missing include directory or compiler magic?

--HPS
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"