<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 13, 2015 at 8:28 PM, Ben Pope <span dir="ltr"><<a href="mailto:benpope81@gmail.com" target="_blank">benpope81@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span>On Saturday, March 14, 2015 02:14 AM, Kostya Serebryany wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
What is the version of you linux distribution?<br>
</blockquote>
<br></span>
Ubuntu Vivid, but the first time I posted, it was for Trusty.<br></blockquote><div>Frankly, no idea what's wrong here. </div><div>We don't test on Vivid yet, but Trusty is our primary platform. </div>I don't remember this kind of failure on Trusty or any requirement to install any special packages to have asm/posix_types.h, </div><div class="gmail_quote">which seems to be coming from the linux-headers-3.13.0-46 package. </div><div class="gmail_quote">Is your Trusty a vanilla installation? </div><div class="gmail_quote"><br></div><div class="gmail_quote">--kcc <br><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Ben<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span>
On Fri, Mar 13, 2015 at 9:21 AM, Ben Pope<br>
<<a href="mailto:benpope81@gmail.com" target="_blank">benpope81@gmail.com</a><br></span><span>
<mailto:<a href="mailto:benpope81@gmail.com" target="_blank">benpope81@gmail.com</a>>> wrote:<br>
<br>
On Monday, March 09, 2015 11:15 AM, Ben Pope wrote:<br>
<br>
I've been building clang on linux for a couple of years now,<br>
contributing to the testing on Ubuntu, but this one has me stumped:<br>
<br>
fatal error: 'asm/socket.h' file not found<br>
#include <asm/socket.h><br>
<br>
<br>
I'm still having this problem... this time on a different machine,<br>
ideas are still welcome.<br>
<br>
I can't compile with clang-3.6 or the native compiler (g++ 4.9.2),<br>
the asm directory doesn't seem to be in the include path.<br>
<br>
I have a checkout of trunk, all in source with llvm<br>
<br>
These are my commands:<br></span>
svn co <a href="http://llvm.org/svn/llvm-__project/llvm/trunk" target="_blank">http://llvm.org/svn/llvm-__<u></u>project/llvm/trunk</a><br>
<<a href="http://llvm.org/svn/llvm-project/llvm/trunk" target="_blank">http://llvm.org/svn/llvm-<u></u>project/llvm/trunk</a>> llvm<br>
svn co <a href="http://llvm.org/svn/llvm-__project/cfe/trunk" target="_blank">http://llvm.org/svn/llvm-__<u></u>project/cfe/trunk</a><br>
<<a href="http://llvm.org/svn/llvm-project/cfe/trunk" target="_blank">http://llvm.org/svn/llvm-<u></u>project/cfe/trunk</a>> llvm/tools/clang<br>
svn co <a href="http://llvm.org/svn/llvm-__project/clang-tools-extra/__trunk" target="_blank">http://llvm.org/svn/llvm-__<u></u>project/clang-tools-extra/__<u></u>trunk</a><br>
<<a href="http://llvm.org/svn/llvm-project/clang-tools-extra/trunk" target="_blank">http://llvm.org/svn/llvm-<u></u>project/clang-tools-extra/<u></u>trunk</a>><br>
llvm/tools/clang/tools/extra<br>
svn co <a href="http://llvm.org/svn/llvm-__project/compiler-rt/trunk" target="_blank">http://llvm.org/svn/llvm-__<u></u>project/compiler-rt/trunk</a><br>
<<a href="http://llvm.org/svn/llvm-project/compiler-rt/trunk" target="_blank">http://llvm.org/svn/llvm-<u></u>project/compiler-rt/trunk</a>><br>
llvm/projects/compiler-rt<br>
svn co <a href="http://llvm.org/svn/llvm-__project/lld/trunk" target="_blank">http://llvm.org/svn/llvm-__<u></u>project/lld/trunk</a><br>
<<a href="http://llvm.org/svn/llvm-project/lld/trunk" target="_blank">http://llvm.org/svn/llvm-<u></u>project/lld/trunk</a>> llvm/tools/lld<br>
svn co <a href="http://llvm.org/svn/llvm-__project/lldb/trunk" target="_blank">http://llvm.org/svn/llvm-__<u></u>project/lldb/trunk</a><br>
<<a href="http://llvm.org/svn/llvm-project/lldb/trunk" target="_blank">http://llvm.org/svn/llvm-<u></u>project/lldb/trunk</a>> llvm/tools/lldb<br>
svn co <a href="http://llvm.org/svn/llvm-__project/polly/trunk" target="_blank">http://llvm.org/svn/llvm-__<u></u>project/polly/trunk</a><br>
<<a href="http://llvm.org/svn/llvm-project/polly/trunk" target="_blank">http://llvm.org/svn/llvm-<u></u>project/polly/trunk</a>> llvm/tools/polly<br>
svn co <a href="http://llvm.org/svn/llvm-__project/libcxx/trunk" target="_blank">http://llvm.org/svn/llvm-__<u></u>project/libcxx/trunk</a><br>
<<a href="http://llvm.org/svn/llvm-project/libcxx/trunk" target="_blank">http://llvm.org/svn/llvm-<u></u>project/libcxx/trunk</a>> llvm/projects/libcxx<br>
svn co <a href="http://llvm.org/svn/llvm-__project/libcxxabi/trunk" target="_blank">http://llvm.org/svn/llvm-__<u></u>project/libcxxabi/trunk</a><span><br>
<<a href="http://llvm.org/svn/llvm-project/libcxxabi/trunk" target="_blank">http://llvm.org/svn/llvm-<u></u>project/libcxxabi/trunk</a>><br>
llvm/projects/libcxxabi<br>
mkdir -p build/release<br>
cd build/release<br>
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DLIBCXX_CXX_ABI=libcxxabi<br></span>
-DLIBCXX_LIBCXXABI_INCLUDE___<u></u>PATHS=../../llvm/projects/__<u></u>libcxxabi/include<br>
-DLIT_EXECUTABLE=../../llvm/__<u></u>utils/lit/lit.py<br>
-DLLVM_CONFIG_PATH=../../llvm/<u></u>__tools.llvm-config<br>
-DCMAKE_C_COMPILER=clang-3.6 -DCMAKE_CXX_COMPILER=clang++-_<u></u>_3.6<br>
-DCMAKE_PREFIX_PATH=../../__<u></u>install/release ../../llvm/<br>
ninja compiler-rt<br>
<br>
....<br>
/home/ben/development/llvm/__<u></u>trunk/llvm/projects/compiler-_<u></u>_rt/lib/sanitizer_common/__<u></u>sanitizer_platform_limits___<u></u>linux.cc:31:10:<span><br>
fatal error: 'asm/posix_types.h' file not found<br>
#include <asm/posix_types.h><br>
<br>
Does anybody have any ideas?<br>
<br>
Thanks,<br>
<br>
Ben<br>
</span></blockquote>
<br>
<br>
______________________________<u></u>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div></div>