[LLVMbugs] [Bug 6170] New: Assertion failure in getTargetVersion while PCH is being processed on PPC

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jan 28 20:21:48 PST 2010


http://llvm.org/bugs/show_bug.cgi?id=6170

           Summary: Assertion failure in getTargetVersion while PCH is being
                    processed on PPC
           Product: new-bugs
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: llvm at gentlyusedunderwear.com
                CC: llvmbugs at cs.uiuc.edu


I'm getting an assertion when clang is processing a PowerPC PCH.

The command:

ProcessPCH
/var/folders/xH/xHa+qh4xEf8ICLyAHxy-YE+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/Precompiled-eipxzojdpfplejcepifxqvflztqb/Precompiled.pch.gch
Sources/Precompiled.pch normal ppc objective-c com.apple.compilers.llvmgcc42
cd /Volumes/Consecrated/source/Dev/Perforce/FruitMenu
setenv LANG en_US.US-ASCII
/Volumes/Consecrated/source/Dev/llvm/Release/bin/clang -x objective-c-header
-arch ppc -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks
-O0 -Wmissing-field-initializers -Wreturn-type -Wmissing-braces -Wparentheses
-Wswitch -Wunused-variable -Wsign-compare -Wshorten-64-to-32
-Wstrict-selector-match -Wundeclared-selector -isysroot
/Developer/SDKs/MacOSX10.6.sdk -fobjc-gc -mtune=G4 -mmacosx-version-min=10.5
-gdwarf-2
-I/Volumes/Consecrated/source/Dev/Perforce/FruitMenu/build/FruitMenu.build/Debug/ape.build/FruitMenu.hmap
-Wmost -Wno-four-char-constants -Wno-unknown-pragmas
-F/Volumes/Consecrated/source/Dev/Perforce/FruitMenu/build/Debug
-F/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks
-F/Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks
-F/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks
-F/Developer/SDKs/MacOSX10.6.sdk/System/Library/PrivateFrameworks
-F/Developer/SDKs/MacOSX10.6.sdk/System/Library/PrivateFrameworks
-I/Volumes/Consecrated/source/Dev/Perforce/FruitMenu/build/Debug/include
-I../_common
-I/Volumes/Consecrated/source/Dev/Perforce/FruitMenu/build/FruitMenu.build/Debug/ape.build/DerivedSources/ppc
-I/Volumes/Consecrated/source/Dev/Perforce/FruitMenu/build/FruitMenu.build/Debug/ape.build/DerivedSources
-v -fconstant-cfstrings -isysroot /Developer/SDKs/MacOSX10.6.sdk -c
/Volumes/Consecrated/source/Dev/Perforce/FruitMenu/Sources/Precompiled.pch -o
/var/folders/xH/xHa+qh4xEf8ICLyAHxy-YE+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/Precompiled-eipxzojdpfplejcepifxqvflztqb/Precompiled.pch.gch

The output with -v:

clang version 1.1 (trunk 94787)
Target: powerpc-apple-darwin10
Thread model: posix
Assertion failed: (TargetInitialized && "Target not initialized!"), function
getTargetVersion, file ToolChains.h, line 100.
0  clang             0x00000001012d0562 PrintStackTrace(void*) + 34
1  clang             0x00000001012d0dec SignalHandler(int) + 652
2  libSystem.B.dylib 0x00007fff83a9982a _sigtramp + 26
3  libSystem.B.dylib 000000000000000000 _sigtramp + 2086037488
4  libSystem.B.dylib 0x00007fff83b14ef0 __pthread_markcancel + 0
5  clang             0x0000000100152a2f
clang::driver::tools::Clang::ConstructJob(clang::driver::Compilation&,
clang::driver::JobAction const&, clang::driver::Job&, clang::driver::InputInfo
const&, llvm::SmallVector<clang::driver::InputInfo, 4u> const&,
clang::driver::ArgList const&, char const*) const + 15935
6  clang             0x000000010012d968
clang::driver::Driver::BuildJobsForAction(clang::driver::Compilation&,
clang::driver::Action const*, clang::driver::ToolChain const*, char const*,
bool, bool, char const*, clang::driver::InputInfo&) const + 2600
7  clang             0x000000010012d70a
clang::driver::Driver::BuildJobsForAction(clang::driver::Compilation&,
clang::driver::Action const*, clang::driver::ToolChain const*, char const*,
bool, bool, char const*, clang::driver::InputInfo&) const + 1994
8  clang             0x000000010012e057
clang::driver::Driver::BuildJobs(clang::driver::Compilation&) const + 407
9  clang             0x000000010012ecdf
clang::driver::Driver::BuildCompilation(int, char const**) + 2223
10 clang             0x00000001000399fa main + 1578
11 clang             0x0000000100034fa8 start + 52
12 clang             0x0000000000000031 start + 4294750397
Stack dump:
0.      Program arguments:
/Volumes/Consecrated/source/Dev/llvm/Release/bin/clang -x objective-c-header
-arch ppc -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks
-O0 -Wmissing-field-initializers -Wreturn-type -Wmissing-braces -Wparentheses
-Wswitch -Wunused-variable -Wsign-compare -Wshorten-64-to-32
-Wstrict-selector-match -Wundeclared-selector -isysroot
/Developer/SDKs/MacOSX10.6.sdk -fobjc-gc -mtune=G4 -mmacosx-version-min=10.5
-gdwarf-2
-I/Volumes/Consecrated/source/Dev/Perforce/FruitMenu/build/FruitMenu.build/Debug/ape.build/FruitMenu.hmap
-Wmost -Wno-four-char-constants -Wno-unknown-pragmas
-F/Volumes/Consecrated/source/Dev/Perforce/FruitMenu/build/Debug
-F/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks
-F/Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks
-F/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks
-F/Developer/SDKs/MacOSX10.6.sdk/System/Library/PrivateFrameworks
-F/Developer/SDKs/MacOSX10.6.sdk/System/Library/PrivateFrameworks
-I/Volumes/Consecrated/source/Dev/Perforce/FruitMenu/build/Debug/include
-I../_common
-I/Volumes/Consecrated/source/Dev/Perforce/FruitMenu/build/FruitMenu.build/Debug/ape.build/DerivedSources/ppc
-I/Volumes/Consecrated/source/Dev/Perforce/FruitMenu/build/FruitMenu.build/Debug/ape.build/DerivedSources
-v -fconstant-cfstrings -isysroot /Developer/SDKs/MacOSX10.6.sdk -c
/Volumes/Consecrated/source/Dev/Perforce/FruitMenu/Sources/Precompiled.pch -o
/var/folders/xH/xHa+qh4xEf8ICLyAHxy-YE+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/Precompiled-eipxzojdpfplejcepifxqvflztqb/Precompiled.pch.gch 
1.      Compilation construction
2.      Building compilation jobs
3.      Building compilation jobs
4.      Building compilation jobs
Command /Volumes/Consecrated/source/Dev/llvm/Release/bin/clang failed with exit
code 6


-- 
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