Open Quuxplusone opened 11 years ago
Bugzilla Link | PR14464 |
Status | NEW |
Importance | P normal |
Reported by | vince (vince@macports.org) |
Reported on | 2012-11-30 07:22:51 -0800 |
Last modified on | 2012-12-03 13:08:55 -0800 |
Version | 3.2 |
Hardware | Macintosh MacOS X |
CC | llvm-bugs@lists.llvm.org, pawel@32bitmicro.com, rafael@espindo.la |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
Looks like a problem with platform name prevents including <bits/c++config.h>.
This macports bug might help:
"llvm-gcc42: can't find bits/c++config.h on Leopard/PPC"
https://trac.macports.org/ticket/33293
You mean that the exception is triggered by the missing include file? I am
going to correct this, but there should maybe be a cleaner way out, no?
Cheers
It is no better when the missing include file is found. I get another assert:
/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 -I
/usr/include/c++/4.0.0/ppc-apple-darwin8/ -c -o src/other/ObjectDump.o
src/other/ObjectDump.cpp
Instructions.cpp:1080: failed assertion `getOperand(0)->getType() ==
cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be a
pointer to Val type!"'
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-ccPOhs.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 -I /usr/include/c++/4.0.0/ppc-
apple-darwin8/ -fmodule-cache-path /var/tmp/clang-module-cache -O2 -fdeprecated-
macro -fno-dwarf2-cfi-asm -fno-dwarf-directory-asm -fdebug-compilation-dir
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64/work/ld64-
97.17 -ferror-limit 19 -fmessage-length 157 -mstackrealign -fobjc-runtime=gcc -
fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
/tmp/ObjectDump-ccPOhs.s -x c++ src/other/ObjectDump.cpp
1. src/ld/MachOReaderRelocatable.hpp:6123:2: current parser token ';'
2. src/ld/MachOReaderRelocatable.hpp:62:11: LLVM IR generation of declaration
'mach_o'
3. src/ld/MachOReaderRelocatable.hpp:354:16: Generating code for declaration
'mach_o::relocatable::BaseAtom::setCompactUnwindEncoding'
4. src/ld/MachOReaderRelocatable.hpp:355:1: LLVM IR generation of compound
statement ('{}')
clang: error: unable to execute command: Trace/BPT trap
clang: error: clang frontend command failed due to signal (use -v to see
invocation)