Cross compiling fox lib issue
When cross compiling (broadwell login node, KNL compute node), the configuration of fox fails.
export FCFLAGS="$(F90FLAGS)"
propagates the cross compiling setting (-xMIC-AVX512) and then fox configure tries to verify the compiler and failed. The change was introduced
commit b60d563cfa237612ab14809dd0957f51fd9b85f6
Author: Pietro Bonfa <p.bonfa@nospam.com>
Date: Thu Apr 5 09:56:10 2018 +0200
Patch from Pietro Delugas fixing propagation of FFLAGS for FoX
Please explain why FFLAGS needs to be propagated. I assume FoX doesn't need MPI and optimizatin flag doesn't matter.
A rigorous cross-compiling is way more complicated to handle for example Power7 and BGQ. I don't think we need to provide this. However, Xeon + Xeon phi or old Xeon on login + new Xeon on compute is very common. A good support is needed.
Since a build for the old processor can run on newer ones. As a simple fix, I'd like to just remove the flag propagation.
Edited by Ye Luo