<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 --- - Error when compiling C code for Hexagon"
href="http://llvm.org/bugs/show_bug.cgi?id=17336">17336</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Error when compiling C code for Hexagon
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.3
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>anyone_but_me@hotmail.ca
</td>
</tr>
<tr>
<th>CC</th>
<td>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=11273" name="attach_11273" title="generated by hexagon-clang (my test program)">attachment 11273</a> <a href="attachment.cgi?id=11273&action=edit" title="generated by hexagon-clang (my test program)">[details]</a></span>
generated by hexagon-clang (my test program)
I am trying to compile a simple program (test.c) for Hexagon (either v4 or v5).
I get the following error:
./hexagon-clang ~/test.c -v
clang version 3.3 (tags/RELEASE_33/final)
Target: hexagon
Thread model: posix
"~/site/bin/hexagon-clang" -cc1 -triple hexagon -S -disable-free
-main-file-name test.c -mrelocation-model static -mdisable-fp-elim -fmath-errno
-mconstructor-aliases -target-cpu hexagonv4 -fno-signed-char -mqdsp6-compat
-Wreturn-type -fshort-enums -mllvm -machine-sink-split=0 -target-linker-version
2.22 -v -resource-dir ~/site/bin/../lib/clang/3.3 -internal-externc-isystem
~/site/bin/./../../gnu/lib/gcc/hexagon/0.0.0/include -internal-externc-isystem
~/site/bin/./../../gnu/lib/gcc/hexagon/0.0.0/include-fixed
-internal-externc-isystem ~/site/bin/./../../gnu/hexagon/include
-fno-dwarf-directory-asm -fdebug-compilation-dir ~/site/bin -ferror-limit 19
-fmessage-length 103 -mstackrealign -fshort-enums -fno-use-cxa-atexit
-fobjc-runtime=gcc -fobjc-default-synthesize-properties
-fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops
-o /tmp/test-APCJQB.s -x c ~/test.c
clang -cc1 version 3.3 based upon LLVM 3.3 default target hexagon-unknown-none
ignoring nonexistent directory
"~/site/bin/./../../gnu/lib/gcc/hexagon/0.0.0/include"
ignoring nonexistent directory
"~/site/bin/./../../gnu/lib/gcc/hexagon/0.0.0/include-fixed"
ignoring nonexistent directory "~/site/bin/./../../gnu/hexagon/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
~/site/bin/../lib/clang/3.3/include
/usr/include
End of search list.
"hexagon-as" -march=v4 -o /tmp/test-yMgXJx.o /tmp/test-APCJQB.s
hexagon-clang: error: unable to execute command: No such file or directory
hexagon-clang: error: hexagon-as command failed due to signal (use -v to see
invocation)
clang version 3.3 (tags/RELEASE_33/final)
Target: hexagon
Thread model: posix
hexagon-clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
hexagon-clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
hexagon-clang: note: diagnostic msg: /tmp/test-6oDKFt.c
hexagon-clang:
~/hexagon/src/llvm-3.3.src/tools/clang/lib/Driver/Driver.cpp:476: void
clang::driver::Driver::generateCompilationDiagnostics(clang::driver::Compilation
&, const clang::driver::Command *): Assertion `I != std::string::npos &&
"Expected to find -main-file-name"' failed.
0 hexagon-clang 0x0000000001edc5b5 llvm::sys::PrintStackTrace(_IO_FILE*) +
37
1 hexagon-clang 0x0000000001edcaa3
2 libpthread.so.0 0x00007fee01fe2cb0
3 libc.so.6 0x00007fee0102c425 gsignal + 53
4 libc.so.6 0x00007fee0102fb8b abort + 379
5 libc.so.6 0x00007fee010250ee
6 libc.so.6 0x00007fee01025192
7 hexagon-clang 0x00000000006f3d1b
clang::driver::Driver::generateCompilationDiagnostics(clang::driver::Compilation&,
clang::driver::Command const*) + 4091
8 hexagon-clang 0x0000000000651866 main + 10822
9 libc.so.6 0x00007fee0101776d __libc_start_main + 237
10 hexagon-clang 0x000000000064a651
Stack dump:
0. Program arguments: ./hexagon-clang ~/test.c -v
Aborted (core dumped)</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>