[cfe-dev] [LLVMdev] Build failure with compiler-rt on trunk under linux
Kostya Serebryany
kcc at google.com
Mon Mar 16 17:47:09 PDT 2015
On Fri, Mar 13, 2015 at 8:28 PM, Ben Pope <benpope81 at gmail.com> wrote:
> On Saturday, March 14, 2015 02:14 AM, Kostya Serebryany wrote:
>
>> What is the version of you linux distribution?
>>
>
> Ubuntu Vivid, but the first time I posted, it was for Trusty.
>
Frankly, no idea what's wrong here.
We don't test on Vivid yet, but Trusty is our primary platform.
I don't remember this kind of failure on Trusty or any requirement to
install any special packages to have asm/posix_types.h,
which seems to be coming from the linux-headers-3.13.0-46 package.
Is your Trusty a vanilla installation?
--kcc
> Ben
>
>
> On Fri, Mar 13, 2015 at 9:21 AM, Ben Pope
>> <benpope81 at gmail.com
>> <mailto:benpope81 at gmail.com>> wrote:
>>
>> On Monday, March 09, 2015 11:15 AM, Ben Pope wrote:
>>
>> I've been building clang on linux for a couple of years now,
>> contributing to the testing on Ubuntu, but this one has me
>> stumped:
>>
>> fatal error: 'asm/socket.h' file not found
>> #include <asm/socket.h>
>>
>>
>> I'm still having this problem... this time on a different machine,
>> ideas are still welcome.
>>
>> I can't compile with clang-3.6 or the native compiler (g++ 4.9.2),
>> the asm directory doesn't seem to be in the include path.
>>
>> I have a checkout of trunk, all in source with llvm
>>
>> These are my commands:
>> svn co http://llvm.org/svn/llvm-__project/llvm/trunk
>> <http://llvm.org/svn/llvm-project/llvm/trunk> llvm
>> svn co http://llvm.org/svn/llvm-__project/cfe/trunk
>> <http://llvm.org/svn/llvm-project/cfe/trunk> llvm/tools/clang
>> svn co http://llvm.org/svn/llvm-__project/clang-tools-extra/__trunk
>> <http://llvm.org/svn/llvm-project/clang-tools-extra/trunk>
>> llvm/tools/clang/tools/extra
>> svn co http://llvm.org/svn/llvm-__project/compiler-rt/trunk
>> <http://llvm.org/svn/llvm-project/compiler-rt/trunk>
>> llvm/projects/compiler-rt
>> svn co http://llvm.org/svn/llvm-__project/lld/trunk
>> <http://llvm.org/svn/llvm-project/lld/trunk> llvm/tools/lld
>> svn co http://llvm.org/svn/llvm-__project/lldb/trunk
>> <http://llvm.org/svn/llvm-project/lldb/trunk> llvm/tools/lldb
>> svn co http://llvm.org/svn/llvm-__project/polly/trunk
>> <http://llvm.org/svn/llvm-project/polly/trunk> llvm/tools/polly
>> svn co http://llvm.org/svn/llvm-__project/libcxx/trunk
>> <http://llvm.org/svn/llvm-project/libcxx/trunk> llvm/projects/libcxx
>> svn co http://llvm.org/svn/llvm-__project/libcxxabi/trunk
>> <http://llvm.org/svn/llvm-project/libcxxabi/trunk>
>> llvm/projects/libcxxabi
>> mkdir -p build/release
>> cd build/release
>> cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DLIBCXX_CXX_ABI=libcxxabi
>> -DLIBCXX_LIBCXXABI_INCLUDE___PATHS=../../llvm/projects/__
>> libcxxabi/include
>> -DLIT_EXECUTABLE=../../llvm/__utils/lit/lit.py
>> -DLLVM_CONFIG_PATH=../../llvm/__tools.llvm-config
>> -DCMAKE_C_COMPILER=clang-3.6 -DCMAKE_CXX_COMPILER=clang++-__3.6
>> -DCMAKE_PREFIX_PATH=../../__install/release ../../llvm/
>> ninja compiler-rt
>>
>> ....
>> /home/ben/development/llvm/__trunk/llvm/projects/compiler-_
>> _rt/lib/sanitizer_common/__sanitizer_platform_limits___linux.cc:31:10:
>> fatal error: 'asm/posix_types.h' file not found
>> #include <asm/posix_types.h>
>>
>> Does anybody have any ideas?
>>
>> Thanks,
>>
>> Ben
>>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150316/e0d2001b/attachment.html>
More information about the cfe-dev
mailing list