2012-02-17 16 views
10

बस एक्सकोड को 4.3 में अपडेट किया गया और अब मैं अपना ऐप नहीं बना सकता। मुझे यह त्रुटि मिल रही है:ऐप्पल एलएलवीएम कंपाइलर 3.1 त्रुटि

Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 254 

किसी और को यह समस्या है? यह शायद सिर्फ एक संकलन सेटिंग है लेकिन मुझे यकीन नहीं है कि कहां देखना है।

बेशक, त्रुटि में पूरे स्टैक डंप शामिल हैं, लेकिन मैंने इसे संक्षिप्तता के लिए शामिल नहीं किया है। मुझे उम्मीद है कि किसी को पता चलेगा कि "निकास कोड 254" क्या है। इसके लिए खोज करने की कोशिश की लेकिन कुछ भी नहीं मिला।

CompileC /Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Intermediates/iDB.build/Debug-iphonesimulator/Flexile.build/Objects-normal/i386/SCheckBox.o iDB/SCheckBox.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler 
    cd "/Users/aaron/Dropbox/XCode Projects/iDB" 
    setenv LANG en_US.US-ASCII 
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Werror -Wno-missing-field-initializers -Wmissing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-sign-compare -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -fexceptions -fasm-blocks -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.6 -g -Wno-conversion -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -iquote /Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Intermediates/iDB.build/Debug-iphonesimulator/Flexile.build/Flexile-generated-files.hmap -I/Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Intermediates/iDB.build/Debug-iphonesimulator/Flexile.build/Flexile-own-target-headers.hmap -I/Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Intermediates/iDB.build/Debug-iphonesimulator/Flexile.build/Flexile-all-target-headers.hmap -iquote /Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Intermediates/iDB.build/Debug-iphonesimulator/Flexile.build/Flexile-project-headers.hmap -I/Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Products/Debug-iphonesimulator/include -I/Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Intermediates/iDB.build/Debug-iphonesimulator/Flexile.build/DerivedSources/i386 -I/Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Intermediates/iDB.build/Debug-iphonesimulator/Flexile.build/DerivedSources -F/Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Products/Debug-iphonesimulator -include /Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Intermediates/PrecompiledHeaders/iDB-Prefix-aojkwzmrifipbudgsdryqwbhphsf/iDB-Prefix.pch -MMD -MT dependencies -MF /Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Intermediates/iDB.build/Debug-iphonesimulator/Flexile.build/Objects-normal/i386/SCheckBox.d --serialize-diagnostics /Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Intermediates/iDB.build/Debug-iphonesimulator/Flexile.build/Objects-normal/i386/SCheckBox.dia -c "/Users/aaron/Dropbox/XCode Projects/iDB/iDB/SCheckBox.m" -o /Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Intermediates/iDB.build/Debug-iphonesimulator/Flexile.build/Objects-normal/i386/SCheckBox.o 

