I have MacBook Pro (Early 2015) running Sierra 10.12.6.
[gcc-7.2.0] Error installing package gcc-7.2.0
[gcc-7.2.0] ************************************************************************
[gcc-7.2.0] Please email sage-devel (http://groups.google.com/group/sage-devel)
[gcc-7.2.0] explaining the problem and including the log file
[gcc-7.2.0] /Users/matt/sage/logs/pkgs/gcc-7.2.0.log
[gcc-7.2.0] Describe your computer, operating system, etc.
[gcc-7.2.0] If you want to try to fix the problem yourself, *don't* just cd to
[gcc-7.2.0] /Users/matt/sage/local/var/tmp/sage/build/gcc-7.2.0 and type 'make' or whatever is appropriate.
[gcc-7.2.0] Instead, the following commands setup all environment variables
[gcc-7.2.0] correctly and load a subshell for you to debug the error:
[gcc-7.2.0] (cd '/Users/matt/sage/local/var/tmp/sage/build/gcc-7.2.0' && '/Users/matt/sage/sage' --sh)
[gcc-7.2.0] When you are done debugging, you can type "exit" to leave the subshell.
[gcc-7.2.0] ************************************************************************
make[2]: *** [/Users/matt/sage/local/var/lib/sage/installed/gcc-7.2.0] Error 1
make[1]: *** [all-toolchain] Error 2
real 16m10.230s
user 11m26.738s
sys 2m55.003s
***************************************************************
Error building Sage.
The following package(s) may have failed to build (not necessarily
during this run of 'make all'):
* package: gcc-7.2.0
log file: /Users/matt/sage/logs/pkgs/gcc-7.2.0.log
build directory: /Users/matt/sage/local/var/tmp/sage/build/gcc-7.2.0
The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.
make: *** [all] Error 1