Unable to build 12-current/amd64

Peter Jeremy peter at rulingia.com
Mon Dec 25 20:16:23 UTC 2017


On 2017-Dec-23 13:42:40 +0100, Dimitry Andric <dim at FreeBSD.org> wrote:
>On 23 Dec 2017, at 10:56, Peter Jeremy <peter at rulingia.com> wrote:
>> 
>> Since r326496, buildworld on my 12-current/amd64 system has consistently
>> died as follows.
>...
>> /usr/src/contrib/llvm/tools/clang/lib/Basic/SourceManager.cpp:1166:10: fatal error: 'emmintrin.h' file not found
>> #include <emmintrin.h>
>>         ^~~~~~~~~~~~~
>> 1 error generated.
>> *** Error code 1
>> 
>> Stop.
>> make[4]: stopped in /usr/src/lib/clang/libclang
>> 
>> I'm building on a 12.0-CURRENT VirtualBox guest at r326430.  I've checked
>> that my /usr/src is clean and deleted /usr/obj to no effect.  I have dug
>> into SourceManager.cpp and the #include is protected by a #if __SSE2__,
>> which is relying on clang internal checks to define (and my CPU supports
>> SSE2).  Does anyone have any ideas to explain what is going on?
>
>First of all, does your host system have emmintrin.h?  E.g. what is the
>output of "find /usr/lib/clang -name emmintrin.h" ?

Aha.  Somehow my entire /usr/lib/clang/5.0.0 tree was missing.  I'm not sure
if that was an installworld glitch or something I accidently did.  In any
case, restoring it has fixed the problem.  Thanks for the pointer.

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20171226/dd709702/attachment.sig>


More information about the freebsd-current mailing list