Grid
Grid copied to clipboard
cannot open source file "Version.h"
I am trying to build Grid on a cluster with BDW processors using Intel 2019.1.144 icpc and Mellanox HPC-X 2.4.0 (Open MPI 4.0.2a1). A similar build not so long ago succeeded.
I cloned the 'develop' branch:
[gerardo@clx-hercules-027 Grid]$ git branch
- develop
ran ./bootstrap.sh and configured it with ../configure --enable-precision=double --enable-simd=AVX2 --enable-comms=mpi3 --enable-mkl CXX=mpicxx --with-lime=/labhome/gerardo/lime_132_i18 --prefix=/labhome/gerardo/Grid_i191h240
make failed almost immediately due to non-existence of Version.h:
[gerardo@clx-hercules-027 build]$ make V=1 2>&1 | tee make_i191h240.log
Making all in Grid
make[1]: Entering directory /hpc/scrap/users/gerardo/Grid/build/Grid' make all-am make[2]: Entering directory
/hpc/scrap/users/gerardo/Grid/build/Grid'
depbase=echo util/version.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'
;
mpicxx -DHAVE_CONFIG_H -I. -I../../Grid -I/hpc/scrap/users/gerardo/Grid -march=core-avx2 -xcore-avx2 -I/labhome/gerardo/lime_132_i18/include -fopenmp -O3 -std=c++11 -MT util/version.o -MD -MP -MF $depbase.Tpo -c -o util/version.o ../../Grid/util/version.cc &&
mv -f $depbase.Tpo $depbase.Po
../../Grid/util/version.cc(2): catastrophic error: cannot open source file "Version.h"
#include "Version.h"
^
compilation aborted for ../../Grid/util/version.cc (code 4)
make[2]: *** [util/version.o] Error 4
make[2]: Leaving directory /hpc/scrap/users/gerardo/Grid/build/Grid' make[1]: *** [all] Error 2 make[1]: Leaving directory
/hpc/scrap/users/gerardo/Grid/build/Grid'
make: *** [all-recursive] Error 1
Here is the config.log file: config.log
I could not find a grid.config.summary file.
I have no idea where to find or how to generate the missing Version.h file.
I found a workaround, consisting in creating Grid/util/Version.h with a single line:
[gerardo@mngx-orion-01 Grid]$ cat Grid/util/Version.h #define GITHASH "c2c4252a07059b837804cc81507a017fe6064ede"
where the value for GITHASH was obtained from 'git show'.
@gcstoianowski thanks! That was really helpful.
I'm still getting this on develop
; I assume bootstrap.sh
is supposed to generate this file or something?