spack / spack

A flexible package manager that supports multiple versions, configurations, platforms, and compilers.
https://spack.io
Other
4.28k stars 2.27k forks source link

superlu-dist error when trying to install petsc #31152

Closed vsoch closed 2 years ago

vsoch commented 2 years ago

Using gcc 12.1, I get:

==> Installing superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe
==> No binary for superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe found: installing from source
==> Fetching https://mirror.spack.io/_source-cache/archive/20/20b60bd8a3d88031c9ce6511ae9700b7a8dcf12e2fd704e74b1af762b3468b8c.tar.gz
==> Applied patch /tmp/spack/var/spack/repos/builtin/packages/superlu-dist/CMAKE_INSTALL_LIBDIR.patch
==> superlu-dist: Executing phase: 'cmake'
==> superlu-dist: Executing phase: 'build'
==> Error: ProcessError: Command exited with status 2:
    'make' '-j8'

29 errors found in build log:
     770    cd /tmp/root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/spack-build-mgpurw2/EXAMPLE && /tmp/spack/opt/s
            pack/linux-debian11-skylake/gcc-12.1.0/cmake-3.23.2-dpmzbcikudgue6r7gl5mwa73keg66xfd/bin/cmake -E cmake_link_script CMakeFiles/pddrive3.
            dir/link.txt --verbose=1
     771    /tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/openmpi-4.1.4-vwvilf2ekro6b5cnej3obj2exb5w35gf/bin/mpicc -I/tmp/spack/opt/spack/l
            inux-debian11-skylake/gcc-12.1.0/metis-5.1.0-nwwavh2fm2nk4zsbde522gcflmphj5ds/include -I/tmp/spack/opt/spack/linux-debian11-skylake/gcc-
            12.1.0/parmetis-4.0.3-zsisvfc3dsnv7lssrk3pkrj3jqvjscbd/include -DUSE_VENDOR_BLAS  -std=c99 -O2 -g -DNDEBUG  -Wl,-rpath,/tmp/spack/opt/sp
            ack/linux-debian11-skylake/gcc-12.1.0/superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/SRC  -Wl,-rpath -Wl,/tmp/spack/opt/spack/linux
            -debian11-skylake/gcc-12.1.0/openmpi-4.1.4-vwvilf2ekro6b5cnej3obj2exb5w35gf/lib -Wl,-rpath -Wl,/tmp/spack/opt/spack/linux-debian11-skyla
            ke/gcc-12.1.0/hwloc-2.7.1-ofe2lw5kokppvlsajikj2342224imbtb/lib -Wl,-rpath -Wl,/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/lib
            event-2.1.12-qopacpxkz54kumtecgqr2bzeoxuyz5ao/lib -Wl,-rpath -Wl,/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/pmix-4.1.2-pa3vp
            dvniwk2tgvafbbdje74emnrroip/lib -L/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/hwloc-2.7.1-ofe2lw5kokppvlsajikj2342224imbtb/li
            b -L/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/libevent-2.1.12-qopacpxkz54kumtecgqr2bzeoxuyz5ao/lib -L/tmp/spack/opt/spack/l
            inux-debian11-skylake/gcc-12.1.0/pmix-4.1.2-pa3vpdvniwk2tgvafbbdje74emnrroip/lib -pthread -Wl,-rpath,/tmp/spack/opt/spack/linux-debian11
            -skylake/gcc-12.1.0/superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe//tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/superlu-d
            ist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/lib CMakeFiles/pddrive3.dir/pddrive3.c.o CMakeFiles/pddrive3.dir/dcreate_matrix.c.o -o pddriv
            e3  -Wl,-rpath,/tmp/root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/spack-build-mgpurw2/SRC:/tmp/spack/
            opt/spack/linux-debian11-skylake/gcc-12.1.0/openblas-0.3.20-s6unagqg76cbucby3auwdsyfrrguxnjv/lib: ../SRC/libsuperlu_dist.so.7.2.0 /tmp/s
            pack/opt/spack/linux-debian11-skylake/gcc-12.1.0/openblas-0.3.20-s6unagqg76cbucby3auwdsyfrrguxnjv/lib/libopenblas.so -lm -L/tmp/spack/op
            t/spack/linux-debian11-skylake/gcc-12.1.0/parmetis-4.0.3-zsisvfc3dsnv7lssrk3pkrj3jqvjscbd/lib -lparmetis -L/tmp/spack/opt/spack/linux-de
            bian11-skylake/gcc-12.1.0/metis-5.1.0-nwwavh2fm2nk4zsbde522gcflmphj5ds/lib -lmetis
     772    [ 76%] Building C object TEST/CMakeFiles/pdtest.dir/pdcompute_resid.c.o
     773    cd /tmp/root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/spack-build-mgpurw2/TEST && /tmp/spack/opt/spac
            k/linux-debian11-skylake/gcc-12.1.0/openmpi-4.1.4-vwvilf2ekro6b5cnej3obj2exb5w35gf/bin/mpicc  -I/tmp/spack/opt/spack/linux-debian11-skyl
            ake/gcc-12.1.0/openmpi-4.1.4-vwvilf2ekro6b5cnej3obj2exb5w35gf/lib -I/tmp/root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6wau
            gthzhkcocck7i33qe/spack-build-mgpurw2/SRC -I/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/parmetis-4.0.3-zsisvfc3dsnv7lssrk3pkr
            j3jqvjscbd/include -I/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/metis-5.1.0-nwwavh2fm2nk4zsbde522gcflmphj5ds/include -I/tmp/
            root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/spack-src/SRC -I/tmp/spack/opt/spack/linux-debian11-sky
            lake/gcc-12.1.0/metis-5.1.0-nwwavh2fm2nk4zsbde522gcflmphj5ds/include -I/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/parmetis-4
            .0.3-zsisvfc3dsnv7lssrk3pkrj3jqvjscbd/include -DUSE_VENDOR_BLAS  -std=c99 -O2 -g -DNDEBUG -fPIE -MD -MT TEST/CMakeFiles/pdtest.dir/pdcom
            pute_resid.c.o -MF CMakeFiles/pdtest.dir/pdcompute_resid.c.o.d -o CMakeFiles/pdtest.dir/pdcompute_resid.c.o -c /tmp/root/spack-stage/spa
            ck-stage-superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/spack-src/TEST/pdcompute_resid.c
     774    [ 77%] Building C object EXAMPLE/CMakeFiles/pddrive3d.dir/dcreate_matrix3d.c.o
     775    cd /tmp/root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/spack-build-mgpurw2/EXAMPLE && /tmp/spack/opt/s
            pack/linux-debian11-skylake/gcc-12.1.0/openmpi-4.1.4-vwvilf2ekro6b5cnej3obj2exb5w35gf/bin/mpicc  -I/tmp/spack/opt/spack/linux-debian11-s
            kylake/gcc-12.1.0/openmpi-4.1.4-vwvilf2ekro6b5cnej3obj2exb5w35gf/lib -I/tmp/root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6
            waugthzhkcocck7i33qe/spack-build-mgpurw2/SRC -I/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/parmetis-4.0.3-zsisvfc3dsnv7lssrk3
            pkrj3jqvjscbd/include -I/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/metis-5.1.0-nwwavh2fm2nk4zsbde522gcflmphj5ds/include -I/t
            mp/root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/spack-src/SRC -I/tmp/spack/opt/spack/linux-debian11-
            skylake/gcc-12.1.0/metis-5.1.0-nwwavh2fm2nk4zsbde522gcflmphj5ds/include -I/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/parmeti
            s-4.0.3-zsisvfc3dsnv7lssrk3pkrj3jqvjscbd/include -DUSE_VENDOR_BLAS  -std=c99 -O2 -g -DNDEBUG -fPIE -MD -MT EXAMPLE/CMakeFiles/pddrive3d.
            dir/dcreate_matrix3d.c.o -MF CMakeFiles/pddrive3d.dir/dcreate_matrix3d.c.o.d -o CMakeFiles/pddrive3d.dir/dcreate_matrix3d.c.o -c /tmp/ro
            ot/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/spack-src/EXAMPLE/dcreate_matrix3d.c
  >> 776    /usr/bin/ld: /tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/openblas-0.3.20-s6unagqg76cbucby3auwdsyfrrguxnjv/lib/libopenblas.so:
             undefined reference to `_gfortran_concat_string'
  >> 777    collect2: error: ld returned 1 exit status
  >> 778    make[2]: *** [EXAMPLE/CMakeFiles/pddrive.dir/build.make:118: EXAMPLE/pddrive] Error 1
     779    make[2]: Leaving directory '/tmp/root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/spack-build-mgpurw2'
  >> 780    make[1]: *** [CMakeFiles/Makefile2:296: EXAMPLE/CMakeFiles/pddrive.dir/all] Error 2
     781    make[1]: *** Waiting for unfinished jobs....
     782    [ 77%] Linking C executable pddrive4
     783    cd /tmp/root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/spack-build-mgpurw2/EXAMPLE && /tmp/spack/opt/s
            pack/linux-debian11-skylake/gcc-12.1.0/cmake-3.23.2-dpmzbcikudgue6r7gl5mwa73keg66xfd/bin/cmake -E cmake_link_script CMakeFiles/pddrive4.
            dir/link.txt --verbose=1
     784    [ 77%] Linking C executable pddrive1
     785    cd /tmp/root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/spack-build-mgpurw2/EXAMPLE && /tmp/spack/opt/s
            pack/linux-debian11-skylake/gcc-12.1.0/cmake-3.23.2-dpmzbcikudgue6r7gl5mwa73keg66xfd/bin/cmake -E cmake_link_script CMakeFiles/pddrive1.
            dir/link.txt --verbose=1
     786    /tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/openmpi-4.1.4-vwvilf2ekro6b5cnej3obj2exb5w35gf/bin/mpicc -I/tmp/spack/opt/spack/l
            inux-debian11-skylake/gcc-12.1.0/metis-5.1.0-nwwavh2fm2nk4zsbde522gcflmphj5ds/include -I/tmp/spack/opt/spack/linux-debian11-skylake/gcc-
            12.1.0/parmetis-4.0.3-zsisvfc3dsnv7lssrk3pkrj3jqvjscbd/include -DUSE_VENDOR_BLAS  -std=c99 -O2 -g -DNDEBUG  -Wl,-rpath,/tmp/spack/opt/sp
            ack/linux-debian11-skylake/gcc-12.1.0/superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/SRC  -Wl,-rpath -Wl,/tmp/spack/opt/spack/linux
            -debian11-skylake/gcc-12.1.0/openmpi-4.1.4-vwvilf2ekro6b5cnej3obj2exb5w35gf/lib -Wl,-rpath -Wl,/tmp/spack/opt/spack/linux-debian11-skyla
            ke/gcc-12.1.0/hwloc-2.7.1-ofe2lw5kokppvlsajikj2342224imbtb/lib -Wl,-rpath -Wl,/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/lib
            event-2.1.12-qopacpxkz54kumtecgqr2bzeoxuyz5ao/lib -Wl,-rpath -Wl,/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/pmix-4.1.2-pa3vp
            dvniwk2tgvafbbdje74emnrroip/lib -L/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/hwloc-2.7.1-ofe2lw5kokppvlsajikj2342224imbtb/li
            b -L/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/libevent-2.1.12-qopacpxkz54kumtecgqr2bzeoxuyz5ao/lib -L/tmp/spack/opt/spack/l
            inux-debian11-skylake/gcc-12.1.0/pmix-4.1.2-pa3vpdvniwk2tgvafbbdje74emnrroip/lib -pthread -Wl,-rpath,/tmp/spack/opt/spack/linux-debian11
            -skylake/gcc-12.1.0/superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe//tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/superlu-d
            ist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/lib CMakeFiles/pddrive4.dir/pddrive4.c.o CMakeFiles/pddrive4.dir/dcreate_matrix.c.o -o pddriv
            e4  -Wl,-rpath,/tmp/root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/spack-build-mgpurw2/SRC:/tmp/spack/
            opt/spack/linux-debian11-skylake/gcc-12.1.0/openblas-0.3.20-s6unagqg76cbucby3auwdsyfrrguxnjv/lib: ../SRC/libsuperlu_dist.so.7.2.0 /tmp/s
            pack/opt/spack/linux-debian11-skylake/gcc-12.1.0/openblas-0.3.20-s6unagqg76cbucby3auwdsyfrrguxnjv/lib/libopenblas.so -lm -L/tmp/spack/op
            t/spack/linux-debian11-skylake/gcc-12.1.0/parmetis-4.0.3-zsisvfc3dsnv7lssrk3pkrj3jqvjscbd/lib -lparmetis -L/tmp/spack/opt/spack/linux-de
            bian11-skylake/gcc-12.1.0/metis-5.1.0-nwwavh2fm2nk4zsbde522gcflmphj5ds/lib -lmetis

     ...

     788    [ 77%] Linking C executable pddrive2
     789    cd /tmp/root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/spack-build-mgpurw2/EXAMPLE && /tmp/spack/opt/s
            pack/linux-debian11-skylake/gcc-12.1.0/cmake-3.23.2-dpmzbcikudgue6r7gl5mwa73keg66xfd/bin/cmake -E cmake_link_script CMakeFiles/pddrive2.
            dir/link.txt --verbose=1
     790    /tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/openmpi-4.1.4-vwvilf2ekro6b5cnej3obj2exb5w35gf/bin/mpicc -I/tmp/spack/opt/spack/l
            inux-debian11-skylake/gcc-12.1.0/metis-5.1.0-nwwavh2fm2nk4zsbde522gcflmphj5ds/include -I/tmp/spack/opt/spack/linux-debian11-skylake/gcc-
            12.1.0/parmetis-4.0.3-zsisvfc3dsnv7lssrk3pkrj3jqvjscbd/include -DUSE_VENDOR_BLAS  -std=c99 -O2 -g -DNDEBUG  -Wl,-rpath,/tmp/spack/opt/sp
            ack/linux-debian11-skylake/gcc-12.1.0/superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/SRC  -Wl,-rpath -Wl,/tmp/spack/opt/spack/linux
            -debian11-skylake/gcc-12.1.0/openmpi-4.1.4-vwvilf2ekro6b5cnej3obj2exb5w35gf/lib -Wl,-rpath -Wl,/tmp/spack/opt/spack/linux-debian11-skyla
            ke/gcc-12.1.0/hwloc-2.7.1-ofe2lw5kokppvlsajikj2342224imbtb/lib -Wl,-rpath -Wl,/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/lib
            event-2.1.12-qopacpxkz54kumtecgqr2bzeoxuyz5ao/lib -Wl,-rpath -Wl,/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/pmix-4.1.2-pa3vp
            dvniwk2tgvafbbdje74emnrroip/lib -L/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/hwloc-2.7.1-ofe2lw5kokppvlsajikj2342224imbtb/li
            b -L/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/libevent-2.1.12-qopacpxkz54kumtecgqr2bzeoxuyz5ao/lib -L/tmp/spack/opt/spack/l
            inux-debian11-skylake/gcc-12.1.0/pmix-4.1.2-pa3vpdvniwk2tgvafbbdje74emnrroip/lib -pthread -Wl,-rpath,/tmp/spack/opt/spack/linux-debian11
            -skylake/gcc-12.1.0/superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe//tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/superlu-d
            ist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/lib CMakeFiles/pddrive2.dir/pddrive2.c.o CMakeFiles/pddrive2.dir/dcreate_matrix.c.o CMakeFile
            s/pddrive2.dir/dcreate_matrix_perturbed.c.o -o pddrive2  -Wl,-rpath,/tmp/root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6wau
            gthzhkcocck7i33qe/spack-build-mgpurw2/SRC:/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/openblas-0.3.20-s6unagqg76cbucby3auwdsy
            frrguxnjv/lib: ../SRC/libsuperlu_dist.so.7.2.0 /tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/openblas-0.3.20-s6unagqg76cbucby3a
            uwdsyfrrguxnjv/lib/libopenblas.so -lm -L/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/parmetis-4.0.3-zsisvfc3dsnv7lssrk3pkrj3jq
            vjscbd/lib -lparmetis -L/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/metis-5.1.0-nwwavh2fm2nk4zsbde522gcflmphj5ds/lib -lmetis
     791    [ 77%] Linking C executable pdtest
     792    cd /tmp/root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/spack-build-mgpurw2/TEST && /tmp/spack/opt/spac
            k/linux-debian11-skylake/gcc-12.1.0/cmake-3.23.2-dpmzbcikudgue6r7gl5mwa73keg66xfd/bin/cmake -E cmake_link_script CMakeFiles/pdtest.dir/l
            ink.txt --verbose=1
     793    /tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/openmpi-4.1.4-vwvilf2ekro6b5cnej3obj2exb5w35gf/bin/mpicc -I/tmp/spack/opt/spack/l
            inux-debian11-skylake/gcc-12.1.0/metis-5.1.0-nwwavh2fm2nk4zsbde522gcflmphj5ds/include -I/tmp/spack/opt/spack/linux-debian11-skylake/gcc-
            12.1.0/parmetis-4.0.3-zsisvfc3dsnv7lssrk3pkrj3jqvjscbd/include -DUSE_VENDOR_BLAS  -std=c99 -O2 -g -DNDEBUG  -Wl,-rpath,/tmp/spack/opt/sp
            ack/linux-debian11-skylake/gcc-12.1.0/superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/SRC  -Wl,-rpath -Wl,/tmp/spack/opt/spack/linux
            -debian11-skylake/gcc-12.1.0/openmpi-4.1.4-vwvilf2ekro6b5cnej3obj2exb5w35gf/lib -Wl,-rpath -Wl,/tmp/spack/opt/spack/linux-debian11-skyla
            ke/gcc-12.1.0/hwloc-2.7.1-ofe2lw5kokppvlsajikj2342224imbtb/lib -Wl,-rpath -Wl,/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/lib
            event-2.1.12-qopacpxkz54kumtecgqr2bzeoxuyz5ao/lib -Wl,-rpath -Wl,/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/pmix-4.1.2-pa3vp
            dvniwk2tgvafbbdje74emnrroip/lib -L/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/hwloc-2.7.1-ofe2lw5kokppvlsajikj2342224imbtb/li
            b -L/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/libevent-2.1.12-qopacpxkz54kumtecgqr2bzeoxuyz5ao/lib -L/tmp/spack/opt/spack/l
            inux-debian11-skylake/gcc-12.1.0/pmix-4.1.2-pa3vpdvniwk2tgvafbbdje74emnrroip/lib -pthread -Wl,-rpath,/tmp/spack/opt/spack/linux-debian11
            -skylake/gcc-12.1.0/superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe//tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/superlu-d
            ist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/lib CMakeFiles/pdtest.dir/pdtest.c.o CMakeFiles/pdtest.dir/dcreate_matrix.c.o CMakeFiles/pdte
            st.dir/pdcompute_resid.c.o -o pdtest  -Wl,-rpath,/tmp/root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/s
            pack-build-mgpurw2/SRC:/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/openblas-0.3.20-s6unagqg76cbucby3auwdsyfrrguxnjv/lib ../SR
            C/libsuperlu_dist.so.7.2.0 /tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/openblas-0.3.20-s6unagqg76cbucby3auwdsyfrrguxnjv/lib/l
            ibopenblas.so -lm -L/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/parmetis-4.0.3-zsisvfc3dsnv7lssrk3pkrj3jqvjscbd/lib -lparmeti
            s -L/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/metis-5.1.0-nwwavh2fm2nk4zsbde522gcflmphj5ds/lib -lmetis
  >> 794    /usr/bin/ld: /tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/openblas-0.3.20-s6unagqg76cbucby3auwdsyfrrguxnjv/lib/libopenblas.so:
             undefined reference to `_gfortran_concat_string'
  >> 795    collect2: error: ld returned 1 exit status
  >> 796    make[2]: *** [EXAMPLE/CMakeFiles/pddrive3.dir/build.make:118: EXAMPLE/pddrive3] Error 1
     797    make[2]: Leaving directory '/tmp/root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/spack-build-mgpurw2'
  >> 798    make[1]: *** [CMakeFiles/Makefile2:374: EXAMPLE/CMakeFiles/pddrive3.dir/all] Error 2
  >> 799    /usr/bin/ld: /tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/openblas-0.3.20-s6unagqg76cbucby3auwdsyfrrguxnjv/lib/libopenblas.so:
             undefined reference to `_gfortran_concat_string'
  >> 800    collect2: error: ld returned 1 exit status
  >> 801    make[2]: *** [EXAMPLE/CMakeFiles/pddrive1.dir/build.make:118: EXAMPLE/pddrive1] Error 1
     802    make[2]: Leaving directory '/tmp/root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/spack-build-mgpurw2'
  >> 803    make[1]: *** [CMakeFiles/Makefile2:322: EXAMPLE/CMakeFiles/pddrive1.dir/all] Error 2
  >> 804    /usr/bin/ld: /tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/openblas-0.3.20-s6unagqg76cbucby3auwdsyfrrguxnjv/lib/libopenblas.so:
             undefined reference to `_gfortran_concat_string'
  >> 805    collect2: error: ld returned 1 exit status
  >> 806    make[2]: *** [EXAMPLE/CMakeFiles/pddrive4.dir/build.make:118: EXAMPLE/pddrive4] Error 1
     807    make[2]: Leaving directory '/tmp/root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/spack-build-mgpurw2'
  >> 808    make[1]: *** [CMakeFiles/Makefile2:400: EXAMPLE/CMakeFiles/pddrive4.dir/all] Error 2
  >> 809    /usr/bin/ld: /tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/openblas-0.3.20-s6unagqg76cbucby3auwdsyfrrguxnjv/lib/libopenblas.so:
             undefined reference to `_gfortran_concat_string'
  >> 810    collect2: error: ld returned 1 exit status
  >> 811    make[2]: *** [EXAMPLE/CMakeFiles/pddrive2.dir/build.make:134: EXAMPLE/pddrive2] Error 1
     812    make[2]: Leaving directory '/tmp/root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/spack-build-mgpurw2'
  >> 813    make[1]: *** [CMakeFiles/Makefile2:348: EXAMPLE/CMakeFiles/pddrive2.dir/all] Error 2
  >> 814    /usr/bin/ld: /tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/openblas-0.3.20-s6unagqg76cbucby3auwdsyfrrguxnjv/lib/libopenblas.so:
             undefined reference to `_gfortran_concat_string'
  >> 815    collect2: error: ld returned 1 exit status
  >> 816    make[2]: *** [TEST/CMakeFiles/pdtest.dir/build.make:134: TEST/pdtest] Error 1
     817    make[2]: Leaving directory '/tmp/root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/spack-build-mgpurw2'
  >> 818    make[1]: *** [CMakeFiles/Makefile2:270: TEST/CMakeFiles/pdtest.dir/all] Error 2
     819    [ 77%] Linking C executable pddrive3d
     820    cd /tmp/root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/spack-build-mgpurw2/EXAMPLE && /tmp/spack/opt/s
            pack/linux-debian11-skylake/gcc-12.1.0/cmake-3.23.2-dpmzbcikudgue6r7gl5mwa73keg66xfd/bin/cmake -E cmake_link_script CMakeFiles/pddrive3d
            .dir/link.txt --verbose=1
     821    /tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/openmpi-4.1.4-vwvilf2ekro6b5cnej3obj2exb5w35gf/bin/mpicc -I/tmp/spack/opt/spack/l
            inux-debian11-skylake/gcc-12.1.0/metis-5.1.0-nwwavh2fm2nk4zsbde522gcflmphj5ds/include -I/tmp/spack/opt/spack/linux-debian11-skylake/gcc-
            12.1.0/parmetis-4.0.3-zsisvfc3dsnv7lssrk3pkrj3jqvjscbd/include -DUSE_VENDOR_BLAS  -std=c99 -O2 -g -DNDEBUG  -Wl,-rpath,/tmp/spack/opt/sp
            ack/linux-debian11-skylake/gcc-12.1.0/superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/SRC  -Wl,-rpath -Wl,/tmp/spack/opt/spack/linux
            -debian11-skylake/gcc-12.1.0/openmpi-4.1.4-vwvilf2ekro6b5cnej3obj2exb5w35gf/lib -Wl,-rpath -Wl,/tmp/spack/opt/spack/linux-debian11-skyla
            ke/gcc-12.1.0/hwloc-2.7.1-ofe2lw5kokppvlsajikj2342224imbtb/lib -Wl,-rpath -Wl,/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/lib
            event-2.1.12-qopacpxkz54kumtecgqr2bzeoxuyz5ao/lib -Wl,-rpath -Wl,/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/pmix-4.1.2-pa3vp
            dvniwk2tgvafbbdje74emnrroip/lib -L/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/hwloc-2.7.1-ofe2lw5kokppvlsajikj2342224imbtb/li
            b -L/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/libevent-2.1.12-qopacpxkz54kumtecgqr2bzeoxuyz5ao/lib -L/tmp/spack/opt/spack/l
            inux-debian11-skylake/gcc-12.1.0/pmix-4.1.2-pa3vpdvniwk2tgvafbbdje74emnrroip/lib -pthread -Wl,-rpath,/tmp/spack/opt/spack/linux-debian11
            -skylake/gcc-12.1.0/superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe//tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/superlu-d
            ist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/lib CMakeFiles/pddrive3d.dir/pddrive3d.c.o CMakeFiles/pddrive3d.dir/dcreate_matrix.c.o CMakeF
            iles/pddrive3d.dir/dcreate_matrix3d.c.o -o pddrive3d  -Wl,-rpath,/tmp/root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6waugth
            zhkcocck7i33qe/spack-build-mgpurw2/SRC:/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/openblas-0.3.20-s6unagqg76cbucby3auwdsyfrr
            guxnjv/lib: ../SRC/libsuperlu_dist.so.7.2.0 /tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/openblas-0.3.20-s6unagqg76cbucby3auwd
            syfrrguxnjv/lib/libopenblas.so -lm -L/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/parmetis-4.0.3-zsisvfc3dsnv7lssrk3pkrj3jqvjs
            cbd/lib -lparmetis -L/tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/metis-5.1.0-nwwavh2fm2nk4zsbde522gcflmphj5ds/lib -lmetis
  >> 822    /usr/bin/ld: /tmp/spack/opt/spack/linux-debian11-skylake/gcc-12.1.0/openblas-0.3.20-s6unagqg76cbucby3auwdsyfrrguxnjv/lib/libopenblas.so:
             undefined reference to `_gfortran_concat_string'
  >> 823    collect2: error: ld returned 1 exit status
  >> 824    make[2]: *** [EXAMPLE/CMakeFiles/pddrive3d.dir/build.make:134: EXAMPLE/pddrive3d] Error 1
     825    make[2]: Leaving directory '/tmp/root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/spack-build-mgpurw2'
  >> 826    make[1]: *** [CMakeFiles/Makefile2:426: EXAMPLE/CMakeFiles/pddrive3d.dir/all] Error 2
     827    make[1]: Leaving directory '/tmp/root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/spack-build-mgpurw2'
  >> 828    make: *** [Makefile:149: all] Error 2

See build log for details:
  /tmp/root/spack-stage/spack-stage-superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe/spack-build-out.txt

==> Warning: Skipping build of petsc-3.17.2-jucg2nlmujbn5bjukuh575bplcmpbde6 since superlu-dist-7.2.0-mgpurw2s4wd6waugthzhkcocck7i33qe failed
==> Error: petsc-3.17.2-jucg2nlmujbn5bjukuh575bplcmpbde6: Package was not installed
==> Error: Installation request failed.  Refer to reported errors for failing package(s).
omsai commented 2 years ago

@vsoch I tried recreating your linking error using my Debian 11 home PC and a fresh spack installation, but cannot reproduce the fault. Can you please provide more information and/or compare my steps against yours?

$ git clone https://github.com/spack/spack.git
$ cd spack/
$ source share/spack/setup-env.sh
$ spack debug report
* **Spack:** 0.19.0.dev0 (1bc3b0a9266fea949632661aadbe0191a45e34bb)
* **Python:** 3.9.2
* **Platform:** linux-debian11-nehalem
* **Concretizer:** clingo
$ TMPDIR=/var/tmp spack install gcc@12.1.0 # My /tmp uses tmpfs which is too small for compiling gcc.
...
==> gcc: Successfully installed gcc-12.1.0-rgnsydf4hix65rvpwg2qxq3nurlclli7
  Fetch: 2.22s.  Build: 1h 53m 13.70s.  Total: 1h 53m 15.92s.
[+] /home/omsai/src/spack/opt/spack/linux-debian11-nehalem/gcc-10.2.1/gcc-12.1.0-rgnsydf4hix65rvpwg2qxq3nurlclli7
$ spack spec --install-status petsc # Using default gcc@10.2.1 compiler.
Input spec
--------------------------------
 -   petsc

Concretized
--------------------------------
 -   petsc@3.17.2%gcc@10.2.1~X~batch~cgns~complex~cuda~debug+double~exodusii~fftw+fortran~giflib+hdf5~hpddm~hwloc+hypre~int64~jpeg~knl~kokkos~libpng~libyaml~memkind+metis~mkl-pardiso~mmg~moab~mpfr+mpi~mumps~openmp~p4est~parmmg~ptscotch~random123~rocm~saws~scalapack+shared~strumpack~suite-sparse+superlu-dist~tetgen~trilinos~valgrind clanguage=C arch=linux-debian11-nehalem
[+]      ^diffutils@3.8%gcc@10.2.1 arch=linux-debian11-nehalem
[+]          ^libiconv@1.16%gcc@10.2.1 libs=shared,static arch=linux-debian11-nehalem
 -       ^hdf5@1.12.2%gcc@10.2.1~cxx~fortran~hl~ipo~java+mpi+shared~szip~threadsafe+tools api=default build_type=RelWithDebInfo arch=linux-debian11-nehalem
 -           ^cmake@3.23.2%gcc@10.2.1~doc+ncurses+ownlibs~qt build_type=Release arch=linux-debian11-nehalem
[+]              ^ncurses@6.2%gcc@10.2.1~symlinks+termlib abi=none arch=linux-debian11-nehalem
[+]                  ^pkgconf@1.8.0%gcc@10.2.1 arch=linux-debian11-nehalem
 -               ^openssl@1.1.1o%gcc@10.2.1~docs~shared certs=mozilla arch=linux-debian11-nehalem
 -                   ^ca-certificates-mozilla@2022-03-29%gcc@10.2.1 arch=linux-debian11-nehalem
[+]                  ^perl@5.34.1%gcc@10.2.1+cpanm+shared+threads arch=linux-debian11-nehalem
[+]                      ^berkeley-db@18.1.40%gcc@10.2.1+cxx~docs+stl patches=b231fcc arch=linux-debian11-nehalem
[+]                      ^bzip2@1.0.8%gcc@10.2.1~debug~pic+shared arch=linux-debian11-nehalem
[+]                      ^gdbm@1.19%gcc@10.2.1 arch=linux-debian11-nehalem
[+]                          ^readline@8.1%gcc@10.2.1 arch=linux-debian11-nehalem
[+]                      ^zlib@1.2.12%gcc@10.2.1+optimize+pic+shared patches=0d38234 arch=linux-debian11-nehalem
 -           ^openmpi@4.1.4%gcc@10.2.1~atomics~cuda~cxx~cxx_exceptions~gpfs~internal-hwloc~java~legacylaunchers~lustre~memchecker~pmi+romio+rsh~singularity+static+vt+wrapper-rpath fabrics=none schedulers=none arch=linux-debian11-nehalem
 -               ^hwloc@2.7.1%gcc@10.2.1~cairo~cuda~gl~libudev+libxml2~netloc~nvml~oneapi-level-zero~opencl+pci~rocm+shared arch=linux-debian11-nehalem
 -                   ^libpciaccess@0.16%gcc@10.2.1 arch=linux-debian11-nehalem
[+]                      ^libtool@2.4.7%gcc@10.2.1 arch=linux-debian11-nehalem
[+]                          ^m4@1.4.19%gcc@10.2.1+sigsegv patches=9dc5fbd,bfdffa7 arch=linux-debian11-nehalem
[+]                              ^libsigsegv@2.13%gcc@10.2.1 arch=linux-debian11-nehalem
 -                       ^util-macros@1.19.3%gcc@10.2.1 arch=linux-debian11-nehalem
 -                   ^libxml2@2.9.13%gcc@10.2.1~python arch=linux-debian11-nehalem
 -                       ^xz@5.2.5%gcc@10.2.1~pic libs=shared,static arch=linux-debian11-nehalem
 -               ^numactl@2.0.14%gcc@10.2.1 patches=4e1d78c,62fc8a8,ff37630 arch=linux-debian11-nehalem
[+]                  ^autoconf@2.69%gcc@10.2.1 patches=35c4492,7793209,a49dd5b arch=linux-debian11-nehalem
[+]                  ^automake@1.16.5%gcc@10.2.1 arch=linux-debian11-nehalem
 -               ^openssh@9.0p1%gcc@10.2.1+gssapi arch=linux-debian11-nehalem
 -                   ^krb5@1.19.3%gcc@10.2.1+shared arch=linux-debian11-nehalem
 -                       ^bison@3.8.2%gcc@10.2.1 arch=linux-debian11-nehalem
 -                       ^gettext@0.21%gcc@10.2.1+bzip2+curses+git~libunistring+libxml2+tar+xz arch=linux-debian11-nehalem
 -                           ^tar@1.34%gcc@10.2.1 zip=pigz arch=linux-debian11-nehalem
 -                               ^pigz@2.7%gcc@10.2.1 arch=linux-debian11-nehalem
 -                               ^zstd@1.5.2%gcc@10.2.1+programs compression=none libs=shared,static arch=linux-debian11-nehalem
 -                   ^libedit@3.1-20210216%gcc@10.2.1 arch=linux-debian11-nehalem
 -               ^pmix@4.1.2%gcc@10.2.1~docs+pmi_backwards_compatibility~restful arch=linux-debian11-nehalem
 -                   ^libevent@2.1.12%gcc@10.2.1+openssl arch=linux-debian11-nehalem
 -       ^hypre@2.25.0%gcc@10.2.1~complex~cuda~debug+fortran~gptune~int64~internal-superlu~mixedint+mpi~openmp~rocm+shared~superlu-dist~unified-memory arch=linux-debian11-nehalem
 -           ^openblas@0.3.20%gcc@10.2.1~bignuma~consistent_fpcsr~ilp64+locking+pic+shared symbol_suffix=none threads=none arch=linux-debian11-nehalem
 -       ^metis@5.1.0%gcc@10.2.1~gdb~int64~real64+shared build_type=Release patches=4991da9,b1225da arch=linux-debian11-nehalem
 -       ^parmetis@4.0.3%gcc@10.2.1~gdb~int64~ipo+shared build_type=RelWithDebInfo patches=4f89253,50ed208,704b84f arch=linux-debian11-nehalem
 -       ^python@3.9.13%gcc@10.2.1+bz2+ctypes+dbm~debug+ensurepip+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tix~tkinter~ucs4+uuid+zlib patches=0d98e93,4c24573,f2fd060 arch=linux-debian11-nehalem
 -           ^expat@2.4.8%gcc@10.2.1+libbsd arch=linux-debian11-nehalem
 -               ^libbsd@0.11.5%gcc@10.2.1 arch=linux-debian11-nehalem
 -                   ^libmd@1.0.4%gcc@10.2.1 arch=linux-debian11-nehalem
 -           ^libffi@3.4.2%gcc@10.2.1 arch=linux-debian11-nehalem
 -           ^sqlite@3.38.5%gcc@10.2.1+column_metadata+dynamic_extensions+fts~functions+rtree arch=linux-debian11-nehalem
 -           ^util-linux-uuid@2.37.4%gcc@10.2.1 arch=linux-debian11-nehalem
 -       ^superlu-dist@7.2.0%gcc@10.2.1~cuda~int64~ipo~openmp~rocm+shared build_type=RelWithDebInfo patches=8da9e21 arch=linux-debian11-nehalem

$ TMPDIR=/var/tmp spack install petsc
...
==> petsc: Successfully installed petsc-3.17.2-3xpx3b2sqop33vq3dubotpaewzxoq3zg
  Fetch: 2.73s.  Build: 6m 42.01s.  Total: 6m 44.74s.
[+] /home/omsai/src/spack/opt/spack/linux-debian11-nehalem/gcc-10.2.1/petsc-3.17.2-3xpx3b2sqop33vq3dubotpaewzxoq3zg

$ spack compiler find $(spack location -i gcc@12.1.0)
==> Added 1 new compiler to /home/omsai/.spack/linux/compilers.yaml
    gcc@12.1.0
==> Compilers are defined in the following files:
    /home/omsai/.spack/linux/compilers.yaml
$ spack spec --install-status petsc %gcc@12.1.0 # Using gcc@12.1.0 compiler.
Input spec
--------------------------------
 -   petsc%gcc@12.1.0

Concretized
--------------------------------
 -   petsc@3.17.2%gcc@12.1.0~X~batch~cgns~complex~cuda~debug+double~exodusii~fftw+fortran~giflib+hdf5~hpddm~hwloc+hypre~int64~jpeg~knl~kokkos~libpng~libyaml~memkind+metis~mkl-pardiso~mmg~moab~mpfr+mpi~mumps~openmp~p4est~parmmg~ptscotch~random123~rocm~saws~scalapack+shared~strumpack~suite-sparse+superlu-dist~tetgen~trilinos~valgrind clanguage=C arch=linux-debian11-nehalem
 -       ^diffutils@3.8%gcc@12.1.0 arch=linux-debian11-nehalem
 -           ^libiconv@1.16%gcc@12.1.0 libs=shared,static arch=linux-debian11-nehalem
 -       ^hdf5@1.12.2%gcc@12.1.0~cxx~fortran~hl~ipo~java+mpi+shared~szip~threadsafe+tools api=default build_type=RelWithDebInfo arch=linux-debian11-nehalem
 -           ^cmake@3.23.2%gcc@12.1.0~doc+ncurses+ownlibs~qt build_type=Release arch=linux-debian11-nehalem
 -               ^ncurses@6.2%gcc@12.1.0~symlinks+termlib abi=none arch=linux-debian11-nehalem
 -                   ^pkgconf@1.8.0%gcc@12.1.0 arch=linux-debian11-nehalem
 -               ^openssl@1.1.1o%gcc@12.1.0~docs~shared certs=mozilla arch=linux-debian11-nehalem
 -                   ^ca-certificates-mozilla@2022-03-29%gcc@12.1.0 arch=linux-debian11-nehalem
 -                   ^perl@5.34.1%gcc@12.1.0+cpanm+shared+threads arch=linux-debian11-nehalem
 -                       ^berkeley-db@18.1.40%gcc@12.1.0+cxx~docs+stl patches=b231fcc arch=linux-debian11-nehalem
 -                       ^bzip2@1.0.8%gcc@12.1.0~debug~pic+shared arch=linux-debian11-nehalem
 -                       ^gdbm@1.19%gcc@12.1.0 arch=linux-debian11-nehalem
 -                           ^readline@8.1%gcc@12.1.0 arch=linux-debian11-nehalem
 -                       ^zlib@1.2.12%gcc@12.1.0+optimize+pic+shared patches=0d38234 arch=linux-debian11-nehalem
 -           ^openmpi@4.1.4%gcc@12.1.0~atomics~cuda~cxx~cxx_exceptions~gpfs~internal-hwloc~java~legacylaunchers~lustre~memchecker~pmi+romio+rsh~singularity+static+vt+wrapper-rpath fabrics=none schedulers=none arch=linux-debian11-nehalem
 -               ^hwloc@2.7.1%gcc@12.1.0~cairo~cuda~gl~libudev+libxml2~netloc~nvml~oneapi-level-zero~opencl+pci~rocm+shared arch=linux-debian11-nehalem
 -                   ^libpciaccess@0.16%gcc@12.1.0 arch=linux-debian11-nehalem
 -                       ^libtool@2.4.7%gcc@12.1.0 arch=linux-debian11-nehalem
 -                           ^m4@1.4.19%gcc@12.1.0+sigsegv patches=9dc5fbd,bfdffa7 arch=linux-debian11-nehalem
 -                               ^libsigsegv@2.13%gcc@12.1.0 arch=linux-debian11-nehalem
 -                       ^util-macros@1.19.3%gcc@12.1.0 arch=linux-debian11-nehalem
 -                   ^libxml2@2.9.13%gcc@12.1.0~python arch=linux-debian11-nehalem
 -                       ^xz@5.2.5%gcc@12.1.0~pic libs=shared,static arch=linux-debian11-nehalem
 -               ^numactl@2.0.14%gcc@12.1.0 patches=4e1d78c,62fc8a8,ff37630 arch=linux-debian11-nehalem
 -                   ^autoconf@2.69%gcc@12.1.0 patches=35c4492,7793209,a49dd5b arch=linux-debian11-nehalem
 -                   ^automake@1.16.5%gcc@12.1.0 arch=linux-debian11-nehalem
 -               ^openssh@9.0p1%gcc@12.1.0+gssapi arch=linux-debian11-nehalem
 -                   ^krb5@1.19.3%gcc@12.1.0+shared arch=linux-debian11-nehalem
 -                       ^bison@3.8.2%gcc@12.1.0 arch=linux-debian11-nehalem
 -                       ^gettext@0.21%gcc@12.1.0+bzip2+curses+git~libunistring+libxml2+tar+xz arch=linux-debian11-nehalem
 -                           ^tar@1.34%gcc@12.1.0 zip=pigz arch=linux-debian11-nehalem
 -                               ^pigz@2.7%gcc@12.1.0 arch=linux-debian11-nehalem
 -                               ^zstd@1.5.2%gcc@12.1.0+programs compression=none libs=shared,static arch=linux-debian11-nehalem
 -                   ^libedit@3.1-20210216%gcc@12.1.0 arch=linux-debian11-nehalem
 -               ^pmix@4.1.2%gcc@12.1.0~docs+pmi_backwards_compatibility~restful arch=linux-debian11-nehalem
 -                   ^libevent@2.1.12%gcc@12.1.0+openssl arch=linux-debian11-nehalem
 -       ^hypre@2.25.0%gcc@12.1.0~complex~cuda~debug+fortran~gptune~int64~internal-superlu~mixedint+mpi~openmp~rocm+shared~superlu-dist~unified-memory arch=linux-debian11-nehalem
 -           ^openblas@0.3.20%gcc@12.1.0~bignuma~consistent_fpcsr~ilp64+locking+pic+shared symbol_suffix=none threads=none arch=linux-debian11-nehalem
 -       ^metis@5.1.0%gcc@12.1.0~gdb~int64~real64+shared build_type=Release patches=4991da9,b1225da arch=linux-debian11-nehalem
 -       ^parmetis@4.0.3%gcc@12.1.0~gdb~int64~ipo+shared build_type=RelWithDebInfo patches=4f89253,50ed208,704b84f arch=linux-debian11-nehalem
 -       ^python@3.9.13%gcc@12.1.0+bz2+ctypes+dbm~debug+ensurepip+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tix~tkinter~ucs4+uuid+zlib patches=0d98e93,4c24573,f2fd060 arch=linux-debian11-nehalem
 -           ^expat@2.4.8%gcc@12.1.0+libbsd arch=linux-debian11-nehalem
 -               ^libbsd@0.11.5%gcc@12.1.0 arch=linux-debian11-nehalem
 -                   ^libmd@1.0.4%gcc@12.1.0 arch=linux-debian11-nehalem
 -           ^libffi@3.4.2%gcc@12.1.0 arch=linux-debian11-nehalem
 -           ^sqlite@3.38.5%gcc@12.1.0+column_metadata+dynamic_extensions+fts~functions+rtree arch=linux-debian11-nehalem
 -           ^util-linux-uuid@2.37.4%gcc@12.1.0 arch=linux-debian11-nehalem
 -       ^superlu-dist@7.2.0%gcc@12.1.0~cuda~int64~ipo~openmp~rocm+shared build_type=RelWithDebInfo patches=8da9e21 arch=linux-debian11-nehalem

$ spack install petsc %gcc@12.1.0
...
==> petsc: Successfully installed petsc-3.17.2-gz6otnvfknujk2pdy2kxm7ennanrttwc
  Fetch: 1.03s.  Build: 8m 41.09s.  Total: 8m 42.12s.
[+] /home/omsai/src/spack/opt/spack/linux-debian11-nehalem/gcc-12.1.0/petsc-3.17.2-gz6otnvfknujk2pdy2kxm7ennanrttwc

Here are my spack files in the installation directory for superlu-dist %gcc@12.1.0:

$ spack cd -i superlu-dist %gcc@12.1.0
$ tr ' ' '\n' < .spack/spack-configure-args.txt ; echo
-DCMAKE_C_COMPILER:STRING=/home/omsai/src/spack/opt/spack/linux-debian11-nehalem/gcc-12.1.0/openmpi-4.1.4-bpvu2g74elizi2ntx7rsb3opxg7cgbjv/bin/mpicc
-DCMAKE_CXX_COMPILER:STRING=/home/omsai/src/spack/opt/spack/linux-debian11-nehalem/gcc-12.1.0/openmpi-4.1.4-bpvu2g74elizi2ntx7rsb3opxg7cgbjv/bin/mpic++
-DCMAKE_INSTALL_LIBDIR:STRING:STRING=/home/omsai/src/spack/opt/spack/linux-debian11-nehalem/gcc-12.1.0/superlu-dist-7.2.0-imxfk7uxopeot7jpbv44mmniu45fg7w3/lib
-DCMAKE_INSTALL_BINDIR:STRING:STRING=/home/omsai/src/spack/opt/spack/linux-debian11-nehalem/gcc-12.1.0/superlu-dist-7.2.0-imxfk7uxopeot7jpbv44mmniu45fg7w3/bin
-DTPL_BLAS_LIBRARIES:STRING=/home/omsai/src/spack/opt/spack/linux-debian11-nehalem/gcc-12.1.0/openblas-0.3.20-u4vqt2cg2e2yx6pnjevweho6imxerfva/lib/libopenblas.so
-DTPL_LAPACK_LIBRARIES:STRING=/home/omsai/src/spack/opt/spack/linux-debian11-nehalem/gcc-12.1.0/openblas-0.3.20-u4vqt2cg2e2yx6pnjevweho6imxerfva/lib/libopenblas.so
-DTPL_ENABLE_LAPACKLIB:BOOL=ON
-DUSE_XSDK_DEFAULTS:BOOL=ON
-DTPL_PARMETIS_LIBRARIES:STRING=-L/home/omsai/src/spack/opt/spack/linux-debian11-nehalem/gcc-12.1.0/parmetis-4.0.3-rc5ldkl7h7obgos6gohii6q2svtbti7w/lib
-lparmetis;-L/home/omsai/src/spack/opt/spack/linux-debian11-nehalem/gcc-12.1.0/metis-5.1.0-2tp733mcdokiacjyapltjfebuubuwfnt/lib
-lmetis
-DTPL_PARMETIS_INCLUDE_DIRS:STRING=/home/omsai/src/spack/opt/spack/linux-debian11-nehalem/gcc-12.1.0/parmetis-4.0.3-rc5ldkl7h7obgos6gohii6q2svtbti7w/include;/home/omsai/src/spack/opt/spack/linux-debian11-nehalem/gcc-12.1.0/metis-5.1.0-2tp733mcdokiacjyapltjfebuubuwfnt/include
-DXSDK_INDEX_SIZE:STRING=32
-Denable_openmp:BOOL=OFF
-DCMAKE_DISABLE_FIND_PACKAGE_OpenMP:BOOL=ON
-DBUILD_SHARED_LIBS:BOOL=ON
# Below are the uploaded .spack/spack-build-{out,env}.txt files:
vsoch commented 2 years ago

Thank you @omsai ! So the computer I produced the error on is borked, and I tried it on two other systems and couldn't reproduce it again either! :laughing: :sob: <- laughing and crying!

So I think it's safe to close for now - and maybe someone will reproduce it (or I'll get my computer when it's sent back and fixed to test). Thank you for you help!

omsai commented 2 years ago

@vsoch no worries! I'm glad you were able to make progress. I actually don't mind running tests that don't reproduce a bug because I much prefer that to fixable errors that might otherwise go unreported.