[LLVMbugs] [Bug 17336] New: Error when compiling C code for Hexagon
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Sep 23 20:45:57 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17336
Bug ID: 17336
Summary: Error when compiling C code for Hexagon
Product: clang
Version: 3.3
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: anyone_but_me at hotmail.ca
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 11273
--> http://llvm.org/bugs/attachment.cgi?id=11273&action=edit
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
http://llvm.org/bugs/ 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)
--
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/20130924/8e69dc26/attachment.html>
More information about the llvm-bugs
mailing list