Opensearch knn build.sh failed for :cmakeJniLib

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):

Opensearch 2.18.0

Describe the issue:

We are trying to build opensearch-knn library for our development purpose.
We are not able to build the knn with below mentioned errors.

Configuration:

Relevant Logs or Screenshots:

– Found BLAS: /usr/lib64/libblas.so

The Fortran compiler identification is unknown
CMake Error at cmake/init-faiss.cmake:76 (enable_language):

No CMAKE_Fortran_COMPILER could be found.

Tell CMake where to find the compiler by setting either the environment

variable “FC” or the CMake cache entry CMAKE_Fortran_COMPILER to the full
path to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):

CMakeLists.txt:107 (include)

  • Configuring incomplete, errors occurred!

FAILURE: Build failed with an exception.

  • What went wrong:

Execution failed for task ‘:cmakeJniLib’.

Process ‘command ‘cmake’’ finished with non-zero exit value 1

@Maha Did you follow the suggestion from the error and set either FC env variable or CMAKE_Fortran_COMPILER cache entry?