Skip to content

Failed to build rust due to ar issue #7184

@weijianwen

Description

@weijianwen

I failed to build rust because that the unexistingn archiever /lustre/home/rpm/spack/lib/spack/env/gcc/ar was evoked during build.

Expected Result

Rust build succeeded.

Actual Result

Rust build failed.

Steps to reproduce the issue

$ spack clean
$ rm -rf $SPACK_ROOT/var/spack/cache/rust/*
$ spack install rust
...
==> Error: ProcessError: Command exited with status 2:
    'make' '-j6'

1 error found in build log:
     115    couldn't find required command: "/lustre/home/rpm/spack/lib/spack/env/gcc/ar"
     116    
     117    ', src/bootstrap/sanity.rs:65:12
     118    note: Run with `RUST_BACKTRACE=1` for a backtrace.
     119    failed to run: /lustre/home/rpm/spack/var/spack/stage/rust-1.23.0-zskm6as22m5lv2ldwojyeknjwa5thrni/rus
            t/build/bootstrap/debug/bootstrap build
     120    Build completed unsuccessfully in 0:05:12
  >> 121    make: *** [all] Error 1

See build log for details:
  /lustre/home/rpm/spack/var/spack/stage/rust-1.23.0-zskm6as22m5lv2ldwojyeknjwa5thrni/rust/spack-build.out

Information on your system

I am using CentOS 7. Both rust and cargo have been bump to the latest versions, 1.23.0 and 0.24.0 separately. No other relevant modificiation has been made to Spack, I think. Full build logs and envs can be found attached.

spack-build.env.txt
spack-build.out.txt

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions