Page MenuHomePhabricator

[CMAKE] Migrate linux gitian build to cmake and ninja
Needs ReviewPublic

Authored by Fabien on Sat, Nov 2, 11:34.


Group Reviewers
Restricted Project

Replace autotools by cmake for the linux gitian builds, and use
ninja as a generator.

Note 1:
The test_bitcoin binary is no longer part of the gitian output.

Note 2: There are some more dependencies required.
This is because CMake is run for the native platform in order to build a
couple helper binaries for secp256k1 and univalue. CMake is run from the
project root and check for all the dependencies despite only a compiler
is required. This is a minor inconvenience which can be reworked later.

Depends on D4425.

Test Plan

Run the Linux gitian build twice.
Check the hashes are identical between the builds.
Run the binaries on all the platforms.

Diff Detail

rABC Bitcoin ABC
Lint OK
No Unit Test Coverage
Build Status
Buildable 8056
Build 14107: Bitcoin ABC Buildbot
Build 14106: arc lint + arc unit

Event Timeline

Fabien created this revision.Sat, Nov 2, 11:34
Herald added a reviewer: Restricted Project. · View Herald TranscriptSat, Nov 2, 11:34
Fabien updated this revision to Diff 13917.Tue, Nov 5, 07:30


deadalnix requested changes to this revision.Sun, Nov 10, 12:56

You need to be using the libs from depends and not the system libs.

This revision now requires changes to proceed.Sun, Nov 10, 12:56
Fabien updated this revision to Diff 14046.Mon, Nov 11, 11:54

Reduce the amount of dependencies required by rebasing on top of D4425.
Disable ccache for the build.