<div dir="ltr">Hi,<div><br></div><div>this works for me on Ubuntu 14.04 LTS, but historically we had bugs with i386 multilib support (for example, <a href="http://llvm.org/bugs/show_bug.cgi?id=19289">http://llvm.org/bugs/show_bug.cgi?id=19289</a>).</div><div>I suggest digging deeper into the failing test and figuring out the exact failing command and output.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 13, 2015 at 11:24 AM, Mohit Bhakkad <span dir="ltr"><<a href="mailto:mohit.bhakkad@gmail.com" target="_blank">mohit.bhakkad@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I am trying to build compiler-rt on a x86_64 machine using clang.<br>
<br>
Command used:<br>
CC=clang CXX=clang++ cmake <path to compiler-rt> 
-DLLVM_CONFIG_PATH=<Path to llvm toolchain>/bin/llvm-config 
-DCOMPILER_RT_INSTALL_PATH=<Path to llvm 
toolchain>/lib/clang/3.7.0<br>
<br>
after this command on console it prints,<br>-- Compiler-RT supported architectures: x86_64<br>
<br>
Instead if I use gcc in above command, it supports both i386, x86_64<br>
-- Compiler-RT supported architectures: x86_64;i386<br>
<br>
I am curious about why its not supporting i386 with clang, as this clang can compile a simple program for i386.<br>
<br>
Looking into cmake file, it looks like i386 is failing <a href="https://github.com/llvm-mirror/compiler-rt/blob/master/cmake/config-ix.cmake#L76" target="_blank">this</a> test.<br>
<br>
I have checked variables for both the target, which looks fine to me: <br>
<br>
-- {CAN_TARGET_x86_64}: TRUE<br>
-- {CMAKE_BINARY_DIR}: /home/mohit/compiler-rt_build<br>
-- {SIMPLE_SOURCE}: /home/mohit/compiler-rt_build/CMakeFiles/simple.cc<br>
-- {TARGET_x86_64_CFLAGS}: -m64<br>
-- TARGET_{arch}_OUTPUT: TARGET_x86_64_OUTPUT<br>
-- -DCMAKE_EXE_LINKER_FLAGS:STRING={argstring}:-DCMAKE_EXE_LINKER_FLAGS:STRING= -m64<br>
<br>
<br>
-- {CAN_TARGET_i386}: FALSE<br>
-- {CMAKE_BINARY_DIR}: /home/mohit/compiler-rt_build<br>
-- {SIMPLE_SOURCE}: /home/mohit/compiler-rt_build/CMakeFiles/simple.cc<br>
-- {TARGET_i386_CFLAGS}: -m32<br>
-- TARGET_{arch}_OUTPUT: TARGET_i386_OUTPUT<br>
-- -DCMAKE_EXE_LINKER_FLAGS:STRING={argstring}:-DCMAKE_EXE_LINKER_FLAGS:STRING= -m32<br>
<br>
Regards,<br>
Mohit.<br>
<br>
<br><div><div><div dir="ltr"><div><table border="0" cellpadding="0" cellspacing="0" width="100%" style="border:0px;margin:0px auto;color:rgb(0,0,0);font-family:Arial,sans-serif;line-height:15.6000003814697px"><tbody><tr><td colspan="2" style="border-top-width:1px;border-top-style:solid;border-top-color:rgb(204,204,204);padding:10px"><table border="0" cellpadding="0" cellspacing="0" width="100%" style="font-size:11px;border:0px;margin:0px auto;line-height:normal"><tbody><tr><td><b style="font-size:14px">Mohit Bhakkad</b><br>Pune Institute of Computer Technology</td><td align="right"> </td></tr></tbody></table></td></tr><tr><td colspan="2" style="padding:0px 0px 10px 45px"><table border="0" cellpadding="0" cellspacing="0" width="100%" style="font-size:11px;border:0px;margin:0px auto;line-height:normal"><tbody><tr valign="top" style="line-height:15px"><td width="33%"><b style="color:rgb(153,153,153)">Mobile:</b> 9422928202<br></td><td width="33%" style="padding-left:15px"><b style="color:rgb(153,153,153)">Email:</b> <a href="mailto:mohit.bhakkad@gmail.com" style="text-decoration:none;color:rgb(0,0,0)" target="_blank">mohit.bhakkad@gmail.com</a><br><div style="margin-top:5px"><b><a href="http://www.linkedin.com/in/mohitbhakkad" style="text-decoration:none;color:rgb(0,102,153)" target="_blank">LinkedIn Profile</a><br><b><a href="https://github.com/Mohit7" style="text-decoration:none;color:rgb(0,102,153)" target="_blank">Github Profile</a></b></b></div></td></tr></tbody></table></td></tr></tbody></table><table border="0" cellpadding="0" cellspacing="0" width="100%" style="border:0px;margin:0px auto;color:rgb(0,0,0);font-family:Arial,sans-serif;line-height:15.6000003814697px"><tbody></tbody></table></div><div><table border="0" cellpadding="0" cellspacing="0" width="100%" style="border:0px;margin:0px auto;color:rgb(0,0,0);font-family:Arial,sans-serif;line-height:15.6000003814697px"><tbody></tbody></table></div></div></div></div>
</div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>