Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[photran] Re gfortran | Re: photran Digest, Vol 85, Issue 5

Hi Greg,

I tried multiple times with the plist file, and it doesn't help. I added the output of 'echo $PATH' to the plist, I checked many times that the file resides in and is called

/Users/<myshortname>/.MacOSX/environment.plist

and I restarted eclipse accordingly.

However, when I go to the project settings (cmd-I), go to 'Fortran Build' -- 'Environment', and add an environment variable called 'PATH' with the same path as in the environment.plist file, it works. Somehow this smells for me like something is wrong with/in the plist fileā€¦ I can't seem to figure it out right now, but it works at least.

Building, and running (both in release and in debug states) works.

However, setting breakpoints is greyed out (toggle, add, enable, properties of breakpoints) when I right click on the gutter. Do you have a suggestion why this might be and how to make breakpoints work?

Thanks again for your help,

Cheers,
Claus



On Sep 14, 2012, at 6:00 PM, photran-request@xxxxxxxxxxx wrote:
> Message: 2
> Date: Fri, 14 Sep 2012 08:06:49 -0400
> From: Greg Watson <g.watson@xxxxxxxxxxxx>
> To: Photran Information <photran@xxxxxxxxxxx>
> Subject: Re: [photran] gfortran | Re: photran Digest, Vol 85, Issue 4
> Message-ID: <269AF089-2969-4BB2-8B2D-6F39CCFA6560@xxxxxxxxxxxx>
> Content-Type: text/plain; charset="windows-1252"
> 
> Hi Claus,
> 
> The path should be identical to the path you see when you run the command 'echo $PATH' in your shell. There should not be spaces at either end.
> 
> Also, make sure the file is called "environment.plist" and is in the directory .MacOSX
> 
> See this FAQ entry: http://wiki.eclipse.org/PTP/FAQ#Q:_Eclipse_doesn.27t_seem_to_find_commands_for_.5Bcompiler.2C_make.2C_?.5D
> 
> If this still does not work, you can add a PATH environment variable on the Environment tab in the C/C++ Build properties for the project. Again, the path must be exactly the same as the path you're using for your shell.
> 
> Regards,
> Greg
> 
> On Sep 14, 2012, at 2:29 AM, Claus wrote:
> 
>> I am still trying to build a simple fortran project within photran.
>> I followed the approach suggested by Greg and I created a plist file which resides in ~/.MacOSX
>> 
>> This is what's in it:
>> 
>> 
>> <?xml version="1.0" encoding="UTF-8"?>
>> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
>> <plist version="1.0">
>> <dict>
>>       <key>PATH</key>
>>       <string> /usr/local/bin/gfortran </string>
>> </dict>
>> </plist>
>> 
>> 
>> I tried it with various combinations of spaces around the gfortran path and restarted eclipse each time. However, the same error persists:
>> 08:25:01 **** Incremental Build of configuration Release for project EDK ****
>> make all 
>> Building file: ../edk.f90
>> /bin/sh: gfortran: command not found
>> make: *** [edk.o] Error 127
>> Invoking: GNU Fortran Compiler
>> gfortran -funderscoring -O3 -Wall -c -fmessage-length=0 -o "edk.o" "../edk.f90"
>> 
>> 08:25:01 Build Finished (took 146ms)
>> 
>> 
>> Following the approach in the tutorial, I created one simple fortran file, edk.for within a fortran project. The build of the project fails.
>> 
>> Doe anybody have further suggestions?
>> 
>> Is gfortran a preferred compiler with photran? Are there other (preferably open source) options?
>> 
>> Thanks for your help!
>> 
>> Cheers,
>> Claus
>> 
>> 
>> 
>> 
>> On Sep 13, 2012, at 6:00 PM, photran-request@xxxxxxxxxxx wrote:
>> [?]
>>> Message: 2
>>> Date: Thu, 13 Sep 2012 08:10:19 -0400
>>> From: Greg Watson <g.watson@xxxxxxxxxxxx>
>>> To: Photran Information <photran@xxxxxxxxxxx>
>>> Subject: Re: [photran] gfortran
>>> Message-ID: <0381CBAD-0B24-4E22-BBBF-A25447F3CFD1@xxxxxxxxxxxx>
>>> Content-Type: text/plain; charset=us-ascii
>>> 
>>> Claus,
>>> 
>>> In your home directory, create the directory .MacOSX (the dot at case are important). In this directory, create a file called environment.plist containing the following:
>>> 
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
>>> <plist version="1.0">
>>> <dict>
>>>       <key>PATH</key>
>>>       <string>your shell path include the path to gfortran</string>
>>> </dict>
>>> </plist>
>>> 
>>> Quit out of Eclipse and restart. 
>>> 
>>> Regards,
>>> Greg
>>> 
>>> 
>>> On Sep 12, 2012, at 3:46 AM, Claus wrote:
>>> 
>>>> Hi,
>>>> 
>>>> I am running OS 10.8.1
>>>> Eclipse 4.2.0
>>>> Photran 8.0.1
>>>> 
>>>> in Terminal, i can compile fortran code using gfortran (GNU Fortran (GCC) 4.2.3)
>>>> 
>>>> After I follow the steps outlined here
>>>> Starting a New Project
>>>> using an auto generated makefile
>>>> 
>>>> I end up getting this error:
>>>> 
>>>> 
>>>> 09:35:33 **** Build of configuration Release for project EDK ****
>>>> make all 
>>>> Building file: ../edk.f90
>>>> Invoking: GNU Fortran Compiler
>>>> gfortran -funderscoring -O3 -Wall -c -fmessage-length=0 -o "edk.o" "../edk.f90"
>>>> /bin/sh: gfortran: command not found
>>>> make: *** [edk.o] Error 127
>>>> 
>>>> 
>>>> 
>>>> - I made sure to check the related faq entries (http://bit.ly/Q1tI0B): I chose Mach-O (obsolete) and Mach-O64 -- the same error occurs regardless and there are no spaces in my workspace
>>>> 
>>>> - in terminal I switched to /bin/sh and I can execute fortran just fine
>>>> 		computername:~ username$ /bin/sh
>>>> 		sh-3.2$ gfortran
>>>> 		i686-apple-darwin8-gfortran-4.2: no input files
>>>> 		sh-3.2$ 
>>>> 
>>>> 
>>>> 
>>>> What could the problem be?
>>>> Thanks for your help!
>>>> 
>>>> Cheers,
>>>> Claus
>>>> _______________________________________________
>>>> photran mailing list
>>>> photran@xxxxxxxxxxx
>>>> https://dev.eclipse.org/mailman/listinfo/photran
>>> 
>> 
>> _______________________________________________
>> photran mailing list
>> photran@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/photran
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <https://dev.eclipse.org/mailman/private/photran/attachments/20120914/975dceb3/attachment.html>
> 
> ------------------------------
> 
> _______________________________________________
> photran mailing list
> photran@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/photran
> 
> 
> End of photran Digest, Vol 85, Issue 5
> **************************************



Back to the top