Page MenuHomePhabricator

[guix] Build Chronik plugins on Windows and Linux
AbandonedPublicDraft

Authored by tobias_ruck on Aug 7 2024, 09:43.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Summary

The plugin system is still relatively experimental, but since it's opt-in via the plugins.toml, there's no harm for existing users by enabling it in the release.

Test Plan

@bot guix-win guix-linux

Diff Detail

Repository
rABC Bitcoin ABC
Branch
guix-enable-chronik-plugins
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 29884
Build 59303: Build Diff
Build 59302: arc lint + arc unit

Event Timeline

Tail of the build log:

-- Performing Test have_C__Wno_unused_function
-- Performing Test have_C__Wno_unused_function - Success
-- Performing Test have_C__Wno_overlength_strings
-- Performing Test have_C__Wno_overlength_strings - Success
-- Performing Test have_C__std_c89
-- Performing Test have_C__std_c89 - Success
-- Performing Test have_C__Wno_long_long
-- Performing Test have_C__Wno_long_long - Success
-- Performing Test have_C__Wno_duplicated_branches
-- Performing Test have_C__Wno_duplicated_branches - Success
-- Performing Test USE_ASM_X86_64
-- Performing Test USE_ASM_X86_64 - Success
-- Found Event component event: /bitcoin/depends/x86_64-linux-gnu/lib/libevent.a
-- Found Event: /bitcoin/depends/x86_64-linux-gnu/include (found suitable version "99.99.99", minimum required is "2.0.22") found components: event 
-- Found Boost: /bitcoin/depends/x86_64-linux-gnu/include (found suitable version "1.81.0", minimum required is "1.64")  
-- Found Event component pthreads: /bitcoin/depends/x86_64-linux-gnu/lib/libevent_pthreads.a
-- Found Event: /bitcoin/depends/x86_64-linux-gnu/include (found suitable version "99.99.99", minimum required is "2.0.22") found components: pthreads 
-- Found MiniUPnPc component miniupnpc: /bitcoin/depends/x86_64-linux-gnu/lib/libminiupnpc.a
-- Found MiniUPnPc: /bitcoin/depends/x86_64-linux-gnu/include/miniupnpc (found suitable version "2.2.7", minimum required is "1.9")  
-- Found NATPMP component natpmp: /bitcoin/depends/x86_64-linux-gnu/lib/libnatpmp.a
-- Found NATPMP: /bitcoin/depends/x86_64-linux-gnu/include   
-- Performing Test fuzz_target_builds_without_main_fuzz
-- Performing Test fuzz_target_builds_without_main_fuzz - Failed
-- Found BerkeleyDB component CXX: /bitcoin/depends/x86_64-linux-gnu/lib/libdb_cxx-5.3.a
-- Found BerkeleyDB: /bitcoin/depends/x86_64-linux-gnu/include (found suitable version "5.3.28", minimum required is "5.3") found components: CXX 
-- Found SQLite3: /bitcoin/depends/x86_64-linux-gnu/include (found suitable version "3.32.1", minimum required is "3.7.17") 
-- Found ZeroMQ component zmq: /bitcoin/depends/x86_64-linux-gnu/lib/libzmq.a
-- Found ZeroMQ: /bitcoin/depends/x86_64-linux-gnu/include (found suitable version "4.3.1", minimum required is "4.1.5")  
-- Could NOT find Protobuf (missing: Protobuf_DIR)
-- Found Protobuf: /bitcoin/depends/x86_64-linux-gnu/lib/libprotobuf.a;-pthread (found version "3.21.12") 
-- Found OpenSSL: /bitcoin/depends/x86_64-linux-gnu/lib/libcrypto.a (found version "1.1.1t")  
-- Looking for EVP_MD_CTX_new
-- Looking for EVP_MD_CTX_new - found
-- Found QREncode component qrencode: /bitcoin/depends/x86_64-linux-gnu/lib/libqrencode.a
-- Found QREncode: /bitcoin/depends/x86_64-linux-gnu/include   
-- Rust Toolchain: 1.76.0-x86_64-unknown-linux-gnu
-- Determining required link libraries for target x86_64-unknown-linux-gnu
-- Required static libs for target x86_64-unknown-linux-gnu: gcc_s;util;rt;pthread;m;dl;c
-- Required link flags for target x86_64-unknown-linux-gnu: 
-- Found Rust: /home/bitcoinabc/.rustup/toolchains/1.76.0-x86_64-unknown-linux-gnu/bin/rustc (found version "1.76.0") 
-- Using Corrosion as a subdirectory
warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
-- Could NOT find Python (missing: Python_INCLUDE_DIRS Python_LIBRARIES Interpreter Development Development.Module Development.Embed) 
Adding Python_LIBRARIES: Python_LIBRARY-NOTFOUND
-- Performing Test have_linker__latomic
-- Performing Test have_linker__latomic - Success
-- Found Protobuf: /bitcoin/depends/x86_64-linux-gnu/lib/libprotobuf.a;-lpthread (found suitable version "3.21.12", minimum required is "3.0.0") 
-- Configuring native build in /bitcoin/distsrc-3a6e3a49394d-x86_64-linux-gnu/native
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Python_LIBRARY
    linked by target "chronik" in directory /bitcoin/chronik

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
Build guix-linux failed with exit code 1

use non-minimal python in guix

Tail of the build log:

-- Performing Test have_C__Wno_unused_function
-- Performing Test have_C__Wno_unused_function - Success
-- Performing Test have_C__Wno_overlength_strings
-- Performing Test have_C__Wno_overlength_strings - Success
-- Performing Test have_C__std_c89
-- Performing Test have_C__std_c89 - Success
-- Performing Test have_C__Wno_long_long
-- Performing Test have_C__Wno_long_long - Success
-- Performing Test have_C__Wno_duplicated_branches
-- Performing Test have_C__Wno_duplicated_branches - Success
-- Performing Test USE_ASM_X86_64
-- Performing Test USE_ASM_X86_64 - Success
-- Found Event component event: /bitcoin/depends/x86_64-linux-gnu/lib/libevent.a
-- Found Event: /bitcoin/depends/x86_64-linux-gnu/include (found suitable version "99.99.99", minimum required is "2.0.22") found components: event 
-- Found Boost: /bitcoin/depends/x86_64-linux-gnu/include (found suitable version "1.81.0", minimum required is "1.64")  
-- Found Event component pthreads: /bitcoin/depends/x86_64-linux-gnu/lib/libevent_pthreads.a
-- Found Event: /bitcoin/depends/x86_64-linux-gnu/include (found suitable version "99.99.99", minimum required is "2.0.22") found components: pthreads 
-- Found MiniUPnPc component miniupnpc: /bitcoin/depends/x86_64-linux-gnu/lib/libminiupnpc.a
-- Found MiniUPnPc: /bitcoin/depends/x86_64-linux-gnu/include/miniupnpc (found suitable version "2.2.7", minimum required is "1.9")  
-- Found NATPMP component natpmp: /bitcoin/depends/x86_64-linux-gnu/lib/libnatpmp.a
-- Found NATPMP: /bitcoin/depends/x86_64-linux-gnu/include   
-- Performing Test fuzz_target_builds_without_main_fuzz
-- Performing Test fuzz_target_builds_without_main_fuzz - Failed
-- Found BerkeleyDB component CXX: /bitcoin/depends/x86_64-linux-gnu/lib/libdb_cxx-5.3.a
-- Found BerkeleyDB: /bitcoin/depends/x86_64-linux-gnu/include (found suitable version "5.3.28", minimum required is "5.3") found components: CXX 
-- Found SQLite3: /bitcoin/depends/x86_64-linux-gnu/include (found suitable version "3.32.1", minimum required is "3.7.17") 
-- Found ZeroMQ component zmq: /bitcoin/depends/x86_64-linux-gnu/lib/libzmq.a
-- Found ZeroMQ: /bitcoin/depends/x86_64-linux-gnu/include (found suitable version "4.3.1", minimum required is "4.1.5")  
-- Could NOT find Protobuf (missing: Protobuf_DIR)
-- Found Protobuf: /bitcoin/depends/x86_64-linux-gnu/lib/libprotobuf.a;-pthread (found version "3.21.12") 
-- Found OpenSSL: /bitcoin/depends/x86_64-linux-gnu/lib/libcrypto.a (found version "1.1.1t")  
-- Looking for EVP_MD_CTX_new
-- Looking for EVP_MD_CTX_new - found
-- Found QREncode component qrencode: /bitcoin/depends/x86_64-linux-gnu/lib/libqrencode.a
-- Found QREncode: /bitcoin/depends/x86_64-linux-gnu/include   
-- Rust Toolchain: 1.76.0-x86_64-unknown-linux-gnu
-- Determining required link libraries for target x86_64-unknown-linux-gnu
-- Required static libs for target x86_64-unknown-linux-gnu: gcc_s;util;rt;pthread;m;dl;c
-- Required link flags for target x86_64-unknown-linux-gnu: 
-- Found Rust: /home/bitcoinabc/.rustup/toolchains/1.76.0-x86_64-unknown-linux-gnu/bin/rustc (found version "1.76.0") 
-- Using Corrosion as a subdirectory
warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
-- Could NOT find Python (missing: Python_INCLUDE_DIRS Python_LIBRARIES Interpreter Development Development.Module Development.Embed) 
Adding Python_LIBRARIES: Python_LIBRARY-NOTFOUND
-- Performing Test have_linker__latomic
-- Performing Test have_linker__latomic - Success
-- Found Protobuf: /bitcoin/depends/x86_64-linux-gnu/lib/libprotobuf.a;-lpthread (found suitable version "3.21.12", minimum required is "3.0.0") 
-- Configuring native build in /bitcoin/distsrc-258122992faa-x86_64-linux-gnu/native
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Python_LIBRARY
    linked by target "chronik" in directory /bitcoin/chronik

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
Build guix-linux failed with exit code 1