I was cross-compiling mxe-octave during which I have encountered errors in the packages lapack, blas, and gmp all because of this error which happens to be same for all these packages:
make[2]: /home/ani/mxe-octave/usr/bin/i686-pc-mingw32-gfortran: Command not found
The log of lapack had more details about this.
-- The Fortran compiler identification is unknown
-- Check for working Fortran compiler: /home/ani/mxe-octave/usr/bin/i686-pc-mingw32-gfortran
CMake Error: your Fortran compiler: "/home/ani/mxe-octave/usr/bin/i686-pc-mingw32-gfortran" was not found. Please set CMAKE_Fortran_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working Fortran compiler: /home/ani/mxe-octave/usr/bin/i686-pc-mingw32-gfortran -- broken
CMake Error at /usr/share/cmake/Modules/CMakeTestFortranCompiler.cmake:54 (message):
The Fortran compiler
"/home/ani/mxe-octave/usr/bin/i686-pc-mingw32-gfortran" is not able to
compile a simple test program.Indeed i686-pc-mingw-gfortran doesn't exist in that path, but I think it gets added during the build process. How can I remove this error?