【问题标题】:Apple LLVM 5.1 Error When Building nds4ios构建 nds4ios 时出现 Apple LLVM 5.1 错误
【发布时间】:2014-03-17 22:32:50
【问题描述】:
ProcessPCH /Users/sachinmansukhani/Library/Developer/Xcode/DerivedData/nds4ios-chkgruuwffdlbnewmhmwzxcpmeom/Build/Intermediates/PrecompiledHeaders/nds4ios-Prefix-cvqubcffbrdtbidyqsfmamzmeveu/nds4ios-Prefix.pch.pch nds4ios/support/nds4ios-Prefix.pch normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/sachinmansukhani/Documents/nds4ios
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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-header -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -Ofast -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -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 -Wuninitialized -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 -DIOS -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -miphoneos-version-min=7.1 -iquote /Users/sachinmansukhani/Library/Developer/Xcode/DerivedData/nds4ios-chkgruuwffdlbnewmhmwzxcpmeom/Build/Intermediates/nds4ios.build/Debug-iphoneos/nds4ios.build/nds4ios-generated-files.hmap -I/Users/sachinmansukhani/Library/Developer/Xcode/DerivedData/nds4ios-chkgruuwffdlbnewmhmwzxcpmeom/Build/Intermediates/nds4ios.build/Debug-iphoneos/nds4ios.build/nds4ios-own-target-headers.hmap -I/Users/sachinmansukhani/Library/Developer/Xcode/DerivedData/nds4ios-chkgruuwffdlbnewmhmwzxcpmeom/Build/Intermediates/nds4ios.build/Debug-iphoneos/nds4ios.build/nds4ios-all-target-headers.hmap -iquote /Users/sachinmansukhani/Library/Developer/Xcode/DerivedData/nds4ios-chkgruuwffdlbnewmhmwzxcpmeom/Build/Intermediates/nds4ios.build/Debug-iphoneos/nds4ios.build/nds4ios-project-headers.hmap -I/Users/sachinmansukhani/Library/Developer/Xcode/DerivedData/nds4ios-chkgruuwffdlbnewmhmwzxcpmeom/Build/Products/Debug-iphoneos/include -I/Users/sachinmansukhani/Documents/nds4ios/Classes -I/Users/sachinmansukhani/Documents/nds4ios/nds4droid-code/jni/desmume/src -I/Users/sachinmansukhani/Documents/nds4ios -I/Users/sachinmansukhani/Documents/nds4ios/nds4droid-code/jni/desmume/src/android -I/Users/sachinmansukhani/Library/Developer/Xcode/DerivedData/nds4ios-chkgruuwffdlbnewmhmwzxcpmeom/Build/Intermediates/nds4ios.build/Debug-iphoneos/nds4ios.build/DerivedSources/armv7 -I/Users/sachinmansukhani/Library/Developer/Xcode/DerivedData/nds4ios-chkgruuwffdlbnewmhmwzxcpmeom/Build/Intermediates/nds4ios.build/Debug-iphoneos/nds4ios.build/DerivedSources -F/Users/sachinmansukhani/Library/Developer/Xcode/DerivedData/nds4ios-chkgruuwffdlbnewmhmwzxcpmeom/Build/Products/Debug-iphoneos -F/Users/sachinmansukhani/Documents/nds4ios -F/Users/sachinmansukhani/Documents/nds4ios/nds4ios/frameworks -F/Users/sachinmansukhani/Documents/nds4ios/nds4ios -F/Users/sachinmansukhani/Documents/nds4ios/nds4ios/dropbox -F/Users/sachinmansukhani/Documents/nds4ios/nds4ios/Reveal -DANDROID -fexceptions -ftree-vectorize -fsingle-precision-constant -fprefetch-loop-arrays -fvariable-expansion-in-unroller -DCOMPRESS_MT -DIOS -DHAVE_LIBZ -marm --serialize-diagnostics /Users/sachinmansukhani/Library/Developer/Xcode/DerivedData/nds4ios-chkgruuwffdlbnewmhmwzxcpmeom/Build/Intermediates/PrecompiledHeaders/nds4ios-Prefix-cvqubcffbrdtbidyqsfmamzmeveu/nds4ios-Prefix.pch.dia -MMD -MT dependencies -MF /Users/sachinmansukhani/Library/Developer/Xcode/DerivedData/nds4ios-chkgruuwffdlbnewmhmwzxcpmeom/Build/Intermediates/PrecompiledHeaders/nds4ios-Prefix-cvqubcffbrdtbidyqsfmamzmeveu/nds4ios-Prefix.pch.d -c /Users/sachinmansukhani/Documents/nds4ios/nds4ios/support/nds4ios-Prefix.pch -o /Users/sachinmansukhani/Library/Developer/Xcode/DerivedData/nds4ios-chkgruuwffdlbnewmhmwzxcpmeom/Build/Intermediates/PrecompiledHeaders/nds4ios-Prefix-cvqubcffbrdtbidyqsfmamzmeveu/nds4ios-Prefix.pch.pch

clang: error: unknown argument: '-fsingle-precision-constant' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
clang: error: unknown argument: '-fvariable-expansion-in-unroller' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

帮助?

【问题讨论】:

  • 请向我们提供有关您要做什么的更多信息。

标签: ios objective-c xcode


【解决方案1】:

Xcode 5.1 的一个主要变化是它包含的 clang 版本不再接受未知/无效参数。您正在尝试构建使用参数 -fsingle-precision-constant-fvariable-expansion-in-unroller 的东西,这些不再合法。

您必须与负责您尝试构建的任何东西的人一起处理这个问题(在这种情况下,显然是称为“nds4ios”的东西)。他们需要创建新的源代码,其构建命令不包含错误参数。

或者,暂时恢复到 Xcode 5.0.2 中的 clang。为此,请安装 Xcode 5.0.2,然后在 Xcode 5.1 中打开 Preferences,切换到 Locations pref 窗格,然后将 Command Line Tools 弹出菜单切换到 Xcode 5.0.2。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-07-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多