diff --git a/math/R/Portfile b/math/R/Portfile index 81910cd23a0f9..fdc7928acc004 100644 --- a/math/R/Portfile +++ b/math/R/Portfile @@ -48,7 +48,8 @@ compiler.blacklist-append {macports-clang-1[7-9]} # Similarly, for gcc select the gcc13 variant of the compilers PG. # This setting should also be kept in sync with that in the R Portgroup. # Updates should be coordinated with the R maintainers. -# NOTE: upon the update to gcc14, please add a blacklist of newer gccs, +compiler.blacklist-append {macports-gcc-1[4-9]} +# NOTE: upon the update to gcc14, please update the blacklist accordingly, # like it is done for clangs. We would prefer using the same version of gcc and gfortran. if {${os.platform} eq "darwin" && ${os.major} < 10} { # Until old platforms are switched to the new libgcc. @@ -56,6 +57,10 @@ if {${os.platform} eq "darwin" && ${os.major} < 10} { } else { default_variants-append +gcc13 } +# When switching to gcc14, make sure to add this flag when gcc is used +# as the primary compiler: -Wno-error=incompatible-pointer-types +# devQuartz.c:3049:35: error: passing argument 2 of 'CGContextSetFont' +# from incompatible pointer type [-Wincompatible-pointer-types] compilers.choose fc f77 compilers.setup require_fortran