Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 466326 - dev-vcs/git-1.8.2.1 USE=subversion will not work with the --no-copy-dt-needed-entries from sys-devel/binutils-2.23.2
Summary: dev-vcs/git-1.8.2.1 USE=subversion will not work with the --no-copy-dt-needed...
Status: RESOLVED DUPLICATE of bug 466178
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Low normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-18 08:02 UTC by Martin von Gagern
Modified: 2013-04-19 13:33 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
git-1.8.2.1.ebuild.patch (git-1.8.2.1.ebuild.patch,569 bytes, patch)
2013-04-18 18:07 UTC, Sergei Trofimovich (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2013-04-18 08:02:46 UTC
I know sys-devel/binutils-2.23.2 is masked as per bug #464152, but since I do have that unmasked locally, I thought I'd give you a heads up on this.

make -j5 BLK_SHA1=YesPlease NO_FINK=YesPlease NO_DARWIN_PORTS=YesPlease INSTALL=install TAR=tar SHELL_PATH=/bin/sh SANE_TOOL_PATH= OLD_ICONV= NO_EXTERNAL_GREP= USE_LIBPCRE=yes INSTALLDIRS=vendor THREADED_DELTA_SEARCH=YesPlease ASCIIDOC8=YesPlease ASCIIDOC_NO_ROFF=YesPlease DESTDIR=/var/tmp/portage/dev-vcs/git-1.8.2.1/image/ 'OPTCFLAGS=-march=amdfam10 -O2 -ggdb -pipe' OPTLDFLAGS=-Wl,--as-needed OPTCC=x86_64-pc-linux-gnu-gcc OPTAR=x86_64-pc-linux-gnu-ar prefix=/usr htmldir=/usr/share/doc/git-1.8.2.1/html sysconfdir=/etc PYTHON_PATH=/usr/bin/python2.7 PERL_MM_OPT= GIT_TEST_OPTS=--no-color V=1 'EXTLIBS=-lz -lssl /var/tmp/portage/dev-vcs/git-1.8.2.1/work/git-1.8.2.1/xdiff/lib.a -lpcre' 
make -C ../..  vcs-svn/lib.a
make -C ../..  libgit.a
make[1]: Entering directory `/var/tmp/portage/dev-vcs/git-1.8.2.1/work/git-1.8.2.1'
make[1]: Leaving directory `/var/tmp/portage/dev-vcs/git-1.8.2.1/work/git-1.8.2.1'
make[1]: Entering directory `/var/tmp/portage/dev-vcs/git-1.8.2.1/work/git-1.8.2.1'
make[1]: Leaving directory `/var/tmp/portage/dev-vcs/git-1.8.2.1/work/git-1.8.2.1'
gcc -g -O2 -Wall -o svn-fe svn-fe.o \
        -Wl,--as-needed ../../vcs-svn/lib.a ../../libgit.a -lz -lssl /var/tmp/portage/dev-vcs/git-1.8.2.1/work/git-1.8.2.1/xdiff/lib.a -lpcre
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: ../../libgit.a(run-command.o): undefined reference to symbol 'pthread_setspecific@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'pthread_setspecific@@GLIBC_2.2.5' is defined in DSO /lib64/libpthread.so.0 so try adding it to the linker command line
/lib64/libpthread.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [svn-fe] Error 1
 * ERROR: dev-vcs/git-1.8.2.1 failed (compile phase):
 *   emake failed

git-1.8.2.1/contrib/svn-fe/Makefile seems to be hand-made, and simply plugs in the EXTLIBS list of libraries as it receives them from the command line, i.e. from the ebuild.

$ grep -i extlibs /usr/portage/dev-vcs/git/git-1.8.2.1.ebuild
        extlibs="-lz -lssl ${S}/xdiff/lib.a"
                && extlibs="${extlibs} -lpcre"
        export EXTLIBS="${extlibs}"
                git_emake EXTLIBS="${EXTLIBS}" || die "emake svn-fe failed"

So I suggest simply adding a -lpthread to that list, without a version bump, in order to be prepared for the time when >=sys-devel/binutils-2.23.2 gets unmasked.
Comment 1 Martin Jansa 2013-04-18 11:28:50 UTC
I can confirm the same with binutils-2.23.1

jama ~ # emerge --info
Portage 2.2.0_alpha173 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.2, glibc-2.17, 3.9.0-rc6-00183-gbf81710 x86_64)
=================================================================
System uname: Linux-3.9.0-rc6-00183-gbf81710-x86_64-AMD_FX-tm-8120_Eight-Core_Processor-with-gentoo-2.2
KiB Mem:    16361244 total,   1162248 free
KiB Swap:    5242876 total,   5036248 free
Timestamp of tree: Thu, 18 Apr 2013 08:00:01 +0000
ld GNU gold (GNU Binutils 2.23.1) 1.11
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo portage-local
Installed sets: @mykde
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA RTCW-ETEULA PUEL dlj-1.1 skype-eula googleearth AdobeFlash-10 AdobeFlash-10.1 google-chrome Oracle-BCLA-JavaSE AdobeFlash-10.3 skype-4.0.0.7-copyright AdobeFlash-11.x"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -O2 -pipe -fomit-frame-pointer -march=bdver1 -mtune=bdver1 -mcx16 -msahf -maes -mpclmul -mpopcnt -mabm -mlwp -mavx -D__USE_POSIX199309 "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -O2 -pipe -fomit-frame-pointer -march=bdver1 -mtune=bdver1 -mcx16 -msahf -maes -mpclmul -mpopcnt -mabm -mlwp -mavx -D__USE_POSIX199309 "
DISTDIR="/tmp/data/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j8"
PKGDIR="/tmp/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp/tmpfs"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl acpi aio alsa amd64 amr apache2 avahi bash-completion berkdb bidi bluetooth branding bzip2 cairo ccache cdda cdparanoia cdr cdrom cgi cli consolekit cracklib crypt cups curl cxx dbus declarative dga dri dts dvb dvd dvdr emboss enca encode exif fam fbcon ffmpeg firefox flac flash fmod fontconfig ftp gallium gd gif gkrellm glib glut gnutls gpgme gpm gps gstreamer gzip iconv icq imagemagick imap imlib innodb ipv6 irc irda jabber java java5 java6 javascript joystick jpeg kde kipi kpathsea kqemu krb4 kvm lame lcms libcaca libkms libnotify libwww linuxthreads-tls lirc live lm_sensors logrotate mad maildir matroska mime mmx mng modules mozilla mp3 mp4 mpeg mplayer mudflap multilib mysql mysqli ncurses network nls nntp nocd nptl nsplugin nspluginwrapper ogg openal opencore-amr opengl openmp oss pam pango pcre pdf phonon php pic plasma png policykit pop portaudio posix ppds pulseaudio python3 qt3support qt4 readline rss rsync rtc samba sasl screen sdl semantic-desktop session silc slang smartcard smime smtp sndfile sockets spell sse sse2 ssh ssl startup-notification stream subtitles subversion svg svgz symlink sysfs tcpd theora threads tiff truetype udev udisks unicode upower usb utempter uudeview v4l v4l2 vde vdpau vdr videos vim vim-pager vorbis webkit wxwidgets wxwindows x264 xanim xcb xcomposite xinerama xinetd xml xmlreader xmlrpc xorg xosd xpm xscreensaver xsl xv xvid zip zlib zvbi" ABI_X86="64" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias authn_core authz_core unixd" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="biosdevname mdraid syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="cs en en_GB en_US" LIRC_DEVICES="devinput" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler ruby soa visualweb webcommon websvccommon xml dlight enterprise" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm armeb i386 x86_64" RUBY_TARGETS="ruby19 jruby" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia" 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"
USE_PYTHON="2.7 3.2"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



