[LLVMdev] [Compiler-rt] i386 is not supported in compiler-rt build
Mohit Bhakkad
mohit.bhakkad at gmail.com
Fri Feb 13 00:24:07 PST 2015
I am trying to build compiler-rt on a x86_64 machine using clang.
Command used:
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
after this command on console it prints,
-- Compiler-RT supported architectures: x86_64
Instead if I use gcc in above command, it supports both i386, x86_64
-- Compiler-RT supported architectures: x86_64;i386
I am curious about why its not supporting i386 with clang, as this clang
can compile a simple program for i386.
Looking into cmake file, it looks like i386 is failing this
<https://github.com/llvm-mirror/compiler-rt/blob/master/cmake/config-ix.cmake#L76>
test.
I have checked variables for both the target, which looks fine to me:
-- {CAN_TARGET_x86_64}: TRUE
-- {CMAKE_BINARY_DIR}: /home/mohit/compiler-rt_build
-- {SIMPLE_SOURCE}: /home/mohit/compiler-rt_build/CMakeFiles/simple.cc
-- {TARGET_x86_64_CFLAGS}: -m64
-- TARGET_{arch}_OUTPUT: TARGET_x86_64_OUTPUT
--
-DCMAKE_EXE_LINKER_FLAGS:STRING={argstring}:-DCMAKE_EXE_LINKER_FLAGS:STRING=
-m64
-- {CAN_TARGET_i386}: FALSE
-- {CMAKE_BINARY_DIR}: /home/mohit/compiler-rt_build
-- {SIMPLE_SOURCE}: /home/mohit/compiler-rt_build/CMakeFiles/simple.cc
-- {TARGET_i386_CFLAGS}: -m32
-- TARGET_{arch}_OUTPUT: TARGET_i386_OUTPUT
--
-DCMAKE_EXE_LINKER_FLAGS:STRING={argstring}:-DCMAKE_EXE_LINKER_FLAGS:STRING=
-m32
Regards,
Mohit.
*Mohit Bhakkad*
Pune Institute of Computer Technology *Mobile:* 9422928202
*Email:* mohit.bhakkad at gmail.com
*LinkedIn Profile <http://www.linkedin.com/in/mohitbhakkad>Github Profile
<https://github.com/Mohit7>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150213/e83fb695/attachment.html>
More information about the llvm-dev
mailing list