Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 May 2014 11:25:23 +0400
From:      Ruslan Makhmatkhanov <cvs-src@yandex.ru>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   [SOLVED] libllvmmc build is broken on i386
Message-ID:  <5365EB63.4010205@yandex.ru>
In-Reply-To: <ACFDE753-FF78-4422-8B76-5368EEE3126B@FreeBSD.org>
References:  <53594466.10601@yandex.ru> <ACFDE753-FF78-4422-8B76-5368EEE3126B@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Dimitry Andric wrote on 25.04.2014 01:58:
> On 24 Apr 2014, at 19:05, Ruslan Makhmatkhanov <cvs-src@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5365EB63.4010205>