[LLVMbugs] [Bug 14744] New: ICE when compiling any program for Hexagon

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Dec 29 11:44:28 PST 2012


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

             Bug #: 14744
           Summary: ICE when compiling any program for Hexagon
           Product: clang
           Version: trunk
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: kparzysz at codeaurora.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


touch nothing.c
clang -c nothing.c

clang: [...]/lib/VMCore/DataLayout.cpp:192: unsigned int
getInt(llvm::StringRef): Assertion `!error && "not a number, or does not fit in
an unsigned int"' failed.
0  clang           0x0000000001cced8f
1  clang           0x0000000001cd0ffa
2  libpthread.so.0 0x00007f8c2b1038f0
3  libc.so.6       0x00007f8c2a70ca75 gsignal + 53
4  libc.so.6       0x00007f8c2a7105c0 abort + 384
5  libc.so.6       0x00007f8c2a705941 __assert_fail + 241
6  clang           0x0000000001b9f6f6
llvm::DataLayout::parseSpecifier(llvm::StringRef) + 374
7  clang           0x00000000007cf6bc
8  clang           0x00000000007ce6d8
9  clang           0x00000000009d8879 clang::Sema::Initialize() + 25
10 clang           0x00000000009524ea clang::Parser::Initialize() + 1098
11 clang           0x000000000094de24 clang::ParseAST(clang::Sema&, bool, bool)
+ 212
12 clang           0x00000000007cd6be clang::CodeGenAction::ExecuteAction() +
78
13 clang           0x000000000064a609 clang::FrontendAction::Execute() + 185
14 clang           0x0000000000626845
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 341
15 clang           0x000000000060e69c
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1708
16 clang           0x0000000000605a08 cc1_main(char const**, char const**, char
const*, void*) + 1000
17 clang           0x000000000060cdcf main + 7311
18 libc.so.6       0x00007f8c2a6f7c4d __libc_start_main + 253
19 clang           0x0000000000604ab9
Stack dump:
0.      Program arguments:
/prj/qct/coredev/hexagon/austin/scratch/users/kparzysz/src/bld.tip/Release+Asserts/bin/clang
-cc1 -triple hexagon-unknown--elf -S -disable-free -main-file-name nothing.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.20.1
-momit-leaf-frame-pointer -coverage-file /tmp/nothing-rO7xzI.s -resource-dir
/prj/qct/coredev/hexagon/austin/scratch/users/kparzysz/src/bld.tip/Release+Asserts/bin/../lib/clang/3.3
-fmodule-cache-path /var/tmp/clang-module-cache -fno-dwarf-directory-asm
-fdebug-compilation-dir /usr2/kparzysz/s.hex/t -ferror-limit 19
-fmessage-length 203 -mstackrealign -fshort-enums -fno-use-cxa-atexit
-fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics
-backend-option -vectorize-loops -o /tmp/nothing-rO7xzI.s -x c nothing.c
1.      <eof> parser at end of file
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (git://git-hexagon-aus.quicinc.com/llvm/clang-mainline.git
5ba0c8e4077902f53e5f3e8271e470a1d8c1c074) (llvm/llvm-mainline.git
6f57f39e4ac767c84b25973a2f517fde3d37a8dd)
Target: hexagon-unknown--elf
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
llvm-hexagon-support at quicinc.com and include the crash backtrace, preprocessed
source, and associated run script.
clang: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/nothing-w1ACjr.c
clang: note: diagnostic msg: /tmp/nothing-w1ACjr.sh
clang: note: diagnostic msg:

********************



The problem is that the DataLayout string for Hexagon is missing a "-" between
the descriptions of ints and floats:

    DescriptionString = ("e-p:32:32:32-"
                         "i64:64:64-i32:32:32-i16:16:16-i1:32:32"  <-- eol!
                         "f64:64:64-f32:32:32-a0:0-n32");

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list