[Bug 213428] make buildworld relies on /usr/include i.e. -nostdinc breaks buildworld

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 21 Dec 2023 00:07:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213428

--- Comment #14 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to Richard Scheffenegger from comment #13)

Your having provided that detail, I expect that this means
that the appropriate:

/usr/lib/clang/*/include/immintrin.h

is missing. Even the /usr/lib/clang/*/include/ directory
might be missing. An appropriate "mkdir -p . . ." followed
by the likes of:

cd /usr/src/lib/clang/headers && make install

might take care of the specific issue. But that does
require /usr/src/ (or whatever) to have been populated
with the right vintage of source code.

For main (llvm17 based), an example path is:

/usr/lib/clang/17/include/immintrin.h

Long ago things like 4.0.0 were used instead of the likes of
just 17 .

I'll note that normally there is only one match to the * in
/usr/lib/clang/*/include/immintrin.h but in manual patching
you might be adding one for a distinct toolchain vintage.

These notes presume lack of use of ccache or the like. Otherwise
there are other failure modes that might be solved by avoiding
ccache being used.

-- 
You are receiving this mail because:
You are the assignee for the bug.