some patches do not apply cleanly against Nwchem-6.6.revision27746-src.2015-10-20


Gets Around
Hi,

do patches need to be applied in a specific order?
I'm running the following:


patches="Tddft_mxvec20.patch.gz Tools_lib64.patch.gz Config_libs66.patch.gz Cosmo_meminit.patch.gz Sym_abelian.patch.gz Xccvs98.patch.gz Dplot_tolrho.patch.gz Driver_smalleig.patch.gz Ga_argv.patch.gz Raman_displ.patch.gz Ga_defs.patch.gz Zgesvd.patch.gz Cosmo_dftprint.patch.gz Txs_gcc6.patch.gz Gcc6_optfix.patch.gz"
for patch in $patches;
do
    if ! test -f $patch;
    then
        wget -q http://nwchemgit.github.io/download.php?f=$patch -O $patch
    fi
done
if ! test -f Nwchem-6.6.revision27746-src.2015-10-20.tar.gz;
then
    wget -q http://nwchemgit.github.io/download.php?f=Nwchem-6.6.revision27746-src.2015-10-20.tar.gz -O Nwchem-6.6.revision27746-src.2015-10-20.tar.gz
fi
rm -rf nwchem-6.6
tar zxf Nwchem-6.6.revision27746-src.2015-10-20.tar.gz
cd nwchem-6.6
for patch in $patches;
do
    echo $patch
    gunzip -c ../$patch | patch -p0
done



with this output:


Tddft_mxvec20.patch.gz
patching file QA/tests/tddft_h2o_mxvc20/tddft_h2o_mxvc20.nw
patching file QA/tests/tddft_h2o_mxvc20/tddft_h2o_mxvc20.out
patching file QA/tests/tddft_h2o_uhf_mxvc20/tddft_h2o_uhf_mxvc20.nw
patching file QA/tests/tddft_h2o_uhf_mxvc20/tddft_h2o_uhf_mxvc20.out
Tools_lib64.patch.gz
patching file src/config/makefile.h
Config_libs66.patch.gz
patching file src/config/makefile.h
Hunk #1 succeeded at 2258 (offset 1 line).
Hunk #2 succeeded at 2283 (offset 1 line).
Hunk #3 succeeded at 2433 (offset 1 line).
Cosmo_meminit.patch.gz
patching file src/solvation/hnd_cosmo_lib.F
Sym_abelian.patch.gz
patching file src/symmetry/sym_abelian.F
Xccvs98.patch.gz
patching file src/nwdft/xc/xc_cvs98.F
Dplot_tolrho.patch.gz
patching file src/dplot/dplot_input.F
patching file src/dplot/dplot_dump.F
Driver_smalleig.patch.gz
patching file src/driver/opt_drv.F
Hunk #1 succeeded at 1598 (offset -43 lines).
Ga_argv.patch.gz
patching file src/tools/ga-5-4/gaf2c/gaf2c.c
patching file src/tools/ga-5-4/tcgmsg/fapi.c
Raman_displ.patch.gz
patching file src/property/raman_input.F
patching file src/property/task_raman.F
patching file src/property/raman.F
Ga_defs.patch.gz
patching file src/util/util_mpinap.c
patching file src/util/util_getppn.c
Zgesvd.patch.gz
patching file src/64to32blas/xgesvd.F
patching file src/64to32blas/GNUmakefile
patching file src/config/data.64_to_32
Cosmo_dftprint.patch.gz
patching file src/nwdft/scf_dft/dft_scf.F
Txs_gcc6.patch.gz
patching file src/NWints/texas/assemblx.f
patching file src/NWints/texas/derivat.f
patching file src/NWints/texas/gencon.f
patching file src/NWints/texas/shells.f
patching file src/NWints/texas/zeroint.f
Gcc6_optfix.patch.gz
patching file src/config/makefile.h
Hunk #1 succeeded at 1565 (offset -29 lines).
Hunk #2 FAILED at 1989.
1 out of 2 hunks FAILED -- saving rejects to file src/config/makefile.h.rej



In the past we had snapshot releases available. They were more convenient to test the current development version of nwchem than applying patches.

Forum Vet
Thanks for notifying the problem with Gcc6_optfix.patch.gz
The new updated file should apply cleanly.


Forum >> NWChem's corner >> Compiling NWChem