I also had problems with Sage's gfortran package with OS X Catalina. I 
instead installed homebrew (https://brew.sh), and used homebrew to install 
their gcc package. This should install gfortran, which Sage will find as 
part of its configure process, thereby bypassing Sage's gfortran package. 
One benefit: Sage will never try to install gfortran again, which saves a 
good chunk of time. (Installing homebrew's gcc will also create 
/usr/local/bin/gcc-9.2.0 but not /usr/local/bin/gcc. It is important not to 
have /usr/local/bin/gcc, since Sage wants to use the pre-existing 
/usr/bin/gcc.)

  John


On Wednesday, October 30, 2019 at 1:57:03 PM UTC-7, Rob Gross wrote:
>
> Hi,
>
> I tried both upgrading to sage-8.9 and compiling from scratch, and both 
> times gfortran would not compile.  I cannot attach the entire log file 
> without an error.  I attach the first few lines and the last few lines, and 
> of course I can e-mail anyone with as much information as needed.
>
> Here is the first error message in the log file:
>
> libtool: compile:  
> /Users/gross/sage-8.9/local/var/tmp/sage/build/gfortran-7.4.0/gcc-build/./gcc/xgcc
>  
> -B/Users/gross/sage-8.9/local/var/tmp/sage/build/gfortran-7.4.0/gcc-build/./gcc/
>  
> -B/Users/gross/sage-8.9/local/x86_64-apple-darwin19.0.0/bin/ 
> -B/Users/gross/sage-8.9/local/x86_64-apple-darwin19.0.0/lib/ -isystem 
> /Users/gross/sage-8.9/local/x86_64-apple-darwin19.0.0/include -isystem 
> /Users/gross/sage-8.9/local/x86_64-apple-darwin19.0.0/sys-include 
> -DHAVE_CONFIG_H -I. -I../../../src/libssp -Wall -g -O2 -MT gets-chk.lo -MD 
> -MP -MF .deps/gets-chk.Tpo -c ../../../src/libssp/gets-chk.c  -fno-common 
> -DPIC -o .libs/gets-chk.o
> In file included from 
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/wait.h:110:0,
>                  from 
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:66,
>                  from ../../../src/libssp/gets-chk.c:39:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/resource.h:
>  
> In function 'getiopolicy_np':
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/resource.h:443:34:
>  
> error: expected declaration specifiers before '__OSX_AVAILABLE_STARTING'
>  int     getiopolicy_np(int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, 
> __IPHONE_2_0);
>                                   ^~~~~~~~~~~~~~~~~~~~~~~~
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/resource.h:449:39:
>  
> error: expected '=', ',', ';', 'asm' or '__attribute__' before 
> '__OSX_AVAILABLE_STARTING'
>  int     setiopolicy_np(int, int, int) 
> __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
>
> Any ideas?
>
> Thanks.--Rob
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/fd1fa9ea-024e-48a4-8b27-0991264dbc19%40googlegroups.com.

Reply via email to