freebsd 12.1 build broken #19633

issue metacreo openend this issue on July 31, 2020
  1. metacreo commented at 7:56 am on July 31, 2020: none

    ./configure --with-gui=no --disable-tests --disable-wallet MAKE=gmake

    CXXLD bench/bench_bitcoin /usr/local/bin/ld: libbitcoin_util.a(libbitcoin_util_a-system.o): in functionSetupEnvironment()’: /opt/bitcoin/bitcoin-0.20.0/src/util/system.cpp:1103: undefined reference to boost::filesystem::path::imbue(std::locale const&)' /usr/local/bin/ld: /opt/bitcoin/bitcoin-0.20.0/src/util/system.cpp:1105: undefined reference to boost::filesystem::path::imbue(std::locale const&)’ collect2: error: ld returned 1 exit status gmake[2]: *** [Makefile:7354: bitcoin-tx] Error 1 gmake[2]: *** Waiting for unfinished jobs…. /usr/local/bin/ld: libbitcoin_util.a(libbitcoin_util_a-system.o): in function SetupEnvironment()': /opt/bitcoin/bitcoin-0.20.0/src/util/system.cpp:1103: undefined reference to boost::filesystem::path::imbue(std::locale const&)’ /usr/local/bin/ld: /opt/bitcoin/bitcoin-0.20.0/src/util/system.cpp:1105: undefined reference to boost::filesystem::path::imbue(std::locale const&)' collect2: error: ld returned 1 exit status gmake[2]: *** [Makefile:7350: bitcoin-cli] Error 1 /usr/local/bin/ld: libbitcoin_util.a(libbitcoin_util_a-system.o): in function SetupEnvironment()’: /opt/bitcoin/bitcoin-0.20.0/src/util/system.cpp:1103: undefined reference to boost::filesystem::path::imbue(std::locale const&)' /usr/local/bin/ld: /opt/bitcoin/bitcoin-0.20.0/src/util/system.cpp:1105: undefined reference to boost::filesystem::path::imbue(std::locale const&)’ collect2: error: ld returned 1 exit status gmake[2]: *** [Makefile:7362: bitcoind] Error 1 /usr/local/bin/ld: libbitcoin_util.a(libbitcoin_util_a-system.o): in function SetupEnvironment()': /opt/bitcoin/bitcoin-0.20.0/src/util/system.cpp:1103: undefined reference to boost::filesystem::path::imbue(std::locale const&)’ /usr/local/bin/ld: /opt/bitcoin/bitcoin-0.20.0/src/util/system.cpp:1105: undefined reference to boost::filesystem::path::imbue(std::locale const&)' collect2: error: ld returned 1 exit status gmake[2]: *** [Makefile:7346: bench/bench_bitcoin] Error 1 gmake[2]: Leaving directory '/opt/bitcoin/bitcoin-0.20.0/src' gmake[1]: *** [Makefile:17262: all-recursive] Error 1 gmake[1]: Leaving directory '/opt/bitcoin/bitcoin-0.20.0/src' gmake: *** [Makefile:780: all-recursive] Error 1

  2. metacreo added the label Bug on Jul 31, 2020
  3. fanquake commented at 8:37 am on July 31, 2020: member

    Can you try a gmake clean and recompiling? Are your Boost libraries installed and available? Can you provide any more information?

    I’ve just tested and can compile v0.20.0 and master (a63a26f042134fa80356860c109edb25ac567552) on FreeBSD 12.1 with no issue following the instructions in build-freebsd.md.

  4. metacreo commented at 9:00 am on July 31, 2020: none

    pkg info | grep boost

    boost-all-1.72.0 The “meta-port” for boost libraries boost-docs-1.72.0 Documentation for libraries from boost.org boost-jam-1.72.0 Build tool from the boost.org boost-libs-1.72.0_2 Free portable C++ libraries (without Boost.Python) boost_build-2.0.m12_13 Extensible cross-platform build tool suite

    make clean

    make: “/opt/bitcoin/bitcoin-0.20.0/Makefile” line 1216: Variable/Value missing from “export” make: Fatal errors encountered – cannot continue make: stopped in /opt/bitcoin/bitcoin-0.20.0

    Makefile" line 1216 “export PYTHONPATH” changed to “export PYTHONPATH=/opt/bitcoin”

    make clean && gmake -j4

    /usr/local/bin/ld: libbitcoin_util.a(libbitcoin_util_a-system.o): in function SetupEnvironment()’: /opt/bitcoin/bitcoin-0.20.0/src/util/system.cpp:1103: undefined reference to boost::filesystem::path::imbue(std::locale const&)' /usr/local/bin/ld: /opt/bitcoin/bitcoin-0.20.0/src/util/system.cpp:1105: undefined reference to boost::filesystem::path::imbue(std::locale const&)’ collect2: error: ld returned 1 exit status gmake[2]: *** [Makefile:7350: bitcoin-cli] Error 1 gmake[2]: *** Waiting for unfinished jobs…. /usr/local/bin/ld: libbitcoin_util.a(libbitcoin_util_a-system.o): in function SetupEnvironment()': /opt/bitcoin/bitcoin-0.20.0/src/util/system.cpp:1103: undefined reference to boost::filesystem::path::imbue(std::locale const&)’ /usr/local/bin/ld: /opt/bitcoin/bitcoin-0.20.0/src/util/system.cpp:1105: undefined reference to boost::filesystem::path::imbue(std::locale const&)' collect2: error: ld returned 1 exit status gmake[2]: *** [Makefile:7354: bitcoin-tx] Error 1 /usr/local/bin/ld: libbitcoin_util.a(libbitcoin_util_a-system.o): in function SetupEnvironment()’: /opt/bitcoin/bitcoin-0.20.0/src/util/system.cpp:1103: undefined reference to boost::filesystem::path::imbue(std::locale const&)' /usr/local/bin/ld: /opt/bitcoin/bitcoin-0.20.0/src/util/system.cpp:1105: undefined reference to boost::filesystem::path::imbue(std::locale const&)’ collect2: error: ld returned 1 exit status gmake[2]: *** [Makefile:7362: bitcoind] Error 1 gmake[2]: Leaving directory ‘/opt/bitcoin/bitcoin-0.20.0/src’ gmake[1]: *** [Makefile:17262: all-recursive] Error 1 gmake[1]: Leaving directory ‘/opt/bitcoin/bitcoin-0.20.0/src’ gmake: *** [Makefile:780: all-recursive] Error 1 `

    locale

    LANG=en_US.UTF-8 LC_CTYPE=“en_US.UTF-8” LC_COLLATE=“en_US.UTF-8” LC_TIME=“en_US.UTF-8” LC_NUMERIC=“en_US.UTF-8” LC_MONETARY=“en_US.UTF-8” LC_MESSAGES=“en_US.UTF-8” LC_ALL=en_US.UTF-8

  5. MarcoFalke commented at 9:14 am on July 31, 2020: member
    Can you also try a ./autogen.sh and then make the distclean target?
  6. metacreo commented at 9:29 am on July 31, 2020: none

    make distclean

    make: “/opt/bitcoin/bitcoin-0.20.0/Makefile” line 1216: Variable/Value missing from “export” make: Fatal errors encountered – cannot continue make: stopped in /opt/bitcoin/bitcoin-0.20.0

    Makefile" line 1216 “export PYTHONPATH” changed to “export PYTHONPATH=/opt/bitcoin”

    make distclean

    Making distclean in src make[1]: “/opt/bitcoin/bitcoin-0.20.0/src/Makefile” line 19069: warning: duplicate script for target “%.raw.h” ignored make[1]: “/opt/bitcoin/bitcoin-0.20.0/src/Makefile” line 19056: warning: using previous script for “%.raw.h” defined here make[1]: “/opt/bitcoin/bitcoin-0.20.0/src/Makefile” line 19074: warning: duplicate script for target “%.raw.h” ignored make[1]: “/opt/bitcoin/bitcoin-0.20.0/src/Makefile” line 19056: warning: using previous script for “%.raw.h” defined here make[1]: “/opt/bitcoin/bitcoin-0.20.0/src/Makefile” line 19075: warning: duplicate script for target “%.raw.h” ignored make[1]: “/opt/bitcoin/bitcoin-0.20.0/src/Makefile” line 19056: warning: using previous script for “%.raw.h” defined here Making distclean in secp256k1 cd: secp256k1: No such file or directory *** Error code 1

    Stop. make[1]: stopped in /opt/bitcoin/bitcoin-0.20.0/src *** Error code 1

    Stop.

  7. MarcoFalke commented at 10:32 am on July 31, 2020: member
    does it also happen on a fresh clone of the repo/code?
  8. metacreo commented at 10:35 am on July 31, 2020: none

    I tried this https://bitcoincore.org/bin/bitcoin-core-0.20.0/bitcoin-0.20.0.tar.gz and tried git master https://github.com/bitcoin/bitcoin.git the same

    Just now from git master a63a26f

    AR crc32c/libcrc32c.a AR leveldb/libmemenv.a AR libtest_util.a CXXLD bitcoin-cli CXXLD bitcoin-tx /usr/local/bin/ld: libbitcoin_util.a(libbitcoin_util_a-system.o): in function SetupEnvironment()': /opt/bitcoin/bitcoin/src/util/system.cpp:1193: undefined reference to boost::filesystem::path::imbue(std::locale const&)’ /usr/local/bin/ld: /opt/bitcoin/bitcoin/src/util/system.cpp:1195: undefined reference to boost::filesystem::path::imbue(std::locale const&)' collect2: error: ld returned 1 exit status gmake[2]: *** [Makefile:8040: bitcoin-cli] Error 1 gmake[2]: *** Waiting for unfinished jobs.... /usr/local/bin/ld: libbitcoin_util.a(libbitcoin_util_a-system.o): in function SetupEnvironment()’: /opt/bitcoin/bitcoin/src/util/system.cpp:1193: undefined reference to boost::filesystem::path::imbue(std::locale const&)' /usr/local/bin/ld: /opt/bitcoin/bitcoin/src/util/system.cpp:1195: undefined reference to boost::filesystem::path::imbue(std::locale const&)’ collect2: error: ld returned 1 exit status gmake[2]: *** [Makefile:8062: bitcoin-tx] Error 1 gmake[2]: Leaving directory ‘/opt/bitcoin/bitcoin/src’ gmake[1]: *** [Makefile:18791: all-recursive] Error 1 gmake[1]: Leaving directory ‘/opt/bitcoin/bitcoin/src’ gmake: *** [Makefile:787: all-recursive] Error 1

  9. MarcoFalke removed the label Bug on Jul 31, 2020
  10. MarcoFalke added the label Questions and Help on Jul 31, 2020
  11. MarcoFalke added the label Build system on Jul 31, 2020
  12. MarcoFalke added the label Linux/Unix on Jul 31, 2020
  13. MarcoFalke commented at 10:46 am on July 31, 2020: member
    Does it happen on a fresh install of the operating system as well, if you have access to a fresh install?
  14. MarcoFalke commented at 10:48 am on July 31, 2020: member
    Otherwise you could try to remove the boost libraries and reinstall them. This really sounds like a system issue on your end.
  15. metacreo commented at 10:49 am on July 31, 2020: none
    Sorry, just now I only have real physical server with freebsd 12.1 version 19 from ports build normaly mb a little later I can try to build on vm with freebsd 12.1
  16. metacreo commented at 11:00 am on July 31, 2020: none
    OK. I will try reinstall boost-libs now. What do you think? boost better install from ports or just install from pkg?
  17. metacreo commented at 12:18 pm on July 31, 2020: none

    BUILD SUCCESS

    git clone https://github.com/bitcoin/bitcoin.git /opt/bitcoin/bitcoin

    cd /opt/bitcoin/bitcoin

    setenv CC /usr/bin/cc setenv CXX /usr/bin/c++

    ./autogen.sh && ./configure –with-gui=no –disable-wallet MAKE=gmake && gmake clean && gmake -j4

    gmake check

    TOTAL: 3 PASS: 3 SKIP: 0 XFAIL: 0 FAIL: 0 XPASS: 0 ERROR: 0

  18. MarcoFalke commented at 4:24 pm on July 31, 2020: member

    BUILD SUCCESS

    Good to hear. Closing

  19. MarcoFalke closed this on Jul 31, 2020

  20. MarcoFalke locked this on Feb 15, 2022

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: 2024-12-03 15:12 UTC

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