Comments (2)
Hmm, the steps to reproduce are not really correct - so it's hard to check if there was an error there. For instance:
spack compiler add [email protected]
doesn't work to add a compiler, but since you then say that:
$ spack compilers
==> Available compilers
-- gcc ubuntu20.04-x86_64 ---------------------------------------
[email protected] [email protected] [email protected]
I assume you used something like:
$ spack compiler add $(spack location -i [email protected])
?
That said, using the environment above with:
- Spack: 0.22.0.dev0 (2867547)
- Python: 3.11.5
- Platform: linux-ubuntu20.04-icelake
- Concretizer: clingo
and with the following compilers:
$ spack compilers
==> Available compilers
-- clang ubuntu20.04-x86_64 -------------------------------------
[email protected]
-- gcc ubuntu20.04-x86_64 ---------------------------------------
[email protected] [email protected] [email protected]
$ spack concretize --fresh
I cannot reproduce your issue, since the environment is concretized with [email protected]
Did you try using --fresh
during concretization? My guess is that you might be reusing previous installations that you have on disk (and since you don't force the compiler Spack assumes that you're fine with any available).
For reference:
from spack.
I'm seeing this same behaviour, but with external compilers.
I have packages.yaml
set to use my external oneapi compiler
$ cat ~/.spack/packages.yaml
packages:
all:
compiler: [[email protected]]
which was automatically found and set in my compilers.yaml
$ cat ~/.spack/linux/compilers.yaml
compilers:
- compiler:
spec: oneapi@=2023.2.0
paths:
cc: /fs/ssm/main/opt/intelcomp/inteloneapi-2023.2.0/intelcomp+mpi+mkl/rhel-8-amd64-64/bin/icx
cxx: /fs/ssm/main/opt/intelcomp/inteloneapi-2023.2.0/intelcomp+mpi+mkl/rhel-8-amd64-64/bin/icpx
f77: /fs/ssm/main/opt/intelcomp/inteloneapi-2023.2.0/intelcomp+mpi+mkl/rhel-8-amd64-64/bin/ifx
fc: /fs/ssm/main/opt/intelcomp/inteloneapi-2023.2.0/intelcomp+mpi+mkl/rhel-8-amd64-64/bin/ifx
flags: {}
operating_system: rhel8
target: x86_64
modules: []
environment: {}
extra_rpaths: []
<snip>
If I query the spec individually, spack resolves using the oneapi compiler as expected
$ spack spec [email protected]
Input spec
--------------------------------
- [email protected]
Concretized
--------------------------------
- [email protected]%[email protected]~doc+pic+shared build_system=autotools arch=linux-rhel8-icelake
However, if I install a new env from a .yaml file
, it defaults to the system's gcc8.3
$ spack concretize -f
==> Concretized [email protected]
- ly3fhmn [email protected]%[email protected]~doc+pic+shared build_system=autotools arch=linux-rhel8-icelake
I have also tried adding my compiler choice to my env, but it produces the same result
$ spack config add "packages:all:compiler:[[email protected]]"
Weirdly (to me), most packages are concretized with the wrong compiler but some are, randomly (?), using the correct oneapi compiler
from spack.
Related Issues (20)
- RISC-V Bootstrap of Clingo Fails HOT 4
- Installation issue: xz HOT 3
- Installation issue: netcdf-cxx4 links against /lib64 netcdf-c HOT 1
- Concretization is order-dependent with `requires` and `one_of` policy
- Installation issue: py-torch HOT 4
- Installation issue: proj HOT 2
- Feature Request: Display List of Packages Maintained by a Specific User in Spack HOT 1
- Installation issue: cp2k and quantum-espresso build failure with the most recent ELPA HOT 5
- Installation issue: aocl-sparse%[email protected]: No rule to make target libblis.so, libblis-mt.so HOT 3
- Installation issue: NetCDF claims +netcdf is a variant, but specifying +netcdf leads to failure
- Installation issue: GDAL fails to build on subsequent rebuilds HOT 5
- Replace `buildable` with `from` HOT 3
- py-pymol Error 1. Cannot select a single "version" for package "py-pymol" HOT 3
- Installation issue: paraview vs multiple Qt versions
- CUDA toolkit is missing a libcuda.so.1 symlink to stub lib HOT 13
- Compiler flag combinations lead to silent concretization failure HOT 2
- `spack develop --build-directory $dir && spack undevelop` leaves attributes HOT 2
- Spack spec provider character (`^`) is escape in CMD HOT 1
- Installation issue: openimageio HOT 4
- [email protected] build fails: fatal error: GL/glu.h: No such file or directory HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spack.