Hi,
i'm trying to build the beta version. First please rename the directory inside of the tar file
to correspond to the tarfile name: Nwchem-6.6 -> Nwchem-6.6.revision27645-src.2015-09-30.
Changing the dir name inside of the tar file (my subjective feeling is: at almost every release)
breaks automatic build scripts in Fedora.
I need help in debugging the following problem, for the 32-bit build on CentOS 6.
It's a clean build, and I'm not applying any patches:
gfortran -c -m32 -march=pentium4 -mtune=pentium4 -g -g -O0 -I. -I/usr/include/openmpi-i386 -I/builddir/build/BUILD/Nwchem-6.6.revision27645-src.2015-09-30/src/include -I/usr/include/openmpi-i386 -DLINUX -DGFORTRAN -DCHKUNDFLW -DGCC4 -DPARALLEL_DIAG -DNEED_LOC -DNOFSCHECK -DJOBTIMEPATH=\"/builddir/build/BUILD/Nwchem-6.6.revision27645-src.2015-09-30/bin/LINUX\" -DNWCHEM_LONG_PATHS -DNWCHEM_SRCDIR="\"/builddir/build/BUILD/Nwchem-6.6.revision27645-src.2015-09-30/src\"" -DBYTE_SHORT_PACKING -DBYTE_SHORT_PACKING util_nwchem_version.F
make[1]: *** No rule to make target `/builddir/build/BUILD/Nwchem-6.6.revision27645-src.2015-09-30/lib/LINUX/libnwcutil.a(util_ga_version.o)', needed by `/builddir/build/BUILD/Nwchem-6.6.revision27645-src.2015-09-30/lib/LINUX/libnwcutil.a'. Stop.
make: *** [libraries] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.9w4Bji (%build)
Note that due to packaging requirements on Fedora Nwchem is built against ga available on Fedora
and maintained by David Brown: http://pkgs.fedoraproject.org/cgit/ga.git/
This is done by simply removing the tools source directory and related information in the rpmbuild spec file,
before starting the Nwchem compilation:
m -rf src/tools
sed -i "/^include.*makecoms\.h/d" src/GNUmakefile
sed -i "/^include.*makemp\.h/d" src/GNUmakefile
sed -i "/.*-C tools configure_ga$/d" src/GNUmakefile
sed -i "s/NW_CORE_SUBDIRS = tools/NW_CORE_SUBDIRS =/" src/config/makefile.h
sed -i "s|INCPATH =.*|INCPATH = -I\$(MPI_INCLUDE)|" src/config/makefile.h
sed -i "s|-lga -larmci|-L\$(MPI_LIB) -lga -larmci|" src/config/makefile.h
The full Nwchem build log is available at https://kojipkgs.fedoraproject.org//work/tasks/4950/11294950/build.log
|