构建 nds4ios 时出现 Apple LLVM 5.1 错误 [英] Apple LLVM 5.1 Error When Building nds4ios

查看:25
本文介绍了构建 nds4ios 时出现 Apple LLVM 5.1 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

帮助?

推荐答案

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

A major change in Xcode 5.1 is that the version of clang that it contains no longer accepts unknown/invalid arguments. You are trying to build something that uses arguments -fsingle-precision-constant and -fvariable-expansion-in-unroller and these are no longer legal.

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

You must take this up with whoever is responsible for whatever it is you are trying to build (in this case, something called "nds4ios", apparently). They need to create new source code whose build commands do not include bad arguments.

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

Alternatively, revert temporarily to the clang inside Xcode 5.0.2. To do so, install Xcode 5.0.2, and then, in Xcode 5.1, open Preferences, switch to the Locations pref pane, and switch the Command Line Tools pop-up menu to Xcode 5.0.2.

这篇关于构建 nds4ios 时出现 Apple LLVM 5.1 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