Re: buildworld error

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Sun, 12 Mar 2017 02:04:14 +0100
On 12 Mar 2017, at 01:55, Roberto Rodriguez Jr <rob.rodz.jr9_at_gmail.com> wrote:
> 
> Now...
> make buildworld
...
> In file included from /usr/src/contrib/llvm/lib/Support/APInt.cpp:15:
> In file included from /usr/src/contrib/llvm/include/llvm/ADT/APInt.h:20:
> In file included from
> /usr/src/contrib/llvm/include/llvm/Support/MathExtras.h:19:
> In file included from /usr/include/c++/v1/algorithm:634:
> In file included from /usr/include/c++/v1/memory:604:
> /usr/include/c++/v1/new:73:10: fatal error: '__undef___deallocate' file not
> found
> #include <__undef___deallocate>
>         ^

Yes, this is because of the bad advice to run "make delete-old" before
you had run "make installworld".  You had an older version of libc++ in
/usr/include/c++, but that still required the __undef___deallocate
header, which has now been deleted by "make delete-old".

Your best chance is to build and install libc++ first, if possible, by
doing:

cd /usr/src/lib/libc++
make obj
make depend
make
make install

Then retry building world.

-Dimitry


Received on Sun Mar 12 2017 - 00:04:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:10 UTC