简体   繁体   English

构建libetpan项目期间ARM64构建错误

[英]ARM64 build error during building libetpan project

While building libetpan for iOS-ARM64, 在为iOS-ARM64构建libetpan时,

I've been added logging functionality on prepare script on libetpan for mac project. 我在libetpan for mac项目的prepare脚本上添加了日志记录功能。 Xcode fails with strange error, only during build ARM64 target. Xcode仅在构建ARM64目标期间失败,并出现奇怪的错误。 Here's the xcode log below: 这是下面的xcode日志:

configuring
running prepare-cyrus-sasl.sh
prepare sources
patching file lib/client.c
building tools
generated makemd5i386 properly

building for iPhoneOS - armv7
CPPFLAGS=-arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk
CFLAGS=-arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -Os -miphoneos-version-min=7.0
./configure --host=arm --prefix=/Users/user/Developer/Workspace/myapp/libetpan/build-mac/dependencies/build/libsasl/workdir/20140417150520/tmp/build/cyrus-sasl-2.1.25/iPhoneOS7.1armv7 --enable-shared=no --enable-static=yes --with-pam=/Users/user/Developer/Workspace/MyApp/libetpan/build-mac/dependencies/build/libsasl/workdir/20140417150520/tmp/build/openpam-20071221/universal --enable-otp=no --enable-digest=no --with-des=no --enable-login

building for iPhoneOS - armv7s
CPPFLAGS=-arch armv7s -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk
CFLAGS=-arch armv7s -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -Os -miphoneos-version-min=7.0
./configure --host=arm --prefix=/Users/user/Developer/Workspace/myapp/libetpan/build-mac/dependencies/build/libsasl/workdir/20140417150520/tmp/build/cyrus-sasl-2.1.25/iPhoneOS7.1armv7s --enable-shared=no --enable-static=yes --with-pam=/Users/user/Developer/Workspace/myapp/libetpan/build-mac/dependencies/build/libsasl/workdir/20140417150520/tmp/build/openpam-20071221/universal --enable-otp=no --enable-digest=no --with-des=no --enable-login

building for iPhoneOS - arm64
CPPFLAGS=-arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk
CFLAGS=-arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -Os -miphoneos-version-min=7.0
./configure --host=arm --prefix=/Users/user/Developer/Workspace/myapp/libetpan/build-mac/dependencies/build/libsasl/workdir/20140417150520/tmp/build/cyrus-sasl-2.1.25/iPhoneOS7.1arm64 --enable-shared=no --enable-static=yes --with-pam=/Users/user/Developer/Workspace/myapp/libetpan/build-mac/dependencies/build/libsasl/workdir/20140417150520/tmp/build/openpam-20071221/universal --enable-otp=no --enable-digest=no --with-des=no --enable-login
CONFIGURE FAILED.

The build script generated its own build log file. 构建脚本生成了自己的构建日志文件。 It ends with "Malformed object" message like below: 它以“格式错误的对象”消息结尾,如下所示:

ar cru .libs/libsasldb.a db_ndbm.o allockey.o
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: object: .libs/libsasldb.a(allockey.o) malformed object (unknown load command 1)
ar: internal ranlib command failed
make[2]: *** [libsasldb.a] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Any ideas? 有任何想法吗? Thanks in advance. 提前致谢。

I ran into the same problem after updating iPhone SDK from 7.0 to 7.1. 将iPhone SDK从7.0更新到7.1后,我遇到了同样的问题。 I fixed it by changing ranlib and ar paths, they were pointing to some old version of those applications (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar). 我通过更改ranlib和ar路径来修复它,它们指向的是这些应用程序的某些旧版本(/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib和/ Applications / Xcode .app / Contents / Developer / Platforms / iPhoneOS.platform / Developer / usr / bin / ar)。

I changed the path to: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar 我将路径更改为:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在构建 Unity 项目后修复 Xcode 中的“Undefined symbols for architecture arm64:”错误? - How to fix the “Undefined symbols for architecture arm64:” error in Xcode after building a Unity project? 使用 Objective-C 框架构建 Swift 项目时出现“架构 arm64 的未定义符号”错误 - Getting “Undefined symbol for architecture arm64” error while building Swift project with Objective-C framework xcode5构建ios arm64静态库,构建程序集文件时出错 - xcode5 build ios arm64 static library, error when building the assembly file 使用 Xcode 13 构建项目时出现“编译 swift 源文件 (arm64)”错误 - Error 'compile swift source files (arm64)' when building project with Xcode 13 libxpc.dylib arm64构建错误 - libxpc.dylib arm64 build error 为iPhone的arm64构建libyuv for pjsip - Building libyuv for pjsip for iPhone for arm64 如何为arm64构建zlib - How to build zlib for arm64 Phonegap Build-错误-应用程序不支持强制性的arm64(64位支持)体系结构 - Phonegap Build - Error - app does not support the compulsory arm64 (64-bit support) architecture 架构arm64的未定义符号:无法构建RoboVM / LibGDX项目 - Undefined symbols for architecture arm64: Failed to build RoboVM/LibGDX project 将Unity build集成到现有的xcode项目中时,获取“找不到体系结构arm64的符号” - Getting “symbol(s) not found for architecture arm64” while integrating unity build into an existing xcode project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM