compiling in gentoo g++: error: @LIBPTHREAD@ #3307

issue piotr-sikora-v opened this issue on November 22, 2013
  1. piotr-sikora-v commented at 2:57 PM on November 22, 2013: none

    On gentoo linux... ./configure go fine.. but when I do make I see: make[5]: Wejście do katalogu /media/tmp/bitcoin/src/qt/test' make all-am make[6]: Wejście do katalogu/media/tmp/bitcoin/src/qt/test' CXXLD test_bitcoin-qt g++: error: @LIBPTHREAD@: Nie ma takiego pliku ani katalogu "Nie ma takiego pliku ani katalogu" mean "No such file or directory"

    When i added --disable-tests I see same error: make[5]: Wejście do katalogu `/tmp/bitcoin/src/qt' [....] AR libbitcoinqt.a CXX bitcoin_qt-bitcoin.o CXXLD bitcoin-qt g++: error: @LIBPTHREAD@: Nie ma takiego pliku ani katalogu

    Tested on commit: be5d37c59757ac3b6deae1e3b238dcb2168207cb

  2. laanwj commented at 2:32 PM on November 25, 2013: member

    Not sure what the @LIBPTHREAD@ comes from, I cannot find it in Makefile.am or configure.ac My guess is that it is caused by a version incompatibility of autoconf/automake

  3. piotr-sikora-v commented at 2:36 PM on November 25, 2013: none

    In gentoo I have many version of autoconf/automake ... by default now I have: autoconf (GNU Autoconf) 2.68 automake (GNU automake) 1.12.6

    maybe configure should check for good verision of autoconf/automake if that is problem ?

  4. laanwj commented at 2:52 PM on November 25, 2013: member

    My ubuntu has:

    autoconf (GNU Autoconf) 2.68
    automake (GNU automake) 1.11.3
    

    So seemingly this is not the problem...

  5. theuni commented at 7:32 AM on November 27, 2013: member

    I've seen this before, it comes from a busted libqrencode pkg-config file. Gentoo needs to sanitize it in their libqrencode ebuild.

  6. theuni commented at 8:06 AM on November 27, 2013: member

    More specifically, the error is here: https://github.com/fukuchi/libqrencode/blob/master/configure.ac#L45

    The AC_SUBST is conditional. If it's not called, the @LIBPTHREAD@ is not replaced and ends up in libqrencode.pc.

  7. laanwj commented at 1:27 PM on December 8, 2013: member

    So this is really an upstream problem?

  8. kuzetsa commented at 6:00 PM on December 8, 2013: none

    @svirusxxx why are you manually using ./configure and make instead of gentoo's ebuild scripts?

    bitcoind 0.8.5 compiles normally for me on gentoo using sys-devel/gcc-4.8.2

    I currently have it installed, and my node is operating normally.

    I don't think this is an issue with upstream (bitcoin code) but rather, you have a broken gentoo install

    This is the versions used on my current, working, "not broken on gentoo" build environment:

    kuzetsa@yurizoku ~ $ emerge sys-devel/gcc bitcoind --verbose --emptytree --pretend
    
    These are the packages that would be merged, in order:
    
    Calculating dependencies... done!
    [ebuild   R    ] sys-libs/ncurses-5.9-r2:5  USE="cxx unicode -ada -debug -doc -gpm -minimal -profile -static-libs -tinfo -trace" 0 kB
    [ebuild   R    ] virtual/libintl-0  0 kB
    [ebuild   R    ] app-arch/bzip2-1.0.6-r3  USE="-static -static-libs" 0 kB
    [ebuild   R    ] sys-devel/gnuconfig-20130111  0 kB
    [ebuild   R    ] virtual/libiconv-0  0 kB
    [ebuild   R    ] dev-libs/expat-2.1.0-r2  USE="unicode -examples -static-libs" 0 kB
    [ebuild   R    ] app-misc/mime-types-9  0 kB
    [ebuild   R    ] sys-devel/binutils-config-3-r3  0 kB
    [ebuild   R    ] sys-devel/gcc-config-1.7.3  0 kB
    [ebuild   R    ] sys-libs/timezone-data-2013d  USE="nls" 0 kB
    [ebuild   R    ] dev-libs/libffi-3.0.11  USE="-debug -static-libs {-test}" 0 kB
    [ebuild   R    ] sys-devel/patch-2.6.1  USE="-static {-test}" 0 kB
    [ebuild   R    ] dev-libs/leveldb-1.9.0-r5  USE="-snappy -static-libs" 0 kB
    [ebuild   R    ] dev-util/boost-build-1.52.0-r1  USE="-examples -python {-test}" 0 kB
    [ebuild   R    ] sys-devel/autoconf-wrapper-13  0 kB
    [ebuild   R    ] sys-devel/automake-wrapper-9  0 kB
    [ebuild   R    ] app-text/sgml-common-0.6.3-r5  0 kB
    [ebuild   R    ] sys-libs/readline-6.2_p1  0 kB
    [ebuild   R    ] virtual/libffi-3.0.11  0 kB
    [ebuild   R    ] app-arch/unzip-6.0-r3  USE="bzip2 unicode -natspec" 0 kB
    [ebuild   R    ] sys-apps/debianutils-4.3.4  USE="-static" 0 kB
    [ebuild   R    ] sys-devel/libperl-5.10.1:1  0 kB
    [ebuild   R    ] virtual/acl-0-r1  USE="-static-libs" 0 kB
    [ebuild   R    ] virtual/os-headers-0  0 kB
    [ebuild   R    ] app-admin/python-updater-0.11  0 kB
    [ebuild   R    ] app-admin/eselect-python-20111108  0 kB
    [ebuild   R    ] app-misc/ca-certificates-20130119  0 kB
    [ebuild   R    ] app-text/build-docbook-catalog-1.19.1  0 kB
    [ebuild   R    ] app-text/docbook-xsl-stylesheets-1.78.0  USE="-ruby" 0 kB
    [ebuild   R    ] app-text/docbook-xml-dtd-4.1.2-r6:4.1.2  0 kB
    [ebuild   R    ] sys-devel/gettext-0.18.2  USE="acl cxx nls openmp -cvs -doc -emacs -git -java -static-libs" 0 kB
    [ebuild   R    ] sys-apps/sed-4.2.1-r1  USE="acl nls (-selinux) -static" 0 kB
    [ebuild   R    ] sys-devel/make-3.82-r4  USE="nls -static" 0 kB
    [ebuild   R    ] dev-libs/popt-1.16-r1  USE="nls -static-libs" 0 kB
    [ebuild   R    ] dev-libs/libgpg-error-1.12  USE="nls -common-lisp -static-libs" 0 kB
    [ebuild   R    ] sys-apps/coreutils-8.20  USE="acl nls -caps -gmp (-selinux) -static -vanilla -xattr" 0 kB
    [ebuild   R    ] sys-libs/zlib-1.2.8-r1  USE="-minizip -static-libs" 0 kB
    [ebuild   R    ] app-arch/xz-utils-5.0.5-r1  USE="nls threads -static-libs" 0 kB
    [ebuild   R    ] app-misc/pax-utils-0.4  USE="-caps" 0 kB
    [ebuild   R    ] sys-apps/file-5.12-r1  USE="zlib -python -static-libs" 0 kB
    [ebuild   R    ] sys-apps/diffutils-3.3  USE="nls -static" 0 kB
    [ebuild   R    ] sys-apps/util-linux-2.22.2  USE="cramfs crypt ncurses nls suid unicode -ddate -old-linux -perl (-selinux) -slang -static-libs {-test} -udev" 0 kB
    [ebuild   R    ] sys-devel/m4-1.4.16  USE="-examples" 0 kB
    [ebuild   R    ] dev-libs/boost-1.52.0-r6:0/1.52  USE="nls threads -debug -doc -icu -mpi -python -static-libs -tools" PYTHON_TARGETS="python2_7 -python2_6 -python3_2 (-python3_3)" 0 kB
    [ebuild   R    ] dev-libs/gmp-5.0.2_p1  USE="cxx -doc -static-libs" 0 kB
    [ebuild   R    ] app-admin/eselect-1.3.8  USE="-doc -emacs -vim-syntax" 0 kB
    [ebuild   R    ] sys-apps/sandbox-2.6-r1  USE="(-multilib)" 0 kB
    [ebuild   R    ] sys-devel/flex-2.5.37  USE="nls -static {-test}" 0 kB
    [ebuild   R    ] sys-devel/bison-2.4.3  USE="nls -static" 0 kB
    [ebuild   R    ] dev-libs/mpfr-3.1.1  USE="-static-libs" 0 kB
    [ebuild   R    ] virtual/yacc-0  0 kB
    [ebuild   R    ] dev-libs/elfutils-0.149  USE="bzip2 nls zlib -lzma" 0 kB
    [ebuild   R    ] app-shells/bash-4.2_p45  USE="net nls (readline) -afs -bashlogger -examples -mem-scramble -plugins -vanilla" 0 kB
    [ebuild   R   ~] sys-devel/binutils-2.23.2  USE="cxx nls zlib -multislot -multitarget -static-libs {-test} -vanilla" 0 kB
    [ebuild   R    ] dev-libs/mpc-1.0.1  USE="-static-libs" 0 kB
    [ebuild   R    ] dev-lang/python-exec-2.0.1:2  PYTHON_TARGETS="(jython2_5) (jython2_7) (pypy2_0) (python2_6) (python2_7) (python3_2) (python3_3)" 0 kB
    [ebuild   R    ] dev-lang/python-exec-0.3.1  PYTHON_TARGETS="(jython2_5) (jython2_7) (pypy2_0) (python2_6) (python2_7) (python3_2) (python3_3)" 0 kB
    [ebuild   R    ] dev-python/python-exec-10000.2:2  PYTHON_TARGETS="(jython2_5) (jython2_7) (pypy2_0) (python2_6) (python2_7) (python3_2) (python3_3)" 0 kB
    [ebuild   R    ] dev-python/python-exec-10000.1  PYTHON_TARGETS="(jython2_5) (jython2_7) (pypy2_0) (python2_6) (python2_7) (python3_2) (python3_3)" 0 kB
    [ebuild   R    ] app-admin/perl-cleaner-2.7  0 kB
    [ebuild   R    ] dev-libs/libxml2-2.9.1-r1:2  USE="ipv6 python readline -debug -examples -icu -lzma -static-libs {-test}" PYTHON_TARGETS="python2_7 -python2_6 -python3_2 (-python3_3)" 0 kB
    [ebuild   R    ] dev-libs/openssl-1.0.1e-r1  USE="sse2 tls-heartbeat zlib -bindist -gmp -kerberos -rfc3779 -static-libs {-test} -vanilla" 0 kB
    [ebuild   R    ] sys-libs/db-4.8.30:4.8  USE="cxx -doc -examples -java -tcl {-test}" 0 kB
    [ebuild   R    ] sys-libs/gdbm-1.8.3-r4  USE="berkdb" 0 kB
    [ebuild   R    ] dev-lang/perl-5.12.4-r1  USE="berkdb gdbm -build -debug -doc -ithreads" 0 kB
    [ebuild   R   ~] sys-kernel/linux-headers-3.10  0 kB
    [ebuild   R    ] sys-devel/autoconf-2.69:2.5  USE="-emacs -multislot" 0 kB
    [ebuild   R    ] dev-perl/Locale-gettext-1.50.0  0 kB
    [ebuild   R    ] dev-perl/XML-Parser-2.410.0  0 kB
    [ebuild   R    ] sys-apps/attr-2.4.46-r2  USE="nls -static-libs" 0 kB
    [ebuild   R    ] sys-apps/help2man-1.40.11  USE="nls" 0 kB
    [ebuild   R    ] dev-util/intltool-0.50.2-r1  0 kB
    [ebuild   R    ] sys-apps/acl-2.2.51  USE="nls (-nfs) -static-libs" 0 kB
    [ebuild   R    ] sys-devel/automake-1.13.4:1.13  0 kB
    [ebuild   R    ] sys-devel/libtool-2.4.2:2  USE="-static-libs {-test} -vanilla" 0 kB
    [ebuild   R    ] dev-libs/libgcrypt-1.5.3:0/11  USE="-static-libs" 0 kB
    [ebuild   R    ] dev-libs/libxslt-1.1.28-r1  USE="crypt -debug -python -static-libs" PYTHON_TARGETS="python2_7 -python2_6" 0 kB
    [ebuild   R    ] dev-util/gtk-doc-am-1.19  0 kB
    [ebuild   R   ~] dev-libs/glib-2.36.4-r1:2  USE="-debug (-fam) (-selinux) -static-libs -systemtap {-test} -utils -xattr" PYTHON_TARGETS="python2_7 -python2_6" 0 kB
    [ebuild   R    ] dev-util/pkgconfig-0.28  USE="-hardened -internal-glib" 0 kB
    [ebuild   R    ] virtual/pkgconfig-0  0 kB
    [ebuild   R    ] dev-lang/python-2.7.5-r3:2.7  USE="gdbm ipv6 ncurses readline ssl threads (wide-unicode) xml -berkdb -build -doc -examples -hardened -sqlite -tk -wininst" 0 kB
    [ebuild   R    ] net-misc/rsync-3.0.9-r3  USE="acl iconv ipv6 -static -xattr" 0 kB
    [ebuild   R    ] x11-misc/shared-mime-info-1.0  0 kB
    [ebuild   R    ] net-p2p/bitcoind-0.8.5  USE="ipv6 -bash-completion -examples -logrotate -upnp" 0 kB
    [ebuild   R    ] sys-apps/portage-2.2.7  USE="(ipc) python2 -build -doc -epydoc (-pypy2_0) -python3 (-selinux) -xattr" LINGUAS="-ru" PYTHON_TARGETS="python2_7 -pypy2_0 -python2_6 -python3_2 -python3_3 (-python3_4)" 0 kB
    [ebuild   R   ~] sys-devel/gcc-4.8.2:4.8  USE="cxx fortran mudflap nls nptl openmp (-altivec) -doc (-fixed-point) -gcj -go -graphite -gtk (-hardened) (-libssp) -lto (-multilib) -multislot -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla" 0 kB
    [ebuild   R    ] sys-libs/glibc-2.16.0:2.2  USE="-debug -gd (-hardened) (-multilib) -profile (-selinux) -suid -systemtap -vanilla" 0 kB
    
    Total: 88 packages (88 reinstalls), Size of downloads: 0 kB
    kuzetsa@yurizoku ~ $
    
  9. theuni commented at 8:25 PM on December 9, 2013: member

    0.8.5 did not use pkg-config, because it did not have a real buildsystem, only a simple makefile.

    Please see the detailed explanation of the issue above. This is not a bitcoin bug.

  10. laanwj closed this on Dec 10, 2013

  11. Bushstar referenced this in commit dbbc51121c on Apr 8, 2020
  12. Bushstar referenced this in commit 9166ecdbcf on Apr 8, 2020
  13. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-01 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me