Repository: spack/spack

Issue:
Installation issue: VTK on Apple Silicon
### Steps to reproduce the issue

I'm actually trying to build `py-pyvtk`, which depends on `vtk+python`:
```console
$ spack spec -I vtk+python
Input spec
--------------------------------
 -   vtk+python

Concretized
--------------------------------
 -   vtk@9.2.2%apple-clang@14.0.0~ffmpeg~ipo~mpi+opengl2~osmesa+python~qt~xdmf build_system=cmake build_type=RelWithDebInfo arch=darwin-ventura-m2
[+]      ^apple-gl@4.1.0%apple-clang@14.0.0 build_system=generic arch=darwin-ventura-m2
[+]      ^cgns@4.3.0%apple-clang@14.0.0~base_scope~fortran+hdf5~int64~ipo~legacy~mem_debug~mpi+scoping+shared~static~testing~tools build_system=cmake build_type=RelWithDebInfo arch=darwin-ventura-m2
[+]      ^cmake@3.25.2%apple-clang@14.0.0~doc+ncurses+ownlibs~qt build_system=generic build_type=Release arch=darwin-ventura-m2
[+]          ^ncurses@6.4%apple-clang@14.0.0~symlinks+termlib abi=none build_system=autotools arch=darwin-ventura-m2
[+]          ^openssl@1.1.1t%apple-clang@14.0.0~docs~shared build_system=generic certs=mozilla arch=darwin-ventura-m2
[+]              ^ca-certificates-mozilla@2023-01-10%apple-clang@14.0.0 build_system=generic arch=darwin-ventura-m2
[+]              ^perl@5.36.0%apple-clang@14.0.0+cpanm+open+shared+threads build_system=generic arch=darwin-ventura-m2
[+]                  ^berkeley-db@18.1.40%apple-clang@14.0.0+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=darwin-ventura-m2
[+]      ^double-conversion@3.1.5%apple-clang@14.0.0~ipo build_system=cmake build_type=RelWithDebInfo arch=darwin-ventura-m2
[+]      ^eigen@3.4.0%apple-clang@14.0.0~ipo build_system=cmake build_type=RelWithDebInfo arch=darwin-ventura-m2
[+]      ^expat@2.5.0%apple-clang@14.0.0~libbsd build_system=autotools arch=darwin-ventura-m2
[+]          ^gnuconfig@2022-09-17%apple-clang@14.0.0 build_system=generic arch=darwin-ventura-m2
[+]      ^freetype@2.11.1%apple-clang@14.0.0 build_system=autotools arch=darwin-ventura-m2
[+]          ^bzip2@1.0.8%apple-clang@14.0.0~debug~pic+shared build_system=generic arch=darwin-ventura-m2
[+]              ^diffutils@3.8%apple-clang@14.0.0 build_system=autotools arch=darwin-ventura-m2
[+]          ^pkgconf@1.8.0%apple-clang@14.0.0 build_system=autotools arch=darwin-ventura-m2
[+]      ^gl2ps@1.4.2%apple-clang@14.0.0~doc~ipo+png+zlib build_system=cmake build_type=RelWithDebInfo arch=darwin-ventura-m2
[+]      ^glew@2.2.0%apple-clang@14.0.0~ipo build_system=cmake build_type=RelWithDebInfo gl=other patches=7992e52 arch=darwin-ventura-m2
[+]      ^hdf5@1.12.2%apple-clang@14.0.0~cxx~fortran+hl~ipo~java~mpi+shared~szip~threadsafe+tools api=default build_system=cmake build_type=RelWithDebInfo arch=darwin-ventura-m2
[+]      ^jsoncpp@1.9.4%apple-clang@14.0.0~ipo build_system=cmake build_type=RelWithDebInfo cxxstd=default arch=darwin-ventura-m2
[+]      ^libjpeg-turbo@2.1.4%apple-clang@14.0.0~ipo~jpeg8+shared+static build_system=cmake build_type=RelWithDebInfo arch=darwin-ventura-m2
[+]          ^nasm@2.15.05%apple-clang@14.0.0 build_system=autotools arch=darwin-ventura-m2
[+]      ^libogg@1.3.5%apple-clang@14.0.0 build_system=autotools arch=darwin-ventura-m2
[+]      ^libpng@1.6.39%apple-clang@14.0.0~ipo build_system=cmake build_type=RelWithDebInfo libs=shared,static arch=darwin-ventura-m2
[+]      ^libtheora@1.1.1%apple-clang@14.0.0~doc build_system=autotools patches=057836e,8b1f256,ff8478d arch=darwin-ventura-m2
[+]          ^autoconf@2.69%apple-clang@14.0.0 build_system=autotools patches=35c4492,7793209,a49dd5b arch=darwin-ventura-m2
[+]          ^automake@1.16.5%apple-clang@14.0.0 build_system=autotools arch=darwin-ventura-m2
[+]          ^libtool@2.4.7%apple-clang@14.0.0 build_system=autotools arch=darwin-ventura-m2
[+]          ^m4@1.4.19%apple-clang@14.0.0+sigsegv build_system=autotools patches=9dc5fbd,bfdffa7 arch=darwin-ventura-m2
[+]              ^libsigsegv@2.14%apple-clang@14.0.0 build_system=autotools arch=darwin-ventura-m2
[+]      ^libtiff@4.4.0%apple-clang@14.0.0+ccitt~ipo~jbig+jpeg~jpeg12~lerc+libdeflate+logluv+lzma+lzw+next~old-jpeg+packbits~pixarlog+thunder~webp+zlib~zstd build_system=cmake build_type=RelWithDebInfo arch=darwin-ventura-m2
[+]          ^xz@5.4.1%apple-clang@14.0.0~pic build_system=autotools libs=shared,static arch=darwin-ventura-m2
[+]      ^libxml2@2.10.3%apple-clang@14.0.0~python build_system=autotools arch=darwin-ventura-m2
[+]          ^libiconv@1.17%apple-clang@14.0.0 build_system=autotools libs=shared,static arch=darwin-ventura-m2
[+]      ^lz4@1.9.4%apple-clang@14.0.0 build_system=makefile libs=shared,static arch=darwin-ventura-m2
[+]      ^netcdf-c@4.9.0%apple-clang@14.0.0~dap~fsync~hdf4~jna~mpi+optimize~parallel-netcdf+pic+shared+zstd build_system=autotools arch=darwin-ventura-m2
[+]          ^zstd@1.5.4%apple-clang@14.0.0+programs build_system=makefile compression=none libs=shared,static arch=darwin-ventura-m2
[+]      ^netcdf-cxx@4.2%apple-clang@14.0.0+netcdf4 build_system=autotools patches=8892291 arch=darwin-ventura-m2
[+]      ^nlohmann-json@3.11.2%apple-clang@14.0.0~ipo+multiple_headers build_system=cmake build_type=RelWithDebInfo arch=darwin-ventura-m2
[+]      ^proj@7.2.1%apple-clang@14.0.0+curl~ipo+tiff build_system=cmake build_type=RelWithDebInfo arch=darwin-ventura-m2
[+]          ^curl@7.88.1%apple-clang@14.0.0~gssapi~ldap~libidn2~librtmp~libssh~libssh2~nghttp2 build_system=autotools libs=shared,static tls=secure_transport arch=darwin-ventura-m2
[+]          ^googletest@1.12.1%apple-clang@14.0.0+gmock~ipo+pthreads+shared build_system=cmake build_type=RelWithDebInfo cxxstd=11 arch=darwin-ventura-m2
[+]      ^pugixml@1.11.4%apple-clang@14.0.0~ipo+pic+shared build_system=cmake build_type=RelWithDebInfo arch=darwin-ventura-m2
[+]      ^python@3.10.10%apple-clang@14.0.0+bz2+crypt+ctypes+dbm~debug+libxml2+lzma~nis+optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tkinter+uuid+zlib build_system=generic patches=0d98e93,7d40923,f2fd060 arch=darwin-ventura-m2
[+]          ^apple-libuuid@1353.100.2%apple-clang@14.0.0 build_system=bundle arch=darwin-ventura-m2
[+]          ^gdbm@1.23%apple-clang@14.0.0 build_system=autotools arch=darwin-ventura-m2
[+]          ^gettext@0.21.1%apple-clang@14.0.0+bzip2+curses+git~libunistring+libxml2+tar+xz build_system=autotools arch=darwin-ventura-m2
[+]              ^tar@1.34%apple-clang@14.0.0 build_system=autotools zip=pigz arch=darwin-ventura-m2
[+]                  ^pigz@2.7%apple-clang@14.0.0 build_system=makefile arch=darwin-ventura-m2
[+]          ^libffi@3.4.4%apple-clang@14.0.0 build_system=autotools arch=darwin-ventura-m2
[+]          ^libxcrypt@4.4.33%apple-clang@14.0.0~obsolete_api build_system=autotools arch=darwin-ventura-m2
[+]          ^readline@8.2%apple-clang@14.0.0 build_system=autotools patches=bbf97f1 arch=darwin-ventura-m2
[+]      ^seacas@2022-10-14%apple-clang@14.0.0~adios2+applications+cgns~faodel+fortran~ipo+legacy+matio~metis~mpi+shared~thread_safe+x11 build_system=cmake build_type=RelWithDebInfo arch=darwin-ventura-m2
[+]          ^fmt@9.1.0%apple-clang@14.0.0~ipo+pic~shared build_system=cmake build_type=RelWithDebInfo cxxstd=11 patches=08fb707 arch=darwin-ventura-m2
[+]          ^libx11@1.8.4%apple-clang@14.0.0 build_system=autotools arch=darwin-ventura-m2
[+]              ^inputproto@2.3.2%apple-clang@14.0.0 build_system=autotools arch=darwin-ventura-m2
[+]              ^kbproto@1.0.7%apple-clang@14.0.0 build_system=autotools arch=darwin-ventura-m2
[+]              ^libxcb@1.14%apple-clang@14.0.0 build_system=autotools arch=darwin-ventura-m2
[+]                  ^libpthread-stubs@0.4%apple-clang@14.0.0 build_system=autotools arch=darwin-ventura-m2
[+]                  ^libxau@1.0.8%apple-clang@14.0.0 build_system=autotools arch=darwin-ventura-m2
[+]                  ^libxdmcp@1.1.4%apple-clang@14.0.0 build_system=autotools arch=darwin-ventura-m2
[+]                  ^xcb-proto@1.14.1%apple-clang@14.0.0 build_system=autotools arch=darwin-ventura-m2
[+]              ^util-macros@1.19.3%apple-clang@14.0.0 build_system=autotools arch=darwin-ventura-m2
[+]              ^xextproto@7.3.0%apple-clang@14.0.0 build_system=autotools arch=darwin-ventura-m2
[+]              ^xproto@7.0.31%apple-clang@14.0.0 build_system=autotools arch=darwin-ventura-m2
[+]              ^xtrans@1.3.5%apple-clang@14.0.0 build_system=autotools arch=darwin-ventura-m2
[+]          ^matio@1.5.17%apple-clang@14.0.0+hdf5+shared+zlib build_system=autotools arch=darwin-ventura-m2
[+]      ^sqlite@3.40.1%apple-clang@14.0.0+column_metadata+dynamic_extensions+fts~functions+rtree build_system=autotools arch=darwin-ventura-m2
[+]      ^utf8cpp@2.3.4%apple-clang@14.0.0 build_system=generic arch=darwin-ventura-m2
[+]      ^zlib@1.2.13%apple-clang@14.0.0+optimize+pic+shared build_system=makefile arch=darwin-ventura-m2
```


