jhamby / gentoo-powermac

Gentoo repo overlay for my PowerMac bug fixes and features. Includes patches to fix Node.js for older PowerPC CPUs. I'm working on big-endian bug fixes for Firefox and others.
1 stars 1 forks source link

dev-libs/nss: default build uses unavailable VSX functions #5

Closed jhamby closed 4 years ago

jhamby commented 4 years ago

The current version of "nss", used by Firefox and many others, generates some assembly code that requires POWER8 or newer CPUs (version 2.07 of Power ISA). The failure is an illegal instruction crash (SIGILL) when attempting to decode AES.

I've pushed a patched ebuild for this issue to my repo that adds "export NSS_DISABLE_ALTIVEC=1" if "cpu_flags_ppc_vsx2" is not set. Gentoo users on POWER8 or newer should be setting CPU_FLAGS_PPC to include "altivec", "vsx", and "vsx2" ("vsx3" is for POWER9).

More info here: https://gentoo.org/support/news-items/2019-09-11-cpu_flags_ppc-introduction.html

jhamby commented 4 years ago

I'm going to close this issue since I have a fix, but I still need to push this and my other fixes upstream to Gentoo. In this case, I don't need to submit a patch upstream.