Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] gnupg fails during new install
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
etnull
Guru
Guru


Joined: 26 Mar 2019
Posts: 327

PostPosted: Thu May 21, 2020 6:31 pm    Post subject: [solved] gnupg fails during new install Reply with quote

I'm installing in qemu and this is what I'm getting:
Code:
 * Package:    app-crypt/gnupg-2.2.20
 * Repository: gentoo
 * Maintainer: k_f@gentoo.org
 * USE:        abi_x86_64 amd64 bzip2 elibc_glibc kernel_linux ldap readline smartcard ssl usb userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Applying gnupg-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch ...
 [ ok ]
~~~ partially redacted ~~~
checking for BZ2_bzCompressInit in -lbz2... yes
checking whether readline via "-lreadline" is present and sane... yes
configure: checking for cc features
checking if gcc ignores unknown -Wno-* options... yes
checking if gcc supports -Wpointer-arith... yes
checking whether "make check" shall run all tests... yes
configure:
***
*** You need libgpg-error to build this program.
**  This library is for example available at
***   https://gnupg.org/ftp/gcrypt/libgpg-error
*** (at least version 1.24 is required.)
***
configure:
***
*** You need libgcrypt to build this program.
**  This library is for example available at
***   https://gnupg.org/ftp/gcrypt/libgcrypt/
*** (at least version 1.7.0 (API 1) is required.)
***
configure: error:
***
*** Required libraries not found. Please consult the above messages
*** and install them before running configure again.
***

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-crypt/gnupg-2.2.20/work/gnupg-2.2.20/config.log
 * ERROR: app-crypt/gnupg-2.2.20::gentoo failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *               ebuild.sh, line  125:  Called src_configure
 *             environment, line 1566:  Called econf '--enable-symcryptrun' '--enable-bzip2' '--disable-nls' '--enable-scdaemon' '--enable-gnutls' '--disable-tofu' '--enable-ccid-driver' '--disable-wks-tools' '--with-ldap' '--with-readline' '--with-mailprog=/usr/libexec/sendmail' '--disable-ntbtls' '--enable-all-tests' '--enable-gpg' '--enable-gpgsm' '--enable-large-secmem' 'CC_FOR_BUILD=gcc' 'GPG_ERROR_CONFIG=/usr/bin/x86_64-gentoo-linux-gnu-gpg-error-config' 'KSBA_CONFIG=/usr/bin/ksba-config' 'LIBASSUAN_CONFIG=/usr/bin/libassuan-config' 'LIBGCRYPT_CONFIG=/usr/bin/x86_64-gentoo-linux-gnu-libgcrypt-config' 'NPTH_CONFIG=/usr/bin/npth-config' '--without-libiconv-prefix' '--without-libintl-prefix'
 *        phase-helpers.sh, line  681:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *         die "$@"
 *
 * If you need support, post the output of `emerge --info '=app-crypt/gnupg-2.2.20::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-crypt/gnupg-2.2.20::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-crypt/gnupg-2.2.20/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-crypt/gnupg-2.2.20/temp/environment'.
 * Working directory: '/var/tmp/portage/app-crypt/gnupg-2.2.20/work/gnupg-2.2.20'
 * S: '/var/tmp/portage/app-crypt/gnupg-2.2.20/work/gnupg-2.2.20'



Code:
emerge --info '=app-crypt/gnupg-2.2.20::gentoo'
Portage 2.3.99 (python 3.7.7-final-0, default/linux/amd64/17.1, gcc-9.3.0, glibc-2.31-r3, 5.4.38-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.4.38-gentoo-x86_64-x86_64-Intel-R-_Xeon-R-_CPU_X5660_@_2.80GHz-with-gentoo-2.7
KiB Mem:     6107020 total,   4148676 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 21 May 2020 16:30:01 +0000
Head commit of repository gentoo: 527a6eb48135eeb6304cfe2d01a4fd134aa4501d

sh bash 5.0_p17
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash:          5.0_p17::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.18::gentoo, 3.7.7-r2::gentoo, 3.8.2-r2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            9.3.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-gentoo-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-gentoo-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="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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="-march=native -O2 -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="-march=native -O2 -pipe"
GENTOO_MIRRORS="https://mirror.yandex.ru/gentoo-distfiles/ https://gentoo-mirror.alexxy.name/"
INSTALL_MASK="/lib/systemd /usr/lib/systemd /usr/lib/modules-load.d /etc/systemd"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
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 aac acl acpi alsa amd64 berkdb bzip2 cairo cli crypt cryptsetup curl dbus djvu dri dts eme-free encode exif fam ffmpeg flac gdbm gif git glamor gpg gtk gtk3 iconv imagemagick jpeg lcms ldap libtirpc mad man mng mp3 mp4 mpeg multilib ncurses nptl nvidia ogg opengl openmp openssl pango pcre pcre16 pdf png readline sdl seccomp split-usr sqlite ssl svg tcpd threads tiff truetype udev unicode usb vorbis x264 x265 xattr xcb xft xkb xml xv xvid xvmc zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" CPU_FLAGS_X86="fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology cpuid tsc_known_freq pni pclmulqdq vmx ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes hypervisor lahf_lm cpuid_fault pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid tsc_adjust arat umip arch_capabilities" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

app-crypt/gnupg-2.2.20::gentoo was built with the following:
USE="bzip2 nls readline smartcard ssl -doc -ldap (-selinux) -tofu -tools -usb -user-socket -wks-server" ABI_X86="(64)"
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CXXFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox 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


Last edited by etnull on Thu May 21, 2020 7:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24023
Location: here

PostPosted: Thu May 21, 2020 7:12 pm    Post subject: Reply with quote

Try to rebuild dev-libs/libgcrypt
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
etnull
Guru
Guru


Joined: 26 Mar 2019
Posts: 327

PostPosted: Thu May 21, 2020 7:45 pm    Post subject: Reply with quote

Code:
checking whether AVX support is requested... yes
checking whether AVX2 support is requested... yes
checking whether NEON support is requested... yes
checking whether ARMv8 Crypto Extension support is requested... yes
checking whether a -O flag munging is requested... no
checking whether to enable AMD64 as(1) feature detection... yes
checking for gpg-error-config... /usr/bin/x86_64-gentoo-linux-gnu-gpg-error-config
checking for GPG Error - version >= 1.25... no
configure: error: libgpg-error is needed.
                See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ .

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-libs/libgcrypt-1.8.5/work/libgcrypt-1.8.5-abi_x86_64.amd64/config.log
 * ERROR: dev-libs/libgcrypt-1.8.5::gentoo failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *               ebuild.sh, line  125:  Called src_configure
 *             environment, line 2339:  Called multilib-minimal_src_configure
 *             environment, line 1670:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *             environment, line 1903:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line 1600:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line 1598:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *             environment, line  496:  Called multilib-minimal_abi_src_configure
 *             environment, line 1664:  Called multilib_src_configure
 *             environment, line 2132:  Called econf '--enable-noexecstack' '--disable-O-flag-munging' '--disable-static' '--without-capabilities' 'GPG_ERROR_CONFIG=/usr/bin/x86_64-gentoo-linux-gnu-gpg-error-config'
 *        phase-helpers.sh, line  681:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *         die "$@"
 *
 * If you need support, post the output of `emerge --info '=dev-libs/libgcrypt-1.8.5::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libgcrypt-1.8.5::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/libgcrypt-1.8.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libgcrypt-1.8.5/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/libgcrypt-1.8.5/work/libgcrypt-1.8.5-abi_x86_64.amd64'
 * S: '/var/tmp/portage/dev-libs/libgcrypt-1.8.5/work/libgcrypt-1.8.5'

