[Scons-users] TypeError: File found where directory expected.:

Gary Oberbrunner garyo at oberbrunner.com
Sun Nov 26 10:27:11 EST 2017


I doubt you want this line:
  src_dir = 'lib/core/central.f',
probably remove the "central.f" filename.

-- Gary

On Sun, Nov 26, 2017 at 5:01 AM, Christopher Dimech <dimech at gmx.com> wrote:

> Dear Scons Users
>
> I am trying to build a test for my fortran module and I am
> getting the following error. I can figure out how to solve
> this problem yet. Can anybody help with this problem, if you
> please?
>
> path = ['/bin', '/usr/bin', '/usr/local/bin']
>
> env = Environment (
>   ENV = {'PATH' : path},
>   FORTRAN='/home/hagbard/spack/gcc/gcc-8-20171119/bin/gfortran',
>   FORTRANFLAGS='-ffree-form -J./build/lib -Wall -fdiagnostics-color -g
> -pg',
>   LINK='gfortran',
>   LINKFLAGS='-g'
> )
>
> env.VariantDir (
>   variant_dir = 'build/lib/core',
>   src_dir = 'lib/core/central.f',
>   duplicate = 0
> )
>
> env.VariantDir (
>   variant_dir = 'build/lib/captests/scout--core',
>   src_dir = 'lib/captests/scout--core/inspect--central.f',
>   duplicate = 0
> )
>
> sources = [
>   'build/lib/core/central.f',
>   'build/lib/captests/scout--core/inspect--central.f'
> ]
>
> # Constructs object files without the .mod
> allobjs = env.Object (sources)
> objs = filter (lambda o: str(o)[-4:] != '.mod', allobjs)
>
> env.Program (
>   target = 'bin/cap/scout--core--central.exec',
>   source = objs
> )
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>



-- 
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20171126/8cea81d2/attachment.html>


More information about the Scons-users mailing list