View previous topic :: View next topic |
Author |
Message |
Freed0m_ n00b
Joined: 13 Nov 2020 Posts: 8 Location: Minnesota
|
Posted: Mon Apr 12, 2021 5:12 pm Post subject: nss-3.63 fails during compile ppc bedrock linux gentoo strat |
|
|
Here is the result of running emerge --info '=dev-libs/nss-3.63::gentoo'.
Code: |
Portage 3.0.17 (python 3.8.8-final-0, default/linux/powerpc/ppc32/17.0/desktop/gnome, gcc-10.2.0, glibc-2.32-r6, 5.11.11_1 ppc)
=================================================================
System Settings
=================================================================
System uname: Linux-5.11.11_1-ppc-7447A,_altivec_supported-with-glibc2.1.3
KiB Mem: 2058524 total, 243132 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Thu, 08 Apr 2021 00:45:01 +0000
Head commit of repository gentoo: ab67dafbcbfcd02fac9b173bdc34556c97d34ed5
sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash: 5.0_p18::gentoo
dev-lang/perl: 5.30.3::gentoo
dev-lang/python: 3.8.8::gentoo
sys-apps/baselayout: 2.7::gentoo
sys-apps/openrc: 0.42.1-r1::gentoo
sys-apps/sandbox: 2.20::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake: 1.16.2-r1::gentoo
sys-devel/binutils: 2.34-r2::gentoo
sys-devel/gcc: 10.2.0-r5::gentoo
sys-devel/gcc-config: 2.4::gentoo
sys-devel/libtool: 2.4.6-r6::gentoo
sys-devel/make: 4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc: 2.32-r6::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-extra-opts:
sync-rsync-verify-max-age: 24
sync-rsync-verify-jobs: 1
sync-rsync-verify-metamanifest: yes
elementary
location: /var/lib/layman/elementary
masters: gentoo
priority: 50
ACCEPT_KEYWORDS="ppc"
ACCEPT_LICENSE="@FREE"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=powerpc -mtune=powerpc -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -mcpu=powerpc -mtune=powerpc -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -mcpu=powerpc -mtune=powerpc -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -mcpu=powerpc -mtune=powerpc -pipe"
GENTOO_MIRRORS="http://gentoo.gossamerhost.com"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl alsa berkdb big-endian bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups dbus dri dts dvd dvdr eds elogind emboss encode evo exif flac fortran gdbm gif gnome gnome-keyring gpm gstreamer gtk gui iconv icu introspection ipv6 jpeg lcms libglvnd libnotify libsecret mad mng mp3 mp4 mpeg nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppc ppds pulseaudio qt5 readline sdl seccomp spell split-usr ssl startup-notification svg sysprof tcpd tiff tracker truetype udev udisks unicode upower usb vorbis wayland wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_PPC="32" ADA_TARGET="gnat_2018" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="fbdev glint mga nv r128 radeon dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS |
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31325 Location: here
|
Posted: Mon Apr 12, 2021 5:46 pm Post subject: |
|
|
Moved from Portage & Programming to Gentoo on PPC. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31325 Location: here
|
Posted: Mon Apr 12, 2021 5:46 pm Post subject: |
|
|
You should post also build.log with wgetpaste. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Freed0m_ n00b
Joined: 13 Nov 2020 Posts: 8 Location: Minnesota
|
Posted: Tue Apr 13, 2021 2:22 am Post subject: |
|
|
wgetpaste for some reason doesn't work with any of the services, so I just used vim to copy the contents to pastebin https://pastebin.com/gDqPqFvq . |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31325 Location: here
|
Posted: Tue Apr 13, 2021 5:18 am Post subject: |
|
|
Code: | /var/tmp/portage/dev-libs/nss-3.63/work/nss-3.63/nss-.ppc/cmd/shlibsign/./sign.sh: line 13: 5269 Illegal instruction "${2}"/shlibsign -v -i "${5}"
make[5]: *** [Makefile:92: ../../dist/Linux5.11_ppc_powerpc-unknown-linux-gnu-gcc_glibc_PTH_OPT.OBJ/lib/libsoftokn3.chk] Error 132 |
Maybe this bug? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
jhoughton n00b
Joined: 26 Apr 2021 Posts: 1
|
Posted: Mon Apr 26, 2021 7:43 pm Post subject: |
|
|
I ran into this while installing Gentoo on an iMac G4. Simply masking nss-3.63 seemed to work for me. I was expecting Portage to complain, but it didn't :shrug:.
I did something like this:
`echo =dev-libs/nss-3.63 >> /etc/portage/package.mask/nss` |
|
Back to top |
|
|
iQQator n00b
Joined: 27 Feb 2020 Posts: 12 Location: Russia
|
Posted: Tue May 04, 2021 7:56 am Post subject: |
|
|
I got same problem when select profile with gnome and try to update world.
After week of find solution, i found workaround which consists in do not use NSS and replace it for GNUTLS for Gnome packages.
USE="-nss gnutls" and emerge move forward
UPD: It didn't help with gnome-base/evolution-data-service because it is internal dependency and can't be replaced to gnutls |
|
Back to top |
|
|
Freed0m_ n00b
Joined: 13 Nov 2020 Posts: 8 Location: Minnesota
|
Posted: Mon May 10, 2021 5:55 pm Post subject: |
|
|
Thank you iQQator and everybody else who tried to help, iQQator's solution worked for me. I also tried jhoughton's solution but it failed on both unmasked versions of nss. I was going to try unmasking the masked nss and compiling that and then responding but by then iQQator had made their post which worked like a charm. I am facing another issue, but I'll make another thread about it as I think it's bedrock linux specific (ebuild compatability). Thanks again to everybody for their help! |
|
Back to top |
|
|
schwarzygesetzlos Apprentice
Joined: 11 Dec 2004 Posts: 187 Location: Funeralopolis
|
Posted: Thu May 27, 2021 12:15 pm Post subject: |
|
|
nss-3.64 mentions some ppc fixes:
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.
So versions 3.64 and above will probably just work on ppc64 machines without VSX (anything below POWER7 cpu). _________________ Talos II. [Gentoo Linux] | PMac G5 11,2. PMac G4 3,6. PBook G4 5,8. [MorphOS 3.18 / Gentoo Linux] | Vampire V4 SA [ApolloOS / Amiga OS 3.2.2] |
|
Back to top |
|
|
iQQator n00b
Joined: 27 Feb 2020 Posts: 12 Location: Russia
|
Posted: Tue Jun 01, 2021 8:41 am Post subject: |
|
|
After emerge-webrsync I try to build nss-3.66
And again build fail, no happy there
I found some issues where describe that local lib folder is missing and you should not export LD_LIBRARY_PATH as well... and when I did change this properties in sign.sh file the project won't build either but error was changed:
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
|
I find this: http://freebsd.1045724.x6.nabble.com/NSPR-error-code-5977-Failure-to-load-dynamic-library-sometimes-when-building-NSS-with-patches-td6402288.html but I suppose it is not my variant [/code]
Code: |
eMac /var/tmp/portage # ls -l /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
-rwxrwxr-x 1 portage portage 444280 Jun 1 10:44 /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
eMac /var/tmp/portage # ls -lL /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
-rwxrwxr-x 1 portage portage 444280 Jun 1 10:44 /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
|
Code: |
ldd /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
linux-vdso32.so.1 (0x00101000)
libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x6fd8c000)
libnssutil3.so => /usr/lib/libnssutil3.so (0x6fd3b000)
libplc4.so => /usr/lib/libplc4.so (0x6fd0a000)
libplds4.so => /usr/lib/libplds4.so (0x6fcd9000)
libnspr4.so => /usr/lib/libnspr4.so (0x6fc66000)
libpthread.so.0 => /lib/libpthread.so.0 (0x6fc13000)
libdl.so.2 => /lib/libdl.so.2 (0x6fbe2000)
libc.so.6 => /lib/libc.so.6 (0x6f9de000)
libm.so.6 => /lib/libm.so.6 (0x6f8ed000)
libz.so.1 => /lib/libz.so.1 (0x6f8ac000)
libicui18n.so.69 => /usr/lib/libicui18n.so.69 (0x6f51a000)
libicuuc.so.69 => /usr/lib/libicuuc.so.69 (0x6f2d8000)
/lib/ld.so.1 (0xb7ac7000)
libstdc++.so.6 => /usr/lib/gcc/powerpc-unknown-linux-gnu/11.1.0/libstdc++.so.6 (0x6f054000)
libgcc_s.so.1 => /usr/lib/gcc/powerpc-unknown-linux-gnu/11.1.0/libgcc_s.so.1 (0x6f013000)
libicudata.so.69 => /usr/lib/libicudata.so.69 (0x6d492000)
|
|
|
Back to top |
|
|
schwarzygesetzlos Apprentice
Joined: 11 Dec 2004 Posts: 187 Location: Funeralopolis
|
Posted: Thu Jun 03, 2021 5:17 pm Post subject: |
|
|
[quote="iQQator"]
Code: |
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
|
This points to problems connected to dev-libs/nspr. Maybe rebuilding dev-libs/nspr or updating to are more recent dev-libs/nspr will do the trick?
If not you could do a proper bugreport at bugs.gentoo.org so that some dev would actually look at it. My PowerMac G4 DP is still out of order so I am not able to reproduce it. _________________ Talos II. [Gentoo Linux] | PMac G5 11,2. PMac G4 3,6. PBook G4 5,8. [MorphOS 3.18 / Gentoo Linux] | Vampire V4 SA [ApolloOS / Amiga OS 3.2.2] |
|
Back to top |
|
|
|