[LLVMbugs] [Bug 12641] New: Clang regression for PowerPC: Unable to compile hello.c

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 23 21:41:44 PDT 2012


             Bug #: 12641
           Summary: Clang regression for PowerPC: Unable to compile
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Driver
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: don.crandall.jr at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Working with R 155408

The last known revision I was able to compile hello.c was R 154866 but clang
could not build itself (see bug 12598)

I used the following configuration:

../llvm/configure --enable-optimized --enable-jit --enable-targets=powerpc
--build=powerpc-apple-darwin9 --target=powerpc-apple-darwin9


I also used Leopards' llvm-gcc 4.2.1 which worked with r 154866.

The info I get is:

./buildllvm/Release+Asserts/bin/clang hello.c  -o hello
Assertion failed: (!I->isInsideBundle() && "First non-phi MI cannot be inside a
bundle!"), function getFirstNonPHI, file
~/compilerproj/llvmproj/llvm/lib/CodeGen/MachineBasicBlock.cpp, line 147.
0  clang             0x02246b0c raise + 140
1  clang             0x02247864 __assert_rtn + 1316
2  libSystem.B.dylib 0x9011489c _sigtramp + 68
Stack dump:
0.    Program arguments:
~/compilerproj/llvmproj/buildllvm/Release+Asserts/bin/clang -cc1 -triple
powerpc-apple-darwin9.8.0 -S -disable-free -main-file-name hello.c -pic-level 2
-mdisable-fp-elim -target-linker-version 85.2.1 -resource-dir
-fno-dwarf2-cfi-asm -fno-dwarf-directory-asm -fdebug-compilation-dir
~/compilerproj/llvmproj -ferror-limit 19 -fmessage-length 80 -mstackrealign
-fobjc-fragile-abi -fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/Iz/Izw3QrwiGrqTPVkJX8nXYE+++TI/-Tmp-/hello-7z4tAH.s -x c hello.c 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module 'hello.c'.
4.    Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on function
clang: error: unable to execute command: Abort trap
clang: error: clang frontend command failed due to signal (use -v to see
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
clang: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang: note: diagnostic msg:
clang: note: diagnostic msg:

Note: this also happened with R 155336

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