I'm trying to compile dev-libs/nss-3.63.1 on a ppc 32bit machine (Apple iBook G4, mcpu=7450). Version 3.58-r2 compiled and installed fine, but version 3.63.1 (keyworded as stable) fails during build: /var/tmp/portage/dev-libs/nss-3.63.1/work/nss-3.63.1/nss-.ppc/cmd/shlibsign/./sign.sh: line 13: 5269 Illegal instruction "${2}"/shlibsign -v -i "${5}" Kernel log contains: [114411.042841] shlibsign[9186]: illegal instruction (4) at b55e1b44 nip b55e1b44 lr b55e1b34 code 1 in libfreeblpriv3.so[b55cf000+af000] [114411.042876] shlibsign[9186]: code: 93c10018 7fc802a6 3fde000b 93e1001c 7c7f1b78 3bde4e40 90010024 48066451 [114411.042881] shlibsign[9186]: code: 813e8000 387f0100 391e8008 395e8004 <7c0046ee> 391f0108 7c804eee 38890004 [123887.814802] shlibsign[16553]: illegal instruction (4) at b5983b44 nip b5983b44 lr b5983b34 code 1 in libfreeblpriv3.so[b5971000+af000] [123887.814839] shlibsign[16553]: code: 93c10018 7fc802a6 3fde000b 93e1001c 7c7f1b78 3bde4e40 90010024 48066451 [123887.814845] shlibsign[16553]: code: 813e8000 387f0100 391e8008 395e8004 <7c0046ee> 391f0108 7c804eee 38890004 Reproducible: Always
Created attachment 706737 [details] build.log
Created attachment 706740 [details] emerge --info
(In reply to jannis from comment #0) > I'm trying to compile dev-libs/nss-3.63.1 on a ppc 32bit machine (Apple > iBook G4, mcpu=7450). Version 3.58-r2 compiled and installed fine, but > version 3.63.1 (keyworded as stable) fails during build: You could try 3.64. The changelog states some PPC-specific fixes: Bugs fixed in NSS 3.64 Bug 1705286 - Properly detect mips64. Bug 1687164 - Introduce NSS_DISABLE_CRYPTO_VSX and disable_crypto_vsx. Bug 1698320 - replace __builtin_cpu_supports("vsx") with ppc_crypto_support() for clang. Bug 1613235 - Add POWER ChaCha20 stream cipher vector acceleration.
I have the same issue, but when call directly this code: /var/tmp/portage/dev-libs/nss-3.66/work/nss-3.66/nss-.ppc/cmd/shlibsign/Linux5.12_ppc_powerpc-unknown-linux-gnu-gcc_glibc_PTH_OPT.OBJ/shlibsign -v -i /var/tmp/portage/dev-libs/nss-3.66/work/nss-3.66/nss-.ppc/cmd/shlibsign/../../dist/Linux5.12_ppc_powerpc-unknown-linux-gnu-gcc_glibc_PTH_OPT.OBJ/lib/libsoftokn3.so moduleSpec configdir='' certPrefix='' keyPrefix='' secmod='' flags=noCertDB, noModDB C_Initialize failed: 0x00000030, CKR_DEVICE_ERROR NSPR error code: -5977: Failure to load dynamic library Initiailzing softoken failed: 0x00000030, CKR_DEVICE_ERROR NSPR error code: -5977: Failure to load dynamic library
cpu_flags_ppc_{altivec,vsx} USE flags should be added to this package. if ! use cpu_flags_ppc_altivec; then export NSS_DISABLE_ALTIVEC=1 fi if ! use cpu_flags_ppc_vsx; then export NSS_DISABLE_CRYPTO_VSX=1 fi
*** This bug has been marked as a duplicate of bug 764191 ***