Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] Photran on OS X Yosemite not operating

More information.

The issue appears to be gfortran on Yosemite.

Running gfortran from the terminal window (so independent of Eclipse) I get these errors on a trivial, 1 line program:

gfortran: warning: couldn’t understand kern.osversion ‘14.0.0
ld: library not found for -lcrt1.o
collect2: error: ld returned 1 exit status

Suggestions?

Bernard



On Oct 22, 2014, at 10:46 AM, Bernard Abramson <bernard.abramson@xxxxxxxxx> wrote:

Update:

By explicitly including the path to gfortran at Project > Properties > Fortran Build > Settings > GNU Fortran Compiler >Tool Settings I can get gfortran to run but even on a simple “Hello world” program I get this:

10:45:40 **** Build of configuration Release for project Fortran test on OSX10.10 ****
make all 
Building file: ../Helloworld.f95
Invoking: GNU Fortran Compiler
/usr/local/gfortran/bin/gfortran -funderscoring -O0 -Wall -c -fmessage-length=0 -o "Helloworld.o" "../Helloworld.f95"
make: *** [Helloworld.o] Segmentation fault: 11

Any thoughts appreciated.

Bernard


On Oct 21, 2014, at 10:13 PM, Bernard Abramson <bernard.abramson@xxxxxxxxx> wrote:

Each time Apple releases a new version of OS X I find that Eclipse Photran ceases to run correctly.  I installed Yosemite (OS X 10.10) today and Eclipse (Luna) cannot find gfortran in usr/local/gfortran/bin.

I have tried the following:

1. setting the PATH to include usr/local/gfortran/bin in MacOSX/environment.plist
2. opening a terminal window, setting the PATH as above then running Eclipse

without success.  Both methods worked in OS X 10.9.

Any suggestions?

Bernard Abramson



Back to the top