Hello,
I'm seeing some issues when compiling software that has dependencies that have been compiled in multiple compilers.
The system this is compiling on is a CentOS 7.5 server with spack 0.12.0.
Below is an example of the issue I am seeing.
[root@spack applications]# spack install astral %g...@8.2.0
==> jdk is already installed in /home/applications/spack/applications/jdk/11.0.1
==> Error: Spec file in /home/applications/spack/applications/diffutils/3.6/.spack/spec.yaml does not match hash!
[root@spack applications]# spack find --very-long diffutils
==> 2 installed packages
-- linux-centos7-x86_64 / g...@4.8.5 -----------------------------
jmwm4oimp3xel2aitzy5yfxnymd75qm6 diffutils@3.6
-- linux-centos7-x86_64 / g...@8.2.0 -----------------------------
mvaitpymjsgakznev73lkzv4sl52jby4 diffutils@3.6
[root@spack applications]# cat diffutils/3.6/.spack/spec.yaml
spec:
- diffutils:
version: '3.6'
arch:
platform: linux
platform_os: centos7
target: x86_64
compiler:
name: gcc
version: 4.8.5
namespace: builtin
parameters:
cflags: []
cppflags: []
cxxflags: []
fflags: []
ldflags: []
ldlibs: []
hash: jmwm4oimp3xel2aitzy5yfxnymd75qm6
It looks like only one one compiler and hash is available in the spec file instead of both installed versions.
Would the fix be to edit the spec.yaml and add the information for the other compiler or is this something that should have been taken care of automatically by spack and was not?
Any help or information on this would be appreciated. Thanks!