Opened 20 months ago

Closed 20 months ago

Last modified 20 months ago

#67099 closed defect (fixed)

openssl3 @3.1.0 fails to build on 10.10 through 10.13

Reported by: dyne2meter Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: yosemite elcapitan sierra highsierra mojave haspatch Cc: larryv (Lawrence Velázquez), dotnetCarpenter (Jon Ege Ronnenberg), rmottola (Riccardo), thetrial (alabay)
Port: openssl3

Description

main.log enclosed

Attachments (2)

main.log.gz (75.3 KB) - added by dyne2meter 20 months ago.
main.log
main.log.zip (88.7 KB) - added by dotnetCarpenter (Jon Ege Ronnenberg) 20 months ago.
main.log on macOS 10.13

Download all attachments as: .zip

Change History (18)

Changed 20 months ago by dyne2meter

Attachment: main.log.gz added

main.log

comment:1 Changed 20 months ago by jmroot (Joshua Root)

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

comment:2 Changed 20 months ago by jmroot (Joshua Root)

Summary: openssl3 fails to build 10.13openssl3 @3.1.0 fails to build on 10.10 through 10.13

comment:3 Changed 20 months ago by jmroot (Joshua Root)

crypto/bn/rsaz-3k-avx512.s:22:2: error: instruction requires: AVX-512 ISA AVX-512 VLX ISA
 vpxord %ymm0,%ymm0,%ymm0
 ^

comment:4 Changed 20 months ago by neverpanic (Clemens Lang)

Status: assignedaccepted

Great, more patching required to keep that instruction off… I think we eventually need to work on an upstream solution for this, as it keeps happening.

comment:5 Changed 20 months ago by dotnetCarpenter (Jon Ege Ronnenberg)

It seems that openssl3 is required by most (all?) macports packages and I can not install it.

macOS: 10.13

xcode: 10.1.0.0.1.1539992718

The error log contains hundreds of lines with the same error message:

:info:build crypto/bn/rsaz-3k-avx512.s:22:2: error: instruction requires: AVX-512 ISA AVX-512 VL ISA
:info:build  vpxord %ymm0,%ymm0,%ymm0
:info:build  ^
:info:build crypto/bn/rsaz-3k-avx512.s:23:2: error: instruction requires: AVX-512 ISA AVX-512 VL ISA
:info:build  vmovdqa64 %ymm0,%ymm3
:info:build  ^
:info:build crypto/bn/rsaz-3k-avx512.s:24:2: error: instruction requires: AVX-512 ISA AVX-512 VL ISA
:info:build  vmovdqa64 %ymm0,%ymm4
... continues for almost every line in crypto/bn/rsaz-3k-avx512.s

Log: opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3/main.log

I used to have fink but I have deleted all fink directories and removed it from my .zprofile.

Please advice :) I'm not sure where to report this "upstream" to openssl3.

Changed 20 months ago by dotnetCarpenter (Jon Ege Ronnenberg)

Attachment: main.log.zip added

main.log on macOS 10.13

comment:6 Changed 20 months ago by dotnetCarpenter (Jon Ege Ronnenberg)

Cc: dotnetCarpenter added

comment:7 Changed 20 months ago by reneeotten (Renee Otten)

Cc: rmottola added

has duplicate 67100

comment:8 Changed 20 months ago by thetrial (alabay)

Cc: thetrial added

comment:9 Changed 20 months ago by thetrial (alabay)

Regarding that duplicate: I cannot install gcc12, due that again wants to upgrade openssl3 … that is stuck. A catch-22. So is there a way out? I am on Sierra.

Last edited 20 months ago by thetrial (alabay) (previous) (diff)

comment:10 Changed 20 months ago by LLatULiege

Same issue, errors concerning AVX512 instructions.

Trying "install openssl3 +legacy" fails.

Note that the main.log generated in my configuration includes :debug:configure MACPORTS_LEGACY_SUPPORT_DISABLED='1' at line #105, while I chose "openssl3 +legacy" for my install.

Last edited 20 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:11 Changed 20 months ago by rmottola (Riccardo)

I tried on 10.7 MacBook Pro which has a core2 processor

  • system clang (4.2) works
  • MP clang 11 works
  • MP clang 13 works
  • MP gcc 12

I tried on 10.13 MacBook Pro with i7 processor

  • system clang (10) fails
  • MP clang 6 works
  • MP clang 15 works
  • MP gcc 12 works

I think there could be an issue with system detection, that is AVX is not enabled on core2 and/ore due to old system compiler. Or the apple clang 10 tries to be smarter on i7, I don't know.

Since all macports compiler work.... it is a chicken-and-egg problem!

comment:12 in reply to:  10 Changed 20 months ago by ryandesign (Ryan Carsten Schmidt)

Replying to LLatULiege:

Note that the main.log generated in my configuration includes :debug:configure MACPORTS_LEGACY_SUPPORT_DISABLED='1' at line #105, while I chose "openssl3 +legacy" for my install.

MacPorts legacy support is a compatibility library created by MacPorts developers to help software build on older macOS versions. Ports that need it can include it and indicate on which macOS versions it is needed. openssl3 includes it and indicates that it is needed on Darwin 8 (Mac OS X 10.4) only.

It has nothing to do with the openssl3 port's +legacy variant which, according to its description, is used to "enable legacy providers by default".

Last edited 20 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:13 Changed 20 months ago by ryandesign (Ryan Carsten Schmidt)

comment:14 Changed 20 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: yosemite elcapitan sierra highsierra mojave haspatch added

comment:15 Changed 20 months ago by thetrial (alabay)

Well, sudo port upgrade openssl3 configure.compiler=macports-clang-15 ran through, indeed.

comment:16 Changed 20 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In 8673a1cb18631d68cf96f2a42657ed6a875c1d54/macports-ports (master):

openssl3: Fix build with Apple clang 7.0.0-10.0.0

Closes: #67099

Note: See TracTickets for help on using tickets.