@@ -298,13 +298,13 @@ Let's open our compilers configuration file again and add a compiler flag:
298298 packages :
299299 gcc :
300300 externals :
301- - spec : gcc@11.4 .0 languages:='c,c++,fortran'
301+ - spec : gcc@10.5 .0 languages:='c,c++,fortran'
302302 prefix : /usr
303303 extra_attributes :
304304 compilers :
305- c : /usr/bin/gcc
306- cxx : /usr/bin/g++
307- fortran : /usr/bin/gfortran
305+ c : /usr/bin/gcc-10
306+ cxx : /usr/bin/g++-10
307+ fortran : /usr/bin/gfortran-10
308308 flags :
309309 cppflags : -g
310310
@@ -511,7 +511,6 @@ Here, we've told Spack that Curl 7.81.0 is installed on our system.
511511We've also told it the installation prefix where Curl can be found.
512512We don't know exactly which variants it was built with, but that's okay.
513513Finally, we set ``buildable: false `` to require that Spack not try to build its own.
514- The cmake config isn't strictly required, but you might get a strange concretization without it.
515514
516515.. The weighting/preferences dont work quite the same so I skipped right to buildable:false
517516
@@ -533,7 +532,7 @@ To express that we don't want any other MPI installed, we can use the virtual ``
533532While we're editing the ``spack.yaml `` file, make sure to configure HDF5 to be able to build with MPI again:
534533
535534.. code-block :: yaml
536- :emphasize-lines : 19-24
535+ :emphasize-lines : 12,18-21
537536
538537 spack :
539538 specs : []
@@ -546,6 +545,7 @@ While we're editing the ``spack.yaml`` file, make sure to configure HDF5 to be a
546545 - " %llvm"
547546 mpi :
548547 require : mpich
548+ buildable : false
549549 curl :
550550 externals :
551551 - spec : curl@7.81.0 %gcc@11.4.0
@@ -555,8 +555,6 @@ While we're editing the ``spack.yaml`` file, make sure to configure HDF5 to be a
555555 externals :
556556 - spec : mpich@4.0+hydra device=ch4 netmod=ofi
557557 prefix : /usr
558- mpi :
559- buildable : false
560558
561559.. 3.externals.out has mpich
562560.. The concretization result is strange and enables some qt stuff that makes it huge
0 commit comments