Hi,
I managed to find advice about compiling gcc and gfortran on Catalina (summary in a moment), and now I ran into another problem compiling sage from source (not upgrading). The attached log file shows the error message when I typed "make -j4" and watched the compilation nearly succeed. Any ideas about how to resolve this error?
As for compiling gfortran on Catalina: the recommendation (which worked for me) is to create a new directory which mostly contains soft links to the standard system files:
lrwxr-xr-x 1 root wheel 60 Oct 31 20:28 Library@ -> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/Library/
lrwxr-xr-x 1 root wheel 59 Oct 31 20:28 System@ -> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/
drwxr-xr-x 7 root wheel 224 Oct 31 20:29 usr/
and usr looks like:
lrwxr-xr-x 1 root wheel 60 Oct 31 20:28 bin@ -> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/bin/
drwxr-xr-x 270 root wheel 8640 Oct 31 20:31 include/
lrwxr-xr-x 1 root wheel 59 Oct 31 20:29 lib@ -> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib
lrwxr-xr-x 1 root wheel 64 Oct 31 20:29 libexec@ -> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/libexec/
lrwxr-xr-x 1 root wheel 62 Oct 31 20:29 share@ -> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/share/
Then I had to copy all of /Library.../include into my {new directory}/usr/include, and patch Availability.h following line 300:
...
#ifndef __OSX_AVAILABLE_STARTING
#define __OSX_AVAILABLE_STARTING(_osx, _ios)
#define __OSX_AVAILABLE_BUT_DEPRECATED(_osxIntro, _osxDep, _iosIntro, _iosDep)
#define __OSX_AVAILABLE_BUT_DEPRECATED_MSG(_osxIntro, _osxDep, _iosIntro, _iosDep, _msg)
#endif
#if defined(__has_feature)
...
Then "./configure gcc/gfortran --with-sysroot=new_dummy_directory" worked, at least for me.
Thanks, as always.--Rob