Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Unable to compile gnupg-2.2.4 (and 2.2.0)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
freke
l33t
l33t


Joined: 23 Jan 2003
Posts: 963
Location: Somewhere in Denmark

PostPosted: Tue Jan 09, 2018 6:04 pm    Post subject: [SOLVED] Unable to compile gnupg-2.2.4 (and 2.2.0) Reply with quote

Hi,

Running a mostly stable amd64 (gcc-7.2-0) I get this on updating gnupg:
Code:
x86_64-pc-linux-gnu-gcc      -Wall -Wno-pointer-sign -Wpointer-arith -O2 -march=native -pipe -fomit-frame-pointer -flto=3 -fuse-linker-plugin -fno-fat-lto-objects -fgraphite-identity -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -fno-lto -fno-use-linker-plugin  -Wl,-O1 -Wl,--as-needed -O2 -march=native -pipe -fomit-frame-pointer -flto=3 -fuse-linker-plugin -fno-fat-lto-objects -fgraphite-identity -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -fno-delete-null-pointer-checks -flifetime-dse=1 -fno-lto -fno-use-linker-plugin -o gpg-agent gpg_agent-gpg-agent.o gpg_agent-command.o gpg_agent-command-ssh.o gpg_agent-call-pinentry.o gpg_agent-cache.o gpg_agent-trans.o gpg_agent-findkey.o gpg_agent-pksign.o gpg_agent-pkdecrypt.o gpg_agent-genkey.o gpg_agent-protect.o gpg_agent-trustlist.o gpg_agent-divert-scd.o gpg_agent-cvt-openpgp.o gpg_agent-call-scd.o gpg_agent-learncard.o ../common/libcommonpth.a -lgcrypt -lgpg-error -L/usr/lib64 -lassuan -lgpg-error -L/usr/lib64 -lnpth -lgpg-error
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: gpg_agent-call-pinentry.o: undefined reference to symbol 'pthread_mutex_trylock@@GLIBC_2.2.5'
/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status


Tried recompiling my @toolchain (binutils/glibc/libtool/isl/gcc) + readline and probably others, but to no avail :/

Anyone knows what exactly is missing/wrong?


EDIT:
sorry - forgot [solved] ;)


Last edited by freke on Wed Jan 10, 2018 4:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30838
Location: here

PostPosted: Tue Jan 09, 2018 6:28 pm    Post subject: Reply with quote

You can post full build.log with wgetpaste and emerge --info?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
freke
l33t
l33t


Joined: 23 Jan 2003
Posts: 963
Location: Somewhere in Denmark

PostPosted: Tue Jan 09, 2018 7:27 pm    Post subject: Reply with quote

emerge --info
Code:
Portage 2.3.13 (python 3.4.5-final-0, default/linux/amd64/17.0/no-multilib, gcc-7.2.0, glibc-2.25-r10, 4.12.12-gentoo x86_64)
=================================================================
System uname: Linux-4.12.12-gentoo-x86_64-AMD_G-T40E_Processor-with-gentoo-2.4.1
KiB Mem:     4015260 total,    131276 free
KiB Swap:    4162644 total,   3999060 free
Timestamp of repository gentoo: Tue, 09 Jan 2018 03:00:01 +0000
Head commit of repository gentoo: 31831e9aa81c162e07ef15270da5056a2256e64b
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.5-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            7.2.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r10::gentoo
Repositories:

gentoo
    location: /opt/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1
    sync-rsync-extra-opts:

local
    location: /opt/local/portage
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -ftree-vectorize -fno-delete-null-pointer-checks -flifetime-dse=1"
DISTDIR="/opt/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://trumpetti.atm.tut.fi/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -O2 -march=native -pipe -fomit-frame-pointer -ftree-vectorize -fno-delete-null-pointer-checks -flifetime-dse=1"
MAKEOPTS="-j3"
PKGDIR="/opt/packages"
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="amd64 apache2 bcmath berkdb bzip2 caps cgi cli crypt curl cxx dovecot-sasl dri exif fortran gd geoip gnutls graphite iconv idn imap ipv6 lto mdbox modules mysql mysqli ncurses nls nptl openmp pam pcre pie readline sasl sieve snmp sockets ssl syslog tcpd truetype udev unicode usb xattr xml zip zlib" ABI_X86="64" APACHE2_MODULES="authn_dbd authz_dbd dbd actions alias auth_basic authn_alias authn_anon authn_core authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="garmin" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" PHP_TARGETS="php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Currently trying glibc-2.2.25-r10 - same undefined reference to symbol @glibc...

