Closed Bug 1660729 Opened 4 years ago Closed 4 years ago

CPU_ARCH is not x86_64, disabling -mavx2

Categories

(NSS :: Build, defect)

3.56
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1659727

People

(Reporter: mozilla-bugzilla, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15

Steps to reproduce:

Build nss on macOS on an x86_64 Mac

Actual results:

CPU_ARCH is not x86_64, disabling -mavx2

Expected results:

Since the CPU is x86_64, avx2 should have been enabled.

The problem seems to be that coreconf/config.mk first includes coreconf/arch.mk. arch.mk is where the "CPU_ARCH is not x86_64, disabling -mavx2" message is printed. It's not until later in config.mk that it includes coreconf/$(OS_TARGET).mk, specifically coreconf/Darwin.mk in the case of macOS. Darwin.mk is where CPU_ARCH gets defined.

This problem was originally reported to MacPorts: https://trac.macports.org/ticket/61054

Ben, can you please triage?

Flags: needinfo?(bbeurdouche)

This was resolved in bug 1659727, which is fixed in NSS 3.57+.

Thanks for the report!

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Flags: needinfo?(bbeurdouche)
Resolution: --- → DUPLICATE
Target Milestone: --- → 3.57
You need to log in before you can comment on or make changes to this bug.