Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 May 2020 07:51:29 -0400
From:      Robert Huff <roberthuff@rcn.com>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        Robert Huff <roberthuff@rcn.com>, current@freebsd.org
Subject:   Re: "make buildworld" fails for r360785?
Message-ID:  <24246.39233.870089.343027@jerusalem.litteratus.org>
In-Reply-To: <BFF7CFB8-8058-43E8-9893-6AB051A538B1@FreeBSD.org>
References:  <24244.52698.726479.288103@jerusalem.litteratus.org> <849835c13cac7bb6ce9f6e13eaa3b589@udns.ultimatedns.net> <24246.7948.924564.999680@jerusalem.litteratus.org> <BFF7CFB8-8058-43E8-9893-6AB051A538B1@FreeBSD.org>

index | next in thread | previous in thread | raw e-mail


Dimitry Andric writes:
>  >>>> /usr/src/contrib/llvm-project/clang/lib/Basic/SourceManager.cpp:1228:10:
>  >>>> fatal error: 'emmintrin.h' file not found
>  >>>> #include <emmintrin.h>
>  >>>>          ^~~~~~~~~~~~~
>  ...
>  > In file included from /usr/src/contrib/llvm-project/clang/lib/Basic/SourceManager.cpp:1228:
>  > In file included from /usr/include/emmintrin.h:13:
>  > /usr/include/xmmintrin.h:27:10: fatal error: 'mm_malloc.h' file not found
>  > #include <mm_malloc.h>
>  >         ^~~~~~~~~~~~~
>  > 1 error generated.
>  > *** Error code 1
>  
>  During which stage of buildworld is this? If it is during the
>  cross-tools stage, your host environment is busted somehow.

	That is the latest stage listed by the complete build log.
(Which I can make available if it's useful.)
	The only complaint I see is two lines at the top of the log:

make[1]: "/usr/src/Makefile.inc1" line 325: SYSTEM_COMPILER: libclang will be built for bootstrapping a cross-compiler.
make[1]: "/usr/src/Makefile.inc1" line 330: SYSTEM_LINKER: libclang will be built for bootstrapping a cross-linker.

	Makefile.inc1 was downloaded with the fresh source tree, and I
have already posted make.conf and src.conf.
	I am not sure what else could be broken, nor how to diagnose it.

>  This appears to happen to some people on this list, for unknown reasons.
>  My guess is they either run "make delete-old" before running buildworld
>  (which is the wrong order!),

	I did recently run "delete-old" ... but only as directed by the
official documentation.
	But ... let's say that somehow happened.  How do I recover?  Is
there a bootstrap process?  

>						  or have done an earlier buildworld where
>  they explicitly disabled clang, so the intrinsics headers never get
>  installed.

	Other than a custom kernel config file, I don't touch the system
build process.  <insert image of puny human standing before raging
Hulk "Very dangerous - you go first!">



			Respectfully,


				Robert Huff


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?24246.39233.870089.343027>