<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - clang: error: unable to execute command: Illegal instruction"
href="http://llvm.org/bugs/show_bug.cgi?id=17043">17043</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang: error: unable to execute command: Illegal instruction
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.3
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rafael.spring@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=11120" name="attach_11120" title="Preprocessed Source and other stuff.">attachment 11120</a> <a href="attachment.cgi?id=11120&action=edit" title="Preprocessed Source and other stuff.">[details]</a></span>
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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>