Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#63849 closed defect (fixed)

openssl3 @3.0.0_2+universal fails build on 10.13.6

Reported by: JohnFHall (John Hall) Owned by: larryv (Lawrence Velázquez)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc: neverpanic (Clemens Lang)
Port: openssl3

Description

:info:build ${LDCMD:-/opt/local/bin/clang-mp-9.0} -arch i386 -pipe -Os -arch i386 -Wl,-search_paths_first -L/opt/local/lib -Wl,-headerpad_max_install_names -arch i386 -L/opt/local/lib \
:info:build 		-o test/algorithmid_test \
:info:build 		test/algorithmid_test-bin-algorithmid_test.o \
:info:build 		test/libtestutil.a libcrypto.a -lz 
:info:build ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
:info:build rm -f test/asn1_dsa_internal_test
:info:build ${LDCMD:-/opt/local/bin/clang-mp-9.0} -arch i386 -pipe -Os -arch i386 -Wl,-search_paths_first -L/opt/local/lib -Wl,-headerpad_max_install_names -arch i386 -L/opt/local/lib \
:info:build 		-o test/asn1_dsa_internal_test \
:info:build 		test/asn1_dsa_internal_test-bin-asn1_dsa_internal_test.o \
:info:build 		test/libtestutil.a libcrypto.a -lz 
:info:build rm -f test/asn1_internal_test
:info:build ${LDCMD:-/opt/local/bin/clang-mp-9.0} -arch i386 -pipe -Os -arch i386 -Wl,-search_paths_first -L/opt/local/lib -Wl,-headerpad_max_install_names -arch i386 -L/opt/local/lib \
:info:build 		-o test/asn1_internal_test \
:info:build 		test/asn1_internal_test-bin-asn1_internal_test.o \
:info:build 		test/libtestutil.a libcrypto.a -lz 
:info:build Undefined symbols for architecture i386:
:info:build   "___atomic_is_lock_free", referenced from:
:info:build       _CRYPTO_atomic_or in libcrypto.a(libcrypto-lib-threads_pthread.o)
:info:build       _CRYPTO_atomic_load in libcrypto.a(libcrypto-lib-threads_pthread.o)
:info:build Undefined symbols for architecture i386:
:info:build   "___atomic_is_lock_free", referenced from:
:info:build       _CRYPTO_atomic_or in libcrypto.a(libcrypto-lib-threads_pthread.o)
:info:build       _CRYPTO_atomic_load in libcrypto.a(libcrypto-lib-threads_pthread.o)
:info:build ld: symbol(s) not found for architecture i386
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[1]: *** [test/algorithmid_test] Error 1
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build ld: symbol(s) not found for architecture i386
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[1]: *** [fuzz/cmp-test] Error 1
:info:build ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
:info:build ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
:info:build Undefined symbols for architecture i386:
:info:build   "___atomic_is_lock_free", referenced from:
:info:build       _CRYPTO_atomic_or in libcrypto.a(libcrypto-lib-threads_pthread.o)
:info:build       _CRYPTO_atomic_load in libcrypto.a(libcrypto-lib-threads_pthread.o)
:info:build ld: symbol(s) not found for architecture i386
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[1]: *** [test/asn1_dsa_internal_test] Error 1
:info:build Undefined symbols for architecture i386:
:info:build   "___atomic_is_lock_free", referenced from:
:info:build       _CRYPTO_atomic_or in libcrypto.a(libcrypto-lib-threads_pthread.o)
:info:build       _CRYPTO_atomic_load in libcrypto.a(libcrypto-lib-threads_pthread.o)
:info:build ld: symbol(s) not found for architecture i386
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[1]: *** [test/asn1_internal_test] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_openssl3/openssl3/work/openssl-3.0.0-i386'
:info:build make: *** [build_sw] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_openssl3/openssl3/work/openssl-3.0.0-i386'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_openssl3/openssl3/work/openssl-3.0.0-i386" && /usr/bin/make -j16 -w all 
:info:build Exit code: 2
:error:build Failed to build openssl3: command execution failed
:debug:build Error code: NONE
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_openssl3/openssl3/main.log for details.

Attachments (1)

main.log.gz (177.0 KB) - added by JohnFHall (John Hall) 3 years ago.
main.log

Download all attachments as: .zip

Change History (7)

Changed 3 years ago by JohnFHall (John Hall)

Attachment: main.log.gz added

main.log

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: neverpanic added
Owner: set to larryv
Status: newassigned
Summary: openssl3-3.0.0_2+universal fails build on 10.13.6openssl3 @3.0.0_2+universal fails build on 10.13.6

comment:2 Changed 3 years ago by TallTed (Ted Thibodeau Jr)

Same failure with openssl3-3.0.0_3+universal.darwin_15.i386-x86_64.tbz2 on El Capitan 10.11.6

Last edited 3 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 3 years ago by TallTed (Ted Thibodeau Jr)

Persists with openssl3-3.0.0_4+legacy+universal.darwin_15.i386-x86_64.tbz2

$ tail -25 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_openssl3/openssl3/main.log
:info:build Undefined symbols for architecture i386:
:info:build   "___atomic_is_lock_free", referenced from:
:info:build       _CRYPTO_atomic_or in libcrypto.a(libcrypto-lib-threads_pthread.o)
:info:build       _CRYPTO_atomic_load in libcrypto.a(libcrypto-lib-threads_pthread.o)
:info:build ld: symbol(s) not found for architecture i386
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[1]: *** [test/algorithmid_test] Error 1
:info:build Undefined symbols for architecture i386:
:info:build   "___atomic_is_lock_free", referenced from:
:info:build       _CRYPTO_atomic_or in libcrypto.a(libcrypto-lib-threads_pthread.o)
:info:build       _CRYPTO_atomic_load in libcrypto.a(libcrypto-lib-threads_pthread.o)
:info:build ld: symbol(s) not found for architecture i386
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[1]: *** [test/asn1_dsa_internal_test] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_openssl3/openssl3/work/openssl-3.0.0-i386'
:info:build make: *** [build_sw] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_openssl3/openssl3/work/openssl-3.0.0-i386'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_openssl3/openssl3/work/openssl-3.0.0-i386" && /usr/bin/make -j8 -w all 
:info:build Exit code: 2
:error:build Failed to build openssl3: command execution failed
:debug:build Error code: NONE
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_openssl3/openssl3/main.log for details.
$

comment:4 Changed 3 years ago by ilegusqui

Same failure with openssl3-3.0.0_4+legacy+universal.darwin_17.i386-x86_64.tbz2 on High Sierra 10.13.6, with same linking errors.

comment:5 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

This is reported upstream: https://github.com/openssl/openssl/issues/16551

This allegedly fixed it: https://github.com/openssl/openssl/pull/16584

Which was proposed to MacPorts here and merged: https://github.com/macports/macports-ports/pull/12848

So this should be solved after sudo port selfupdate.

comment:6 Changed 3 years ago by TallTed (Ted Thibodeau Jr)

Fix confirmed.

Note: See TracTickets for help on using tickets.