[R-SIG-Mac] gfortran and macos 27

Peter Dalgaard pd@|gd @end|ng |rom gm@||@com
Fri Oct 2 14:39:21 CEST 2026


Argh! Something seems to believe that "config . site" is a website and tries to be helpful, unsuccessfully ... 
I assume you got the picture anyway.

-pd

> On 2 Oct 2026, at 13.43, Peter Dalgaard <pdalgd using gmail.com> wrote:
> 
> Hi Erich, long time no see.
> 
> This is Apple playing numbers games with their versions combined with gfortran thinking it can get the OS version by subtracting 9 from the kernel version.
> 
> In short: To set gfortran back on tracks, add the following to your configuration (using config.site <http://config.site/>, or whichever mechanism you prefer):
> 
> FFLAGS=-mmacosx-version-min=26.0
> 
> (AFAIR 27.0 also works.)
> 
> Also notice that Simon is pushing the development version towards using flang instead of gfortran. See his note from 2026-09-21 on this list.
> 
> Best,
> Peter
> 
>> On 2 Oct 2026, at 12.47, Erich Neuwirth <erich.neuwirth using univie.ac.at> wrote:
>> 
>> I recently upgraded to MacOS 27 and nw I have problems compiling packages from source needing gfortran.
>> 
>> I get 
>> clang: error: invalid version number in '-mmacosx-version-min=18.0'
>> make: *** [qapsim.o] Error 1
>> ERROR: compilation failed for package ‘qap’
>> 
>> I tried with gfortran vetsion 14.0.2 from 
>> https://github.com/R-macos/gcc-14-branch/releases/tag/gcc-14.2-darwin-r2.1
>> 
>> and with Fortran 16.2.0 from home-brew
>> 
>> Is there a workaround?
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac using r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> 
> -- 
> Peter Dalgaard, Professor,
> Center for Statistics, Copenhagen Business School
> Solbjerg Plads 3, 2000 Frederiksberg, Denmark
> Office: A 4.23
> Email: pd.mes using cbs.dk  Priv: PDalgd using gmail.com
> 

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Office: A 4.23
Email: pd.mes using cbs.dk  Priv: PDalgd using gmail.com



More information about the R-SIG-Mac mailing list