CPU_ARCH is not x86_64, disabling -mavx2
Categories
(NSS :: Build, defect)
Tracking
(Not tracked)
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
Comment 2•4 years ago
|
||
This was resolved in bug 1659727, which is fixed in NSS 3.57+.
Thanks for the report!
Description
•