Opened 8 days ago

Closed 6 days ago

#71201 closed defect (fixed)

openssl3 @3.4.0: /usr/bin/ranlib: object: apps/libapps.a(libapps-lib-app_params.o) malformed object on macOS 10.6

Reported by: aeiouaeiouaeiouaeiouaeiouaeiou Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version:
Keywords: snowleopard Cc: larryv (Lawrence Velázquez), catap (Kirill A. Korinsky)
Port: openssl3 clang-11-bootstrap

Description

Fresh OpenSSL now compiles successfully on older systems with the clang-11-bootstrap compiler (the new code seems to include the use of intrinsics, whether we enable ASM features or not), but on Snow Leopard it fails at the final linking stage:

ar qc apps/libapps.a apps/lib/libapps-lib-app_libctx.o apps/lib/libapps-lib-app_params.o apps/lib/libapps-lib-app_provider.o apps/lib/libapps-lib-app_rand.o apps/lib/libapps-lib-app_x509.o apps/lib/libapps-lib-apps.o apps/lib/libapps-lib-apps_opt_printf.o apps/lib/libapps-lib-apps_ui.o apps/lib/libapps-lib-columns.o apps/lib/libapps-lib-engine.o apps/lib/libapps-lib-engine_loader.o apps/lib/libapps-lib-fmt.o apps/lib/libapps-lib-http_server.o apps/lib/libapps-lib-log.o apps/lib/libapps-lib-names.o apps/lib/libapps-lib-opt.o apps/lib/libapps-lib-s_cb.o apps/lib/libapps-lib-s_socket.o apps/lib/libapps-lib-tlssrp_depr.o
/opt/local/libexec/clang-11-bootstrap/bin/clang -fPIC -arch x86_64 -pipe -Os -arch x86_64 -DL_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/opt/local/libexec/openssl3/etc/openssl\"" -DENGINESDIR="\"/opt/local/libexec/openssl3/lib/engines-3\"" -DMODULESDIR="\"/opt/local/libexec/openssl3/lib/ossl-modules\"" -D_REENTRANT -DOPENSSL_BUILDING_OPENSSL -DZLIB -DNDEBUG -I/opt/local/include -c -o crypto/aes/libcrypto-lib-aes-x86_64.o crypto/aes/aes-x86_64.s
/usr/bin/ranlib: object: apps/libapps.a(libapps-lib-app_params.o) malformed object (unknown load command 2)
ar: internal ranlib command failed
make[1]: *** [apps/libapps.a] Error 1
make[1]: *** Waiting for unfinished jobs....

This does not happen locally on my machine and is most likely due to the fact that I have “paid” Xcode version 4.2 with a newer version of ranlib as opposed to 3.2.6.

Change History (6)

comment:1 Changed 8 days ago by jmroot (Joshua Root)

Cc: larryv added
Owner: set to neverpanic
Status: newassigned

comment:2 Changed 8 days ago by jmroot (Joshua Root)

The normal clang-11 port has a runtime dependency on cctools. Likely clang-11-bootstrap needs the same?

comment:3 Changed 8 days ago by jmroot (Joshua Root)

Cc: catap added
Port: clang-11-bootstrap added

comment:4 Changed 8 days ago by jmroot (Joshua Root)

In d8401b989decbcddbe01c0f4830fc95e363c24e3/macports-ports (master):

openssl3: add cctools dep on older systems

See: #71201

comment:5 Changed 8 days ago by aeiouaeiouaeiouaeiouaeiouaeiou

Thanks, it seems to have worked.

comment:6 Changed 6 days ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.