[cfe-dev] debugging PCH failures on powerpc-darwin8

David Fang fang at csl.cornell.edu
Sat Dec 17 19:24:35 PST 2011


Hi,
 	I've been debugging the numerous failures in PCH tests seen in my 
powerpc-darwin8-g++-4.0.1 bootstrap of llvm/clang (release 3.0).

Full build/test log: 
http://www.csl.cornell.edu/~fang/sw/llvm/llvm-clang-release-3.0-powerpc-darwin8-g++-4.0.1-fink-build-log.txt

I've been running this failing test by hand:
bin/llvm-lit -v 
../llvm-3.0.src/tools/clang/test/CXX/expr/expr.unary/expr.unary.noexcept/cg.cpp

My debug trail is here:
http://paste.lisp.org/display/126363#4

It looks like the point of failure during reading of the PCH file shows 
that a decl ID number 184549376 is read, which happens to be 0x0b000000. 
Tracing through the write-out of the PCH finds that ID 11 is written out 
once, or 0x0000000b.  Is it possible that the 
serialization/deserialization of these values got byte-swapped?

The machine I'm running on is a powerpc G4, big-endian.
CMakeCache.txt agrees:
IS_BIG_ENDIAN:INTERNAL=1

Where should I look next to debug/fix this?

Fang

-- 
David Fang
http://www.csl.cornell.edu/~fang/




More information about the cfe-dev mailing list