[LLVMbugs] [Bug 10734] New: Assertion failed: (TheCU && "Unable to find compile unit!")

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 24 10:35:10 PDT 2011


           Summary: Assertion failed: (TheCU && "Unable to find compile
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: filcab at gmail.com
                CC: llvmbugs at cs.uiuc.edu

I can't use clang to build llvm+clang because clang errors out in the configure
script with this error. I minimized the flags to the ones that error out. For
reference, the configure script executed this line:

0.    Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-freebsd9.0 -emit-obj -mrelax-all -disable-free -main-file-name
conftest.c -mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.21.1 -momit-leaf-frame-pointer -g -resource-dir
/usr/local/bin/../lib/clang/3.0 -ferror-limit 19 -fmessage-length 0
-fdiagnostics-show-option -o /tmp/cc-4H15WK.o -x c conftest.c 

The configure script was invoked as:
$ ../llvm/configure --enable-debug-runtime --enable-debug-symbols CFLAGS=-g
--with-llvmcc=clang CC=clang CXX=clang++

filcab at aku ~> cat a.c                                                          
main ()

  return 0;
filcab at aku ~> clang -cc1 -g -emit-obj -o a a.c                                 
Assertion failed: (TheCU && "Unable to find compile unit!"), function
endFunction, file
/home/filcab/src/trunk-llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp, line 1306.
Stack dump:
0.    Program arguments: clang -cc1 -g -emit-obj -o a a.c 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module 'a.c'.
4.    Running pass 'X86 AT&T-Style Assembly Printer' on function '@main'
[1]    19239 abort (core dumped)  clang -cc1 -g -emit-obj -o a a.c
filcab at aku ~> clang --version                                                  
                 134 ↵ master*
clang version 3.0 (trunk 137311)
Target: x86_64-unknown-freebsd9.0
Thread model: posix
filcab at aku ~>                                                                  

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