[Scons-users] SCons ignoring FORTRANPATH
Tom Cook
tom.k.cook at gmail.com
Wed Sep 24 20:21:05 EDT 2014
Hi Dirk,
Renaming is a trifle difficult, but I've set up a separate test
environment and no, the spaces don't seem to be the problem. See the
attached files for an example that fails without spaces in names.
As for other information:
$ scons --version
SCons by Steven Knight et al.:
script: v2.3.0, 2013/03/03 09:48:35, by garyo on reepicheep
engine: v2.3.0, 2013/03/03 09:48:35, by garyo on reepicheep
engine path: ['/usr/lib/scons/SCons']
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
2010, 2011, 2012, 2013 The SCons Foundation
$ python --version
Python 2.7.6
The system is Ubuntu 14.04 amd64, in case that makes a difference.
Regards,
Tom
On Wed, Sep 24, 2014 at 4:55 PM, Dirk Bächle <tshortik at gmx.de> wrote:
> Hi Tom,
>
> On 24.09.2014 09:00, Tom Cook wrote:
>>
>> Hi,
>>
>> I have a SCons build which includes a number of Fortran modules. For
>> at least some of these modules, the FORTRANPATH variable seems to be
>> ignored. The output of env.Dump() is shown at the end of this email,
>> showing a number of directories listed in FORTRANPATH; however, when
>> trying to build a Fortran source file, this command-line is used:
>>
>> gfortran -o "Build/Linux/Product/Calculation/ProductSim
>> F/DTBWindInit.o" -c -cpp -ffixed-line-length-none
>> -ffree-line-length-none -fcoarray=single
>> "-JBuild/Linux/Product/Calculation/ProductSim F"
>> "Source/Product/Calculation/ProductSim F/DTBInit.f90"
>>
>> (note that the command-line has been anonymised slightly for
>> commercial reasons).
>>
>> What could cause this?
>
> my first bet would be the space in your pathnames like
> "Linux/Product/Calculation/ProductSim F". Can you rename the folder(s) for
> testing only, and then try again without spaces?
>
> Apart from that, it would be good to know which version of SCons you're
> using at the moment. The Python version is also helpful sometimes...
>
> Best regards,
>
> Dirk
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SConstruct
Type: application/octet-stream
Size: 375 bytes
Desc: not available
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20140925/dec8d6fa/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.f90
Type: text/x-fortran
Size: 64 bytes
Desc: not available
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20140925/dec8d6fa/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test2.f90
Type: text/x-fortran
Size: 110 bytes
Desc: not available
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20140925/dec8d6fa/attachment-0001.bin>
More information about the Scons-users
mailing list