# Cannot build sage from source on m1 Mac

Hi,

I am trying to build sage from the source code on my Mac with an M1 processor. I mention the M1 processor, because I was able to install on an older Intel based Mac without a problem.

Anyway, after downloading and extracting the 9.6 files into a directory, I ran the following commands:

./configure --enable-glucose

export MAKE="make -j6"

make

After a few minutes of it attempting to build things, it quit with the following messages. Let me know if you have any ideas how to get past this.

Error building Sage.

The following package(s) may have failed to build (not necessarily during this run of 'make all-start'):

package: gfortran-11.3.0 last build time: Jun 20 17:09 log file: /Users/cmann/sage/sage-9.6/logs/pkgs/gfortran-11.3.0.log build directory: /Users/cmann/sage/sage-9.6/local/var/tmp/sage/build/gfortran-11.3.0

package: gcc-11.3.0 last build time: Jul 5 14:02 log file: /Users/cmann/sage/sage-9.6/logs/pkgs/gcc-11.3.0.log build directory: /Users/cmann/sage/sage-9.6/local/var/tmp/sage/build/gcc-11.3.0

package: m4ri-20200115 last build time: Jul 5 14:05 log file: /Users/cmann/sage/sage-9.6/logs/pkgs/m4ri-20200115.log build directory: /Users/cmann/sage/sage-9.6/local/var/tmp/sage/build/m4ri-20200115

package: openblas-0.3.20 last build time: Jul 5 14:19 log file: /Users/cmann/sage/sage-9.6/logs/pkgs/openblas-0.3.20.log build directory: /Users/cmann/sage/sage-9.6/local/var/tmp/sage/build/openblas-0.3.20

It is safe to delete any log files and build directories, but they contain information that is helpful for debugging build problems. WARNING: If you now run 'make' again, the build directory of the same version of the package will, by default, be deleted. Set the environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this.