Why are you installing igraph
from source? It seems from CRAN igraph that there are binaries available for macOS arm64.
If, for some reason you really do need to install from source, please see some specific instructions for installing from source here: How to compile R/igraph from source, with all features enabled? - #5 by szhorvat.
If you still can’t install igraph
in R following these instructions, let us know. Please provide full details of the installation log, so that we know a bit what might be going on.