buildlog here: https://bpaste.net/show/9d8c3c1fad7b

Changing to MAKEOPTS="-j1" changed the place of error - but still same undefined reference...

http://bpaste.net/show/0aee1e854d15
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30838
Location: here

PostPosted: Tue Jan 09, 2018 8:01 pm    Post subject: Reply with quote

Try to recompile with safe CFLAGS and LDFLAGS
Code:
CFLAGS="-march=native -O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
freke
l33t
l33t


Joined: 23 Jan 2003
Posts: 963
Location: Somewhere in Denmark

PostPosted: Tue Jan 09, 2018 8:18 pm    Post subject: Reply with quote

Thanks - currently trying safe-flags + -j1.

2.2.0 build fine back in october according to logs - looking through them to try and figure what recently triggered rebuild and made it (and 2.2.4) break.
Back to top
View user's profile Send private message
freke
l33t
l33t


Joined: 23 Jan 2003
Posts: 963
Location: Somewhere in Denmark

PostPosted: Tue Jan 09, 2018 8:34 pm    Post subject: Reply with quote

Same result

Code:
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -DGNUPG_BINDIR="\"/usr/bin\"" -DGNUPG_LIBEXECDIR="\"/usr/libexec\"" -DGNUPG_LIBDIR="\"/usr/lib64/gnupg\"" -DGNUPG_DATADIR="\"/usr/share/gnupg\"" -DGNUPG_SYSCONFDIR="\"/etc/gnupg\"" -DGNUPG_LOCALSTATEDIR="\"/var/lib\""          -Wall -Wno-pointer-sign -Wpointer-arith -O2 -march=native -pipe -c -o protect.o protect.c
x86_64-pc-linux-gnu-gcc      -Wall -Wno-pointer-sign -Wpointer-arith -O2 -march=native -pipe  -Wl,-O1 -Wl,--as-needed -o gpg-agent gpg_agent-gpg-agent.o gpg_agent-command.o gpg_agent-command-ssh.o gpg_agent-call-pinentry.o gpg_agent-cache.o gpg_agent-trans.o gpg_agent-findkey.o gpg_agent-pksign.o gpg_agent-pkdecrypt.o gpg_agent-genkey.o gpg_agent-protect.o gpg_agent-trustlist.o gpg_agent-divert-scd.o gpg_agent-cvt-openpgp.o gpg_agent-call-scd.o gpg_agent-learncard.o ../common/libcommonpth.a -lgcrypt -lgpg-error -L/usr/lib64 -lassuan -lgpg-error -L/usr/lib64 -lnpth -lgpg-error
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: gpg_agent-call-pinentry.o: undefined reference to symbol 'pthread_mutex_trylock@@GLIBC_2.2.5'
/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:677: gpg-agent] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/app-crypt/gnupg-2.2.4/work/gnupg-2.2.4/agent'
make[1]: *** [Makefile:590: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-crypt/gnupg-2.2.4/work/gnupg-2.2.4'
make: *** [Makefile:509: all] Error 2
 * ERROR: app-crypt/gnupg-2.2.4::gentoo failed (compile phase):
Back to top
View user's profile Send private message
freke
l33t
l33t


Joined: 23 Jan 2003
Posts: 963
Location: Somewhere in Denmark

PostPosted: Tue Jan 09, 2018 9:08 pm    Post subject: Reply with quote

Found it - dev-libs/npth

recompiled it and gnupg builds again :)
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30838
Location: here

PostPosted: Wed Jan 10, 2018 6:56 am    Post subject: Reply with quote

freke wrote:
Found it - dev-libs/npth

recompiled it and gnupg builds again :)

Add tag [solved] on title editing first post and adding it on subject.
_________________
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 Portage & Programming 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