Opened 2 years ago

Closed 2 years ago

#61054 closed defect (fixed)

nss @3.56: coreconf/arch.mk:151: CPU_ARCH is not x86_64, disabling -mavx2

Reported by: ballapete (Peter "Pete" Dyballa) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.3
Keywords: Cc:
Port: nss

Description

--->  Building nss
DEBUG: Executing org.macports.build (nss)
DEBUG: port disallows a parallel build
DEBUG: Environment:
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nss/nss/work/.CC_PRINT_OPTIONS'
CPATH='/opt/local/include'
DEVELOPER_DIR='/Library/Developer/CommandLineTools'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.15'
SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk'
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nss/nss/work/nss-3.56/nss" && /usr/bin/make -w all NSS_DISABLE_GTESTS=1 NSS_ENABLE_WERROR=0 USE_64=1 CC="/usr/bin/clang -Os -std=c99 -arch x86_64" CCC="/usr/bin/clang\
++ -Os -stdlib=libc++ -arch x86_64" NSPR_INCLUDE_DIR=/opt/local/include/nspr NSPR_LIB_DIR=/opt/local/lib/nspr NSS_USE_SYSTEM_SQLITE=1 USE_SYSTEM_ZLIB=1 BUILD_OPT=1 OPTIMIZER="-Os" OBJDIR_NAME="Output.OBJD" MACOS_SDK_DIR=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
DEBUG: system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nss/nss/work/nss-3.56/nss" && /usr/bin/make -w all NSS_DISABLE_GTESTS=1 NSS_ENABLE_WERROR=0 USE_64=1 CC="/usr/bin/clang -Os -std=c99 -arch x86_64" CCC="/usr/bin/c\
lang++ -Os -stdlib=libc++ -arch x86_64" NSPR_INCLUDE_DIR=/opt/local/include/nspr NSPR_LIB_DIR=/opt/local/lib/nspr NSS_USE_SYSTEM_SQLITE=1 USE_SYSTEM_ZLIB=1 BUILD_OPT=1 OPTIMIZER="-Os" OBJDIR_NAME="Output.OBJD" MACOS_SDK_DIR=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nss/nss/work/nss-3.56/nss'
coreconf/arch.mk:151: CPU_ARCH is not x86_64, disabling -mavx2
# no real way to encode these in any sensible way
/Library/Developer/CommandLineTools/usr/bin/make -C coreconf/nsinstall program
make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nss/nss/work/nss-3.56/nss/coreconf/nsinstall'

Saw this for the first time today. Is it because /usr/bin/arch is reporting i386? uname -m delivers the correct value of x86_64 but is not used on macOS according to coreconf/arch.mk:13. Is nss configured correctly? Clang uses consequently -DNSS_DISABLE_AVX2

Attachments (1)

main.log (609.0 KB) - added by ballapete (Peter "Pete" Dyballa) 2 years ago.
Main.log from Catalina, 10.15.6 (19G73)

Download all attachments as: .zip

Change History (3)

Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from Catalina, 10.15.6 (19G73)

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

Keywords: catalina removed
Summary: nss @3.56 on macOS Catalina, 10.15.6 (19G73), finds it is being configured on non-x86_64 hardwarenss @3.56: coreconf/arch.mk:151: CPU_ARCH is not x86_64, disabling -mavx2
coreconf/arch.mk:151: CPU_ARCH is not x86_64, disabling -mavx2

I see the same on High Sierra. I've filed an upstream bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=1660729

comment:2 Changed 2 years ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.