Opened 4 years ago

Closed 23 months ago

#61766 closed defect (fixed)

nss @3.59: "Compiler option is invalid"

Reported by: MaddTheSane (C.W. Betts) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: arm64 Cc:
Port: nss

Description

nss fails to build on Apple Silicon:

:info:build aes-armv8.c:14:2: error: "Compiler option is invalid"

It looks like whatever build settings that the nss project sets for arm64, specifically -march=armv8-a, disables the __ARM_FEATURE_CRYPTO macro, which then causes compilation to fail.

And yes, Clang by itself does define the macro.

Attachments (1)

main.log (423.1 KB) - added by MaddTheSane (C.W. Betts) 4 years ago.
Build log

Download all attachments as: .zip

Change History (2)

Changed 4 years ago by MaddTheSane (C.W. Betts)

Attachment: main.log added

Build log

comment:1 Changed 23 months ago by kencu (Ken)

Resolution: fixed
Status: newclosed

nss builds on Apple Silicon now, including universal:

% port -v installed nss
The following ports are currently installed:
  nss @3.86_0 requested_variants='' platform='darwin 22' archs='arm64' date='2022-12-29T12:37:20-0800'
  nss @3.86_0+universal (active) requested_variants='+universal' platform='darwin 22' archs='arm64 x86_64' date='2022-12-30T13:39:51-0800'
Note: See TracTickets for help on using tickets.