make -j8 BLK_SHA1=YesPlease NO_FINK=YesPlease NO_DARWIN_PORTS=YesPlease INSTALL=install TAR=tar SHELL_PATH=/bin/sh SANE_TOOL_PATH= OLD_ICONV= NO_EXTERNAL_GREP= USE_LIBPCRE=yes INSTALLDIRS=vendor THREADED_DELTA_SEARCH=YesPlease NO_CVS=YesPlease ASCIIDOC8=YesPlease ASCIIDOC_NO_ROFF=YesPlease DESTDIR=/tmp/tmpfs/portage/dev-vcs/git-1.8.2.1/image/ OPTCFLAGS= OPTLDFLAGS= OPTCC=x86_64-pc-linux-gnu-gcc OPTAR=x86_64-pc-linux-gnu-ar prefix=/usr htmldir=/usr/share/doc/git-1.8.2.1/html sysconfdir=/etc PYTHON_PATH=/usr/bin/python2.7 PERL_MM_OPT= GIT_TEST_OPTS=--no-color V=1 'EXTLIBS=-lz -lssl /tmp/tmpfs/portage/dev-vcs/git-1.8.2.1/work/git-1.8.2.1/xdiff/lib.a -lpcre'
x86_64-pc-linux-gnu-gcc -I../../vcs-svn -o svn-fe.o -c  -Wall svn-fe.c
make -C ../..  vcs-svn/lib.a
make -C ../..  libgit.a
make[1]: Entering directory `/tmp/tmpfs/portage/dev-vcs/git-1.8.2.1/work/git-1.8.2.1'
make[1]: Entering directory `/tmp/tmpfs/portage/dev-vcs/git-1.8.2.1/work/git-1.8.2.1'
make[1]: Leaving directory `/tmp/tmpfs/portage/dev-vcs/git-1.8.2.1/work/git-1.8.2.1'
make[1]: Leaving directory `/tmp/tmpfs/portage/dev-vcs/git-1.8.2.1/work/git-1.8.2.1'
x86_64-pc-linux-gnu-gcc  -Wall -o svn-fe svn-fe.o \
         ../../vcs-svn/lib.a ../../libgit.a -lz -lssl /tmp/tmpfs/portage/dev-vcs/git-1.8.2.1/work/git-1.8.2.1/xdiff/lib.a -lpcre
