Bitcoin Forum
May 05, 2024, 10:39:09 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin Core doesn't compile  (Read 104 times)
BlueBoat (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
December 20, 2022, 10:12:42 AM
 #1

Hi all,

I'm trying to compile Bitcoin Core but I'm getting an error message.

After the following commands,
Code:
$./autogen.sh
$./configure
$sudo make

I got the the following error message :

Quote
make: *** No targets specified and no makefile found.  Stop.

A Makefile.am exists in the main folder so I don't see where come from.
1714948749
Hero Member
*
Offline Offline

Posts: 1714948749

View Profile Personal Message (Offline)

Ignore
1714948749
Reply with quote  #2

1714948749
Report to moderator
Once a transaction has 6 confirmations, it is extremely unlikely that an attacker without at least 50% of the network's computation power would be able to reverse it.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Edwardard
Hero Member
*****
Offline Offline

Activity: 1050
Merit: 681



View Profile WWW
December 20, 2022, 11:07:34 AM
 #2

My guess is you didn't install build dependencies like autoconf, autoreconf, and automake.
Follow this guide and retry: https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md
This should solve the issue, hopefully!
BlueBoat (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
December 20, 2022, 11:22:28 AM
 #3

My guess is you didn't install build dependencies like autoconf, autoreconf, and automake.
Follow this guide and retry: https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md
This should solve the issue, hopefully!

They were installed.

However, I just tried to install them again after your post and below the print of the messages received (confirming that the depencies were already installed) :

Code:
user1@UBUNTU-DESKTOP:~/bitcoin$ sudo apt-get install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3
[sudo] password for bluefalcon:
Reading package lists... Done
Building dependency tree
Reading state information... Done
automake is already the newest version (1:1.16.1-4ubuntu6).
autotools-dev is already the newest version (20180224.1).
bsdmainutils is already the newest version (11.1.2ubuntu3).
libtool is already the newest version (2.4.6-14).
pkg-config is already the newest version (0.29.1-0ubuntu4).
python3 is already the newest version (3.8.2-0ubuntu2).
build-essential is already the newest version (12.8ubuntu1.1).
0 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.

user1@UBUNTU-DESKTOP:~/bitcoin$ sudo apt-get install libevent-dev libboost-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libboost-dev is already the newest version (1.71.0.0ubuntu2).
libboost-dev set to manually installed.
libevent-dev is already the newest version (2.1.11-stable-1).
0 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.

user1@UBUNTU-DESKTOP:~/bitcoin$ sudo apt install libsqlite3-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libsqlite3-dev is already the newest version (3.31.1-4ubuntu0.5).
0 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.

user1@UBUNTU-DESKTOP:~/bitcoin$ sudo apt install libminiupnpc-dev libnatpmp-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libminiupnpc-dev is already the newest version (2.1.20190824-0ubuntu2).
The following NEW packages will be installed:
  libnatpmp-dev
0 upgraded, 1 newly installed, 0 to remove and 22 not upgraded.
Need to get 7036 B of archives.
After this operation, 30.7 kB of additional disk space will be used.
Do you want to continue? [Y/n]
 y
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 libnatpmp-dev amd64 20150609-7build1 [7036 B]
Fetched 7036 B in 1s (5178 B/s)
Selecting previously unselected package libnatpmp-dev:amd64.
(Reading database ... 357018 files and directories currently installed.)
Preparing to unpack .../libnatpmp-dev_20150609-7build1_amd64.deb ...
Unpacking libnatpmp-dev:amd64 (20150609-7build1) ...
Setting up libnatpmp-dev:amd64 (20150609-7build1) ...

user1@UBUNTU-DESKTOP:~/bitcoin$ sudo apt install systemtap-sdt-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  systemtap-sdt-dev
0 upgraded, 1 newly installed, 0 to remove and 22 not upgraded.
Need to get 16.4 kB of archives.
After this operation, 75.8 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 systemtap-sdt-dev amd64 4.2-3ubuntu0.1 [16.4 kB]
Fetched 16.4 kB in 1s (11.1 kB/s)
Selecting previously unselected package systemtap-sdt-dev.
(Reading database ... 357022 files and directories currently installed.)
Preparing to unpack .../systemtap-sdt-dev_4.2-3ubuntu0.1_amd64.deb ...
Unpacking systemtap-sdt-dev (4.2-3ubuntu0.1) ...
Setting up systemtap-sdt-dev (4.2-3ubuntu0.1) ...
Processing triggers for man-db (2.9.1-1) ...

user1@UBUNTU-DESKTOP:~/bitcoin$ sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
qttools5-dev is already the newest version (5.12.8-0ubuntu1).
qttools5-dev-tools is already the newest version (5.12.8-0ubuntu1).
libqt5core5a is already the newest version (5.12.8+dfsg-0ubuntu2.1).
libqt5dbus5 is already the newest version (5.12.8+dfsg-0ubuntu2.1).
libqt5gui5 is already the newest version (5.12.8+dfsg-0ubuntu2.1).
0 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.

I'm trying to install Bitcoin Core 22.0.
BlueBoat (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
December 20, 2022, 11:38:33 AM
Last edit: December 20, 2022, 12:03:09 PM by BlueBoat
 #4

Did you checkout to specific commit/branch which represent source code of stable Bitcoin Core version before compile?
I'm trying to reproduce a bug I was having using Bitcoin Core 22.0.

It seems that the issue comes from GCC Autotools. I would like to understand how this last works.

I got this issue in Bitcoin Core 22.0 compile but  not in Bitcoin Core 24.0.1.
BlueBoat (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
December 20, 2022, 12:27:08 PM
Last edit: December 20, 2022, 12:45:26 PM by BlueBoat
 #5

Did you checkout to specific commit/branch which represent source code of stable Bitcoin Core version before compile?
I'm trying to reproduce a bug I was having using Bitcoin Core 22.0.

I don't know your goal, but why don't you just update to Bitcoin Core 24.0.1?
I'm trying to understand Bitcoin Core and started reading the code on Bitcoin Core 22.0.

It seems that the issue comes from GCC Autotools.

Do you mean version of your GCC autotools on your Ubuntu device? Anyway i tried compile Bitcoin Core 22.0 and 24.0.1 on Debian 11 and doesn't see error message you mentioned when you create this thread.

I use Ubuntu 20.4 for Windows.


I just notice you installed dependency based on 24.0.1 compile guide, you should check compile guide for 22.0 instead at https://github.com/bitcoin/bitcoin/blob/v22.0/doc/build-unix.md.
According to the compile guides, these dependencies are the same than for Bitcoin Core 24  and in fact they are included in Bitcoin Core 24 depencies. Bitcoin Core 24 depencies have in addition User-Space, Statically Defined Tracing (USDT) dependencies and GUI.
BlueBoat (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
December 20, 2022, 01:08:58 PM
 #6

--snip--
I'm trying to understand Bitcoin Core and started reading the code on Bitcoin Core 22.0.

I see. You might want to check https://doxygen.bitcoincore.org/ since it's recommended by few Bitcoin Core contributor.

I just notice you installed dependency based on 24.0.1 compile guide, you should check compile guide for 22.0 instead at https://github.com/bitcoin/bitcoin/blob/v22.0/doc/build-unix.md.
According to the compile guides, these dependencies are the same than for Bitcoin Core 24  and in fact they are included in Bitcoin Core 24 depencies. Bitcoin Core 24 depencies have in addition User-Space, Statically Defined Tracing (USDT) dependencies and GUI.

There are few difference though. I didn't compare everything, but here's an example

Now, you can either build from self-compiled depends or install the required dependencies:
Code:
sudo apt-get install libevent-dev libboost-dev libboost-system-dev libboost-filesystem-dev libboost-test-dev

Now, you can either build from self-compiled depends or install the required dependencies:
Code:
sudo apt-get install libevent-dev libboost-dev

Take notice guide for Bitcoin Core 22.0 include 3 additional development file for Boost C++. Earlier when i tried to compile Bitcoin Core 22.0 without installing those 3 development file, i hit error when running command ./configure.

My real issue is based on the fact that I like to have a full understanding of the source code I use. However, while I installed Bitcoin Core 24.0 without issue it still important for me to understand the migration process between the different Bitcoin Core versions.

BlueBoat (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
December 21, 2022, 11:07:25 AM
 #7

Although if you have an application which depend on Bitcoin Core, you need to check whether RPC call you used change it's behavior, deprecated or removed on newer version.

Yes, I'm presently trying to developing an application using Bitcoin Core, etc. Truthfully, I started looking into Bitcoin Core code just about a month ago.
Also, I have to define a clear process in order to do a backup, etc.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!