### Error message

<details><summary>Error message</summary><pre>
Undefined symbols for architecture arm64:
  "Ioss::Init::Initializer::Initializer()", referenced from:
      vtkIOSSReader::vtkInternals::vtkInternals(vtkIOSSReader*) in vtkIOSSReader.cxx.o
      vtkIOSSWriter::vtkIOSSWriter() in vtkIOSSWriter.cxx.o
  "Ioss::Init::Initializer::~Initializer()", referenced from:
      vtkIOSSReader::vtkInternals::vtkInternals(vtkIOSSReader*) in vtkIOSSReader.cxx.o
      vtkIOSSReader::vtkInternals::~vtkInternals() in vtkIOSSReader.cxx.o
      std::__1::unique_ptr<vtkIOSSWriter::vtkInternals, std::__1::default_delete<vtkIOSSWriter::vtkInternals> >::~unique_ptr() in vtkIOSSWriter.cxx.o
      vtkIOSSWriter::~vtkIOSSWriter() in vtkIOSSWriter.cxx.o
      vtkIOSSWriter::vtkIOSSWriter() (.cold.1) in vtkIOSSWriter.cxx.o
  "Iotr::Factory::create(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
      vtkIOSSUtilities::GetConnectivity(Ioss::GroupingEntity*, int&, vtkIOSSUtilities::Cache*) in vtkIOSSUtilities.cxx.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libvtkIOIOSS-9.2.9.2.2.dylib] Error 1
