CentOS compilation error- No rule to make target #26273

issue liorwavebl opened this issue on October 6, 2022
  1. liorwavebl commented at 1:31 PM on October 6, 2022: none

    <!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! Any report, issue or feature request related to the GUI should be reported at https://github.com/bitcoin-core/gui/issues/ -->

    <!-- Describe the issue -->

    I'm trying to compile bitcoin v23.0 tag (commit id: fcf6c8f). During the compilation I received this error:

    make[2]: *** No rule to make target '%reldir%/lib/univalue.cpp', needed by '%reldir%/lib/libunivalue_la-univalue.lo'.  Stop.
    

    OS: CentOS 7 Compiler GCC 11.2.0

    <!--- What behavior did you expect? -->

    <!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->

    <!--- How reliably can you reproduce the issue, what are the steps to do so? -->

    <!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->

    <!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->

    <!-- GUI-related issue? What is your operating system and its version? If Linux, what is your desktop environment and graphical shell? -->

    <!-- Any extra information that might be useful in the debugging process. -->

    <!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->

  2. maflcko commented at 1:37 PM on October 6, 2022: member

    Did you run make distclean before ./configure?

    What are the exact steps to reproduce from a fresh install of CentOS 7?

  3. maflcko added the label Build system on Oct 6, 2022
  4. maflcko added the label Questions and Help on Oct 6, 2022
  5. liorwavebl commented at 1:45 PM on October 6, 2022: none

    Steps to reproduce:

    1. Install gcc 11.2.0 (I followed this gist: https://gist.github.com/nchaigne/ad06bc867f911a3c0d32939f1e930a11)
    2. Clone bitcoin and checkout v23.0- git clone https://github.com/bitcoin/bitcoin.git
    3. Change directory and checkout- cd bitcoin && git checkout v23.0
    4. Compile bitcoin dependencies- make -C ./depends NO_QT=1
    5. Run ./autogen.sh
    6. Run CONFIG_SITE=$PWD/depends/x86_64-pc-linux-gnu/share/config.site ./configure --with-gui=no --disable-tests --disable-bench
    7. Run make
  6. maflcko commented at 1:59 PM on October 6, 2022: member

    I meant exact steps to reproduce that can be copy-pasted 1:1, otherwise it seems unlikely that someone will give this a try, given that CentOS7 isn't officially supported anymore by Bitcoin Core

  7. liorwavebl commented at 2:27 PM on October 6, 2022: none

    I updated my original response.

  8. hebasto commented at 2:35 PM on October 6, 2022: member

    It does not look correct:

    4. Compile bitcoin dependencies- make -C ./deploy NO_QT=1

    Should be: make -C ./depends NO_QT=1

  9. hebasto commented at 2:36 PM on October 6, 2022: member

    Also building with depends requires the CONFIG_SITE variable set when running ./configure script.

  10. liorwavebl commented at 2:38 PM on October 6, 2022: none

    @hebasto I updated again the original response. Thank you for your comments.

  11. hebasto commented at 2:40 PM on October 6, 2022: member

    Assuming a clean repository, you also need to run the ./autogen.sh script before configuring.

  12. maflcko commented at 3:25 PM on October 6, 2022: member

    Can you upgrade your operating system? This might be the easiest solution, given that you'll have to do it anyway before CentOS 7 is EOL.

  13. maflcko commented at 4:38 PM on October 6, 2022: member

    For reference, I can reproduce on a fresh install of CentOS 7 with your steps. Though, I can't help further with debugging this, as I am not familiar with autotools build systems.

  14. maflcko commented at 4:47 PM on October 6, 2022: member

    Even if you managed to compile this, it wouldn't run:

    ./bitcoin-23.0/bin/bitcoind: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by ./bitcoin-23.0/bin/bitcoind)
    
  15. maflcko closed this on Oct 6, 2022

  16. bitcoin locked this on Oct 6, 2023

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-04-22 18:13 UTC

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