Can’t compile v24.0.1 #27680

issue DanM3rcurius openend this issue on May 16, 2023
  1. DanM3rcurius commented at 9:33 pm on May 16, 2023: none

    Is there an existing issue for this?

    • I have searched the existing issues

    Current behaviour

    I’m trying to install bitcoin core headless with wallet on Raspi4 with Raspi OS installed on a bootable SSD.

    Berkeley DB 4.8 is installed as per this tutorial https://raspnode.com/diyBitcoin.html#swap

    When I try to compile the 24.0.1 branch, i only get as far as the configure command here: When I enter (in the cloned bitcoin folder):

    ./configure CPPFLAGS="-I/usr/local/BerkeleyDB.4.8/include -O2" LDFLAGS="-L/usr/local/BerkeleyDB.4.8/lib"

    I get the following response:

    0checking for pkg-config... /usr/bin/pkg-config
    1checking pkg-config is at least version 0.9.0... yes
    2configure: error: cannot run /bin/bash build-aux/config.sub
    

    Not sure why this is happening. When I look at the config file in the “build-aux” folder, it looks like the config file i updated previously when trying to solve a previous error with installing the BerkeleyDB.

    I’m a bit out of my depth and would appreciate any help!

    Expected behaviour

    Bitcoin core compiles correctly

    Steps to reproduce

    Setup Raspi4 with Raspi OS installed on a bootable SSD Install BDB 4.8 Clone bitcoin repo 24.0.1 configure

    Relevant log output

    No response

    How did you obtain Bitcoin Core

    Compiled from source

    What version of Bitcoin Core are you using?

    v24.0.1

    Operating system and version

    Raspberry OS (Raspnode)

    Machine specifications

    Raspi 4B 8GB , 1TB SSD

  2. hebasto commented at 10:21 pm on May 16, 2023: member

    Steps to reproduce

    Setup Raspi4 with Raspi OS installed on a bootable SSD Install BDB 4.8 Clone bitcoin repo 24.0.1 configure

    Try to run ./autogen.sh before ./configure as it is documented here.

  3. maflcko added the label Build system on May 17, 2023
  4. maflcko added the label Questions and Help on May 17, 2023
  5. maflcko commented at 6:18 am on May 17, 2023: member
    Closing for now. Let us know if you have any other questions.
  6. maflcko closed this on May 17, 2023

  7. DanM3rcurius commented at 10:31 am on May 17, 2023: none

    Hi Hennadii,

    I did, sorry i forgot to mention that. Anything else that i miss?

    sincerely, Dan

    Sent with Proton Mail secure email.

    ——- Original Message ——- On Wednesday, May 17th, 2023 at 00:21, Hennadii Stepanov @.***> wrote:

    Steps to reproduce

    Setup Raspi4 with Raspi OS installed on a bootable SSD Install BDB 4.8 Clone bitcoin repo 24.0.1 configure

    Try to run ./autogen.sh before ./configure as it is documented here.

    — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

  8. maflcko commented at 10:38 am on May 17, 2023: member
    What are the exact steps to reproduce? Make sure to follow https://github.com/bitcoin/bitcoin/blob/24.x/doc/build-unix.md#to-build and not an external outdated random blog post from 2016. BDB isn’t required for new installs, and in fact discouraged, unless you need it for a legacy wallet. New wallets use sqlite.
  9. DanM3rcurius commented at 10:43 am on May 17, 2023: none

    Thank you for that info. i will start from the beginning.

    Sent from Proton Mail for iOS

    On Wed, May 17, 2023 at 12:38, MacrabFalke @.***> wrote:

    What are the exact steps to reproduce? Make sure to follow https://github.com/bitcoin/bitcoin/blob/24.x/doc/build-unix.md#to-build and not an external outdated random blog post from 2016. BDB isn’t required for new installs, and in fact discouraged, unless you need it for a legacy wallet. New wallets use sqlite.

    — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

  10. DanM3rcurius commented at 10:47 am on May 17, 2023: none

    Why i used the blog post, because it was linked from a beginner friendly tutorial for a raspnode setup. The bitcoin docs on github are difficult for novices like me to understand and execute.

    Sent from Proton Mail for iOS

    On Wed, May 17, 2023 at 12:38, MacrabFalke @.***> wrote:

    What are the exact steps to reproduce? Make sure to follow https://github.com/bitcoin/bitcoin/blob/24.x/doc/build-unix.md#to-build and not an external outdated random blog post from 2016. BDB isn’t required for new installs, and in fact discouraged, unless you need it for a legacy wallet. New wallets use sqlite.

    — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

  11. maflcko commented at 10:59 am on May 17, 2023: member
    Ok, I’ll try to simplify them. You should be able to just follow the section for “Debian/Ubuntu”.
  12. DanM3rcurius commented at 11:14 am on May 17, 2023: none

    Many thanks! I’ll share my noob-pov experience with the tutorial once core is running.

    Sincerely, Dan

    Sent with Proton Mail secure email.

    ——- Original Message ——- On Wednesday, May 17th, 2023 at 12:59, MacrabFalke @.***> wrote:

    Ok, I’ll try to simplify them. You should be able to just follow the section for “Debian/Ubuntu”.

    — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

  13. maflcko commented at 11:55 am on May 17, 2023: member
    ok, sgtm
  14. DanM3rcurius commented at 4:20 am on May 18, 2023: none

    It’s building now! I used default parameters and left the GUI ins this time, so its taking quite a while ^^

    The documentation in the github was absolutely fine. I added the BDB as I might need to access legacy wallets, for RasPi OS I had to add the --build=aarch64-unknown-linux-gnu to the ./configure command before building the DB.

    For a noob like me it’s important to know that the ./autogen.sh script and configure command are run after all dependencies have been installed. When I first looked at the readme it seemed if that should be done first. Also I didn’t quite understand the note and how to specify the absolute path to the dependencies (seemed I didn’t need to anyhow), maybe adding another example how a specific absolute paths looks for a specific dependency would help.

    Thanks for listening and helping out!

  15. maflcko commented at 10:58 am on May 18, 2023: member

    Also I didn’t quite understand the note and how to specify the absolute path …

    Thanks, I agree that the section about absolute folders is confusing. So I removed it in https://github.com/bitcoin/bitcoin/pull/27685

  16. DanM3rcurius commented at 5:20 pm on May 18, 2023: none

    Thanks for taking my feedback into consideration. Have a wonderful weekend ahead!

    Sent from Proton Mail for iOS

    On Thu, May 18, 2023 at 12:58, MacrabFalke @.***> wrote:

    Also I didn’t quite understand the note and how to specify the absolute path …

    Thanks, I agree that the section about absolute folders is confusing. So I removed it in #27685

    — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

  17. bitcoin locked this on May 17, 2024

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

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