I'm hoping that someone can tell me how to get the same binary that we see on bitcoincore.org/bitcoin.org.
I tried using Ubuntu 20.04
git clone https://github.com/bitcoin/bitcoin
git checkout v0.20.1
sudo apt-get update
sudo apt-get install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 -y
sudo apt-get install libevent-dev libboost-system-dev libboost-filesystem-dev libboost-test-dev libboost-thread-dev -y
./autogen.sh
./configure --disable-wallet
make
make install
Extra details (git commit I'm going off of)
git log
commit 7ff64311bee570874c4f0dfa18f518552188df08 (HEAD -> 20.1, tag: v0.20.1)
Author: Wladimir J. van der Laan <laanwj@protonmail.com>
Date: Fri Jul 31 14:01:56 2020 +0200
produces bitcoind: d46f9ca67562129cb2f0d7ed7e0ae576ab06e616d98d28c2a262d82356f9d87b
bitcoincore.org link I'm going off of: https://bitcoincore.org/bin/bitcoin-core-0.20.1/bitcoin-0.20.1-x86_64-linux-gnu.tar.gz
produces bitcoind: 4ec74161b2a90293926ae8e20a2efbe952bd23b53aeebf051e6a6285ace18271
I was hoping that someone could tell me how to properly configure/setup my environment to produce the same binary that we see packaged nicely in the tarball on these websites. The binary files aren't even close in sizeā¦
from tarball bitcoind size: 10312344 (10 MB)
from building from scratch bitcoind size: 192814984 (192 MB)
How do I make the super sleek and sexy 10 MB version?
Thanks!
CXXFLAGS="-O2 -g0"
for example at configure time), or you can strip them after compilation (strip bitcoind
). That will result in a similarly small file, but it won't give you a binary that's identical to the release binary. To do so, follow the gitian-based process like Murch suggests below. – Pieter Wuille Nov 10 '20 at 17:56