0 clang    0x000000010a5c15a2 _ZL15PrintStackTracePv + 34 
1 clang    0x000000010a5c1a29 _ZL13SignalHandleri + 553 
2 libsystem_c.dylib 0x00007fff94b6dcfa _sigtramp + 26 
3 libsystem_c.dylib 0x00007fff6929a1b0 _sigtramp + 18446744072978875600 
4 clang    0x0000000109ef3798 _ZL20findRetainCycleOwnerPN5clang4ExprERN12_GLOBAL__N_116RetainCycleOwnerE + 312 
5 clang    0x0000000109ef35af clang::Sema::checkRetainCycles(clang::ObjCMessageExpr*) + 303 
6 clang    0x00000001097efaef clang::Sema::BuildInstanceMessage(clang::Expr*, clang::QualType, clang::SourceLocation, clang::Selector, clang::ObjCMethodDecl*, clang::SourceLocation, llvm::ArrayRef<clang::SourceLocation>, clang::SourceLocation, clang::ASTMultiPtr<clang::Expr*>) + 6479 
7 clang    0x00000001097ee18a clang::Sema::ActOnInstanceMessage(clang::Scope*, clang::Expr*, clang::Selector, clang::SourceLocation, llvm::ArrayRef<clang::SourceLocation>, clang::SourceLocation, clang::ASTMultiPtr<clang::Expr*>) + 138 
8 clang    0x00000001097ee04b clang::Parser::ParseObjCMessageExpressionBody(clang::SourceLocation, clang::SourceLocation, clang::OpaquePtr<clang::QualType>, clang::Expr*) + 2091 
9 clang    0x00000001097ed7f4 clang::Parser::ParseObjCMessageExpression() + 852 
10 clang    0x0000000109765597 clang::Parser::ParseCastExpression(bool, bool, bool&, bool) + 6807 
11 clang    0x0000000109763ab2 clang::Parser::ParseAssignmentExpression() + 114 
12 clang    0x0000000109763a21 clang::Parser::ParseExpression() + 17 
13 clang    0x00000001097b8efe clang::Parser::ParseExprStatement(clang::ParsedAttributes&) + 46 
14 clang    0x00000001097634bc clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&, bool) + 1564 
15 clang    0x00000001097627d9 clang::Parser::ParseCompoundStatementBody(bool) + 409 
16 clang    0x0000000109763242 clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&, bool) + 930 
17 clang    0x00000001097b6d0b clang::Parser::ParseIfStatement(clang::ParsedAttributes&) + 475 
18 clang    0x000000010976353c clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&, bool) + 1692 
19 clang    0x00000001097627d9 clang::Parser::ParseCompoundStatementBody(bool) + 409 
20 clang    0x0000000109edbd30 clang::Parser::ParseLexedObjCMethodDefs(clang::Parser::LexedMethod&) + 272 
21 clang    0x000000010980483e clang::Parser::ParseObjCAtEndDeclaration(clang::SourceRange) + 158 
22 clang    0x00000001097e2222 clang::Parser::ParseObjCAtDirectives() + 386 
23 clang    0x0000000109723e87 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 759 
24 clang    0x0000000109723b19 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 249 
25 clang    0x000000010970688b clang::ParseAST(clang::Sema&, bool) + 299 
26 clang    0x00000001097053d9 clang::CodeGenAction::ExecuteAction() + 857 
27 clang    0x00000001096d793f clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 879 
28 clang    0x00000001096d65cb clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2683 
29 clang    0x00000001096c8dce cc1_main(char const**, char const**, char const*, void*) + 5086 
30 clang    0x00000001096a35d8 main + 648 
31 clang    0x00000001096a3344 start + 52 
32 clang    0x0000000000000071 start + 18446744069256629601 
Stack dump: 
0. Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -cc1 -triple i386-apple-macosx10.6.0 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name SCheckBox.m -pic-level 1 -mdisable-fp-elim -relaxed-aliasing -masm-verbose -target-cpu yonah -target-linker-version 128.2 -g -coverage-file /Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Intermediates/iDB.build/Debug-iphonesimulator/Flexile.build/Objects-normal/i386/SCheckBox.o -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/3.1 -dependency-file /Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Intermediates/iDB.build/Debug-iphonesimulator/Flexile.build/Objects-normal/i386/SCheckBox.d -MT dependencies -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -iquote /Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Intermediates/iDB.build/Debug-iphonesimulator/Flexile.build/Flexile-generated-files.hmap -iquote /Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Intermediates/iDB.build/Debug-iphonesimulator/Flexile.build/Flexile-project-headers.hmap -include-pch /Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Intermediates/PrecompiledHeaders/iDB-Prefix-aojkwzmrifipbudgsdryqwbhphsf/iDB-Prefix.pch.pth -D DEBUG=1 -D IBOutlet=__attribute__((iboutlet)) -D IBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName))) -D IBAction=void)__attribute__((ibaction) -D __IPHONE_OS_VERSION_MIN_REQUIRED=50000 -I /Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Intermediates/iDB.build/Debug-iphonesimulator/Flexile.build/Flexile-own-target-headers.hmap -I /Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Intermediates/iDB.build/Debug-iphonesimulator/Flexile.build/Flexile-all-target-headers.hmap -I /Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Products/Debug-iphonesimulator/include -I /Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Intermediates/iDB.build/Debug-iphonesimulator/Flexile.build/DerivedSources/i386 -I /Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Intermediates/iDB.build/Debug-iphonesimulator/Flexile.build/DerivedSources -F/Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Products/Debug-iphonesimulator -fmodule-cache-path /var/folders/1y/fbhzgfpn2ld9qxdfpgl7d_rm0000gn/T/clang-module-cache -O0 -Wno-trigraphs -Werror -Wno-missing-field-initializers -Wmissing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-sign-compare -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Wprotocol -Wdeprecated-declarations -Wno-conversion -Wno-sign-conversion -std=gnu99 -ferror-limit 19 -fmessage-length 0 -stack-protector 1 -fblocks -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-arc -fobjc-exceptions -fexceptions -fpascal-strings -fdiagnostics-show-option -serialize-diagnostic-file /Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Intermediates/iDB.build/Debug-iphonesimulator/Flexile.build/Objects-normal/i386/SCheckBox.dia -o /Users/aaron/Library/Developer/Xcode/DerivedData/iDB-cvvkmobzsecywdherzjesrjswdng/Build/Intermediates/iDB.build/Debug-iphonesimulator/Flexile.build/Objects-normal/i386/SCheckBox.o -x objective-c /Users/aaron/Dropbox/XCode Projects/iDB/iDB/SCheckBox.m 
1. /Users/aaron/Dropbox/XCode Projects/iDB/iDB/SCheckBox.m:36:47: current parser token ';' 
2. /Users/aaron/Dropbox/XCode Projects/iDB/iDB/SCheckBox.m:27:146: in compound statement ('{}') 
3. /Users/aaron/Dropbox/XCode Projects/iDB/iDB/SCheckBox.m:29:102: in compound statement ('{}') 
clang: error: unable to execute command: Segmentation fault: 11 
clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) 
clang: note: diagnostic msg: Please submit a bug report to http://developer.apple.com/bugreporter/ and include command line arguments and all diagnostic information. 
clang: note: diagnostic msg: Preprocessed source(s) and associated run script(s) are located at: 
clang: note: diagnostic msg: /var/folders/1y/fbhzgfpn2ld9qxdfpgl7d_rm0000gn/T/SCheckBox-GckJrn.mi 
clang: note: diagnostic msg: /var/folders/1y/fbhzgfpn2ld9qxdfpgl7d_rm0000gn/T/SCheckBox-GckJrn.sh 
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 254 

अद्यतन तो मैंने देखा है कि डंप एक विशिष्ट वर्ग (SCheckBox.m) में कोड पर विशिष्ट लाइनों को दर्शाता है:

यहाँ पूरे उत्पादन है। यह एक init विधि में है। मैंने विधि पर जांच की है लेकिन इसके साथ कुछ भी गलत नहीं मिला। हालांकि, अगर मैं विधि के अंदर सबकुछ टिप्पणी करता हूं और शून्य वापस करता हूं, तो कोड संकलित करता है। जब तक मुझे त्रुटि नहीं मिली तब तक मैं हर पंक्ति से गुजर गया और असम्बद्ध हो गया।

[super.inputField addSubview:_checked]; 

मैं 'सुपर' (जो मेरे हिस्से पर एक टाइपो था) के बजाय 'स्व' के प्रयोग पर इरादा था: समस्या का कारण त्रुटि यह है। लेकिन सुपर वास्तव में एक इनपुट फ़ील्ड संपत्ति है। यह subclass में फिर से परिभाषित या अधिलेखित नहीं है। तो 'super.inputField' बनाम 'self.inputField' तक पहुंचने से सटीक वही चीज़ तक पहुंच प्राप्त होनी चाहिए (और एक्सकोड को अपग्रेड करने से पहले किया गया था)। ठीक है, इसलिए 'सुपर' से 'स्वयं' को बदलना समस्या को ठीक करता है।

मेरा प्रश्न अब है: क्यों?

+0

मेनू बार से, व्यू> नेविगेटर> लॉग नेविगेटर दिखाएँ चुनें। नवीनतम निर्माण लॉग पर क्लिक करें। विफल कमांड के लिए लाइन खोजें। लाइन पर क्लिक करें। कमांड और उसके आउटपुट को प्रकट करने के लिए लाइन के दाहिने सिरे पर दिए गए बटन पर क्लिक करें। अपने प्रश्न में कमांड और आउटपुट पेस्ट करें। –

+0

अच्छा, पूरा उत्पादन लंबा है। लेकिन मैं इसे जोड़ दूंगा। –

+1

मैं भी बग का अनुभव कर रहा हूं हालांकि यह उद्देश्य सी कोड में नहीं है। जब मैं सी ++ में लैम्ब्डा अभिव्यक्तियों का उपयोग करने की कोशिश करता हूं तो मुझे यह मिलता है। तो ऐसा लगता है कि समस्या उद्देश्य सी विधियों में डॉट सिंटैक्स के लिए अलग नहीं है। – Mattia

उत्तर

3

आपको एक कंपाइलर बग मिला है। ऐसा लगता है कि कंपाइलर की त्रुटि रिपोर्ट पिनपॉइंट्स है जहां आपके कोड में यह बारफिंग है, इसलिए आपकी सबसे अच्छी शर्त उस कोड के साथ बेकार है और देखें कि क्या आप इसे अधिक आसानी से पचाने योग्य बना सकते हैं।

आप एक बग रिपोर्ट भी सबमिट कर सकते हैं, लेकिन यह समय-समय पर आपकी समस्या का समाधान नहीं करेगा।

+0

हाँ, बस एक बग रिपोर्ट जोड़ा गया। –

1

4.2 से 4.3 तक अपग्रेड करने के बाद मैं एक ही त्रुटि संदेश में भाग गया। डंप की जांच करके, मैं कक्षा का नाम और रेखा ढूंढने में सक्षम था जो संकलक को प्यूक करने का कारण बना रहा था।

मुझे यकीन है कि कारण हर किसी के लिए अलग है लेकिन यहां मेरा फिक्स जोड़ रहा है।

से

[super.tabBarController setSelectedIndex:0];

बदलने

[[super tabBarController] setSelectedIndex:0];

करने के लिए मेरे लिए समस्या को संबोधित किया। मैंने सोचा था कि डॉट नोटेशन ब्रैकेट्स में अनुवाद करते हैं। यह अच्छा होगा अगर कोई इस फिक्स को समझा सके जो XCode 4.2 में आवश्यक नहीं था।

1

मुझे एक ही समस्या थी। इस कोड में:

[super pxSeek:@"1"]; 
[super.SQL setString:[NSString stringWithFormat:@"%@ %@", @"SELECT COUNT(*) AS MYCOUNT FROM ", super.Name]]; 
[super executeSQL]; 

return [super getIntColumn:0]; 

मैं [[सुपर एसक्यूएल के लिए [super.SQL] को बदलने की जरूरत], उस विधि लागू कर रहा है।

1

xcode 4.3 का उपयोग कर im, आपके जैसे त्रुटि है।यह कुछ बग था, मैं बस अपने कंप्यूटर को रीबूट करता हूं और त्रुटि चली गई।

8

मैं एनएसएलओजी के माध्यम से आउटपुट करने के प्रयास में एक्सकोड 4.3.2 पर इस मुद्दे को ट्रिगर करने में कामयाब रहा (जो शून्य लौटाता है)।

मेरे मामले में, मैं क्या करने की कोशिश कर रहा था: -

NSLog(@"result = %@", [array filterUsingPredicate:predicate]); 

तथ्य filterUsingPredicate: एक में जगह विधि है कि रिटर्न void इस संकलक त्रुटि शुरू हो रहा है लगता है है। यह दिलचस्प है कि एक्सकोड के जैसा-आप-प्रकार त्रुटि पहचान उस पर नहीं उठाती है।

सही संस्करण को यह बदल रहा है: -

NSLog(@"result = %@", [array filteredArrayUsingPredicate:predicate]); 

ठीक काम करता है और समस्या का समाधान!

2

मैं एक प्रतिलिपि बनाने-चिपकाने त्रुटि थी, अक्सर मिले जब समय सीमा कम :) मीटर फ़ाइल में

है:

@implementation DetailGetter 
... stuff here.. 
@end 

की तुलना में मैं, इस से ऊपर एक अंतरफलक घोषणा कॉपी-पेस्ट है, लेकिन अन्य नाम के साथ,

@implementation FromOtherMFile() 
@end 

@implementation DetailGetter 
... stuff here.. 
@end 

ज़ाहिर है, यह FromOtherMFile DetailGetter लिए यह कोई संकलक त्रुटि हो जाएगा बदल अगर है, लेकिन एक पूरे पृष्ठ जहां त्रुटि है स्क्रॉल करना पड़ता है, और मैं हाइलाइट नहीं किया गया एन संपादक।

संबंधित मुद्दे