Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 789114 - dev-libs/nss-3.63.1 on ppc: shlibsign: Illegal instruction
Summary: dev-libs/nss-3.63.1 on ppc: shlibsign: Illegal instruction
Status: RESOLVED DUPLICATE of bug 764191
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal with 1 vote (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-09 19:29 UTC by jannis
Modified: 2021-09-02 14:22 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,659.18 KB, text/plain)
2021-05-09 19:31 UTC, jannis
Details
emerge --info (einfo,6.46 KB, text/plain)
2021-05-09 19:32 UTC, jannis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jannis 2021-05-09 19:29:24 UTC
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
Comment 1 jannis 2021-05-09 19:31:50 UTC
Created attachment 706737 [details]
build.log
Comment 2 jannis 2021-05-09 19:32:12 UTC
Created attachment 706740 [details]
emerge --info
Comment 3 ernsteiswuerfel archtester 2021-05-23 22:35:08 UTC
(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.
Comment 4 Pavel Subach 2021-06-06 07:30:52 UTC
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
Comment 5 Arfrever Frehtes Taifersar Arahesis 2021-09-02 13:44:29 UTC
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
Comment 6 ernsteiswuerfel archtester 2021-09-02 14:22:50 UTC

*** This bug has been marked as a duplicate of bug 764191 ***