Unable to read config file “$BFMDIR/src/nemo/bfm.fcm”

I don’t know what is missing here

You are installing a new configuration MY_GYRE from GYRE_BFM with sub-components: OCE TOP
Creating MY_GYRE/WORK = OCE TOP for MY_GYRE
External directory for MY_SRC unspecified or does not exist. Using default.
MY_SRC content is linked to MY_GYRE/WORK
/Users/errutorculas/Developer/nemo_4.2.2/cfgs
cat: /Users/errutorculas/Developer/nemo_4.2.2/mk/arch.history: No such file or directory
Unable to read config file “$BFMDIR/src/nemo/bfm.fcm”, abort at /Users/errutorculas/Developer/nemo_4.2.2/ext/FCM/bin/…/lib/Fcm/ConfigSystem.pm line 531.
Build command started on Thu Jan 16 11:29:56 2025.
->Parse configuration: start
Config file (bld): /Users/errutorculas/Developer/nemo_4.2.2/mk/bldxag.cfg
Config file (bld): /Users/errutorculas/Developer/nemo_4.2.2/mk/arch_nemo.fcm
Config file (bld): /Users/errutorculas/Developer/nemo_4.2.2/mk/cpp.fcm
/Users/errutorculas/Developer/nemo_4.2.2/cfgs

This is the NEMO build arch

%NCDF_C_PREFIX /opt/local
%NCDF_F_PREFIX /opt/local
%HDF5_PREFIX /opt/local
%XIOS_PREFIX /Users/errutorculas/Developer/trunk
%OASIS_PREFIX notdef

%NCDF_INC -I%NCDF_F_PREFIX/include -I%NCDF_C_PREFIX/include
%NCDF_LIB -L%NCDF_F_PREFIX/lib -lnetcdff -L%NCDF_C_PREFIX/lib -lnetcdf -L%HDF5_PREFIX/lib -lhdf5_hl -lhdf5 -lz -lm
%XIOS_INC -I%XIOS_PREFIX/inc
%XIOS_LIB -L%XIOS_PREFIX/lib -lxios -lstdc++
%OASIS_INC
%OASIS_LIB

%CPP cpp -Dkey_nosignedzero
%FC mpif90
%FCFLAGS -fdefault-real-8 -O3 -march=native -funroll-all-loops -fcray-pointer -ffree-line-length-none -fallow-argument-mismatch

comment out the following line if you want to use the debugging compilation options

#%FCFLAGS -fdefault-real-8 -Og -g -fbacktrace -funroll-all-loops -fcray-pointer -ffree-line-length-none -fcheck=all -finit-real=nan -ffpe-trap=invalid,zero,overflow -ffpe-summary=invalid,zero,overflow -fallow-argument-mismatch
%FFLAGS %FCFLAGS
%LD %FC
%LDFLAGS -Wl,-rpath=%HDF5_PREFIX/lib -Wl,-rpath=%NCDF_F_PREFIX/lib -Wl,-rpath=%XIOS_PREFIX/lib
%FPPFLAGS -P -traditional
%AR ar
%ARFLAGS rs
%MK make
%USER_INC %XIOS_INC %OASIS_INC %NCDF_INC
%USER_LIB %XIOS_LIB %OASIS_LIB %NCDF_LIB

%CC gcc
%CFLAGS -O0 -fcommon