[Scons-users] Picking up gfortran

Christopher Dimech dimech.christopher at gmail.com
Wed May 20 18:29:23 EDT 2015


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> 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 listScons-users at scons.orghttps://pairlist4.pair.net/mailman/listinfo/scons-users
>
>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>


-- 
Christopher Dimech
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20150520/0a220506/attachment.html>


More information about the Scons-users mailing list