make[1]: *** [IO/IOSS/CMakeFiles/IOIOSS.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
</pre></details>


### Information on your system

* **Spack:** 0.20.0.dev0 (b3df2833eaff38538ab8c9dbcf0058ff057d45cc)
* **Python:** 3.9.6
* **Platform:** darwin-ventura-m2
* **Concretizer:** clingo


### Additional information

* [spack-build-out.txt](https://github.com/spack/spack/files/11012606/spack-build-out.txt)
* [spack-build-env.txt](https://github.com/spack/spack/files/11012607/spack-build-env.txt)

@chuckatkins @danlipsa 

I reported this same issue in #34589 but no one knew how to solve it. Figured it would be worth making a formal issue now that I'm on a new system and can reproduce it reliably.

### General information

- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform
- [X] I have run `spack maintainers <name-of-the-package>` and **@mentioned** any maintainers
- [X] I have uploaded the build log and environment files
- [X] I have searched the issues of this repo and believe this is not a duplicate


Discussion:
Any ideas on this one?
I found the similar problem on a rhel6 system, but the vtk was built success. The problem shows up when compiler parmmg which uses vtk:
```
  >> 410    /home/lrtfm/opt/spack/opt/spack/linux-rhel6-ivybridge/gcc-9.2.0/binutils-2.40-cu72m27hkmyccojegio4f55tl2tr54jx/bin/ld: /home/lrtfm/opt/spack/opt/spack/linux-r
            hel6-ivybridge/gcc-9.5.0/vtk-9.2.2-3rvdrhlulhpqykft5agrahmg3vhcec46/lib/libvtkIOIOSS-9.2.so.9.2.2: undefined reference to `Ioss::Init::Initializer::Initializer()'
  >> 411    /home/lrtfm/opt/spack/opt/spack/linux-rhel6-ivybridge/gcc-9.2.0/binutils-2.40-cu72m27hkmyccojegio4f55tl2tr54jx/bin/ld: /home/lrtfm/opt/spack/opt/spack/linux-r
            hel6-ivybridge/gcc-9.5.0/vtk-9.2.2-3rvdrhlulhpqykft5agrahmg3vhcec46/lib/libvtkIOIOSS-9.2.so.9.2.2: undefined reference to `Iotr::Factory::create(std::__cxx11::basic_strin
            g<char, std::char_traits<char>, std::allocator<char> > const&)'
  >> 412    /home/lrtfm/opt/spack/opt/spack/linux-rhel6-ivybridge/gcc-9.2.0/binutils-2.40-cu72m27hkmyccojegio4f55tl2tr54jx/bin/ld: /home/lrtfm/opt/spack/opt/spack/linux-r
            hel6-ivybridge/gcc-9.5.0/vtk-9.2.2-3rvdrhlulhpqykft5agrahmg3vhcec46/lib/libvtkIOIOSS-9.2.so.9.2.2: undefined reference to `Ioss::Init::Initializer::~Initializer()'
  >> 413    collect2: error: ld returned 1 exit status
  >> 414    make[2]: *** [CMakeFiles/parmmg.dir/build.make:269: bin/parmmg_O3d] Error 1
```

The spec of vtk is
```
Input spec
--------------------------------
 -   vtk

Concretized
--------------------------------
[+]  vtk@9.2.2%gcc@9.5.0~ffmpeg~ipo+mpi+opengl2~osmesa~python~qt~xdmf build_system=cmake build_type=RelWithDebInfo generator=make arch=linux-rhel6-ivybridge
[+]      ^cgns@4.3.0%gcc@9.5.0~base_scope~fortran+hdf5~int64~ipo~legacy~mem_debug+mpi+scoping+shared~static~testing~tools build_system=cmake build_type=RelWithDebInfo generator=make arch=linux-rhel6-ivybridge
[+]      ^cmake@3.26.2%gcc@9.5.0~doc+ncurses+ownlibs~qt build_system=generic build_type=Release arch=linux-rhel6-ivybridge
[+]          ^ncurses@6.4%gcc@9.5.0~symlinks+termlib abi=none build_system=autotools arch=linux-rhel6-ivybridge
[+]          ^openssl@1.1.1t%gcc@9.5.0~docs~shared build_system=generic certs=mozilla arch=linux-rhel6-ivybridge
[+]              ^ca-certificates-mozilla@2023-01-10%gcc@9.5.0 build_system=generic arch=linux-rhel6-ivybridge
[+]              ^perl@5.36.0%gcc@9.5.0+cpanm+open+shared+threads build_system=generic arch=linux-rhel6-ivybridge
[+]                  ^berkeley-db@18.1.40%gcc@9.5.0+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=linux-rhel6-ivybridge
[+]                  ^gdbm@1.23%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]      ^double-conversion@3.1.5%gcc@9.5.0~ipo build_system=cmake build_type=RelWithDebInfo generator=make arch=linux-rhel6-ivybridge
[+]      ^eigen@3.3.3%gcc@9.5.0~ipo build_system=cmake build_type=RelWithDebInfo generator=make patches=55daee8 arch=linux-rhel6-ivybridge
[+]      ^expat@2.5.0%gcc@9.5.0+libbsd build_system=autotools arch=linux-rhel6-ivybridge
[+]          ^libbsd@0.11.7%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]              ^libmd@1.0.4%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]      ^freetype@2.11.1%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]          ^bzip2@1.0.8%gcc@9.5.0~debug~pic+shared build_system=generic arch=linux-rhel6-ivybridge
[+]              ^diffutils@3.9%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]          ^pkgconf@1.8.0%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]      ^gl2ps@1.4.2%gcc@9.5.0~doc~ipo+png+zlib build_system=cmake build_type=RelWithDebInfo generator=make arch=linux-rhel6-ivybridge
[+]      ^glew@2.2.0%gcc@9.5.0~ipo build_system=cmake build_type=RelWithDebInfo generator=make gl=glx patches=7992e52 arch=linux-rhel6-ivybridge
[+]          ^libx11@1.8.4%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]              ^inputproto@2.3.2%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]              ^libxcb@1.14%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]                  ^libpthread-stubs@0.4%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]                  ^libxau@1.0.8%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]                  ^libxdmcp@1.1.4%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]                  ^xcb-proto@1.15.2%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]              ^xextproto@7.3.0%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]              ^xtrans@1.4.0%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]          ^xproto@7.0.31%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]      ^glx@1.4%gcc@9.5.0 build_system=bundle arch=linux-rhel6-ivybridge
[+]          ^mesa@22.1.6%gcc@9.5.0+glx+llvm+opengl~opengles+osmesa~strip build_system=meson buildtype=release default_library=shared patches=ee737d1,f0decc0 arch=linux-rhel6-ivybridge
[+]              ^bison@3.8.2%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]              ^flex@2.6.4%gcc@9.5.0+lex~nls build_system=autotools patches=f8b85a0 arch=linux-rhel6-ivybridge
[+]                  ^help2man@1.49.3%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]              ^gettext@0.21.1%gcc@9.5.0+bzip2+curses+git~libunistring+libxml2+tar+xz build_system=autotools arch=linux-rhel6-ivybridge
[+]                  ^tar@1.34%gcc@9.5.0 build_system=autotools zip=pigz arch=linux-rhel6-ivybridge
[+]                      ^pigz@2.7%gcc@9.5.0 build_system=makefile arch=linux-rhel6-ivybridge
[+]              ^glproto@1.4.17%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]              ^libunwind@1.6.2%gcc@9.5.0~block_signals~conservative_checks~cxx_exceptions~debug~debug_frame+docs~pic+tests+weak_backtrace~xz~zlib build_system=autotools components=none libs=shared,static arch=linux-rhel6-ivybridge
[+]              ^libxext@1.3.3%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]              ^llvm@12.0.1%gcc@9.5.0+clang+compiler-rt~cuda~flang+gold+internal_unwind~ipo+libcxx~link_llvm_dylib+lld+lldb+llvm_dylib~mlir+omp_as_runtime~omp_debug~omp_tsan+polly~python~split_dwarf~z3 build_system=cmake build_type=Release generator=ninja patches=f920173 targets=none version_suffix=none arch=linux-rhel6-ivybridge
[+]                  ^binutils@2.40%gcc@9.5.0~gas+gold~gprofng~headers~interwork+ld~libiberty~lto~nls~pgo+plugins build_system=autotools libs=shared,static arch=linux-rhel6-ivybridge
[+]                      ^texinfo@7.0%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]                  ^libedit@3.1-20210216%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]                  ^perl-data-dumper@2.173%gcc@9.5.0 build_system=perl arch=linux-rhel6-ivybridge
[+]              ^meson@1.1.0%gcc@9.5.0 build_system=python_pip patches=0f0b1bd arch=linux-rhel6-ivybridge
[+]                  ^py-pip@23.0%gcc@9.5.0 build_system=generic arch=linux-rhel6-ivybridge
[+]                  ^py-setuptools@59.4.0%gcc@9.5.0 build_system=generic arch=linux-rhel6-ivybridge
[+]                  ^py-wheel@0.37.1%gcc@9.5.0 build_system=generic arch=linux-rhel6-ivybridge
[+]              ^ninja@1.11.1%gcc@9.5.0+re2c build_system=generic arch=linux-rhel6-ivybridge
[+]                  ^re2c@2.2%gcc@9.5.0 build_system=generic arch=linux-rhel6-ivybridge
[+]              ^py-mako@1.2.2%gcc@9.5.0 build_system=python_pip arch=linux-rhel6-ivybridge
[+]                  ^py-markupsafe@2.1.1%gcc@9.5.0 build_system=python_pip arch=linux-rhel6-ivybridge
[+]              ^python@3.10.10%gcc@9.5.0+bz2+crypt+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tkinter+uuid+zlib build_system=generic patches=0d98e93,7d40923,f2fd060 arch=linux-rhel6-ivybridge
[+]                  ^libffi@3.4.4%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]                  ^libxcrypt@4.4.33%gcc@9.5.0~obsolete_api build_system=autotools arch=linux-rhel6-ivybridge
[+]              ^xrandr@1.5.0%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]                  ^libxrandr@1.5.3%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]                      ^renderproto@0.11.1%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]                  ^libxrender@0.9.10%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]                  ^randrproto@1.5.0%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]      ^gmake@4.4.1%gcc@9.5.0~guile build_system=autotools arch=linux-rhel6-ivybridge
[+]      ^hdf5@1.10.7%gcc@9.5.0~cxx~fortran+hl~ipo~java+mpi+shared~szip~threadsafe+tools api=default build_system=cmake build_type=RelWithDebInfo generator=make patches=2a1e311 arch=linux-rhel6-ivybridge
[+]      ^jsoncpp@1.9.4%gcc@9.5.0~ipo build_system=cmake build_type=RelWithDebInfo cxxstd=default generator=make arch=linux-rhel6-ivybridge
[+]      ^libjpeg-turbo@2.1.4%gcc@9.5.0~ipo~jpeg8+shared+static build_system=cmake build_type=RelWithDebInfo generator=make arch=linux-rhel6-ivybridge
[+]          ^nasm@2.15.05%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]      ^libogg@1.3.5%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]      ^libpng@1.6.39%gcc@9.5.0~ipo build_system=cmake build_type=RelWithDebInfo generator=make libs=shared,static arch=linux-rhel6-ivybridge
[+]      ^libtheora@1.1.1%gcc@9.5.0~doc build_system=autotools patches=057836e,8b1f256,ff8478d arch=linux-rhel6-ivybridge
[+]          ^autoconf@2.69%gcc@9.5.0 build_system=autotools patches=35c4492,7793209,a49dd5b arch=linux-rhel6-ivybridge
[+]          ^automake@1.16.5%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]          ^libtool@2.4.7%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]          ^m4@1.4.19%gcc@9.5.0+sigsegv build_system=autotools patches=9dc5fbd,bfdffa7 arch=linux-rhel6-ivybridge
[+]              ^libsigsegv@2.14%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]      ^libtiff@4.4.0%gcc@9.5.0+ccitt~ipo~jbig+jpeg~jpeg12~lerc~libdeflate+logluv~lzma+lzw+next~old-jpeg+packbits~pixarlog+thunder~webp+zlib~zstd build_system=cmake build_type=RelWithDebInfo generator=make arch=linux-rhel6-ivybridge
[+]      ^libxml2@2.10.3%gcc@9.5.0~python build_system=autotools arch=linux-rhel6-ivybridge
[+]          ^libiconv@1.17%gcc@9.5.0 build_system=autotools libs=shared,static arch=linux-rhel6-ivybridge
[+]          ^xz@5.4.1%gcc@9.5.0~pic build_system=autotools libs=shared,static arch=linux-rhel6-ivybridge
[+]      ^libxt@1.1.5%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]          ^kbproto@1.0.7%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]          ^libice@1.0.9%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]          ^libsm@1.2.3%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]              ^util-linux-uuid@2.38.1%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]          ^util-macros@1.19.3%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]      ^lz4@1.9.4%gcc@9.5.0~ipo build_system=cmake build_type=RelWithDebInfo generator=make libs=shared,static arch=linux-rhel6-ivybridge
[+]      ^mpich@4.1.1%gcc@9.5.0~argobots~cuda+fortran+hwloc+hydra+libxml2+pci~rocm+romio+slurm~two_level_namespace~vci~verbs+wrapperrpath build_system=autotools datatype-engine=auto device=ch4 netmod=ofi pmi=pmi arch=linux-rhel6-ivybridge
[+]          ^findutils@4.9.0%gcc@9.5.0 build_system=autotools patches=440b954 arch=linux-rhel6-ivybridge
[+]          ^hwloc@2.9.0%gcc@9.5.0~cairo~cuda~gl~libudev+libxml2~netloc~nvml~oneapi-level-zero~opencl+pci~rocm build_system=autotools libs=shared,static arch=linux-rhel6-ivybridge
[+]          ^libfabric@1.17.1%gcc@9.5.0~debug~kdreg build_system=autotools fabrics=sockets,tcp,udp arch=linux-rhel6-ivybridge
[+]          ^libpciaccess@0.17%gcc@9.5.0 build_system=autotools arch=linux-rhel6-ivybridge
[+]          ^slurm@15.08.2%gcc@9.5.0~gtk~hdf5~hwloc~mariadb~pmix+readline~restd build_system=autotools sysconfdir=PREFIX/etc arch=linux-rhel6-ivybridge
[+]          ^yaksa@0.2%gcc@9.5.0~cuda~rocm build_system=autotools arch=linux-rhel6-ivybridge
[+]      ^netcdf-c@4.9.0%gcc@9.5.0~dap~fsync~hdf4~jna+mpi+optimize+parallel-netcdf+pic+shared+zstd build_system=autotools arch=linux-rhel6-ivybridge
[+]          ^parallel-netcdf@1.12.3%gcc@9.5.0~burstbuffer+cxx+fortran+pic+shared build_system=autotools arch=linux-rhel6-ivybridge
[+]          ^zstd@1.5.5%gcc@9.5.0+programs build_system=makefile compression=none libs=shared,static arch=linux-rhel6-ivybridge
[+]      ^netcdf-cxx@4.2%gcc@9.5.0+netcdf4 build_system=autotools patches=8892291 arch=linux-rhel6-ivybridge
[+]      ^nlohmann-json@3.11.2%gcc@9.5.0~ipo+multiple_headers build_system=cmake build_type=RelWithDebInfo generator=make arch=linux-rhel6-ivybridge
[+]      ^proj@7.2.1%gcc@9.5.0+curl~ipo+tiff build_system=cmake build_type=RelWithDebInfo generator=make arch=linux-rhel6-ivybridge
[+]          ^curl@8.0.1%gcc@9.5.0~gssapi~ldap~libidn2~librtmp~libssh~libssh2~nghttp2 build_system=autotools libs=shared,static tls=openssl arch=linux-rhel6-ivybridge
[+]      ^pugixml@1.11.4%gcc@9.5.0~ipo+pic+shared build_system=cmake build_type=RelWithDebInfo generator=make arch=linux-rhel6-ivybridge
[+]      ^seacas@2022-10-14%gcc@9.5.0~adios2+applications+cgns~faodel+fortran~ipo+legacy+matio~metis+mpi+shared~thread_safe+x11 build_system=cmake build_type=RelWithDebInfo generator=make arch=linux-rhel6-ivybridge
[+]          ^fmt@9.1.0%gcc@9.5.0~ipo+pic~shared build_system=cmake build_type=RelWithDebInfo cxxstd=11 generator=make patches=08fb707 arch=linux-rhel6-ivybridge
[+]          ^matio@1.5.17%gcc@9.5.0+hdf5+shared+zlib build_system=autotools arch=linux-rhel6-ivybridge
[+]      ^sqlite@3.40.1%gcc@9.5.0+column_metadata+dynamic_extensions+fts~functions+rtree build_system=autotools arch=linux-rhel6-ivybridge
[+]          ^readline@8.2%gcc@9.5.0 build_system=autotools patches=bbf97f1 arch=linux-rhel6-ivybridge
[+]      ^utf8cpp@2.3.4%gcc@9.5.0 build_system=generic arch=linux-rhel6-ivybridge
[+]      ^zlib@1.2.13%gcc@9.5.0+optimize+pic+shared build_system=makefile arch=linux-rhel6-ivybridge
```

* **Spack:** 0.20.0.dev0
* **Python:** 3.8.13
* **Platform:** linux-rhel6-ivybridge
* **Concretizer:** clingo
I encountered similar issues when trying to install vtk on Apple Silicon with 
```
spack install vtk ^netcdf-c +dap
```
Two dependencies cause errors:
netcdf-cxx
```
 181    ld: file not found: @rpath/libquadmath.0.dylib for architecture arm64