>>> Failed to emerge dev-libs/libgcrypt-1.8.5, Log file:

>>>  '/var/tmp/portage/dev-libs/libgcrypt-1.8.5/temp/build.log'

 * Messages for package dev-libs/libgcrypt-1.8.5:

 * ERROR: dev-libs/libgcrypt-1.8.5::gentoo failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *               ebuild.sh, line  125:  Called src_configure
 *             environment, line 2339:  Called multilib-minimal_src_configure
 *             environment, line 1670:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *             environment, line 1903:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line 1600:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line 1598:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *             environment, line  496:  Called multilib-minimal_abi_src_configure
 *             environment, line 1664:  Called multilib_src_configure
 *             environment, line 2132:  Called econf '--enable-noexecstack' '--disable-O-flag-munging' '--disable-static' '--without-capabilities' 'GPG_ERROR_CONFIG=/usr/bin/x86_64-gentoo-linux-gnu-gpg-error-config'
 *        phase-helpers.sh, line  681:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *         die "$@"
 *
 * If you need support, post the output of `emerge --info '=dev-libs/libgcrypt-1.8.5::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libgcrypt-1.8.5::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/libgcrypt-1.8.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libgcrypt-1.8.5/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/libgcrypt-1.8.5/work/libgcrypt-1.8.5-abi_x86_64.amd64'
 * S: '/var/tmp/portage/dev-libs/libgcrypt-1.8.5/work/libgcrypt-1.8.5'
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24023
Location: here

PostPosted: Thu May 21, 2020 7:46 pm    Post subject: Reply with quote

Try to rebuild also libgpg-error package
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
etnull
Guru
Guru


Joined: 26 Mar 2019
Posts: 327

PostPosted: Thu May 21, 2020 7:47 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Try to rebuild also libgpg-error package
damn you are replying too fast, I was about to delete my message :)
---
I think it had something to do with my -pam installation, somehow pam and pambase were already present in the system, even before world update, are they part of the stage3 image? Should I do 'emerge --unmerge pam', preserved-rebuild, before world update if I want pam-less system?
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24023
Location: here

PostPosted: Fri May 22, 2020 5:54 am    Post subject: Reply with quote

First you should see if any package depend on pam (equery d pam).
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
etnull
Guru
Guru


Joined: 26 Mar 2019
Posts: 327

PostPosted: Fri May 22, 2020 7:45 pm    Post subject: Reply with quote

stage3 doesn't have gentoolkit out of the box, and I don't necessarily want to install it just for that one command, emerge -pv --depclean pam shows
Code:
  sys-libs/pam-1.3.1-r2 pulled in by:
    net-misc/openssh-8.1_p1-r3 requires sys-libs/pam
    sys-apps/kbd-2.0.4 requires sys-libs/pam
    sys-apps/openrc-0.42.1 requires sys-libs/pam
    sys-apps/shadow-4.8-r4 requires sys-libs/pam:0=, sys-libs/pam:0/0=
    sys-apps/util-linux-2.35.1-r2 requires sys-libs/pam
    sys-auth/pambase-20190402 requires >=sys-libs/pam-1.1.3, sys-libs/pam[cracklib]
how do I know if those are hard dependencies or if everything will be fine after preserved-rebuild?
My main system doesn't have pam installed, and I don't remember to get rid of it specifically from stage3 during install.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24023
Location: here

PostPosted: Sat May 23, 2020 5:10 am    Post subject: Reply with quote

Without equery you can grep every single ebuild to see if is an hard dependency.
Code:
$ grep sys-libs/pam /var/db/repos/gentoo/net-misc/openssh/openssh-8.1_p1-r3.ebuild

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum