<div dir="ltr">This error reports comes from building tsan (ThreadSanitizer) run-time. <div>First: do you need it? </div><div>Second: try to hack compiler-rt/lib/sanitizer_common/sanitizer_asm.h</div><div>to disable CFI directives. </div>
<div><br></div><div>Apparently icpc is not fully gcc-compatible it it barks on <span style="font-family:arial,sans-serif;font-size:13px">-funwind-tables</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">--kcc </span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 19, 2014 at 4:07 PM, Marvin Damschen <span dir="ltr"><<a href="mailto:marvin.damschen@gullz.de" target="_blank">marvin.damschen@gullz.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everyone,<br>
<br>
keep failing to build Clang 3.4 with icpc, giving me 'Error: CFI<br>
instruction used without previous .cfi_startproc' repeatedly. I tried<br>
CMAKE_BUILD_TYPE=DEBUG and compiler flags -g and<br>
-fno-asynchronous-unwind-tables, but it was no use. I am using icpc 14<br>
(in GCC 4.8 compatibility mode) on Scientific Linux 6.4. I hope you can<br>
help me out. LLVM without Clang succeeds to build.<br>
<br>
On a related note, is there a canonical way to disable all the Sanitizers?<br>
<br>
Best regards,<br>
Marvin<br>
<br>
[ 66%] Built target clang_rt.ubsan-x86_64<br>
[ 66%] Built target clang_rt.ubsan-x86_64-symbols<br>
[ 66%] Built target clang_rt.ubsan_cxx-x86_64<br>
[ 66%] Built target clang_rt.ubsan_cxx-x86_64-symbols<br>
[ 66%] Building CXX object<br>
projects/compiler-rt/lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_interface_atomic.cc.o<br>
icpc: command line warning #10006: ignoring unknown option '-funwind-tables'<br>
icpc: command line warning #10006: ignoring unknown option '-Wno-gnu'<br>
icpc: command line warning #10006: ignoring unknown option<br>
'-Wframe-larger-than=512'<br>
/tmpdir/ccsscratch/16720/icpcxWB4IQas_.s: Assembler messages:<br>
/tmpdir/ccsscratch/16720/icpcxWB4IQas_.s:4098: Error: CFI instruction<br>
used without previous .cfi_startproc<br>
/tmpdir/ccsscratch/16720/icpcxWB4IQas_.s:4807: Error: CFI instruction<br>
used without previous .cfi_startproc<br>
...<br>
/tmpdir/ccsscratch/16720/icpcxWB4IQas_.s:45623: Error: CFI instruction<br>
used without previous .cfi_startproc<br>
/tmpdir/ccsscratch/16720/icpcxWB4IQas_.s:45623: Error: CFI instruction<br>
used without previous .cfi_startproc<br>
make[2]: ***<br>
[projects/compiler-rt/lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_interface_atomic.cc.o]<br>
Error 1<br>
make[1]: ***<br>
[projects/compiler-rt/lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/all]<br>
Error 2<br>
make: *** [all] Error 2<br>
<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">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/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>