Page MenuHomePhabricator

[guix] build chronik
AbandonedPublicDraft

Authored by PiRK on Feb 19 2024, 09:21.

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

Bump the guix time-machine to a recent commit to have a more recent rust (1.73)
Pass the --network option and add nss-certs to the manifest to download corrosion and various crates.
Build Chronik

fixme:

   Compiling either v1.9.0
   Compiling futures-io v0.3.28          ] 0/269: itoa, futures-task(build.rs), futures-util(build.rs), syn(build.rs), either, once_cell, unicode-ident, version_check, serde(...
   Compiling anyhow v1.0.75              ] 1/269: itoa, futures-task(build.rs), futures-util(build.rs), syn(build.rs), either, once_cell, futures-io, unicode-ident, version_c...
   Compiling pin-utils v0.1.0            ] 2/269: itoa, futures-task(build.rs), futures-util(build.rs), syn(build.rs), anyhow(build.rs), either, once_cell, futures-io, unicod...
   Compiling log v0.4.20                 ] 3/269: itoa, futures-task(build.rs), futures-util(build.rs), syn(build.rs), anyhow(build.rs), either, once_cell, futures-io, unicod...
   Compiling prettyplease v0.2.12        ] 4/269: itoa, futures-task(build.rs), futures-util(build.rs), syn(build.rs), anyhow(build.rs), either, once_cell, futures-io, log, v...
   Compiling thiserror v1.0.47           ] 5/269: prettyplease(build.rs), futures-task(build.rs), futures-util(build.rs), syn(build.rs), anyhow(build.rs), either, once_cell, ...
   Compiling cpufeatures v0.2.9          ] 6/269: prettyplease(build.rs), futures-task(build.rs), futures-util(build.rs), syn(build.rs), anyhow(build.rs), either, once_cell, ...
   Compiling scratch v1.0.7              ] 7/269: cpufeatures, prettyplease(build.rs), futures-task(build.rs), futures-util(build.rs), syn(build.rs), anyhow(build.rs), either...
   Compiling minimal-lexical v0.2.1      ] 8/269: cpufeatures, prettyplease(build.rs), futures-task(build.rs), futures-util(build.rs), syn(build.rs), anyhow(build.rs), either...
   Compiling abc-rust-lint v0.1.0 (/bitcoin/chronik/abc-rust-lint)ttyplease(build.rs), futures-task(build.rs), futures-util(build.rs), syn(build.rs), anyhow(build.rs), either...
error: failed to run custom build command for `futures-task v0.3.28`.rs), futures-util(build.rs), syn(build.rs), anyhow(build.rs), either, once_cell, futures-io, log, version...
 
Caused by:
  process didn't exit successfully: `/bitcoin/distsrc-580f61ff5826-x86_64-linux-gnu/./cargo/build/release/build/futures-task-c1aa92f62953a69f/build-script-build` (exit status: 127)
  --- stderr
  /bitcoin/distsrc-580f61ff5826-x86_64-linux-gnu/./cargo/build/release/build/futures-task-c1aa92f62953a69f/build-script-build: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `futures-core v0.3.28`.rs), futures-util(build.rs), syn(build.rs), anyhow(build.rs), either, once_cell, futures-io, log, version...
 
Caused by:
  process didn't exit successfully: `/bitcoin/distsrc-580f61ff5826-x86_64-linux-gnu/./cargo/build/release/build/futures-core-1f1e9b08c8653a70/build-script-build` (exit status: 127)
  --- stderr
  /bitcoin/distsrc-580f61ff5826-x86_64-linux-gnu/./cargo/build/release/build/futures-core-1f1e9b08c8653a70/build-script-build: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory
FAILED: chronik/CMakeFiles/_cargo-build_chronik-lib /bitcoin/distsrc-580f61ff5826-x86_64-linux-gnu/chronik/CMakeFiles/_cargo-build_chronik-lib
Test Plan

FORCE_DIRTY_WORKTREE=1 HOSTS="x86_64-linux-gnu" contrib/guix/guix-build

Diff Detail

Repository
rABC Bitcoin ABC
Branch
guix
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 27313
Build 54189: Build Diff
Build 54188: arc lint + arc unit

Event Timeline

PiRK edited the summary of this revision. (Show Details)

pass cargo to native inputs

PiRK retitled this revision from guix: build chronik to [guix] build chronik.
PiRK edited the summary of this revision. (Show Details)

no need to package corrosion after D15507. Add --network option. Add "cargo" output for rust.