cosmicexplorer / spack-rs

summon spack to build your native dependencies!
Other
2 stars 1 forks source link

Error: cannot bootstrap the "clingo" Python module from spec "clingo-bootstrap@spack+python %apple-clang target=aarch64" #1

Open orf opened 7 months ago

orf commented 7 months ago

Hey! I wanted to try out vectorscan-async, but adding it to a new empty project results in the following error from re2. I'm really not familiar with spack, clingo or anything related to these projects so I haven't done much debugging.

 ==> Error: FetchError: All fetchers failed for spack-stage-re2c-2.2-v75nkgxcvyy6qhq5aysybi6fy5prbquj
  ==> Warning: Skipping build of clingo-bootstrap-spack-737fxhjwqrve3osk462cklz2suaxhy53 since re2c-2.2-v75nkgxcvyy6qhq5aysybi6fy5prbquj failed
  ==> Error: cannot bootstrap the "clingo" Python module from spec "clingo-bootstrap@spack+python %apple-clang target=aarch64" due to the following failures:
  github-actions-v0.5 raised RuntimeError: The binary index is empty
  github-actions-v0.4 raised RuntimeError: The binary index is empty
  spack-install raised InstallError: Terminating after first install failure: FetchError: All fetchers failed for spack-stage-re2c-2.2-v75nkgxcvyy6qhq5aysybi6fy5prbquj
  Run `spack --debug ...` for more detailed errors
  Error: error bootstrapping: spack command error command Command { exe: Exe(File("python3")), wd: Some(Directory("/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2")), argv: Argv(["/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2/bin/spack", "install", "--fail-fast", "-j12", "--verbose", "m4"]), env: EnvModifications({}) } failed (checking async exit status): a command line exited with non-zero status 3

  Caused by:
     0: spack command error command Command { exe: Exe(File("python3")), wd: Some(Directory("/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2")), argv: Argv(["/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2/bin/spack", "install", "--fail-fast", "-j12", "--verbose", "m4"]), env: EnvModifications({}) } failed (checking async exit status): a command line exited with non-zero status 3
     1: command Command { exe: Exe(File("python3")), wd: Some(Directory("/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2")), argv: Argv(["/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2/bin/spack", "install", "--fail-fast", "-j12", "--verbose", "m4"]), env: EnvModifications({}) } failed (checking async exit status): a command line exited with non-zero status 3
     2: a command line exited with non-zero status 3

  Location:
      /Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/spack-rs-0.0.5/src/utils.rs:605:19
Full error

