Ranlib error for arm64: malformed object (unknown load command 1)

Originator:chrisballinger
Number:rdar://16358490 Date Originated:
Status: Resolved:
Product: Product Version:
Classification: Reproducible:
 
Chris Ballinger18-Mar-2014 01:56 PM

Summary:
Same issue on LLVM tracker: http://llvm.org/bugs/show_bug.cgi?id=19179

When building OpenSSL 1.0.1f with the iOS 7.1 SDK there are errors during the linking step on arm64.

installing libcrypto.a
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//ranlib: object: /iPhoneOS7.1-arm64.sdk/lib/libcrypto.a.new(cryptlib.o) malformed object (unknown load command 1)
installing libssl.a
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin//ranlib: object: /iPhoneOS7.1-arm64.sdk/lib/libssl.a.new(s2_meth.o) malformed object (unknown load command 1)

Steps to Reproduce:
Try to compile the library from the script. It fails to link for arm64 targets.

Expected Results:
Compile and link successfully

Actual Results:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: object: ../libcrypto.a(cryptlib.o) malformed object (unknown load command 1)

Version:
Xcode 5.1 w/ iOS 7.1 SDK

Notes:


Configuration:
Xcode 5.1 w/ iOS 7.1 SDK

Attachments:
'build-libssl-bug.sh' was successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!