Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix node compilation #516

Merged
merged 1 commit into from
Jan 31, 2025
Merged

Fix node compilation #516

merged 1 commit into from
Jan 31, 2025

Conversation

ebma
Copy link
Member

@ebma ebma commented Jan 31, 2025

The node compilation fails with

$ cargo build --release --quiet
⚡ Found 3 strongly connected components which includes at least one cycle each
cycle(001) ∈ α: DisputeCoordinator ~~{"DisputeDistributionMessage"}~~> DisputeDistribution ~~{"DisputeCoordinatorMessage"}~~>  *
cycle(002) ∈ β: CandidateBacking ~~{"CollatorProtocolMessage"}~~> CollatorProtocol ~~{"CandidateBackingMessage"}~~>  *
cycle(003) ∈ γ: NetworkBridgeRx ~~{"GossipSupportMessage"}~~> GossipSupport ~~{"NetworkBridgeRxMessage"}~~>  *
error: failed to run custom build command for `amplitude-runtime v1.6.0 (/app/prodbuild/pendulum/runtime/amplitude)`
Caused by:
  process didn't exit successfully: `/app/prodbuild/pendulum/target/release/build/amplitude-runtime-[49](https://gitlab.com/pendulumchain/compilation/-/jobs/9011102737#L49)26c6a6f1ea772d/build-script-build` (exit status: 1)
  --- stderr
  Cannot compile the WASM runtime: no standard library sources found!
  You can install them with `rustup component add rust-src` if you're using `rustup`.
error: failed to run custom build command for `pendulum-runtime v1.6.0 (/app/prodbuild/pendulum/runtime/pendulum)`
Caused by:
  process didn't exit successfully: `/app/prodbuild/pendulum/target/release/build/pendulum-runtime-75d6ad216142faa9/build-script-build` (exit status: 1)
  --- stderr
  Cannot compile the WASM runtime: no standard library sources found!
  You can install them with `rustup component add rust-src` if you're using `rustup`.
error: failed to run custom build command for `foucoco-runtime v1.6.0 (/app/prodbuild/pendulum/runtime/foucoco)`
Caused by:
  process didn't exit successfully: `/app/prodbuild/pendulum/target/release/build/foucoco-runtime-06f4fcc6ef2[56](https://gitlab.com/pendulumchain/compilation/-/jobs/9011102737#L56)f6f/build-script-build` (exit status: 1)
  --- stderr
  Cannot compile the WASM runtime: no standard library sources found!
  You can install them with `rustup component add rust-src` if you're using `rustup`.

To fix it, we add rust-src to the components field of the rust-toolchain.toml.

@ebma ebma requested a review from a team January 31, 2025 17:27
@ebma ebma force-pushed the fix-node-compilation branch from 97e327f to 17a4dd5 Compare January 31, 2025 17:27
@ebma ebma merged commit 93c9dbe into main Jan 31, 2025
1 of 3 checks passed
@ebma ebma deleted the fix-node-compilation branch January 31, 2025 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant