Issue installing from source on M2 mac

Looks like you don’t have the OpenMP libs installed for C/C++ language.

Try this:

brew install libomp

If this don’t work, try read this:

He has the same problem of you.