- 积分
- 174
- 最后登录
- 2023-9-2
- 精华
- 0
- 阅读权限
- 20
- 主题
- 30
- UID
- 1103155
- 帖子
- 359
- PB币
- 697
- 威望
- 5
- 贡献
- 0
- 技术
- 0
- 活跃
- 393
后卫
- UID
- 1103155
- 帖子
- 359
- PB币
- 697
- 贡献
- 0
- 技术
- 0
- 活跃
- 393
|
本帖最后由 cangzhang 于 2014-8-5 12:13 编辑
更新beta5之后依旧
仅仅是用写了一个hello world,老是编译failed,
不知道是不是和我用的amd的破解内核有关系…………
之前也搜了很多,许多人遇到这个问题,但是那是xcode6 b3啊,按理说这个版本应该修复了才对啊
错误完整内容:- CompileSwift normal x86_64 com.apple.xcode.tools.swift.compiler
- cd /Users/cangzhang/Documents/hello
- /Applications/Xcode6-Beta4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -target x86_64-apple-macosx10.9 -module-name hello -O0 -sdk /Applications/Xcode6-Beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -g -module-cache-path /Users/cangzhang/Library/Developer/Xcode/DerivedData/ModuleCache -I /Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Products/Debug -F /Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Products/Debug -c -j4 /Users/cangzhang/Documents/hello/hello/main.swift -output-file-map /Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Intermediates/hello.build/Debug/hello.build/Objects-normal/x86_64/hello-OutputFileMap.json -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Intermediates/hello.build/Debug/hello.build/Objects-normal/x86_64/hello.swiftmodule -Xcc -I/Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Intermediates/hello.build/Debug/hello.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Intermediates/hello.build/Debug/hello.build/hello-generated-files.hmap -Xcc -I/Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Intermediates/hello.build/Debug/hello.build/hello-own-target-headers.hmap -Xcc -I/Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Intermediates/hello.build/Debug/hello.build/hello-all-target-headers.hmap -Xcc -iquote -Xcc /Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Intermediates/hello.build/Debug/hello.build/hello-project-headers.hmap -Xcc -I/Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Products/Debug/include -Xcc -I/Applications/Xcode6-Beta4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -Xcc -I/Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Intermediates/hello.build/Debug/hello.build/DerivedSources/x86_64 -Xcc -I/Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Intermediates/hello.build/Debug/hello.build/DerivedSources -Xcc -DDEBUG=1 -emit-objc-header -emit-objc-header-path /Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Intermediates/hello.build/Debug/hello.build/Objects-normal/x86_64/hello-Swift.h
- 0 swift 0x0000000101cfa688 llvm::sys::PrintStackTrace(__sFILE*) + 40
- 1 swift 0x0000000101cfab74 SignalHandler(int) + 452
- 2 libsystem_platform.dylib 0x00007fff805375aa _sigtramp + 26
- 3 libsystem_platform.dylib 0x00007fde544348e8 _sigtramp + 3555709784
- 4 swift 0x000000010178847c (anonymous namespace)::RegsForValue::getCopyFromRegs(llvm::SelectionDAG&, llvm::FunctionLoweringInfo&, llvm::SDLoc, llvm::SDValue&, llvm::SDValue*, llvm::Value const*) const + 2124
- 5 swift 0x0000000101787919 llvm::SelectionDAGBuilder::getValue(llvm::Value const*) + 489
- 6 swift 0x0000000101792580 llvm::SelectionDAGBuilder::LowerCallTo(llvm::ImmutableCallSite, llvm::SDValue, bool, llvm::MachineBasicBlock*) + 1056
- 7 swift 0x0000000101784174 llvm::SelectionDAGBuilder::visitCall(llvm::CallInst const&) + 1412
- 8 swift 0x000000010177d359 llvm::SelectionDAGBuilder::visit(llvm::Instruction const&) + 73
- 9 swift 0x00000001017b80e8 llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) + 40
- 10 swift 0x00000001017b7e82 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 2242
- 11 swift 0x00000001017b6b35 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 1045
- 12 swift 0x000000010189c743 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 99
- 13 swift 0x0000000101c0daad llvm::FPPassManager::runOnFunction(llvm::Function&) + 301
- 14 swift 0x0000000101c0dc9b llvm::FPPassManager::runOnModule(llvm::Module&) + 43
- 15 swift 0x0000000101c0e15f llvm::legacy::PassManagerImpl::run(llvm::Module&) + 975
- 16 swift 0x0000000101113c2b performIRGeneration(swift::IRGenOptions&, swift::Module*, swift::SILModule*, llvm::StringRef, llvm::LLVMContext&, swift::SourceFile*, unsigned int) + 4043
- 17 swift 0x0000000101113d33 swift::performIRGeneration(swift::IRGenOptions&, swift::SourceFile&, swift::SILModule*, llvm::StringRef, llvm::LLVMContext&, unsigned int) + 51
- 18 swift 0x00000001010828c7 frontend_main(llvm::ArrayRef<char const*>, char const*, void*) + 5079
- 19 swift 0x000000010108148d main + 1645
- 20 libdyld.dylib 0x00007fff816ba5fd start + 1
- 21 libdyld.dylib 0x0000000000000036 start + 2123651642
- Stack dump:
- 0. Program arguments: /Applications/Xcode6-Beta4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c -primary-file /Users/cangzhang/Documents/hello/hello/main.swift -enable-objc-attr-requires-objc-module -target x86_64-apple-macosx10.9 -module-name hello -sdk /Applications/Xcode6-Beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -I /Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Products/Debug -F /Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Products/Debug -g -module-cache-path /Users/cangzhang/Library/Developer/Xcode/DerivedData/ModuleCache -Xcc -I/Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Intermediates/hello.build/Debug/hello.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Intermediates/hello.build/Debug/hello.build/hello-generated-files.hmap -Xcc -I/Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Intermediates/hello.build/Debug/hello.build/hello-own-target-headers.hmap -Xcc -I/Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Intermediates/hello.build/Debug/hello.build/hello-all-target-headers.hmap -Xcc -iquote -Xcc /Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Intermediates/hello.build/Debug/hello.build/hello-project-headers.hmap -Xcc -I/Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Products/Debug/include -Xcc -I/Applications/Xcode6-Beta4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -Xcc -I/Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Intermediates/hello.build/Debug/hello.build/DerivedSources/x86_64 -Xcc -I/Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Intermediates/hello.build/Debug/hello.build/DerivedSources -Xcc -DDEBUG=1 -emit-module-doc-path /Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Intermediates/hello.build/Debug/hello.build/Objects-normal/x86_64/main~partial.swiftdoc -O0 -emit-module-path /Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Intermediates/hello.build/Debug/hello.build/Objects-normal/x86_64/main~partial.swiftmodule -serialize-diagnostics-path /Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Intermediates/hello.build/Debug/hello.build/Objects-normal/x86_64/main.dia -emit-dependencies-path /Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Intermediates/hello.build/Debug/hello.build/Objects-normal/x86_64/main.d -o /Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Intermediates/hello.build/Debug/hello.build/Objects-normal/x86_64/main.o
- 1. Running pass 'Function Pass Manager' on module '/Users/cangzhang/Library/Developer/Xcode/DerivedData/hello-coeoarljxutvfbexwjvtwumjosel/Build/Intermediates/hello.build/Debug/hello.build/Objects-normal/x86_64/main.o'.
- 2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@top_level_code'
- <unknown>:0: error: unable to execute command: Segmentation fault: 11
- <unknown>:0: error: swift frontend command failed due to signal (use -v to see invocation)
- Command /Applications/Xcode6-Beta4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift failed with exit code 254
复制代码
|
|