metomi / fab

Flexible build system for scientific software

Home Page:https://metomi.github.io/fab/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing complier output

bblay opened this issue · comments

In v0.10.b (PyPI 0.10.0)

The call to copy a freshly made mod file to the prebuild folder is failing because the file doesn't exist. There's also no object file.

This seems "impossible" because the compiler tool was just run without error. The single build script consistently works with some parameters and fails with others (mpi).

As part of this fix, we should also wrap the copy calls in a try because currently if they raise an error we don't get errors from all the other files in that pass.

This was caused by the intel config missing -module before the $output. The gfortran config worked because it had the -J equivalent.

The latest verison of Fab knows about these two compilers and some of their flags, and will add the -J $output or -module $output if omitted.