Error building openssl for macOS
When building openssl for macOS with the current master branch, I get the following error:
x86_64-apple-darwin10-ar r ../libcrypto.a cryptlib.o mem.o mem_dbg.o cversion.o ex_data.o cpt_err.o ebcdic.o uid.o o_time.o o_str.o o_dir.o o_fips.o o_init.o fips_ers.o x86_64cpuid.o
x86_64-apple-darwin10-ar: creating archive ../libcrypto.a
/var/tmp/dist/macosx-toolchain/cctools/bin/x86_64-apple-darwin10-ranlib: object: ../libcrypto.a(mem_dbg.o) malformed object (unknown load command 2)
x86_64-apple-darwin10-ar: internal ranlib command failed
make[1]: *** [../libcrypto.a] Error 1
Makefile:104: recipe for target '../libcrypto.a' failed
make[1]: Leaving directory '/var/tmp/build/openssl-1.0.2o/crypto'
make: *** [build_crypto] Error 1
Makefile:288: recipe for target 'build_crypto' failed
I think it might be related to the llvm update that was done as part of legacy/trac#26073 (moved).