``` ❯ cargo check Compiling vectorscan-sys v0.0.1 error: failed to run custom build command for `vectorscan-sys v0.0.1` Caused by: process didn't exit successfully: `/Users/tomforbes/PycharmProjects/gitguardian/tforbes/pattern-exploration/target/debug/build/vectorscan-sys-ac84c8bfcf9fd4f6/build-script-build` (exit status: 1) --- stdout cargo:rerun-if-changed=Cargo.toml [+] /opt/homebrew (external cmake-3.28.3-zoob2i2qvbuqem62surn5vtbmft3n7ul) [+] /Users/tomforbes/.spack/bootstrap/store/darwin-sonoma-aarch64/apple-clang-15.0.0/gmake-4.4.1-owt65kbmapv36kdmh2i4nrhsjhhoh3lm ==> Installing re2c-2.2-v75nkgxcvyy6qhq5aysybi6fy5prbquj [3/25] ==> No binary for re2c-2.2-v75nkgxcvyy6qhq5aysybi6fy5prbquj found: installing from source --- stderr [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/super-process-0.0.1/src/lib.rs:210:7] &self = Command { exe: Exe( File( "/Users/tomforbes/.config/rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo", ), ), wd: None, argv: Argv( [ "metadata", "--format-version", "1", ], ), env: EnvModifications( {}, ), } [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/spack-rs-0.0.5/src/utils.rs:476:9] &spack_metadata = Object { "envs": Object { "vectorscan-dynamic-runtime-only": Object { "deps": Object { "vectorscan": Object { "lib_names": Array [ String("hs_runtime"), ], "type": String("dynamic"), }, }, "features": Object { "conflicting": Array [ String("compiler"), String("chimera"), ], "needed": Array [ String("dynamic"), ], }, "spec": String("vectorscan@v5.4.11+shared~chimera"), }, "vectorscan-dynamic-with-compile": Object { "deps": Object { "vectorscan": Object { "lib_names": Array [ String("hs"), ], "type": String("dynamic"), }, }, "features": Object { "conflicting": Array [ String("chimera"), ], "needed": Array [ String("dynamic"), String("compiler"), ], }, "spec": String("vectorscan@v5.4.11+shared~chimera"), }, "vectorscan-static-chimera": Object { "deps": Object { "pcre": Object { "lib_names": Array [ String("pcre"), ], "type": String("static"), }, "vectorscan": Object { "lib_names": Array [ String("hs"), String("chimera"), ], "type": String("static"), }, }, "features": Object { "needed": Array [ String("chimera"), ], }, "spec": String("vectorscan@v5.4.11+chimera+static"), }, "vectorscan-static-runtime-only": Object { "deps": Object { "vectorscan": Object { "lib_names": Array [ String("hs_runtime"), ], "type": String("static"), }, }, "features": Object { "conflicting": Array [ String("compiler"), String("chimera"), ], "needed": Array [ String("static"), ], }, "spec": String("vectorscan@v5.4.11+static~chimera"), }, "vectorscan-static-with-compile": Object { "deps": Object { "vectorscan": Object { "lib_names": Array [ String("hs"), ], "type": String("static"), }, }, "features": Object { "conflicting": Array [ String("chimera"), ], "needed": Array [ String("static"), String("compiler"), ], }, "spec": String("vectorscan@v5.4.11+static~chimera"), }, }, "repo": Object { "path": String("local-repo"), }, } [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/spack-rs-0.0.5/src/utils.rs:501:7] &envs = { "vectorscan-dynamic-runtime-only": Env { spec: "vectorscan@v5.4.11+shared~chimera", deps: { "vectorscan": Dep { type: "dynamic", lib_names: [ "hs_runtime", ], }, }, features: Some( FeatureLayout { needed: Some( { "dynamic", }, ), conflicting: Some( { "compiler", "chimera", }, ), }, ), }, "vectorscan-dynamic-with-compile": Env { spec: "vectorscan@v5.4.11+shared~chimera", deps: { "vectorscan": Dep { type: "dynamic", lib_names: [ "hs", ], }, }, features: Some( FeatureLayout { needed: Some( { "dynamic", "compiler", }, ), conflicting: Some( { "chimera", }, ), }, ), }, "vectorscan-static-chimera": Env { spec: "vectorscan@v5.4.11+chimera+static", deps: { "pcre": Dep { type: "static", lib_names: [ "pcre", ], }, "vectorscan": Dep { type: "static", lib_names: [ "hs", "chimera", ], }, }, features: Some( FeatureLayout { needed: Some( { "chimera", }, ), conflicting: None, }, ), }, "vectorscan-static-runtime-only": Env { spec: "vectorscan@v5.4.11+static~chimera", deps: { "vectorscan": Dep { type: "static", lib_names: [ "hs_runtime", ], }, }, features: Some( FeatureLayout { needed: Some( { "static", }, ), conflicting: Some( { "compiler", "chimera", }, ), }, ), }, "vectorscan-static-with-compile": Env { spec: "vectorscan@v5.4.11+static~chimera", deps: { "vectorscan": Dep { type: "static", lib_names: [ "hs", ], }, }, features: Some( FeatureLayout { needed: Some( { "static", "compiler", }, ), conflicting: Some( { "chimera", }, ), }, ), }, } [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/spack-rs-0.0.5/src/utils.rs:690:7] &declared_recipes = { Label( "vectorscan-dynamic-runtime-only", ): ( Recipe { sub_deps: [ SubDep { pkg_name: PackageName( "vectorscan", ), type: DynamicWithRpath, lib_names: [ "hs_runtime", ], }, ], }, FeatureMap { needed: { CargoFeature( "dynamic", ), }, conflicting: { CargoFeature( "compiler", ), CargoFeature( "chimera", ), }, }, ), Label( "vectorscan-dynamic-with-compile", ): ( Recipe { sub_deps: [ SubDep { pkg_name: PackageName( "vectorscan", ), type: DynamicWithRpath, lib_names: [ "hs", ], }, ], }, FeatureMap { needed: { CargoFeature( "dynamic", ), CargoFeature( "compiler", ), }, conflicting: { CargoFeature( "chimera", ), }, }, ), Label( "vectorscan-static-chimera", ): ( Recipe { sub_deps: [ SubDep { pkg_name: PackageName( "pcre", ), type: Static, lib_names: [ "pcre", ], }, SubDep { pkg_name: PackageName( "vectorscan", ), type: Static, lib_names: [ "hs", "chimera", ], }, ], }, FeatureMap { needed: { CargoFeature( "chimera", ), }, conflicting: {}, }, ), Label( "vectorscan-static-runtime-only", ): ( Recipe { sub_deps: [ SubDep { pkg_name: PackageName( "vectorscan", ), type: Static, lib_names: [ "hs_runtime", ], }, ], }, FeatureMap { needed: { CargoFeature( "static", ), }, conflicting: { CargoFeature( "compiler", ), CargoFeature( "chimera", ), }, }, ), Label( "vectorscan-static-with-compile", ): ( Recipe { sub_deps: [ SubDep { pkg_name: PackageName( "vectorscan", ), type: Static, lib_names: [ "hs", ], }, ], }, FeatureMap { needed: { CargoFeature( "static", ), CargoFeature( "compiler", ), }, conflicting: { CargoFeature( "chimera", ), }, }, ), } [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/spack-rs-0.0.5/src/utils.rs:727:7] &env_label = Label( "vectorscan-static-with-compile", ) [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/spack-rs-0.0.5/src/utils.rs:728:7] &cur_recipe = Recipe { sub_deps: [ SubDep { pkg_name: PackageName( "vectorscan", ), type: Static, lib_names: [ "hs", ], }, ], } [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/spack-rs-0.0.5/src/utils.rs:732:7] env_instructions = EnvInstructions { specs: [ Spec( "vectorscan@v5.4.11+static~chimera", ), ], repo: Some( Repo { path: "local-repo", }, ), } [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/spack-rs-0.0.5/src/utils.rs:602:7] &env = EnvName( "vectorscan-static-with-compile-2spaUBbdX46h6GHedFx6nzWhDZWSlPYjexs5XwdKJ1c", ) [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/super-process-0.0.1/src/lib.rs:210:7] &self = Command { exe: Exe( File( "python3", ), ), wd: None, argv: Argv( [ "--version", ], ), env: EnvModifications( {}, ), } [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/spack-rs-0.0.5/src/summoning.rs:262:5] spack_tarball.downloaded_path() = "/Users/tomforbes/.spack/summonings/32fc4ed023ecddde91fc5803f20dc8982681914747cbfcacd306dec123283442.tar.gz" [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/super-process-0.0.1/src/lib.rs:210:7] &self = Command { exe: Exe( File( "python3", ), ), wd: None, argv: Argv( [ "/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2/bin/spack", "--version", ], ), env: EnvModifications( {}, ), } bootstrapping spack spack-cargo-patches-v2 [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/super-process-0.0.1/src/lib.rs:210:7] &self = Command { exe: Exe( File( "python3", ), ), wd: Some( Directory( "/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2", ), ), argv: Argv( [ "/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2/bin/spack", "compiler", "find", "--scope", "site", "/usr/bin", ], ), env: EnvModifications( {}, ), } [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/super-process-0.0.1/src/lib.rs:210:7] &self = Command { exe: Exe( File( "python3", ), ), wd: Some( Directory( "/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2", ), ), argv: Argv( [ "/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2/bin/spack", "find", "--json", "m4", ], ), env: EnvModifications( {}, ), } [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/super-process-0.0.1/src/lib.rs:210:7] &self = Command { exe: Exe( File( "python3", ), ), wd: Some( Directory( "/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2", ), ), argv: Argv( [ "/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2/bin/spack", "install", "--fail-fast", "-j12", "--verbose", "m4", ], ), env: EnvModifications( {}, ), } ==> Error: FetchError: All fetchers failed for spack-stage-re2c-2.2-v75nkgxcvyy6qhq5aysybi6fy5prbquj ==> Warning: Skipping build of clingo-bootstrap-spack-737fxhjwqrve3osk462cklz2suaxhy53 since re2c-2.2-v75nkgxcvyy6qhq5aysybi6fy5prbquj failed ==> Error: cannot bootstrap the "clingo" Python module from spec "clingo-bootstrap@spack+python %apple-clang target=aarch64" due to the following failures: github-actions-v0.5 raised RuntimeError: The binary index is empty github-actions-v0.4 raised RuntimeError: The binary index is empty spack-install raised InstallError: Terminating after first install failure: FetchError: All fetchers failed for spack-stage-re2c-2.2-v75nkgxcvyy6qhq5aysybi6fy5prbquj Run `spack --debug ...` for more detailed errors Error: error bootstrapping: spack command error command Command { exe: Exe(File("python3")), wd: Some(Directory("/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2")), argv: Argv(["/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2/bin/spack", "install", "--fail-fast", "-j12", "--verbose", "m4"]), env: EnvModifications({}) } failed (checking async exit status): a command line exited with non-zero status 3 Caused by: 0: spack command error command Command { exe: Exe(File("python3")), wd: Some(Directory("/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2")), argv: Argv(["/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2/bin/spack", "install", "--fail-fast", "-j12", "--verbose", "m4"]), env: EnvModifications({}) } failed (checking async exit status): a command line exited with non-zero status 3 1: command Command { exe: Exe(File("python3")), wd: Some(Directory("/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2")), argv: Argv(["/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2/bin/spack", "install", "--fail-fast", "-j12", "--verbose", "m4"]), env: EnvModifications({}) } failed (checking async exit status): a command line exited with non-zero status 3 2: a command line exited with non-zero status 3 Location: /Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/spack-rs-0.0.5/src/utils.rs:605:19 ```

orf commented 7 months ago

Ahh, ok so this is related to spack and not this project at all. Sorry, it was hard to see, but it's some dumb certificate error:

==> [2024-02-24-20:53:32.860206] Searching for binary cache of re2c-2.2-v75nkgxcvyy6qhq5aysybi6fy5prbquj
==> [2024-02-24-20:53:32.861363] Checking existence of https://mirror.spack.io/build_cache/darwin-sonoma-aarch64-apple-clang-15.0.0-re2c-2.2-v75nkgxcvyy6qhq5aysybi6fy5prbquj.spec.json.sig
==> [2024-02-24-20:53:32.895598] Failure reading URL: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)>
==> [2024-02-24-20:53:32.895641] URL does not exist: https://mirror.spack.io/build_cache/darwin-sonoma-aarch64-apple-clang-15.0.0-re2c-2.2-v75nkgxcvyy6qhq5aysybi6fy5prbquj.spec.json.sig
==> [2024-02-24-20:53:32.895707] FailedDownloadError: Failed to fetch file from URL: https://mirror.spack.io/build_cache/darwin-sonoma-aarch64-apple-clang-15.0.0-re2c-2.2-v75nkgxcvyy6qhq5aysybi6fy5prbquj.spec.json.sig
==> [2024-02-24-20:53:32.895720] Fetching from https://mirror.spack.io/build_cache/darwin-sonoma-aarch64-apple-clang-15.0.0-re2c-2.2-v75nkgxcvyy6qhq5aysybi6fy5prbquj.spec.json.sig failed.
==> [2024-02-24-20:53:32.896222] Checking existence of https://mirror.spack.io/build_cache/darwin-sonoma-aarch64-apple-clang-15.0.0-re2c-2.2-v75nkgxcvyy6qhq5aysybi6fy5prbquj.spec.json
==> [2024-02-24-20:53:32.935935] Failure reading URL: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)>
==> [2024-02-24-20:53:32.935965] URL does not exist: https://mirror.spack.io/build_cache/darwin-sonoma-aarch64-apple-clang-15.0.0-re2c-2.2-v75nkgxcvyy6qhq5aysybi6fy5prbquj.spec.json
==> [2024-02-24-20:53:32.936011] FailedDownloadError: Failed to fetch file from URL: https://mirror.spack.io/build_cache/darwin-sonoma-aarch64-apple-clang-15.0.0-re2c-2.2-v75nkgxcvyy6qhq5aysybi6fy5prbquj.spec.json
==> [2024-02-24-20:53:32.936027] Fetching from https://mirror.spack.io/build_cache/darwin-sonoma-aarch64-apple-clang-15.0.0-re2c-2.2-v75nkgxcvyy6qhq5aysybi6fy5prbquj.spec.json failed.
==> [2024-02-24-20:53:32.936350] No binary for re2c-2.2-v75nkgxcvyy6qhq5aysybi6fy5prbquj found: installing from source
==> [2024-02-24-20:53:32.936429] Creating the installation directory /Users/tomforbes/.spack/bootstrap/store/darwin-sonoma-aarch64/apple-clang-15.0.0/re2c-2.2-v75nkgxcvyy6qhq5aysybi6fy5prbquj
==> [2024-02-24-20:53:33.555482] Error: FetchError: All fetchers failed for spack-stage-re2c-2.2-v75nkgxcvyy6qhq5aysybi6fy5prbquj

