CentOS compilation error- No rule to make target #26273

issue liorwavebl openend this issue on October 6, 2022
  1. liorwavebl commented at 1:31 pm on October 6, 2022: none

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

    0make[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

  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:

    0./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: 2024-07-01 10:13 UTC

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