Thank you. I used MacPorts to install `gcc` but after I did some changes, the problem is now resolved. I installed `libpng` via MacPorts, however, when I am trying to build, this appears:
make --no-print-directory tachyon-SAGE_LOCAL-no-deps
[tachyon-0.98.9.p7] Using cached file /Users/Latisp/github/sage/upstream/tachyon-0.98.9.tar.bz2
[tachyon-0.98.9.p7] tachyon-0.98.9.p7
[tachyon-0.98.9.p7] ====================================================
[tachyon-0.98.9.p7] Setting up build directory for tachyon-0.98.9.p7
[tachyon-0.98.9.p7] Finished extraction
[tachyon-0.98.9.p7] Applying patches from ../patches...
[tachyon-0.98.9.p7] Applying ../patches/Make-arch.patch
[tachyon-0.98.9.p7] patching file unix/Make-arch
[tachyon-0.98.9.p7] Applying ../patches/Make-config.patch
[tachyon-0.98.9.p7] patching file unix/Make-config
[tachyon-0.98.9.p7] Applying ../patches/Makefile.patch
[tachyon-0.98.9.p7] patching file unix/Makefile
[tachyon-0.98.9.p7] Applying ../patches/main.c.patch
[tachyon-0.98.9.p7] patching file demosrc/main.c
[tachyon-0.98.9.p7] ****************************************************
[tachyon-0.98.9.p7] Host system:
[tachyon-0.98.9.p7] Darwin jing.local 17.7.0 Darwin Kernel Version 17.7.0: Fri Oct 30 13:34:27 PDT 2020; root:xnu-4570.71.82.8~1/RELEASE_X86_64 x86_64
[tachyon-0.98.9.p7] ****************************************************
[tachyon-0.98.9.p7] C compiler: gcc
[tachyon-0.98.9.p7] C compiler version:
[tachyon-0.98.9.p7] Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
[tachyon-0.98.9.p7] Apple LLVM version 10.0.0 (clang-1000.11.45.5)
[tachyon-0.98.9.p7] Target: x86_64-apple-darwin17.7.0
[tachyon-0.98.9.p7] Thread model: posix
[tachyon-0.98.9.p7] InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
[tachyon-0.98.9.p7] ****************************************************
[tachyon-0.98.9.p7] Package 'tachyon' is currently not installed
[tachyon-0.98.9.p7] No legacy uninstaller found for 'tachyon'; nothing to do
[tachyon-0.98.9.p7] Building tachyon-0.98.9.p7
[tachyon-0.98.9.p7] make all \
[tachyon-0.98.9.p7] "ARCH = macosx" \
[tachyon-0.98.9.p7] "CFLAGS = -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include " \
[tachyon-0.98.9.p7] "ARFLAGS = r" \
[tachyon-0.98.9.p7] "STRIP = strip" \
[tachyon-0.98.9.p7] "LIBS = -L. -ltachyon -L/Users/Latisp/github/sage/local/lib -lpng -lz "
[tachyon-0.98.9.p7] Building Tachyon Parallel Ray Tracing library
[tachyon-0.98.9.p7] Copyright 1994-2007, John E. Stone
[tachyon-0.98.9.p7] All Rights Reserveed
[tachyon-0.98.9.p7] Making architecture directory ../compile/macosx
[tachyon-0.98.9.p7] Making library directory ../compile/macosx/libtachyon
[tachyon-0.98.9.p7] make ../compile ../compile/macosx ../compile/macosx/libtachyon ../compile/macosx/libtachyon.a ../compile/macosx/tachyon
[tachyon-0.98.9.p7] make[7]: Nothing to be done for `../compile'.
[tachyon-0.98.9.p7] make[7]: Nothing to be done for `../compile/macosx'.
[tachyon-0.98.9.p7] make[7]: Nothing to be done for `../compile/macosx/libtachyon'.
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/api.c -o ../compile/macosx/libtachyon/api.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/apigeom.c -o ../compile/macosx/libtachyon/apigeom.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/box.c -o ../compile/macosx/libtachyon/box.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/global.c -o ../compile/macosx/libtachyon/global.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/hash.c -o ../compile/macosx/libtachyon/hash.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/parallel.c -o ../compile/macosx/libtachyon/parallel.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/threads.c -o ../compile/macosx/libtachyon/threads.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/camera.c -o ../compile/macosx/libtachyon/camera.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/render.c -o ../compile/macosx/libtachyon/render.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/trace.c -o ../compile/macosx/libtachyon/trace.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/grid.c -o ../compile/macosx/libtachyon/grid.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/intersect.c -o ../compile/macosx/libtachyon/intersect.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/sphere.c -o ../compile/macosx/libtachyon/sphere.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/plane.c -o ../compile/macosx/libtachyon/plane.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/ring.c -o ../compile/macosx/libtachyon/ring.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/triangle.c -o ../compile/macosx/libtachyon/triangle.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/cylinder.c -o ../compile/macosx/libtachyon/cylinder.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/quadric.c -o ../compile/macosx/libtachyon/quadric.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/extvol.c -o ../compile/macosx/libtachyon/extvol.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/vol.c -o ../compile/macosx/libtachyon/vol.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/ui.c -o ../compile/macosx/libtachyon/ui.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/util.c -o ../compile/macosx/libtachyon/util.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/vector.c -o ../compile/macosx/libtachyon/vector.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/shade.c -o ../compile/macosx/libtachyon/shade.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/texture.c -o ../compile/macosx/libtachyon/texture.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/coordsys.c -o ../compile/macosx/libtachyon/coordsys.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/imap.c -o ../compile/macosx/libtachyon/imap.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/light.c -o ../compile/macosx/libtachyon/light.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/imageio.c -o ../compile/macosx/libtachyon/imageio.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/jpeg.c -o ../compile/macosx/libtachyon/jpeg.o
[tachyon-0.98.9.p7] gcc -Os -ffast-math -DBsd -DUSEPNG -I/Users/Latisp/github/sage/local/include -c ../src/pngfile.c -o ../compile/macosx/libtachyon/pngfile.o
[tachyon-0.98.9.p7] ../src/pngfile.c:33:10: fatal error: 'png.h' file not found
[tachyon-0.98.9.p7] #include "png.h" /* the libpng library headers */
[tachyon-0.98.9.p7] ^~~~~~~
[tachyon-0.98.9.p7] 1 error generated.
[tachyon-0.98.9.p7] make[7]: *** [../compile/macosx/libtachyon/pngfile.o] Error 1
[tachyon-0.98.9.p7] make[6]: *** [all] Error 2
[tachyon-0.98.9.p7] make[5]: *** [macosx] Error 2
[tachyon-0.98.9.p7] *************************************************************************************************************************************************************************************
[tachyon-0.98.9.p7] Error building tachyon-0.98.9.p7
[tachyon-0.98.9.p7] *************************************************************************************************************************************************************************************
[tachyon-0.98.9.p7]
[tachyon-0.98.9.p7] real 0m5.091s
[tachyon-0.98.9.p7] user 0m3.581s
[tachyon-0.98.9.p7] sys 0m1.254s
[tachyon-0.98.9.p7] ************************************************************************
[tachyon-0.98.9.p7] Error installing package tachyon-0.98.9.p7
[tachyon-0.98.9.p7] ************************************************************************
[tachyon-0.98.9.p7] Please email sage-devel (
http://groups.google.com/group/sage-devel)
[tachyon-0.98.9.p7] explaining the problem and including the log files
[tachyon-0.98.9.p7] /Users/Latisp/github/sage/logs/pkgs/tachyon-0.98.9.p7.log
[tachyon-0.98.9.p7] and
[tachyon-0.98.9.p7] /Users/Latisp/github/sage/config.log
[tachyon-0.98.9.p7] Describe your computer, operating system, etc.
[tachyon-0.98.9.p7] If you want to try to fix the problem yourself, *don't* just cd to
[tachyon-0.98.9.p7] /Users/Latisp/github/sage/local/var/tmp/sage/build/tachyon-0.98.9.p7 and type 'make' or whatever is appropriate.
[tachyon-0.98.9.p7] Instead, the following commands setup all environment variables
[tachyon-0.98.9.p7] correctly and load a subshell for you to debug the error:
[tachyon-0.98.9.p7] (cd '/Users/Latisp/github/sage/local/var/tmp/sage/build/tachyon-0.98.9.p7' && '/Users/Latisp/github/sage/sage' --buildsh)
[tachyon-0.98.9.p7] When you are done debugging, you can type "exit" to leave the subshell.
[tachyon-0.98.9.p7] ************************************************************************
make[4]: *** [tachyon-SAGE_LOCAL-no-deps] Error 1
make[3]: *** [/Users/Latisp/github/sage/local/var/lib/sage/installed/tachyon-0.98.9.p7] Error 2