Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 479628 - dev-vcs/git-1.8.3.2 USE=-threads - ../../libgit.a(run-command.o): In function `run_thread': run-command.c:(.text+0x105): undefined reference to `pthread_setspecific'
Summary: dev-vcs/git-1.8.3.2 USE=-threads - ../../libgit.a(run-command.o): In function...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks: 480306
  Show dependency tree
 
Reported: 2013-08-03 12:35 UTC by Andrew Savchenko
Modified: 2013-10-15 19:20 UTC (History)
1 user (show)

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


Attachments
emerge --info =dev-vcs/git-1.8.3.2::gentoo (emerge.info,8.55 KB, text/plain)
2013-08-03 12:36 UTC, Andrew Savchenko
Details
environment (environment,139.77 KB, text/plain)
2013-08-03 12:36 UTC, Andrew Savchenko
Details
build.log (build.log,264.37 KB, text/x-log)
2013-08-03 12:36 UTC, Andrew Savchenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Savchenko gentoo-dev 2013-08-03 12:35:33 UTC
Hello,

recent git fails to build with USE="-threads":

i686-pc-linux-gnu-gcc -march=native -m32 -O2 -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-im -fweb -frename-registers -fomit-frame-pointer  -mfpmath=sse -pipe -frecord-gcc-switches -Wall -o svn-fe svn-fe.o \
        -march=native -m32 -O2 -funswitch-loops -fpredictive-commoning -Wl,-O1,--as-needed -pipe ../../vcs-svn/lib.a ../../libgit.a -lz -lssl /var/tmp/portage/dev-vcs/git-1.8.3.2/work/git-1.8.3.2/xdiff/lib.a  -lpcre
../../libgit.a(run-command.o): In function `run_thread':
run-command.c:(.text+0x105): undefined reference to `pthread_setspecific'
../../libgit.a(run-command.o): In function `async_die_is_recursing':
run-command.c:(.text+0x13d): undefined reference to `pthread_getspecific'
run-command.c:(.text+0x155): undefined reference to `pthread_setspecific'
../../libgit.a(run-command.o): In function `die_async':
run-command.c:(.text+0x1a7): undefined reference to `pthread_getspecific'
../../libgit.a(run-command.o): In function `start_async':
run-command.c:(.text+0x120a): undefined reference to `pthread_create'
run-command.c:(.text+0x125e): undefined reference to `pthread_key_create'
run-command.c:(.text+0x1272): undefined reference to `pthread_key_create'
../../libgit.a(run-command.o): In function `finish_async':
run-command.c:(.text+0x141e): undefined reference to `pthread_join'
../../libgit.a(preload-index.o): In function `preload_index':
preload-index.c:(.text+0x96): undefined reference to `pthread_create'
preload-index.c:(.text+0xc7): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status

$ emerge -pqv '=dev-vcs/git-1.8.3.2::gentoo'
[ebuild     U ] dev-vcs/git-1.8.3.2 [1.7.8.6] USE="blksha1 curl cvs doc gpg%* iconv nls%* pcre%* perl subversion tk webdav -cgi -emacs -gnome-keyring% -gtk -highlight% (-ppcsha1) -python* {-test%} -threads -xinetd" PYTHON_SINGLE_TARGET="python2_7%* -python2_6%" PYTHON_TARGETS="python2_7%* -python2_6%"
Comment 1 Andrew Savchenko gentoo-dev 2013-08-03 12:36:12 UTC
Created attachment 355010 [details]
emerge --info =dev-vcs/git-1.8.3.2::gentoo
Comment 2 Andrew Savchenko gentoo-dev 2013-08-03 12:36:35 UTC
Created attachment 355012 [details]
environment
Comment 3 Andrew Savchenko gentoo-dev 2013-08-03 12:36:50 UTC
Created attachment 355014 [details]
build.log
Comment 4 Andrew Savchenko gentoo-dev 2013-08-03 12:39:37 UTC
With threads enabled git builds fine.

As you can see from the build.log, USE="-threads" seems to be broken anyway, because thread-utils.o builds anyway and a lot of code is linked with -lpthread.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2013-10-15 19:20:03 UTC
Fixed in 1.8.4.