[Scons-users] Picking up gfortran
Damien
damien at khubla.com
Wed May 20 18:44:07 EDT 2015
Try pulling that line out completely. We don't use it and ours works.
On 2015-05-20 4:41 PM, Christopher Dimech wrote:
> Should I keep the
>
> tools=['default','gfortran'],
>
> as I will nod be picking the usual gfortran
>
> On 20 May 2015 at 23:37, Damien <damien at khubla.com
> <mailto:damien at khubla.com>> wrote:
>
> I don't actually know (can't remember). When we originally set up
> the Fortran part of our build (back in 2009), we named the paths
> and compilers explicitly because that was the only way we could
> get Win/Lin/OSX to build properly. Since then we only update
> compiler versions and names, and leave the rest of the setup
> as-is, because it works.
>
> On 2015-05-20 4:29 PM, Christopher Dimech wrote:
>> The solution you provided did work but only when I use
>>
>> tools=['default','gfortran'],
>>
>> What is happening here?
>>
>>
>> On 20 May 2015 at 23:18, Damien <damien at khubla.com
>> <mailto:damien at khubla.com>> wrote:
>>
>> You might have to specify the full path to the compiler and
>> linker in the environment.
>>
>> env = Environment (
>> ENV = {'PATH' : path},
>> tools=['default','gfortran5'],
>> FORTRAN='/home/cdi/Local/gcc-5-20150201/bin/gfortran5'
>> FORTRANFLAGS='-ffree-form -g -J./build/lib
>> -fdiagnostics-color -Wall',
>> LINK='/home/cdi/Local/gcc-5-20150201/bin/gfortran5',
>> LINKFLAGS='-g'
>> )
>>
>> Damien
>>
>>
>> On 2015-05-20 4:00 PM, Christopher Dimech wrote:
>>> I have installed gfortran in the path
>>>
>>> /home/cdi/Local/gcc-5-20150201/bin
>>>
>>> I renamed gfortran to gfortrae5 so it would not clash with
>>> the one in /usr/bin
>>>
>>> However scons is giving me the error message
>>>
>>> EnvironmentError: No tool named 'gfortran5': not a Zip file:
>>> File
>>> "/media/ios120/cdi/resip/scien/devbr/gbehistun/sct_larsa_core.py",
>>> line 34:
>>>
>>> I have been using
>>>
>>> path = ['/bin', '/usr/bin',
>>> '/home/cdi/Local/gcc-5-20150201/bin']
>>>
>>> env = Environment (
>>> ENV = {'PATH' : path},
>>> tools=['default','gfortran5'],
>>> FORTRANFLAGS='-ffree-form -g -J./build/lib
>>> -fdiagnostics-color -Wall',
>>> LINK='gfortran5',
>>> LINKFLAGS='-g'
>>> )
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Christopher Dimech
>>>
>>>
>>> _______________________________________________
>>> Scons-users mailing list
>>> Scons-users at scons.org <mailto:Scons-users at scons.org>
>>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
>>
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org <mailto:Scons-users at scons.org>
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
>>
>>
>>
>> --
>> Christopher Dimech
>>
>>
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org <mailto:Scons-users at scons.org>
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org <mailto:Scons-users at scons.org>
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>
>
>
> --
> Christopher Dimech
>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20150520/c76038cc/attachment-0001.html>
More information about the Scons-users
mailing list