[SOLVED] libllvmmc build is broken on i386

From: Ruslan Makhmatkhanov <cvs-src_at_yandex.ru>
Date: Sun, 04 May 2014 11:25:23 +0400
Dimitry Andric wrote on 25.04.2014 01:58:
> 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
>

It actually bombed in different places across the toolchain. I replaced 
the clang/llvm bits from fresh -current ISO and everything builds fine 
now. Thank you!

-- 
Regards,
Ruslan

T.O.S. Of Reality
Received on Sun May 04 2014 - 05:25:50 UTC

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