```
and seacas 
```
 8720    In file included from /var/folders/h4/z1l0cz496r536cmgpd0x3swm0000gn/T/heisenberg/spack-stage/spack-stage-seacas-2022-10-14-nq64ls7uuvi3yfgmreqgl6t2zz7z2qav/spack-src/packages/seacas/libraries/ioss/
             src/Ioss_GroupingEntity.C:15:
     8721    In file included from /Users/heisenberg/spack/opt/spack/darwin-ventura-m1/apple-clang-14.0.3/fmt-10.0.0-hxtcvelnn2vhmw6okgyeofh57c4fuoua/include/fmt/ostream.h:20:
     8722    In file included from /Users/heisenberg/spack/opt/spack/darwin-ventura-m1/apple-clang-14.0.3/fmt-10.0.0-hxtcvelnn2vhmw6okgyeofh57c4fuoua/include/fmt/format.h:49:
  >> 8723    /Users/heisenberg/spack/opt/spack/darwin-ventura-m1/apple-clang-14.0.3/fmt-10.0.0-hxtcvelnn2vhmw6okgyeofh57c4fuoua/include/fmt/core.h:1690:3: error: static_assert failed due to requirement 'formatta
             ble' "Cannot format an argument. To make type T formattable provide a formatter<T> specialization: https://fmt.dev/latest/api.html#udt"
     8724      static_assert(
     8725      ^
     8726    /Users/heisenberg/spack/opt/spack/darwin-ventura-m1/apple-clang-14.0.3/fmt-10.0.0-hxtcvelnn2vhmw6okgyeofh57c4fuoua/include/fmt/core.h:1711:10: note: in instantiation of function template specializat
             ion 'fmt::detail::make_value<fmt::basic_format_context<fmt::appender, char>, const Ioss::State &>' requested here
     8727      return make_value<Context>(val);
     8728             ^
     8729    /Users/heisenberg/spack/opt/spack/darwin-ventura-m1/apple-clang-14.0.3/fmt-10.0.0-hxtcvelnn2vhmw6okgyeofh57c4fuoua/include/fmt/core.h:1825:23: note: in instantiation of function template specializat
             ion 'fmt::detail::make_arg<true, fmt::basic_format_context<fmt::appender, char>, fmt::detail::type::custom_type, const Ioss::State &, 0>' requested here

     ...

     8739          fmt::print(Ioss::OUTPUT(), "GroupingEntity: entityState mismatch ([] vs. [])\n",
     8740               ^
     8741    make[2]: Leaving directory '/private/var/folders/h4/z1l0cz496r536cmgpd0x3swm0000gn/T/heisenberg/spack-stage/spack-stage-seacas-2022-10-14-nq64ls7uuvi3yfgmreqgl6t2zz7z2qav/spack-build-nq64ls7'
     8742    /Users/heisenberg/spack/opt/spack/darwin-ventura-m1/apple-clang-14.0.3/gmake-4.4.1-md5vsbxxjcs7kdwn6b5cytdhs4fuxygh/bin/make  -f packages/seacas/libraries/exoIIv2for32/test/CMakeFiles/f32_testrd.dir
             /build.make packages/seacas/libraries/exoIIv2for32/test/CMakeFiles/f32_testrd.dir/build
     8743    make[2]: Entering directory '/private/var/folders/h4/z1l0cz496r536cmgpd0x3swm0000gn/T/heisenberg/spack-stage/spack-stage-seacas-2022-10-14-nq64ls7uuvi3yfgmreqgl6t2zz7z2qav/spack-build-nq64ls7'
     8744    1 error generated.
  >> 8745    make[2]: *** [packages/seacas/libraries/ioss/src/CMakeFiles/Ioss.dir/build.make:583: packages/seacas/libraries/ioss/src/CMakeFiles/Ioss.dir/Ioss_GroupingEntity.C.o] Error 1
```
The spec of vtk is 
```
Input spec
--------------------------------
 -   vtk
 -       ^netcdf-c+dap

Concretized
--------------------------------
 -   vtk@9.2.6%apple-clang@14.0.3~ffmpeg~ipo+mpi+opengl2~osmesa~python~qt~xdmf build_system=cmake build_type=Release generator=make arch=darwin-ventura-m1
[+]      ^apple-gl@4.1.0%apple-clang@14.0.3 build_system=generic arch=darwin-ventura-m1
[+]      ^cgns@4.3.0%apple-clang@14.0.3~base_scope~fortran+hdf5~int64~ipo~legacy~mem_debug+mpi+scoping+shared~static~testing~tools build_system=cmake build_type=Release generator=make arch=darwin-ventura-m1
[+]      ^cmake@3.26.3%apple-clang@14.0.3~doc+ncurses+ownlibs~qt build_system=generic build_type=Release arch=darwin-ventura-m1
[+]          ^ncurses@6.4%apple-clang@14.0.3~symlinks+termlib abi=none build_system=autotools arch=darwin-ventura-m1
[+]          ^openssl@1.1.1t%apple-clang@14.0.3~docs~shared build_system=generic certs=mozilla arch=darwin-ventura-m1
[+]              ^ca-certificates-mozilla@2023-01-10%apple-clang@14.0.3 build_system=generic arch=darwin-ventura-m1
[+]              ^perl@5.36.0%apple-clang@14.0.3+cpanm+open+shared+threads build_system=generic arch=darwin-ventura-m1
[+]                  ^berkeley-db@18.1.40%apple-clang@14.0.3+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=darwin-ventura-m1
[+]                  ^gdbm@1.23%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[+]      ^double-conversion@3.3.0%apple-clang@14.0.3~ipo build_system=cmake build_type=Release generator=make arch=darwin-ventura-m1
[+]      ^eigen@3.4.0%apple-clang@14.0.3~ipo build_system=cmake build_type=RelWithDebInfo generator=make arch=darwin-ventura-m1
[+]      ^expat@2.5.0%apple-clang@14.0.3~libbsd build_system=autotools arch=darwin-ventura-m1
[+]          ^gnuconfig@2022-09-17%apple-clang@14.0.3 build_system=generic arch=darwin-ventura-m1
[+]      ^freetype@2.11.1%apple-clang@14.0.3+pic+shared build_system=autotools arch=darwin-ventura-m1
[+]          ^bzip2@1.0.8%apple-clang@14.0.3~debug~pic+shared build_system=generic arch=darwin-ventura-m1
[+]              ^diffutils@3.9%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[+]          ^pkgconf@1.9.5%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[+]      ^gl2ps@1.4.2%apple-clang@14.0.3~doc~ipo+png+zlib build_system=cmake build_type=Release generator=make arch=darwin-ventura-m1
[+]      ^glew@2.2.0%apple-clang@14.0.3~ipo build_system=cmake build_type=Release generator=make gl=other patches=7992e52 arch=darwin-ventura-m1
[+]      ^gmake@4.4.1%apple-clang@14.0.3~guile build_system=autotools arch=darwin-ventura-m1
[+]      ^hdf5@1.14.1-2%apple-clang@14.0.3~cxx~fortran+hl~ipo~java~map+mpi+shared~szip~threadsafe+tools api=default build_system=cmake build_type=Release generator=make arch=darwin-ventura-m1
[-]          ^cmake@3.26.3%apple-clang@14.0.3~doc+ncurses+ownlibs~qt build_system=generic build_type=Release arch=darwin-ventura-m1
[-]              ^openssl@1.1.1t%apple-clang@14.0.3~docs~shared build_system=generic certs=mozilla arch=darwin-ventura-m1
[-]                  ^perl@5.36.0%apple-clang@14.0.3+cpanm+open+shared+threads build_system=generic arch=darwin-ventura-m1
[-]                      ^berkeley-db@18.1.40%apple-clang@14.0.3+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=darwin-ventura-m1
[+]      ^jsoncpp@1.9.5%apple-clang@14.0.3~ipo build_system=cmake build_type=RelWithDebInfo cxxstd=default generator=make arch=darwin-ventura-m1
[+]      ^libjpeg-turbo@2.1.5%apple-clang@14.0.3~ipo~jpeg8+shared+static build_system=cmake build_type=Release generator=make arch=darwin-ventura-m1
[+]          ^nasm@2.15.05%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[+]      ^libogg@1.3.5%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[+]      ^libpng@1.6.39%apple-clang@14.0.3~ipo build_system=cmake build_type=Release generator=make libs=shared,static arch=darwin-ventura-m1
[+]      ^libtheora@1.1.1%apple-clang@14.0.3~doc build_system=autotools patches=057836e,8b1f256,ff8478d arch=darwin-ventura-m1
[+]          ^autoconf@2.69%apple-clang@14.0.3 build_system=autotools patches=35c4492,7793209,a49dd5b arch=darwin-ventura-m1
[+]          ^automake@1.16.5%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[+]          ^libtool@2.4.7%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[+]          ^m4@1.4.19%apple-clang@14.0.3+sigsegv build_system=autotools patches=9dc5fbd,bfdffa7 arch=darwin-ventura-m1
[+]              ^libsigsegv@2.14%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[+]      ^libtiff@4.5.0%apple-clang@14.0.3+ccitt~ipo~jbig+jpeg~jpeg12~lerc~libdeflate+logluv~lzma+lzw+next~old-jpeg+packbits~pic~pixarlog+shared+thunder~webp+zlib~zstd build_system=cmake build_type=Release generator=make arch=darwin-ventura-m1
[+]      ^libxml2@2.10.3%apple-clang@14.0.3~python build_system=autotools arch=darwin-ventura-m1
[+]          ^libiconv@1.17%apple-clang@14.0.3 build_system=autotools libs=shared,static arch=darwin-ventura-m1
[+]          ^xz@5.4.1%apple-clang@14.0.3~pic build_system=autotools libs=shared,static arch=darwin-ventura-m1
[+]      ^lz4@1.9.4%apple-clang@14.0.3 build_system=makefile libs=shared,static arch=darwin-ventura-m1
[+]      ^mpich@4.1.1%apple-clang@14.0.3~argobots~cuda+fortran+hwloc+hydra+libxml2~pci~rocm+romio~slurm~two_level_namespace~vci~verbs+wrapperrpath build_system=autotools datatype-engine=auto device=ch4 netmod=ofi pmi=pmi arch=darwin-ventura-m1
[-]          ^findutils@4.9.0%apple-clang@14.0.3 build_system=autotools patches=440b954 arch=darwin-ventura-m1
[+]          ^hwloc@2.9.1%apple-clang@14.0.3~cairo~cuda~gl~libudev+libxml2~netloc~nvml~oneapi-level-zero~opencl~pci~rocm build_system=autotools libs=shared,static arch=darwin-ventura-m1
[+]          ^libfabric@1.18.0%apple-clang@14.0.3~debug~kdreg build_system=autotools fabrics=sockets,tcp,udp arch=darwin-ventura-m1
[+]          ^yaksa@0.2%apple-clang@14.0.3~cuda~rocm build_system=autotools arch=darwin-ventura-m1
[-]              ^autoconf@2.69%apple-clang@14.0.3 build_system=autotools patches=35c4492,7793209,a49dd5b arch=darwin-ventura-m1
[-]              ^automake@1.16.5%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[-]              ^libtool@2.4.7%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[-]              ^m4@1.4.19%apple-clang@14.0.3+sigsegv build_system=autotools patches=9dc5fbd,bfdffa7 arch=darwin-ventura-m1
[-]                  ^libsigsegv@2.14%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[-]              ^python@3.10.10%apple-clang@14.0.3+bz2+crypt+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tkinter+uuid+zlib build_system=generic patches=0d98e93,7d40923,f2fd060 arch=darwin-ventura-m1
[-]                  ^apple-libuuid@1353.100.2%apple-clang@14.0.3 build_system=bundle arch=darwin-ventura-m1
[+]                  ^gettext@0.21.1%apple-clang@14.0.3+bzip2+curses+git~libunistring+libxml2+tar+xz build_system=autotools arch=darwin-ventura-m1
[+]                      ^tar@1.34%apple-clang@14.0.3 build_system=autotools zip=pigz arch=darwin-ventura-m1
[+]                          ^pigz@2.7%apple-clang@14.0.3 build_system=makefile arch=darwin-ventura-m1
[+]                  ^libffi@3.4.4%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[-]                  ^libxcrypt@4.4.33%apple-clang@14.0.3~obsolete_api build_system=autotools arch=darwin-ventura-m1
[-]                  ^sqlite@3.40.1%apple-clang@14.0.3+column_metadata+dynamic_extensions+fts~functions+rtree build_system=autotools arch=darwin-ventura-m1
[+]      ^netcdf-c@4.9.2%apple-clang@14.0.3+blosc~byterange+dap~fsync~hdf4~jna+mpi~nczarr_zip+optimize+parallel-netcdf+pic+shared+szip+zstd build_system=autotools arch=darwin-ventura-m1
[+]          ^c-blosc@1.21.2%apple-clang@14.0.3+avx2~ipo build_system=cmake build_type=Release generator=make arch=darwin-ventura-m1
[+]              ^snappy@1.1.10%apple-clang@14.0.3~ipo+pic+shared build_system=cmake build_type=Release generator=make arch=darwin-ventura-m1
[+]          ^curl@8.0.1%apple-clang@14.0.3~gssapi~ldap~libidn2~librtmp~libssh~libssh2~nghttp2 build_system=autotools libs=shared,static tls=secure_transport arch=darwin-ventura-m1
[+]          ^libaec@1.0.6%apple-clang@14.0.3~ipo+shared build_system=cmake build_type=Release generator=make arch=darwin-ventura-m1
[+]          ^parallel-netcdf@1.12.3%apple-clang@14.0.3~burstbuffer+cxx+fortran+pic+shared build_system=autotools arch=darwin-ventura-m1
[+]          ^zstd@1.5.5%apple-clang@14.0.3+programs build_system=makefile compression=none libs=shared,static arch=darwin-ventura-m1
 -       ^netcdf-cxx@4.2%apple-clang@14.0.3+netcdf4 build_system=autotools patches=8892291 arch=darwin-ventura-m1
[+]      ^nlohmann-json@3.11.2%apple-clang@14.0.3~ipo+multiple_headers build_system=cmake build_type=Release generator=make arch=darwin-ventura-m1
[+]      ^proj@7.2.1%apple-clang@14.0.3+curl~ipo+tiff build_system=cmake build_type=Release generator=make arch=darwin-ventura-m1
[+]      ^pugixml@1.13%apple-clang@14.0.3~ipo+pic+shared build_system=cmake build_type=Release generator=make arch=darwin-ventura-m1
 -       ^seacas@2022-10-14%apple-clang@14.0.3~adios2+applications+cgns~faodel+fortran~ipo+legacy+matio~metis+mpi+shared~thread_safe+x11 build_system=cmake build_type=Release generator=make arch=darwin-ventura-m1
[+]          ^fmt@10.0.0%apple-clang@14.0.3~ipo+pic~shared build_system=cmake build_type=Release cxxstd=11 generator=make arch=darwin-ventura-m1
[+]          ^libx11@1.8.4%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[+]              ^inputproto@2.3.2%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[+]              ^kbproto@1.0.7%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[+]              ^libxcb@1.14%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[+]                  ^libpthread-stubs@0.4%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[+]                  ^libxau@1.0.8%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[+]                  ^libxdmcp@1.1.4%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[+]                  ^python@3.10.10%apple-clang@14.0.3+bz2+crypt+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tkinter+uuid+zlib build_system=generic patches=0d98e93,7d40923,f2fd060 arch=darwin-ventura-m1
[-]                      ^apple-libuuid@1353.100.2%apple-clang@14.0.3 build_system=bundle arch=darwin-ventura-m1
[+]                      ^libxcrypt@4.4.33%apple-clang@14.0.3~obsolete_api build_system=autotools arch=darwin-ventura-m1
[+]                  ^xcb-proto@1.15.2%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[+]              ^util-macros@1.19.3%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[+]              ^xextproto@7.3.0%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[+]              ^xproto@7.0.31%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[+]              ^xtrans@1.4.0%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[+]          ^matio@1.5.17%apple-clang@14.0.3+hdf5+shared+zlib build_system=autotools arch=darwin-ventura-m1
[+]      ^sqlite@3.40.1%apple-clang@14.0.3+column_metadata+dynamic_extensions+fts~functions+rtree build_system=autotools arch=darwin-ventura-m1
[+]          ^readline@8.2%apple-clang@14.0.3 build_system=autotools patches=bbf97f1 arch=darwin-ventura-m1
[+]      ^utf8cpp@2.3.4%apple-clang@14.0.3 build_system=generic arch=darwin-ventura-m1
[+]      ^zlib@1.2.13%apple-clang@14.0.3+optimize+pic+shared build_system=makefile arch=darwin-ventura-m1
```
- Spack: 0.21.0.dev0
- Platform: darwin-ventura-m1

Resolving patch:
diff --git a/var/spack/repos/builtin/packages/vtk/package.py b/var/spack/repos/builtin/packages/vtk/package.py
--- a/var/spack/repos/builtin/packages/vtk/package.py
+++ b/var/spack/repos/builtin/packages/vtk/package.py
@@ -72,6 +72,8 @@ class Vtk(CMakePackage):
     # We cannot build with both osmesa and qt in spack
     conflicts("+osmesa", when="+qt")
 
+    conflicts("%gcc@13", when="@9.2")
+
     with when("+python"):
         # Depend on any Python, add bounds below.
         extends("python@2.7:", type=("build", "run"))
@@ -165,8 +167,20 @@ class Vtk(CMakePackage):
     depends_on("proj@4:7", when="@9:")
     depends_on("cgns@4.1.1:+mpi", when="@9.1: +mpi")
     depends_on("cgns@4.1.1:~mpi", when="@9.1: ~mpi")
-    depends_on("seacas@2021-05-12:+mpi", when="@9.1: +mpi")
-    depends_on("seacas@2021-05-12:~mpi", when="@9.1: ~mpi")
+    with when("@9.1:"):
+        depends_on("seacas+mpi", when="+mpi")
+        depends_on("seacas~mpi", when="~mpi")
+        depends_on("seacas@2021-05-12:")
+
+    # seacas@2023-05-30 does not provide needed SEACASIoss_INCLUDE_DIRS:
+    # CMake Error at CMake/vtkModule.cmake:5552 (message):
+    # The variable `SEACASIoss_INCLUDE_DIRS` was expected to have been available,
+    # but was not defined:
+    conflicts("seacas@2023-05-30", when="@:9.2")
+
+    # vtk@9.2: need Ioss::Utils::get_debug_stream() which only 2022-10-14 provides,
+    # and to be safe against other issues, make them build with this version only:
+    depends_on("seacas@2022-10-14", when="@9.2:")
     depends_on("nlohmann-json", when="@9.2:")
 
     # For finding Fujitsu-MPI wrapper commands
@@ -186,6 +200,13 @@ class Vtk(CMakePackage):
         when="@9.1",
     )
 
+    @when("@9.2:")
+    def patch(self):
+        # provide definition for Ioss::Init::Initializer::Initializer(),
+        # required on macOS, as "-undefined error" is the default,
+        # but not on Linux, as undefined symbols are tolerated
+        filter_file("TARGETS Ioss", "TARGETS Ioss Ionit", "ThirdParty/ioss/CMakeLists.txt")
+
     def url_for_version(self, version):
         url = "http://www.vtk.org/files/release/{0}/VTK-{1}.tar.gz"
         return url.format(version.up_to(2), version)


Test patch: