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

Christopher Dimech dimech at gmx.com
Sun Nov 26 05:01:43 EST 2017


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
)


More information about the Scons-users mailing list