On Sun, 20 Jun 2021 23:07:41 +0200 Dimitry Andric <[email protected]> wrote:
> On 20 Jun 2021, at 22:53, Hartmann, O. <[email protected]> wrote: > > > > On Sun, 20 Jun 2021 21:56:40 +0200 > > Dimitry Andric <[email protected]> wrote: > > > >> On 20 Jun 2021, at 15:58, Hartmann, O. <[email protected]> wrote: > >>> > >>> On Sat, 19 Jun 2021 18:11:04 GMT > >>> Dimitry Andric <[email protected]> wrote: > >>> > >>>> The branch main has been updated by dim: > >>>> > >>>> URL: > >>>> https://cgit.FreeBSD.org/src/commit/?id=23408297fbf3089f0388a8873b02fa75ab3f5bb9 > >>>> > >>>> commit 23408297fbf3089f0388a8873b02fa75ab3f5bb9 > >>>> Merge: cac129e60300 e4bbddaec868 > >>>> Author: Dimitry Andric <[email protected]> > >>>> AuthorDate: 2021-06-19 10:06:00 +0000 > >>>> Commit: Dimitry Andric <[email protected]> > >>>> CommitDate: 2021-06-19 18:09:28 +0000 > >>>> > >>>> Merge llvm-project 12.0.1 rc2 > >>>> > >>>> This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and > >>>> openmp to llvmorg-12.0.1-rc2-0-ge7dac564cd0e, a.k.a. 12.0.1 rc2. > >> ... > >>> running FreeBSD 14.0-CURRENT #13 main-n247423-7bd295750b1: Fri Jun 18 > >>> 17:32:58 CEST > >>> 2021 amd64, buildworld fails with the error > >>> > >>> /usr/src/contrib/llvm-project/clang/lib/Basic/SourceManager.cpp:1256:10: > >>> fatal > >>> error: 'emmintrin.h' file not found > >>> > >>> How can I fix this? > >> > >> I have never been able to figure out why some people encounter this, > >> except that they seem to have manually deleted files from their base > >> system, thereby effectively destroying their toolchain. > > > > I think in my case it is very simple - first of all: thanks for the > > explanation, the > > folder "/usr/lib/clang/" is empty and that is the result of "make > > delete-old". > > > > The running system as shown above has llvm 12.0.0 and I forgot to run "make > > delete-old" days ago when FreeBSD 14-CURRENT moved towards 12.0.0. > > Obviously, there > > was anlther move towards 12.0.1 today or yesterday, I pulled the sources > > and did a > > rebuild of the whole system - and issued then make delete-old. That renders > > the > > system unusabel. > > Ah yes, at least it is now clear that was the problem. Always run > "make delete-old" *after* installworld, etcupdate and so on, as the very > last step. > > Or even better, run "make check-old" and use the list of files and > directories it outputs, so you can optionally make a backup of those > first. I can remember instances of ports not starting up anymore, > because they were still linked to some old system library that had been > cleaned up... > > -Dimitry > Now I try to find in which package the content of /usr/lib/clang might reside in one of the pkg-base tarballs one could find here: https://alpha.pkgbase.live/current/FreeBSD:14:amd64/latest/ to extract the part missing in the hope I can fire up buildworld again. I tried the usual suspects like those packages with "lib" or "compiler" in the name, without success :-( Kind regards, oh
pgpuPIdDgxUJI.pgp
Description: OpenPGP digital signature
