[LLVMbugs] [Bug 17043] New: clang: error: unable to execute command: Illegal instruction

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Aug 30 15:18:58 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=17043

            Bug ID: 17043
           Summary: clang: error: unable to execute command: Illegal
                    instruction
           Product: clang
           Version: 3.3
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rafael.spring at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11120
  --> http://llvm.org/bugs/attachment.cgi?id=11120&action=edit
Preprocessed Source and other stuff.

I am trying to compile some code containing clang vector extensions (OpenCL
style). Clang complains:

Assertion failed: (NextVal != ArgumentEnd && "Value for integer select modifier
was" " larger than the number of options in the diagnostic string!"), function
HandleSelectModifier, file Diagnostic.cpp, line 485.

then crashes. Stack trace is attached.

Stack dump:
0.    Program arguments: /opt/local/libexec/llvm-3.3/bin/clang -cc1 -triple
x86_64-apple-macosx10.6.0 -emit-llvm-bc -disable-free -main-file-name
PrepareWarp.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim
-masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 127.2
-coverage-file /Users/Rafael/Desktop/purpleray/jni/rs/PrepareWarp.o
-resource-dir /opt/local/libexec/llvm-3.3/bin/../lib/clang/3.3 -D _OSX -D
__APPLE__ -D NDEBUG -I /usr/include/OpenNI2 -I
/Developer/SDKs/MacOSX10.6.sdk/usr/X11R6/include -I /usr/local/include -I
/usr/include -I /usr/include/ni -O3 -Wall -Wno-unknown-pragmas -Wno-attributes
-fdeprecated-macro -fdebug-compilation-dir /Users/Rafael/Desktop/purpleray/jni
-ferror-limit 19 -fmessage-length 171 -stack-protector 1 -mstackrealign
-fblocks -fobjc-runtime=macosx-10.6.0 -fobjc-dispatch-method=mixed
-fobjc-default-synthesize-properties -fencode-extended-block-signature
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-backend-option -vectorize-loops -o rs/PrepareWarp.o -x c++ rs/PrepareWarp.cpp 
1.    rs/PrepareWarp.cpp:22:46: current parser token ';'
2.    rs/PrepareWarp.cpp:12:1: parsing namespace 'prs'
3.    rs/PrepareWarp.cpp:16:102: parsing function body 'prepareWarpLinear'
4.    rs/PrepareWarp.cpp:16:102: in compound statement ('{}')
clang: error: unable to execute command: Illegal instruction
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (tags/RELEASE_33/final)
Target: x86_64-apple-darwin10.8.0
Thread model: posix

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130830/979e649f/attachment.html>


More information about the llvm-bugs mailing list