SouthAfricaDigitalScience / quantum-espresso-deploy

The repository that contains the Quantum-Espresso deploy code. It builds and checks the QE binaries
Mozilla Public License 2.0
0 stars 3 forks source link

Wrong module version '10' (expected '0') for file 'iotk_base.mod' opened at (1) #2

Closed brucellino closed 9 years ago

brucellino commented 9 years ago

Since build 13, we're getting this error:

make[2]: Entering directory `/var/lib/jenkins/workspace/quantum-espresso-deploy/ARCH/x86_64/OS/sl6/SITE/generic/VERSION/5.1.3/quantum-espresso/S3DE/iotk/src'
/usr/lib64/openmpi/bin/mpif90 -O3 -g -x f95-cpp-input -D__ENVIRONMENT -D__GFORTRAN -D__STD_F95 -D__FFTW -D__MPI -D__PARA   -I../include  -c iotk_attr+CHARACTER1_0.f90
iotk_attr+CHARACTER1_0.f90:32.17:

    use iotk_base
                 1
Fatal Error: Wrong module version '10' (expected '0') for file 'iotk_base.mod' opened at (1)
make[2]: *** [iotk_attr+CHARACTER1_0.o] Error 1
make[2]: Leaving directory `/var/lib/jenkins/workspace/quantum-espresso-deploy/ARCH/x86_64/OS/sl6/SITE/generic/VERSION/5.1.3/quantum-espresso/S3DE/iotk/src'
make[1]: *** [libiotk] Error 2
make[1]: Leaving directory `/var/lib/jenkins/workspace/quantum-espresso-deploy/ARCH/x86_64/OS/sl6/SITE/generic/VERSION/5.1.3/quantum-espresso/install'
make: *** [libiotk] Error 2
Build step 'Execute shell' marked build as failure
Finished: FAILURE
brucellino commented 9 years ago

Looks like this can be fixed with a make clean. From http://www.quantum-espresso.org/wp-content/uploads/Doc/user_guide/node14.html#SECTION00037600000000000000

If you get error messages at the loading phase that look like file XYZ.o: unknown / not recognized/ invalid / wrong file type / file format / module version, one of the following things have happened: you have leftover object files from a compilation with another compiler: run make clean and recompile. make did not stop at the first compilation error (it may happen in some software configurations). Remove the file *.o that triggers the error message, recompile, look for a compilation error.