in your log one sees
gcc -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -L/Users/honglizhao/Desktop/sage_research/code/sage/local/lib -Wl,-rpath,/Users/honglizhao/Desktop/sage_research/code/sage/local/lib -O2 -g -march=native build/temp.macosx-11-x86_64-3.9/cypari2/closure.o -L/Users/honglizhao/Desktop/sage_research/code/sage/local/lib -L/Users/honglizhao/Desktop/sage_research/code/sage/local/lib64 -lgmp -lpari -o build/lib.macosx-11-x86_64-3.9/cypari2/
closure.cpython-39-darwin.so -lpari
ld: library not found for -lgmp
Usually this points out at some kind of misconfiguration. Did you forget to run
source .homebrew_build_env
before this round of make?