Questions tagged [spack]

Questions related to the Spack package manager

Spack package manager (https://spack.io)

28 questions
15
votes
5 answers

Could NOT find Protobuf (missing: Protobuf_PROTOC_EXECUTABLE)

When I am doing a cmake in the build directory of the project I am getting this error. Initially I got a protobuf-config.cmake not found error. So I gave a path of the protobuf-config.cmake file to Protobuf_DIR. Later it started to show this new…
Check
  • 169
  • 1
  • 1
  • 9
4
votes
3 answers

cmake can't find default MPI install on stock CentOS 7?

On a vanilla CentOS 7 box, I have OpenMPI installed (stock version), and did: module load mpi to load the MPI stuff into the environment. Under this setting, cmake (I tried both 2.8 and latest 3.12) can't seem to find the MPI. Any idea how to…
python152
  • 1,811
  • 2
  • 15
  • 18
2
votes
1 answer

Is it possible to use my own Python interpreter with Conda's OpenCV python library?

I work on a Python project that in one place callse Julia's code, and in other uses OpenCV. Unfortunately, pyJulia prefers Python interpreter to be dynamically linked to the libpython. (I know I can build a custom Julia system image, but I fear the…
Adam Ryczkowski
  • 7,592
  • 13
  • 42
  • 68
2
votes
1 answer

How to change where Spack stores the spack-stage directory?

Spack by default writes (on my system) into a directory spack-stage inside /tmp/. This directory can get full when building something big (e.g. GCC itself), at least in the shared system I am using: fatal error: error writing to /tmp/ccPlIYSg.s: No…
MakisH
  • 967
  • 1
  • 9
  • 23
1
vote
1 answer

How to change where spack installs package?

Is there a way to have spack install software at a location of my choosing? For example, if I do: spack install netcdf-c Then spack will install netcdf-c in a directory…
Edward Hartnett
  • 882
  • 7
  • 16
1
vote
2 answers

How can I make the C++ compiler support template for STL?

I am trying to install hpctoolkit using Spack. In order to do that, I executed : git clone https://github.com/spack/spack.git cd spack/share/spack source setup-env.sh spack fetch -D hpctoolkit spack install hpctoolkit I can't execute the last…
hakimo2
  • 143
  • 12
1
vote
0 answers

Setting the MODULE_PATH variable for default env of spack

Lately, the mechanism used by Spack to manage the modules (I refer to the Environment Modules and to LMod) changed a little bit to allow a better integration with the spack environments (see pull request #23703). Unfortunately, this also affect the…
SteP
  • 262
  • 1
  • 2
  • 9
1
vote
1 answer

I am unable to get "spack mirror add" to work

I decided I wanted to install gcc@10.2 with spack, so I ran the command spack --insecure install gcc@10.2. This attempts to download https://ftpmirror.gnu.org/gcc/gcc-10.2/gcc-10.2.tar.xz, which no longer exists. I downloaded gcc-10.2.tar.xz from a…
1
vote
1 answer

Insalling spack package with external MPI interface

I am trying to install a spack package in a cluster, and if I use spack install namd Spack download and install its own MPI interface. Since it is a cluster, I want to take advantage of the native MPI interface, that is personalized by the admin to…
alexis
  • 410
  • 4
  • 18
0
votes
1 answer

why does spack external find fail to find perl?

I am working on free and open-source software for the Earth science community, using spack to install the massive list of dependencies needed for some forecast models. The goal is that scientists all over the world (potentially with little build…
Edward Hartnett
  • 882
  • 7
  • 16
0
votes
0 answers

Spack GitLab CI Pipeline - Environment yaml does not have "gitlab-ci" section

Using example files .gitlab-ci.yml and spack.yaml as in https://spack.readthedocs.io/en/latest/pipelines.html , with this change, script: - spack env create ENV - spack env activate --without-view ENV and docker tags commented out, yet…
iris
  • 379
  • 1
  • 2
  • 9
0
votes
1 answer

Using Spack Containers for Local development using CLion

Spack is set up for the creation of containarize enviorments with all the dependencies. This is great for github actions, but I will like to make it work for local development on CLion Here is the link to the spack containers My main problem is that…
James
  • 1
  • 2
0
votes
1 answer

what package version is installed if I write spack install @master?

I want to install the latest version of a package using spack. In the spack manual of the corresponding package, there is the heading Versions: master,... To which version of the package does master refer to?
Simon
  • 325
  • 1
  • 6
0
votes
1 answer

How to run spack without OpenMP?

The compilation of LLVM with spack ($spack install llvm) fails towards the end with the following error message: ==> Installing llvm-15.0.7-cvmhmn4maer6wxbsjmmxmz7euob5eim6 ==> No binary for llvm-15.0.7-cvmhmn4maer6wxbsjmmxmz7euob5eim6 found:…
0
votes
1 answer

Permission Denied in Accessing Package Within Spack

I am trying to create a Quantum Espresso environment within Spack to run modeling simulations with the package libxc. In the process of creating a QE environment, I am trying to run the code ~/spack/var/spack/repos/builtin/packages/libxc and am…
Eason
  • 1
1
2