GEOS-ESM / GEOSgcm

GEOS Earth System Model GEOSgcm Fixture
Apache License 2.0
36 stars 13 forks source link

Ninja build of GEOSgcm breaks under Ninja #745

Open mathomp4 opened 10 months ago

mathomp4 commented 10 months ago

In trying out the Ninja build of GEOSgcm, the following error is emitted:

ninja: error: build.ninja:111198: multiple rules generate src/Components/@GEOSgcm_GridComp/GEOSwgcm_GridComp/GEOSwavewatch_GridComp/ww3_multi_esmf/constants.F90

I'll try and figure this out as I'm not sure what it's complaining about. I do not see it being generated more than once.

mathomp4 commented 10 months ago

I might need to consult with @adarmenov as he knows what's happening underneath. My current guess is we need some interesting CMake flag.

Though, IIRC, Wavewatch will soon fix their code to be less weird to build, so this might be moot.

adarmenov commented 10 months ago

Could it be an I/O race condition?

mathomp4 commented 10 months ago

Could it be an I/O race condition?

@adarmenov Probably not. Ninja itself is saying that more than one things in the build is providing it. Once I get some free time I'll take a look. Always fun searching through a 100000+ line long file! 😄