Running 'make' of Sage-8.8-Ubuntu_18.04-x86_64.tar.bz2 under Cygwin64 shell (Windows 10), I get the following building error:
[zlib-1.2.11.p0] Building zlib-1.2.11.p0
[zlib-1.2.11.p0] make[3]: Entering directory '/home/SageMath/local/var/tmp/sage/build/zlib-1.2.11.p0/src'
[zlib-1.2.11.p0] gcc -O3 -Wall -c -o adler32.o adler32.c
[zlib-1.2.11.p0] /home/SageMath/local/bin/gcc: /home/SageMath/local/bin/gcc: cannot execute binary file
[zlib-1.2.11.p0] make[3]: *** [Makefile:85: adler32.o] Error 126
[zlib-1.2.11.p0] make[3]: Leaving directory '/home/SageMath/local/var/tmp/sage/build/zlib-1.2.11.p0/src'
[zlib-1.2.11.p0] ********************************************************************************
[zlib-1.2.11.p0] Error building zlib-1.2.11.p0
[zlib-1.2.11.p0] ********************************************************************************
[zlib-1.2.11.p0]
[zlib-1.2.11.p0] real 0m0.949s
[zlib-1.2.11.p0] user 0m0.105s
[zlib-1.2.11.p0] sys 0m0.412s
[zlib-1.2.11.p0] ************************************************************************
[zlib-1.2.11.p0] Error installing package zlib-1.2.11.p0
[zlib-1.2.11.p0] ************************************************************************
[zlib-1.2.11.p0] Please email sage-devel (
http://groups.google.com/group/sage-devel)
[zlib-1.2.11.p0] explaining the problem and including the log file
[zlib-1.2.11.p0] /home/SageMath/logs/pkgs/zlib-1.2.11.p0.log
[zlib-1.2.11.p0] Describe your computer, operating system, etc.
[zlib-1.2.11.p0] If you want to try to fix the problem yourself, *don't* just cd to
[zlib-1.2.11.p0] /home/SageMath/local/var/tmp/sage/build/zlib-1.2.11.p0 and type 'make' or whatever is appropriate.
[zlib-1.2.11.p0] Instead, the following commands setup all environment variables
[zlib-1.2.11.p0] correctly and load a subshell for you to debug the error:
[zlib-1.2.11.p0] (cd '/home/SageMath/local/var/tmp/sage/build/zlib-1.2.11.p0' && '/home/SageMath/sage' --sh)
[zlib-1.2.11.p0] When you are done debugging, you can type "exit" to leave the subshell.
[zlib-1.2.11.p0] ************************************************************************
make[2]: *** [Makefile:2163: /home/SageMath/local/var/lib/sage/installed/zlib-1.2.11.p0] Error 1
make[2]: Leaving directory '/home/SageMath/build/make'
make[1]: *** [Makefile:1852: base-toolchain] Error 2
make[1]: Leaving directory '/home/SageMath/build/make'
real 0m18.784s
user 0m1.174s
sys 0m3.768s
***************************************************************
Error building Sage.
The following package(s) may have failed to build (not necessarily
during this run of 'make base-toolchain'):
* package: zlib-1.2.11.p0
log file: /home/SageMath/logs/pkgs/zlib-1.2.11.p0.log
build directory: /home/SageMath/local/var/tmp/sage/build/zlib-1.2.11.p0
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: *** [Makefile:33: base-toolchain] Error 1