[cfe-dev] Build Clang with CMake and Intel Compiler
Marvin Damschen
marvin.damschen at gullz.de
Wed Mar 19 05:07:11 PDT 2014
Hello everyone,
keep failing to build Clang 3.4 with icpc, giving me 'Error: CFI
instruction used without previous .cfi_startproc' repeatedly. I tried
CMAKE_BUILD_TYPE=DEBUG and compiler flags -g and
-fno-asynchronous-unwind-tables, but it was no use. I am using icpc 14
(in GCC 4.8 compatibility mode) on Scientific Linux 6.4. I hope you can
help me out. LLVM without Clang succeeds to build.
On a related note, is there a canonical way to disable all the Sanitizers?
Best regards,
Marvin
[ 66%] Built target clang_rt.ubsan-x86_64
[ 66%] Built target clang_rt.ubsan-x86_64-symbols
[ 66%] Built target clang_rt.ubsan_cxx-x86_64
[ 66%] Built target clang_rt.ubsan_cxx-x86_64-symbols
[ 66%] Building CXX object
projects/compiler-rt/lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_interface_atomic.cc.o
icpc: command line warning #10006: ignoring unknown option '-funwind-tables'
icpc: command line warning #10006: ignoring unknown option '-Wno-gnu'
icpc: command line warning #10006: ignoring unknown option
'-Wframe-larger-than=512'
/tmpdir/ccsscratch/16720/icpcxWB4IQas_.s: Assembler messages:
/tmpdir/ccsscratch/16720/icpcxWB4IQas_.s:4098: Error: CFI instruction
used without previous .cfi_startproc
/tmpdir/ccsscratch/16720/icpcxWB4IQas_.s:4807: Error: CFI instruction
used without previous .cfi_startproc
...
/tmpdir/ccsscratch/16720/icpcxWB4IQas_.s:45623: Error: CFI instruction
used without previous .cfi_startproc
/tmpdir/ccsscratch/16720/icpcxWB4IQas_.s:45623: Error: CFI instruction
used without previous .cfi_startproc
make[2]: ***
[projects/compiler-rt/lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_interface_atomic.cc.o]
Error 1
make[1]: ***
[projects/compiler-rt/lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/all]
Error 2
make: *** [all] Error 2
More information about the cfe-dev
mailing list