Opened 3 years ago
Closed 3 years ago
#63245 closed defect (fixed)
Unable to upgrade the "nss" port
Reported by: | RobK88 | Owned by: | kencu (Ken) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | lion | Cc: | Schamschula (Marius Schamschula) |
Port: | nss |
Description
I am unable to upgrade the "nss" port on my Mac running Lion. I will attach manin.log
bash-3.2$ sudo port clean nss Password: ---> Cleaning nss bash-3.2$ port outdated The following installed ports are outdated: nss 3.67_0 < 3.68_0 OpenBLAS 0.3.15_5 < 0.3.16_0 py39-scipy 1.6.3_0 < 1.7.0_0 bash-3.2$ sudo port -v upgrade nss ---> Computing dependencies for nss. ---> Fetching distfiles for nss ---> Verifying checksums for nss ---> Checksumming nss-3.68.tar.gz ---> Extracting nss ---> Extracting nss-3.68.tar.gz Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_nss/nss/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/nss/nss-3.68.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - xinstall: mkdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_nss/nss/work/nss-3.68/dist ---> Patching Makefile-MacPorts-Install: s|__MACPORTS_PREFIX__|/opt/local|g ---> Patching Darwin.mk: s|@executable_path|/opt/local/lib/nss|g ---> Patching config.mk: s|@executable_path|/opt/local/lib/nss|g ---> Configuring nss ---> Building nss etc etc /usr/bin/clang -Os -std=c99 -arch x86_64 -o Output.OBJD/Darwin_SINGLE_SHLIB/sha256-x86.o -c -std=c99 -Os -fPIC -Dppc -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK -Wall -Wshadow -Qunused-arguments -Wno-parentheses-equality -Wno-array-bounds -DNSS_NO_GCC48 -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSHLIB_VERSION=\"3\" -DSOFTOKEN_SHLIB_VERSION=\"3\" -DRIJNDAEL_INCLUDE_TABLES -UDEBUG -DNDEBUG -DNSS_NO_INIT_SUPPORT -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -DNSS_USE_64 -DNSS_X86_OR_X64 -DNSS_X64 -DUSE_HW_SHA2 -DMPI_AMD64 -DMP_IS_LITTLE_ENDIAN -DMP_ASSEMBLY_MULTIPLY -DNSS_USE_COMBA -DHAVE_INT128_SUPPORT -DMP_API_COMPATIBLE -I/opt/local/include/nspr -I../../../dist/Output.OBJD/include -I../../../dist/public/nss -I../../../dist/private/nss -Impi -Iecl -Iverified -Iverified/kremlin/include -Iverified/kremlin/kremlib/dist/minimal -Ideprecated -msha -mssse3 -msse4.1 sha256-x86.c sha256-x86.c:98:5: warning: implicit declaration of function '_mm_sha256rnds2_epu32' is invalid in C99 [-Wimplicit-function-declaration] ROUND(0, a, b, c, d) ^ sha256-x86.c:43:14: note: expanded from macro 'ROUND' w1 = _mm_sha256rnds2_epu32(w1, w0, t); \ ^ sha256-x86.c:98:5: error: assigning to '__m128i' from incompatible type 'int' ROUND(0, a, b, c, d) ^~~~~~~~~~~~~~~~~~~~ sha256-x86.c:43:12: note: expanded from macro 'ROUND' w1 = _mm_sha256rnds2_epu32(w1, w0, t); \ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sha256-x86.c:98:5: error: assigning to '__m128i' from incompatible type 'int' ROUND(0, a, b, c, d) ^~~~~~~~~~~~~~~~~~~~ sha256-x86.c:45:12: note: expanded from macro 'ROUND' w0 = _mm_sha256rnds2_epu32(w0, w1, t); \ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sha256-x86.c:98:5: warning: implicit declaration of function '_mm_sha256msg1_epu32' is invalid in C99 [-Wimplicit-function-declaration] ROUND(0, a, b, c, d) ^ sha256-x86.c:47:17: note: expanded from macro 'ROUND' a = _mm_sha256msg1_epu32(a, b); \ ^ sha256-x86.c:98:5: error: assigning to '__m128i' from incompatible type 'int' ROUND(0, a, b, c, d) ^~~~~~~~~~~~~~~~~~~~ sha256-x86.c:47:15: note: expanded from macro 'ROUND' a = _mm_sha256msg1_epu32(a, b); \ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ sha256-x86.c:98:5: warning: implicit declaration of function '_mm_sha256msg2_epu32' is invalid in C99 [-Wimplicit-function-declaration] ROUND(0, a, b, c, d) ^ sha256-x86.c:49:17: note: expanded from macro 'ROUND' a = _mm_sha256msg2_epu32(a, d); \ ^ sha256-x86.c:98:5: error: assigning to '__m128i' from incompatible type 'int' ROUND(0, a, b, c, d) ^~~~~~~~~~~~~~~~~~~~ sha256-x86.c:49:15: note: expanded from macro 'ROUND' a = _mm_sha256msg2_epu32(a, d); \ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ sha256-x86.c:99:5: error: assigning to '__m128i' from incompatible type 'int' ROUND(1, b, c, d, a) ^~~~~~~~~~~~~~~~~~~~ sha256-x86.c:43:12: note: expanded from macro 'ROUND' w1 = _mm_sha256rnds2_epu32(w1, w0, t); \ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sha256-x86.c:99:5: error: assigning to '__m128i' from incompatible type 'int' ROUND(1, b, c, d, a) ^~~~~~~~~~~~~~~~~~~~ sha256-x86.c:45:12: note: expanded from macro 'ROUND' w0 = _mm_sha256rnds2_epu32(w0, w1, t); \ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sha256-x86.c:99:5: error: assigning to '__m128i' from incompatible type 'int' ROUND(1, b, c, d, a) ^~~~~~~~~~~~~~~~~~~~ sha256-x86.c:47:15: note: expanded from macro 'ROUND' a = _mm_sha256msg1_epu32(a, b); \ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ sha256-x86.c:99:5: error: assigning to '__m128i' from incompatible type 'int' ROUND(1, b, c, d, a) ^~~~~~~~~~~~~~~~~~~~ sha256-x86.c:49:15: note: expanded from macro 'ROUND' a = _mm_sha256msg2_epu32(a, d); \ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ sha256-x86.c:100:5: error: assigning to '__m128i' from incompatible type 'int' ROUND(2, c, d, a, b) ^~~~~~~~~~~~~~~~~~~~ sha256-x86.c:43:12: note: expanded from macro 'ROUND' w1 = _mm_sha256rnds2_epu32(w1, w0, t); \ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sha256-x86.c:100:5: error: assigning to '__m128i' from incompatible type 'int' ROUND(2, c, d, a, b) ^~~~~~~~~~~~~~~~~~~~ sha256-x86.c:45:12: note: expanded from macro 'ROUND' w0 = _mm_sha256rnds2_epu32(w0, w1, t); \ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sha256-x86.c:100:5: error: assigning to '__m128i' from incompatible type 'int' ROUND(2, c, d, a, b) ^~~~~~~~~~~~~~~~~~~~ sha256-x86.c:47:15: note: expanded from macro 'ROUND' a = _mm_sha256msg1_epu32(a, b); \ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ sha256-x86.c:100:5: error: assigning to '__m128i' from incompatible type 'int' ROUND(2, c, d, a, b) ^~~~~~~~~~~~~~~~~~~~ sha256-x86.c:49:15: note: expanded from macro 'ROUND' a = _mm_sha256msg2_epu32(a, d); \ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ sha256-x86.c:101:5: error: assigning to '__m128i' from incompatible type 'int' ROUND(3, d, a, b, c) ^~~~~~~~~~~~~~~~~~~~ sha256-x86.c:43:12: note: expanded from macro 'ROUND' w1 = _mm_sha256rnds2_epu32(w1, w0, t); \ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sha256-x86.c:101:5: error: assigning to '__m128i' from incompatible type 'int' ROUND(3, d, a, b, c) ^~~~~~~~~~~~~~~~~~~~ sha256-x86.c:45:12: note: expanded from macro 'ROUND' w0 = _mm_sha256rnds2_epu32(w0, w1, t); \ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sha256-x86.c:101:5: error: assigning to '__m128i' from incompatible type 'int' ROUND(3, d, a, b, c) ^~~~~~~~~~~~~~~~~~~~ sha256-x86.c:47:15: note: expanded from macro 'ROUND' a = _mm_sha256msg1_epu32(a, b); \ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ sha256-x86.c:101:5: error: assigning to '__m128i' from incompatible type 'int' ROUND(3, d, a, b, c) ^~~~~~~~~~~~~~~~~~~~ sha256-x86.c:49:15: note: expanded from macro 'ROUND' a = _mm_sha256msg2_epu32(a, d); \ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ sha256-x86.c:102:5: error: assigning to '__m128i' from incompatible type 'int' ROUND(4, a, b, c, d) ^~~~~~~~~~~~~~~~~~~~ sha256-x86.c:43:12: note: expanded from macro 'ROUND' w1 = _mm_sha256rnds2_epu32(w1, w0, t); \ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sha256-x86.c:102:5: error: assigning to '__m128i' from incompatible type 'int' ROUND(4, a, b, c, d) ^~~~~~~~~~~~~~~~~~~~ sha256-x86.c:45:12: note: expanded from macro 'ROUND' w0 = _mm_sha256rnds2_epu32(w0, w1, t); \ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sha256-x86.c:102:5: error: assigning to '__m128i' from incompatible type 'int' ROUND(4, a, b, c, d) ^~~~~~~~~~~~~~~~~~~~ sha256-x86.c:47:15: note: expanded from macro 'ROUND' a = _mm_sha256msg1_epu32(a, b); \ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ fatal error: too many errors emitted, stopping now [-ferror-limit=] 3 warnings and 20 errors generated. make[4]: *** [Output.OBJD/Darwin_SINGLE_SHLIB/sha256-x86.o] Error 1 make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_nss/nss/work/nss-3.68/nss/lib/freebl' make[3]: *** [freebl_FREEBL_BUILD_SINGLE_SHLIB] Error 2 make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_nss/nss/work/nss-3.68/nss/lib/freebl' make[2]: *** [freebl] Error 2 make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_nss/nss/work/nss-3.68/nss/lib' make[1]: *** [lib] Error 2 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_nss/nss/work/nss-3.68/nss' make: *** [all] Error 2 make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_nss/nss/work/nss-3.68/nss' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_nss/nss/work/nss-3.68/nss" && /usr/bin/make -j1 -w all NSS_DISABLE_GTESTS=1 NSS_ENABLE_WERROR=0 USE_64=1 CPU_ARCH=x86_64 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" Exit code: 2 Error: Failed to build nss: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_nss/nss/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. bash-3.2$
Attachments (1)
Change History (6)
Changed 3 years ago by RobK88
comment:1 Changed 3 years ago by kencu (Ken)
The /usr/bin/clang on Lion is too old to understand the modern SIMD instruction set that nss wants to use.
The clang version in Lion is 420-something I recall, so if we blacklist versions of that vintage and older we should be better off.
you can test if this would work by forcing a newer compiler (the one that would next be used) like this:
sudo port -v install nss configure.compiler=macports-clang-9.0
and please report back success or failure with that.
comment:2 Changed 3 years ago by RobK88
Thanks Ken.
Using a different compiler worked. The upgrade of nss to the latest version was successful using clang-9.0! I should have thought of trying another compiler.
P.S. I also filed another big last week relating to the "py39-scipy" port. (see https://trac.macports.org/ticket/63233). I was also unable to upgrade this port on Lion. Looks like another compiler issue on Lion. I just tried using "sudo port -v install py39-scipy configure.compiler=macports-clang-9.0". But unfortunately, it did not do the trick. Maybe I need to try another compiler.
comment:3 Changed 3 years ago by jmroot (Joshua Root)
Cc: | Schamschula added |
---|
comment:4 Changed 3 years ago by kencu (Ken)
it appears that only 10.7 failed, so only that clang looks like it needs blacklisting
comment:5 Changed 3 years ago by kencu (Ken)
Owner: | set to kencu |
---|---|
Resolution: | → fixed |
Status: | new → closed |
main.log