Re: libllvmmc build is broken on i386

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Thu, 24 Apr 2014 23:58:44 +0200
On 24 Apr 2014, at 19:05, Ruslan Makhmatkhanov <cvs-src_at_yandex.ru> wrote:
> I can't build current on i386 (last tried revision is 264886) for couple of days. Every time trying to build with making `make clean` and rm'ing /usr/obj first.
> 
> The first error is appearing when building MCAsmBackend.cpp:
> """
> /../contrib/llvm/lib/MC/MCAsmBackend.cpp -o MCAsmBackend.o
> In file included from /usr/src/lib/clang/libllvmmc/../../../contrib/llvm/lib/MC/MCAsmBackend.cpp:10:
> In file included from /usr/src/lib/clang/libllvmmc/../../../contrib/llvm/include/llvm/MC/MCAsmBackend.h:13:
> In file included from /usr/src/lib/clang/libllvmmc/../../../contrib/llvm/include/llvm/ADT/ArrayRef.h:14:
> In file included from /usr/src/lib/clang/libllvmmc/../../../contrib/llvm/include/llvm/ADT/SmallVector.h:17:
> In file included from /usr/src/lib/clang/libllvmmc/../../../contrib/llvm/include/llvm/Support/AlignOf.h:19:
> In file included from /usr/include/c++/v1/cstddef:36:
> /usr/include/c++/v1/__config:314:2: error: invalid preprocessing directive
> """
> 
> Here is the full buildlog: http://pastebin.com/mp4mrUTb

Looks like your /usr/include/c++/v1/__config file is corrupt.  Try reinstalling the file, e.g.:

sudo install -o root -g wheel -m 444 /usr/src/contrib/libc++/include/__config /usr/include/c++/v1

Or alternatively, running:

sudo make -C /usr/src/lib/libc++ install

-Dimitry


Received on Thu Apr 24 2014 - 19:59:08 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:48 UTC