From d253055b4690b77590763da56f59eb7732e11a5e Mon Sep 17 00:00:00 2001 From: Eric Berquist Date: Wed, 6 Mar 2024 08:52:01 -0700 Subject: [PATCH 1/4] force using older binutils --- .github/workflows/build-spack-nodeps.yml | 3 +++ .gitignore | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/build-spack-nodeps.yml b/.github/workflows/build-spack-nodeps.yml index c538f96..b14660a 100644 --- a/.github/workflows/build-spack-nodeps.yml +++ b/.github/workflows/build-spack-nodeps.yml @@ -54,9 +54,12 @@ jobs: - name: Install sst-core, sst-elements, and sst-macro run: | eval "$(spack env activate --sh .)" + # workaround for 2.42 installation issues on macOS + spack add binutils@2.41 spack add sst-core@${{ matrix.version }} spack add sst-elements@${{ matrix.version }} spack add sst-macro@${{ matrix.version }} + spack concretize --reuse --force spack install --fail-fast --verbose - name: Push packages and update index run: | diff --git a/.gitignore b/.gitignore index 9e6d268..402743b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,6 @@ *.pyc .spack-env/ +\#spack.yaml# +._sst-spack-view/ +spack.lock +sst-spack-view From 859a2eb2126d50e8055d37bc79ccdad804cd39d9 Mon Sep 17 00:00:00 2001 From: Eric Berquist Date: Wed, 6 Mar 2024 09:15:07 -0700 Subject: [PATCH 2/4] macro is causing problems on macOS --- .github/workflows/build-spack-nodeps.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-spack-nodeps.yml b/.github/workflows/build-spack-nodeps.yml index b14660a..851dd24 100644 --- a/.github/workflows/build-spack-nodeps.yml +++ b/.github/workflows/build-spack-nodeps.yml @@ -58,7 +58,8 @@ jobs: spack add binutils@2.41 spack add sst-core@${{ matrix.version }} spack add sst-elements@${{ matrix.version }} - spack add sst-macro@${{ matrix.version }} + # macro is causing problems on macOS + # spack add sst-macro@${{ matrix.version }} spack concretize --reuse --force spack install --fail-fast --verbose - name: Push packages and update index From d4f9b9614a8252cd2b2dbc4223e7a27f09f2a44a Mon Sep 17 00:00:00 2001 From: Eric Berquist Date: Wed, 6 Mar 2024 09:36:39 -0700 Subject: [PATCH 3/4] at least temporarily stop verbose installation --- .github/workflows/build-spack-nodeps.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-spack-nodeps.yml b/.github/workflows/build-spack-nodeps.yml index 851dd24..a0508f6 100644 --- a/.github/workflows/build-spack-nodeps.yml +++ b/.github/workflows/build-spack-nodeps.yml @@ -61,7 +61,7 @@ jobs: # macro is causing problems on macOS # spack add sst-macro@${{ matrix.version }} spack concretize --reuse --force - spack install --fail-fast --verbose + spack install --fail-fast - name: Push packages and update index run: | eval "$(spack env activate --sh .)" From d782a14fddce987a8e47d788823b696a138f00f4 Mon Sep 17 00:00:00 2001 From: Eric Berquist Date: Wed, 6 Mar 2024 12:56:46 -0700 Subject: [PATCH 4/4] explicitly find compilers, allowing gfortran with clang --- .github/workflows/build-spack-nodeps.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build-spack-nodeps.yml b/.github/workflows/build-spack-nodeps.yml index a0508f6..e7172c9 100644 --- a/.github/workflows/build-spack-nodeps.yml +++ b/.github/workflows/build-spack-nodeps.yml @@ -40,6 +40,9 @@ jobs: run: | echo "${PWD}/spack/bin" >> "${GITHUB_PATH}" echo "mirror_name=github-container-registry" >> "${GITHUB_ENV}" + - name: Find compilers for Spack + run: | + spack compiler find --mixed-toolchain - name: Print Spack configuration run: | spack config blame config