it might be useful to run these spack commands with --debug by default?

orf commented 7 months ago

I got past the first error by ensuring python3 pointed to the homebrew-installed python, but I'm now hitting this one:

Error: No package matches the query: vectorscan
Full error

``` ❯ cargo check Compiling vectorscan-sys v0.0.1 error: failed to run custom build command for `vectorscan-sys v0.0.1` Caused by: process didn't exit successfully: `/Users/tomforbes/PycharmProjects/gitguardian/tforbes/regex-test/target/debug/build/vectorscan-sys-4b2c3f92e2bdb9e9/build-script-build` (exit status: 1) --- stdout cargo:rerun-if-changed=Cargo.toml cargo:rerun-if-changed=/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/vectorscan-sys-0.0.1/local-repo --- stderr [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/super-process-0.0.1/src/lib.rs:210:7] &self = Command { exe: Exe( File( "/Users/tomforbes/.config/rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo", ), ), wd: None, argv: Argv( [ "metadata", "--format-version", "1", ], ), env: EnvModifications( {}, ), } [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/spack-rs-0.0.5/src/utils.rs:476:9] &spack_metadata = Object { "envs": Object { "vectorscan-dynamic-runtime-only": Object { "deps": Object { "vectorscan": Object { "lib_names": Array [ String("hs_runtime"), ], "type": String("dynamic"), }, }, "features": Object { "conflicting": Array [ String("compiler"), String("chimera"), ], "needed": Array [ String("dynamic"), ], }, "spec": String("vectorscan@v5.4.11+shared~chimera"), }, "vectorscan-dynamic-with-compile": Object { "deps": Object { "vectorscan": Object { "lib_names": Array [ String("hs"), ], "type": String("dynamic"), }, }, "features": Object { "conflicting": Array [ String("chimera"), ], "needed": Array [ String("dynamic"), String("compiler"), ], }, "spec": String("vectorscan@v5.4.11+shared~chimera"), }, "vectorscan-static-chimera": Object { "deps": Object { "pcre": Object { "lib_names": Array [ String("pcre"), ], "type": String("static"), }, "vectorscan": Object { "lib_names": Array [ String("hs"), String("chimera"), ], "type": String("static"), }, }, "features": Object { "needed": Array [ String("chimera"), ], }, "spec": String("vectorscan@v5.4.11+chimera+static"), }, "vectorscan-static-runtime-only": Object { "deps": Object { "vectorscan": Object { "lib_names": Array [ String("hs_runtime"), ], "type": String("static"), }, }, "features": Object { "conflicting": Array [ String("compiler"), String("chimera"), ], "needed": Array [ String("static"), ], }, "spec": String("vectorscan@v5.4.11+static~chimera"), }, "vectorscan-static-with-compile": Object { "deps": Object { "vectorscan": Object { "lib_names": Array [ String("hs"), ], "type": String("static"), }, }, "features": Object { "conflicting": Array [ String("chimera"), ], "needed": Array [ String("static"), String("compiler"), ], }, "spec": String("vectorscan@v5.4.11+static~chimera"), }, }, "repo": Object { "path": String("local-repo"), }, } [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/spack-rs-0.0.5/src/utils.rs:501:7] &envs = { "vectorscan-dynamic-runtime-only": Env { spec: "vectorscan@v5.4.11+shared~chimera", deps: { "vectorscan": Dep { type: "dynamic", lib_names: [ "hs_runtime", ], }, }, features: Some( FeatureLayout { needed: Some( { "dynamic", }, ), conflicting: Some( { "compiler", "chimera", }, ), }, ), }, "vectorscan-dynamic-with-compile": Env { spec: "vectorscan@v5.4.11+shared~chimera", deps: { "vectorscan": Dep { type: "dynamic", lib_names: [ "hs", ], }, }, features: Some( FeatureLayout { needed: Some( { "dynamic", "compiler", }, ), conflicting: Some( { "chimera", }, ), }, ), }, "vectorscan-static-chimera": Env { spec: "vectorscan@v5.4.11+chimera+static", deps: { "pcre": Dep { type: "static", lib_names: [ "pcre", ], }, "vectorscan": Dep { type: "static", lib_names: [ "hs", "chimera", ], }, }, features: Some( FeatureLayout { needed: Some( { "chimera", }, ), conflicting: None, }, ), }, "vectorscan-static-runtime-only": Env { spec: "vectorscan@v5.4.11+static~chimera", deps: { "vectorscan": Dep { type: "static", lib_names: [ "hs_runtime", ], }, }, features: Some( FeatureLayout { needed: Some( { "static", }, ), conflicting: Some( { "compiler", "chimera", }, ), }, ), }, "vectorscan-static-with-compile": Env { spec: "vectorscan@v5.4.11+static~chimera", deps: { "vectorscan": Dep { type: "static", lib_names: [ "hs", ], }, }, features: Some( FeatureLayout { needed: Some( { "static", "compiler", }, ), conflicting: Some( { "chimera", }, ), }, ), }, } [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/spack-rs-0.0.5/src/utils.rs:690:7] &declared_recipes = { Label( "vectorscan-dynamic-runtime-only", ): ( Recipe { sub_deps: [ SubDep { pkg_name: PackageName( "vectorscan", ), type: DynamicWithRpath, lib_names: [ "hs_runtime", ], }, ], }, FeatureMap { needed: { CargoFeature( "dynamic", ), }, conflicting: { CargoFeature( "compiler", ), CargoFeature( "chimera", ), }, }, ), Label( "vectorscan-dynamic-with-compile", ): ( Recipe { sub_deps: [ SubDep { pkg_name: PackageName( "vectorscan", ), type: DynamicWithRpath, lib_names: [ "hs", ], }, ], }, FeatureMap { needed: { CargoFeature( "dynamic", ), CargoFeature( "compiler", ), }, conflicting: { CargoFeature( "chimera", ), }, }, ), Label( "vectorscan-static-chimera", ): ( Recipe { sub_deps: [ SubDep { pkg_name: PackageName( "pcre", ), type: Static, lib_names: [ "pcre", ], }, SubDep { pkg_name: PackageName( "vectorscan", ), type: Static, lib_names: [ "hs", "chimera", ], }, ], }, FeatureMap { needed: { CargoFeature( "chimera", ), }, conflicting: {}, }, ), Label( "vectorscan-static-runtime-only", ): ( Recipe { sub_deps: [ SubDep { pkg_name: PackageName( "vectorscan", ), type: Static, lib_names: [ "hs_runtime", ], }, ], }, FeatureMap { needed: { CargoFeature( "static", ), }, conflicting: { CargoFeature( "compiler", ), CargoFeature( "chimera", ), }, }, ), Label( "vectorscan-static-with-compile", ): ( Recipe { sub_deps: [ SubDep { pkg_name: PackageName( "vectorscan", ), type: Static, lib_names: [ "hs", ], }, ], }, FeatureMap { needed: { CargoFeature( "static", ), CargoFeature( "compiler", ), }, conflicting: { CargoFeature( "chimera", ), }, }, ), } [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/spack-rs-0.0.5/src/utils.rs:727:7] &env_label = Label( "vectorscan-static-with-compile", ) [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/spack-rs-0.0.5/src/utils.rs:728:7] &cur_recipe = Recipe { sub_deps: [ SubDep { pkg_name: PackageName( "vectorscan", ), type: Static, lib_names: [ "hs", ], }, ], } [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/spack-rs-0.0.5/src/utils.rs:732:7] env_instructions = EnvInstructions { specs: [ Spec( "vectorscan@v5.4.11+static~chimera", ), ], repo: Some( Repo { path: "local-repo", }, ), } [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/spack-rs-0.0.5/src/utils.rs:602:7] &env = EnvName( "vectorscan-static-with-compile-2spaUBbdX46h6GHedFx6nzWhDZWSlPYjexs5XwdKJ1c", ) [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/super-process-0.0.1/src/lib.rs:210:7] &self = Command { exe: Exe( File( "python3", ), ), wd: None, argv: Argv( [ "--version", ], ), env: EnvModifications( {}, ), } [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/spack-rs-0.0.5/src/summoning.rs:262:5] spack_tarball.downloaded_path() = "/Users/tomforbes/.spack/summonings/32fc4ed023ecddde91fc5803f20dc8982681914747cbfcacd306dec123283442.tar.gz" [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/super-process-0.0.1/src/lib.rs:210:7] &self = Command { exe: Exe( File( "python3", ), ), wd: None, argv: Argv( [ "/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2/bin/spack", "--version", ], ), env: EnvModifications( {}, ), } EnvList [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/spack-rs-0.0.5/src/commands.rs:1815:7] &__self = EnvList { spack: SpackInvocation { python: FoundPython { exe: Exe( File( "python3", ), ), version: "3.12.2", }, repo: SpackRepo { script_path: "/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2/bin/spack", repo_path: "/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2", cache_dir: CacheDir { location: "/Users/tomforbes/.spack/summonings", }, }, version: "0.22.0.dev0", }, } [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/super-process-0.0.1/src/lib.rs:210:7] &self = Command { exe: Exe( File( "python3", ), ), wd: Some( Directory( "/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2", ), ), argv: Argv( [ "/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2/bin/spack", "env", "list", ], ), env: EnvModifications( {}, ), } env EnvName("vectorscan-static-with-compile-2spaUBbdX46h6GHedFx6nzWhDZWSlPYjexs5XwdKJ1c") already exists! [/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/super-process-0.0.1/src/lib.rs:210:7] &self = Command { exe: Exe( File( "python3", ), ), wd: Some( Directory( "/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2", ), ), argv: Argv( [ "/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2/bin/spack", "-c", "repos:[/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/vectorscan-sys-0.0.1/local-repo,$spack/var/spack/repos/builtin]", "--env", "vectorscan-static-with-compile-2spaUBbdX46h6GHedFx6nzWhDZWSlPYjexs5XwdKJ1c", "find", "--no-groups", "-p", "vectorscan", ], ), env: EnvModifications( {}, ), } Error: command line error command Command { exe: Exe(File("python3")), wd: Some(Directory("/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2")), argv: Argv(["/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2/bin/spack", "-c", "repos:[/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/vectorscan-sys-0.0.1/local-repo,$spack/var/spack/repos/builtin]", "--env", "vectorscan-static-with-compile-2spaUBbdX46h6GHedFx6nzWhDZWSlPYjexs5XwdKJ1c", "find", "--no-groups", "-p", "vectorscan"]), env: EnvModifications({}) } failed (when analyzing exit status for output (utf-8 decoded) DecodedOutput { stdout: "", stderr: "==> Error: No package matches the query: vectorscan\n" }): a command line exited with non-zero status 1 Caused by: 0: command Command { exe: Exe(File("python3")), wd: Some(Directory("/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2")), argv: Argv(["/Users/tomforbes/.spack/summonings/spack-cargo-patches-v2/spack-cargo-patches-v2/bin/spack", "-c", "repos:[/Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/vectorscan-sys-0.0.1/local-repo,$spack/var/spack/repos/builtin]", "--env", "vectorscan-static-with-compile-2spaUBbdX46h6GHedFx6nzWhDZWSlPYjexs5XwdKJ1c", "find", "--no-groups", "-p", "vectorscan"]), env: EnvModifications({}) } failed (when analyzing exit status for output (utf-8 decoded) DecodedOutput { stdout: "", stderr: "==> Error: No package matches the query: vectorscan\n" }): a command line exited with non-zero status 1 1: a command line exited with non-zero status 1 Location: /Users/tomforbes/.config/cargo/registry/src/index.crates.io-6f17d22bba15001f/spack-rs-0.0.5/src/utils.rs:635:22 ```

orf commented 7 months ago

Ok, so this happens because a previous compilation failed. Removing ~/.spack/, having the compilation fail then re-running cargo check causes it to error saying that vectorscan does not exist, rather than retry the build.

The original compilation error was a rather unfortunate

  │ make[2]: Leaving directory '/private/var/folders/rl/khg202fx6tv_5gfx43gb_k1c0000gn/T/tomforbes/spack-stage/spack-stage-vectorscan-v5.4.11-7seyk3h4fbephd2bzwha2ntw4kqyu63q/spack-build-7seyk3h'
  │ [ 98%] Built target unit-internal
  │ make[1]: Leaving directory '/private/var/folders/rl/khg202fx6tv_5gfx43gb_k1c0000gn/T/tomforbes/spack-stage/spack-stage-vectorscan-v5.4.11-7seyk3h4fbephd2bzwha2ntw4kqyu63q/spack-build-7seyk3h'
  │ make: *** [Makefile:139: all] Error 2