Summary: | dev-libs/nettle-3.9.1[asm] - test failures (chacha, chacha-poly1305) and runtime failures (e.g. wget[19849]: illegal instruction (4) at 3fff882c2754 nip 3fff882c2754 lr 3fff882c24e8 code 1 in libnettle.so.8.8) on machines with less than POWER7 cpu | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | ernsteiswuerfel <erhard_f> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | ppc64 |
Priority: | Normal | Keywords: | TESTFAILURE |
Version: | unspecified | ||
Hardware: | PPC64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
emerge --info |
Description
ernsteiswuerfel
2023-12-18 01:13:13 UTC
Created attachment 879768 [details]
emerge --info
Yeah, in https://git.lysator.liu.se/nettle/nettle/-/tree/master/powerpc64, the minimum is p7. Upstream need to add a configure check to bail out / disable asm on <p7. On our side, it's maybe a bit more intesting about how we should handle (detect) it. Unfortunately the CHOST isn't enough. I did some testing with upstream nettle from git. Turns out the >=P7 assembly problem only shows up on the G5 as long as --disable-fat is set in ./configure. I mimicked configure options from the failing nettle-3.9.1 Gentoo ebuild and used them on git nettle_3.9.1_release_20230601 but without --disable-fat: ./.bootstrap ./configure --disable-dependency-tracking CC_FOR_BUILD=powerpc64-unknown-linux-gnu-gcc --disable-arm-neon --disable-arm64-crypto --enable-power-altivec --disable-power-crypto-ext --disable-power9 --disable-x86-aesni --disable-x86-sha-ni --disable-x86-pclmul --disable-s390x-vf --disable-s390x-msa --enable-assembler --disable-documentation --enable-public-key --enable-static --disable-openssl make -j3 make -j3 check This builds ok and passes tests on my G5 without throwing up illegal instructions. When --disable-fat is set in ./configure I get: chacha-test[232102]: illegal instruction (4) at 3fffa56ef714 nip 3fffa56ef714 lr 3fffa56cb604 code 1 in libnettle.so[3fffa56b0000+5a000] chacha-test[232102]: code: 38c00010 38e00020 39000030 3941ffc0 7e8051ce 7ea651ce 7ec751ce 7ee851ce chacha-test[232102]: code: 1210038c 122c038c 1248038c 1267038c <7c002619> 7c862619 7d072619 7d882619 chacha-poly1305[232473]: illegal instruction (4) at 3fffa0b9b90c nip 3fffa0b9b90c lr 3fffa0b9ba60 code 1 in libnettle.so[3fffa0b80000+5a000] chacha-poly1305[232473]: code: 80050000 38c00010 38e00020 39000030 1090038c 10ac038c 10c8038c 10e7038c chacha-poly1305[232473]: code: 39200000 7d89480c 11a3030c 118c6cc4 <7c002619> 7c262619 7c472619 7c682619 |