Parallel build fails with "f951: Fatal Error: Can't rename module file cgns.mod0' to 'cgns.mod'"

Description

This is probably due to using:

cgns_f.F90 instead of $<TARGET_OBJECTS:cgns_f2c> in

https://github.com/CGNS/CGNS/blob/3db2f22f11223e9f0bd9f7a369f68415671a6a42/src/CMakeLists.txt#L562

See also:
https://github.com/Unidata/netcdf-fortran/issues/64
https://gitlab.kitware.com/cmake/cmake/issues/17525

This can be worked around by building with "-j1".

Environment

None

Activity

Show:
Mickael PHILIT
April 4, 2020, 7:27 AM
Edited

On which OS/System is the build being done ? Compiler name and version ?

With too few information this can’t be considered a bug.

I can’t reproduce error message when I do:

on linux64/version 4.19 with gcc 8.3.0

Assignee

CGNS org [Administrator]

Reporter

Anonymous

Components

Fix versions

Affects versions

Priority

Minor
Configure