If you use brew to install e.g. gambit chances are that you to too like OP will run into the name clash issue with ghostscript (gsc). However brew will tell you this if you try to install gambit-scheme to unlink ghostscript. Once you have done this you need to edit cmake/CMakeDetermineGambitCompiler.cmake and change gambitc to gsc.
For me the trick alias gambitc=gsc did not work.
Also gcc@13 is needed from brew. But ere the alias trick works. You can then set an alias for it like
alias gcc-13=opt/homebrew/Cellar/gcc@13/13.3.0/bin/gcc-13
After these 2 small changes building and running the fish example work fine.
If you use brew to install e.g. gambit chances are that you to too like OP will run into the name clash issue with ghostscript (gsc). However brew will tell you this if you try to install gambit-scheme to unlink ghostscript. Once you have done this you need to edit cmake/CMakeDetermineGambitCompiler.cmake and change gambitc to gsc.
For me the trick alias gambitc=gsc did not work.
Also gcc@13 is needed from brew. But ere the alias trick works. You can then set an alias for it like
alias gcc-13=opt/homebrew/Cellar/gcc@13/13.3.0/bin/gcc-13
After these 2 small changes building and running the fish example work fine.