Xcode clang退出代码254

时间:2014-09-15 01:45:23

标签: objective-c xcode macos clang osx-mavericks

我今天安装了Xcode,无法编译任何内容。甚至不是一个基本的" Hello World"模板。

CompileC
/Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Intermediates/testingthis.build/Debug/testingthis.build/Objects-normal/x86_64/main.o
testingthis/main.m normal x86_64 objective-c
com.apple.compilers.llvm.clang.1_0.compiler
        cd /Users/developer/Desktop/testingthis
        export LANG=en_US.US-ASCII
        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/Users/developer/Library/Developer/Xcode/DerivedData/ModuleCache -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
-fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.9 -g -Wno-sign-conversion -iquote /Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Intermediates/testingthis.build/Debug/testingthis.build/testingthis-generated-files.hmap
-I/Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Intermediates/testingthis.build/Debug/testingthis.build/testingthis-own-target-headers.hmap
-I/Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Intermediates/testingthis.build/Debug/testingthis.build/testingthis-all-target-headers.hmap
-iquote /Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Intermediates/testingthis.build/Debug/testingthis.build/testingthis-project-headers.hmap
-I/Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Products/Debug/include
-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
-I/Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Intermediates/testingthis.build/Debug/testingthis.build/DerivedSources/x86_64
-I/Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Intermediates/testingthis.build/Debug/testingthis.build/DerivedSources
-F/Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Products/Debug
-include /Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Intermediates/PrecompiledHeaders/testingthis-Prefix-curqoisbajhkhqbrzppjuxqjmlsd/testingthis-Prefix.pch
-MMD -MT dependencies -MF /Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Intermediates/testingthis.build/Debug/testingthis.build/Objects-normal/x86_64/main.d
--serialize-diagnostics /Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Intermediates/testingthis.build/Debug/testingthis.build/Objects-normal/x86_64/main.dia
-c /Users/developer/Desktop/testingthis/testingthis/main.m -o /Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Intermediates/testingthis.build/Debug/testingthis.build/Objects-normal/x86_64/main.o

    Stack dump:
    0.  Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-cc1 -triple x86_64-apple-macosx10.9.0 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name main.m -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 236.3 -gdwarf-2 -coverage-file /Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Intermediates/testingthis.build/Debug/testingthis.build/Objects-normal/x86_64/main.o
-resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1
-dependency-file /Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Intermediates/testingthis.build/Debug/testingthis.build/Objects-normal/x86_64/main.d
-MT dependencies -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
-iquote /Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Intermediates/testingthis.build/Debug/testingthis.build/testingthis-generated-files.hmap
-iquote /Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Intermediates/testingthis.build/Debug/testingthis.build/testingthis-project-headers.hmap
-include-pch /Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Intermediates/PrecompiledHeaders/testingthis-Prefix-curqoisbajhkhqbrzppjuxqjmlsd/testingthis-Prefix.pch.pch
-D DEBUG=1 -I /Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Intermediates/testingthis.build/Debug/testingthis.build/testingthis-own-target-headers.hmap
-I /Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Intermediates/testingthis.build/Debug/testingthis.build/testingthis-all-target-headers.hmap
-I /Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Products/Debug/include
-I /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
-I /Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Intermediates/testingthis.build/Debug/testingthis.build/DerivedSources/x86_64
-I /Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Intermediates/testingthis.build/Debug/testingthis.build/DerivedSources
-F/Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Products/Debug
-O0 -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -Wprotocol -Wdeprecated-declarations -Wno-sign-conversion -std=gnu99 -fdebug-compilation-dir /Users/developer/Desktop/testingthis -ferror-limit 19 -fmacro-backtrace-limit 0 -fmessage-length 0 -stack-protector 1 -mstackrealign -fblocks -fmodules -fmodules-cache-path=/Users/developer/Library/Developer/Xcode/DerivedData/ModuleCache -fobjc-runtime=macosx-10.9.0 -fencode-extended-block-signature -fobjc-arc -fobjc-exceptions -fexceptions -fpascal-strings -fdiagnostics-show-option -fdiagnostics-show-note-include-stack -fasm-blocks -vectorize-slp -serialize-diagnostic-file /Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Intermediates/testingthis.build/Debug/testingthis.build/Objects-normal/x86_64/main.dia
-o /Users/developer/Library/Developer/Xcode/DerivedData/testingthis-goprmyagnkiupbdqziwxxnvptiqv/Build/Intermediates/testingthis.build/Debug/testingthis.build/Objects-normal/x86_64/main.o
-x objective-c /Users/developer/Desktop/testingthis/testingthis/main.m

1.  <eof> parser at end of file
2.  Code generation
3.  Running pass 'Function Pass Manager' on module '/Users/developer/Desktop/testingthis/testingthis/main.m'.
4.  Running pass 'X86 DAG->DAG Instruction Selection' on function '@main'
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /var/folders/m2/j0ddsky107q6nclt_pptxkwc0000gp/T/main-3a682b.m
clang: note: diagnostic msg: /var/folders/m2/j0ddsky107q6nclt_pptxkwc0000gp/T/main-3a682b.sh
clang: note: diagnostic msg: 

********************

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

0 个答案:

没有答案