[cfe-dev] [LLVMdev] Build failure with compiler-rt on trunk under linux
Ben Pope
benpope81 at gmail.com
Fri Mar 13 20:28:31 PDT 2015
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.
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
More information about the cfe-dev
mailing list