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

[sp1] error: failed to run LLVM passes: unknown pass name 'loweratomic' #139

Open
rootulp opened this issue Feb 5, 2025 · 1 comment
Open
Assignees

Comments

@rootulp
Copy link
Collaborator

rootulp commented Feb 5, 2025

Problem

I'm trying to re-run the demo after a few PRs have been merged. During the make setup step, it fails during the step:

RUST_LOG=info cargo run --bin operator --release -- genesis --proof-type groth16 -o scripts/genesis.json

I've tried re-running it a few times after updating Rust, SP1, cargo clean. Error:

Caused by:
  process didn't exit successfully: `/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/target/release/build/sp1-ics07-tendermint-prover-22205bc2f6c8e43b/build-script-build` (exit status: 101)
  --- stdout
  cargo::rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/programs/sp1-programs/update-client/src
  cargo::rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/programs/sp1-programs/update-client/Cargo.toml
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/Cargo.lock
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/packages/ethereum/ethereum-light-client
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/packages/ethereum/ethereum-types
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/packages/ethereum/ethereum-light-client
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/packages/ethereum/ethereum-types
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/packages/ethereum/ethereum-trie-db
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/packages/ethereum/ethereum-types
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/packages/ethereum/tree_hash
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/packages/ethereum/tree_hash
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/packages/ethereum/ethereum-apis
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/packages/ethereum/ethereum-light-client
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/packages/ethereum/ethereum-types
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/packages/solidity
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/packages/sp1-ics07-tendermint-prover
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/packages/sp1-ics07-tendermint-utils
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/packages/relayer-lib
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/packages/solidity
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/packages/solidity
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/packages/solidity
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/packages/sp1-ics07-tendermint-prover
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/packages/sp1-ics07-tendermint-utils
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/packages/solidity
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/packages/solidity
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/programs/sp1-programs/membership
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/programs/sp1-programs/update-client
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/packages/solidity
  cargo:rerun-if-changed=/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/packages/solidity

  --- stderr
  [sp1]      Blocking waiting for file lock on package cache
  [sp1]     Compiling serde v1.0.216
  [sp1]     Compiling typenum v1.17.0
  [sp1]     Compiling cfg-if v1.0.0
  [sp1]  error: failed to run LLVM passes: unknown pass name 'loweratomic'
  [sp1]
  [sp1]  error: could not compile `cfg-if` (lib) due to 1 previous error
  [sp1]  warning: build failed, waiting for other jobs to finish...
  [sp1]  error: could not compile `serde` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `sp1-ics07-tendermint-operator v0.1.0 (/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/programs/operator)`, intermediate artifacts can be found at `/Users/rootulp/git/rootulp/celestiaorg/celestia-zkevm-ibc-demo/solidity-ibc-eureka/target`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
error: Recipe `install-operator` failed on line 128 with exit code 101
@rootulp rootulp self-assigned this Feb 5, 2025
@tuxcanfly
Copy link
Contributor

I've seen this happen due to incompatible cargo +succint versions.

See: https://docs.succinct.xyz/docs/developers/common-issues#failed-to-run-llvm-passes-unknown-pass-name-loweratomic

It might be useful to print the cargo sp1 version from within the build script i.e. sp1-ics07-tendermint-operator/build.rs:

    // Print the SP1 version.
    let output = Command::new("cargo +succinct")
        .arg("--version")
        .output()
        .expect("Failed to execute cargo +succinct --version");

    println!("cargo:warning=cargo +succinct version: {}", String::from_utf8_lossy(&output.stdout));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants