why doesn't llvm-gcc compile fortran?

have tried to compile cosmic nastran on MAC, but always run into problems. using llvm-gcc(xcode 6.2) I get "-x f95" as unrecognized language. does this mean that fortran is not supported in Xcode?


I downloaded gfortran 4.8.2 and compiled. gfortran recognized only fortran 90/95 and did get past intrinsic function differences. However, loader (ld) couldn't find library "lcrt1.o". I got past this by soft linking crt3.o in the gcc library and naming crt1.o in /usr/local/lib. Now can't find library "-lgcc_s.10.4". Tried using "-why_load" option on loader, but not recognized.


Using gcc(in usr/local/bin) directly doesn't work either.


Doesn't anyone use Fortran on a MAC?


Any suggestions?

Hello lesl1,

The Mac is increasingly headed towards being a pure consumer device. You aren't going to find many developers who compile anything other than iOS code on a Mac.


I suggest you try running your Fortran program via Linux in Docker.

You may have a look here :


https : / / www.webmo.net/support/fortran_osx.html

Look here for link for apple style installers for gfortran: https://gcc.gnu.org/wiki/GFortranBinaries#MacOS

why doesn't llvm-gcc compile fortran?
 
 
Q