[LLVMbugs] [Bug 14464] New: failed assertion `SS == getCurFunction()->SwitchStack.back() && "switch stack missing push/pop!"'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Nov 30 05:22:51 PST 2012


             Bug #: 14464
           Summary: failed assertion `SS ==
                    getCurFunction()->SwitchStack.back() && "switch stack
                    missing push/pop!"'
           Product: clang
           Version: 3.2
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: vince at macports.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

When I try to compile the ld64 (97.17) linker from Apple cctools on MacOS 10.4
(arch = ppc) I get the following error:

/opt/local/bin/clang++-mp-3.2 -Os -O2 -arch ppc
-I/opt/local/libexec/llvm-3.2/include -DLTO_SUPPORT -Isrc/abstraction -Isrc/ld
-I/opt/local/include  -c -o src/other/ObjectDump.o src/other/ObjectDump.cpp
In file included from src/other/ObjectDump.cpp:31:
In file included from src/ld/MachOReaderRelocatable.hpp:33:
In file included from /usr/include/c++/4.0.0/vector:65:
/usr/include/c++/4.0.0/bits/stl_algobase.h:64:10: fatal error:
'bits/c++config.h' file not found
#include <bits/c++config.h>
SemaStmt.cpp:625: failed assertion `SS == getCurFunction()->SwitchStack.back()
&& "switch stack missing push/pop!"'
Stack dump:
0.    Program arguments: /opt/local/libexec/llvm-3.2/bin/clang -cc1 -triple
powerpc-apple-darwin8.11.0 -S -disable-free -main-file-name ObjectDump.cpp
-pic-level 2 -mdisable-fp-elim -fmath-errno -target-linker-version 97.17
-coverage-file /tmp/ObjectDump-Jh3aJw.s -resource-dir
/opt/local/libexec/llvm-3.2/bin/../lib/clang/3.2 -D LTO_SUPPORT -I
/opt/local/libexec/llvm-3.2/include -I src/abstraction -I src/ld -I
/opt/local/include -fmodule-cache-path /var/tmp/clang-module-cache
-I/opt/local/include -O2 -fdeprecated-macro -fno-dwarf2-cfi-asm
-fno-dwarf-directory-asm -fdebug-compilation-dir
-ferror-limit 19 -fmessage-length 0 -mstackrealign -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -o
/tmp/ObjectDump-Jh3aJw.s -x c++ src/other/ObjectDump.cpp 
1.    src/ld/MachOReaderRelocatable.hpp:2469:4: current parser token '}'
2.    src/ld/MachOReaderRelocatable.hpp:62:1: parsing namespace 'mach_o'
3.    src/ld/MachOReaderRelocatable.hpp:63:1: parsing namespace 'relocatable'
4.    src/ld/MachOReaderRelocatable.hpp:1944:1: parsing function body
5.    src/ld/MachOReaderRelocatable.hpp:1944:1: in compound statement ('{}')
6.    src/ld/MachOReaderRelocatable.hpp:2410:81: in compound statement ('{}')
7.    src/ld/MachOReaderRelocatable.hpp:2415:28: in compound statement ('{}')
8.    src/ld/MachOReaderRelocatable.hpp:2428:9: in compound statement ('{}')
clang: error: unable to execute command: Abort trap
clang: error: clang frontend command failed due to signal (use -v to see
clang version 3.2 (branches/release_32 168259)
Target: powerpc-apple-darwin8.11.0
Thread model: posix

Any idea to what it is related to?


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