../../libgit.a(run-command.o):run-command.c:function run_thread: error: undefined reference to 'pthread_setspecific'
../../libgit.a(run-command.o):run-command.c:function die_async: error: undefined reference to 'pthread_getspecific'
../../libgit.a(run-command.o):run-command.c:function start_async: error: undefined reference to 'pthread_key_create'
../../libgit.a(run-command.o):run-command.c:function start_async: error: undefined reference to 'pthread_create'
../../libgit.a(run-command.o):run-command.c:function finish_async: error: undefined reference to 'pthread_join'
collect2: error: ld returned 1 exit status
make: *** [svn-fe] Error 1
 * ERROR: dev-vcs/git-1.8.2.1 failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-vcs/git-1.8.2.1'`,
 * the complete build log and the output of `emerge -pqv '=dev-vcs/git-1.8.2.1'`.
 * The complete build log is located at '/tmp/tmpfs/portage/dev-vcs/git-1.8.2.1/temp/build.log'.
 * The ebuild environment file is located at '/tmp/tmpfs/portage/dev-vcs/git-1.8.2.1/temp/environment'.
 * Working directory: '/tmp/tmpfs/portage/dev-vcs/git-1.8.2.1/work/git-1.8.2.1/contrib/svn-fe'
 * S: '/tmp/tmpfs/portage/dev-vcs/git-1.8.2.1/work/git-1.8.2.1'

Adding -lpthread fixes it here too.
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2013-04-18 18:07:45 UTC
Created attachment 345920 [details, diff]
git-1.8.2.1.ebuild.patch

Caught the same build failure today.

Attached the patch. The idea is simple:

>         extlibs="-lz -lssl ${S}/xdiff/lib.a"
> +       extlibs="${extlibs} -pthread" #466326

worksforme.
Comment 3 SpanKY gentoo-dev 2013-04-19 13:33:59 UTC

*** This bug has been marked as a duplicate of bug 466178 ***