| Summary: | 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' | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Andrew Savchenko <bircoph> |
| Component: | [OLD] Development | Assignee: | Robin Johnson <robbat2> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | bircoph |
| Priority: | Normal | Keywords: | NeedPatch |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Bug Depends on: | |||
| Bug Blocks: | 480306 | ||
| Attachments: |
emerge --info =dev-vcs/git-1.8.3.2::gentoo
environment build.log |
||
Created attachment 355010 [details]
emerge --info =dev-vcs/git-1.8.3.2::gentoo
Created attachment 355012 [details]
environment
Created attachment 355014 [details]
build.log
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. Fixed in 1.8.4. |
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%"