diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/gaussian-src/16-C.01-replace-deprecated-pgf77-with-pgfortran.patch')
-rw-r--r-- | var/spack/repos/builtin/packages/gaussian-src/16-C.01-replace-deprecated-pgf77-with-pgfortran.patch | 146 |
1 files changed, 146 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gaussian-src/16-C.01-replace-deprecated-pgf77-with-pgfortran.patch b/var/spack/repos/builtin/packages/gaussian-src/16-C.01-replace-deprecated-pgf77-with-pgfortran.patch new file mode 100644 index 0000000000..49e40693d7 --- /dev/null +++ b/var/spack/repos/builtin/packages/gaussian-src/16-C.01-replace-deprecated-pgf77-with-pgfortran.patch @@ -0,0 +1,146 @@ +From 6774eb8f9743977d7b3f52ea877c2c0ed6bc45f5 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tiziano=20M=C3=BCller?= <tiziano.mueller@chem.uzh.ch> +Date: Tue, 6 Oct 2020 17:47:26 +0200 +Subject: [PATCH 3/5] replace deprecated pgf77 with pgfortran + +--- + bsd/i386.make | 2 +- + bsd/l1.make | 2 +- + bsd/l9999.make | 2 +- + bsd/link.make | 2 +- + bsd/setup-make | 18 +++++++++--------- + bsd/tree.make | 4 ++-- + 6 files changed, 15 insertions(+), 15 deletions(-) + +diff --git a/bsd/i386.make b/bsd/i386.make +index c9cf696..759ed84 100644 +--- a/bsd/i386.make ++++ b/bsd/i386.make +@@ -138,7 +138,7 @@ I8FLAG = + R8FLAG = + MMODEL = + PGISTATIC = -Bstatic_pgi +-PGNAME = pgf77 ++PGNAME = pgfortran + GPUFLAG = $(GPUFLAG1) $(GPUFLAG2) $(GPUFLAG3) + RUNF77 = $(PGNAME) $(PGISTATIC) $(I8FLAG) $(R8FLAG) $(MMODEL) $(DEBUGF) $(SPECFLAG) $(GPUFLAG) + F2CLIB = +diff --git a/bsd/l1.make b/bsd/l1.make +index fe9897f..f041912 100644 +--- a/bsd/l1.make ++++ b/bsd/l1.make +@@ -16,7 +16,7 @@ SUN_FC = f95 -fast -xtypemap=real:64,double:64,integer:64 -xtarget=native -xarch + ALP_FC = f90 -O5 -transform_loops -omp -automatic -i8 -r8 -align dcommons \ + -tune host -trapuv -assume noaccuracy_sensitive -math_library fast \ + -reentrancy threaded +-LIN_FC = pgf77 -mp -Mnostdlib ++LIN_FC = pgfortran -mp -Mnostdlib + PGILIBS = $(PGI)/linux86/lib/libpgthread.a $(PGI)/linux86/lib/libpgc.a $(PGI)/linux86/lib/libpgftnrtl.a $(PGI)/linux86/lib/libpgc.a $(PGI)/linux86/lib/libpgmp.a $(PGI)/linux86/lib/libpgc.a + LIN_FC2 = /usr/local/lib/libf77blas.a /usr/local/lib/libatlas.a $(PGILIBS) + CRY_FC = f90 +diff --git a/bsd/l9999.make b/bsd/l9999.make +index 2c59b37..643b580 100644 +--- a/bsd/l9999.make ++++ b/bsd/l9999.make +@@ -16,7 +16,7 @@ SUN_FC = f95 -fast -xtypemap=real:64,double:64,integer:64 -xtarget=native -xarch + ALP_FC = f90 -O5 -transform_loops -omp -automatic -i8 -r8 -align dcommons \ + -tune host -trapuv -assume noaccuracy_sensitive -math_library fast \ + -reentrancy threaded +-LIN_FC = pgf77 -mp -Mnostdlib ++LIN_FC = pgfortran -mp -Mnostdlib + PGILIBS = $(PGI)/linux86/lib/libpgthread.a $(PGI)/linux86/lib/libpgc.a $(PGI)/linux86/lib/libpgftnrtl.a $(PGI)/linux86/lib/libpgc.a $(PGI)/linux86/lib/libpgmp.a $(PGI)/linux86/lib/libpgc.a + LIN_FC2 = /usr/local/lib/libf77blas.a /usr/local/lib/libatlas.a $(PGILIBS) + CRY_FC = f90 +diff --git a/bsd/link.make b/bsd/link.make +index 40cbd06..540903d 100644 +--- a/bsd/link.make ++++ b/bsd/link.make +@@ -16,7 +16,7 @@ SUN_FC = f95 -fast -xtypemap=real:64,double:64,integer:64 -xtarget=native -xarch + ALP_FC = f90 -O5 -transform_loops -omp -automatic -i8 -r8 -align dcommons \ + -tune host -trapuv -assume noaccuracy_sensitive -math_library fast \ + -reentrancy threaded +-LIN_FC = pgf77 -mp -Mnostdlib ++LIN_FC = pgfortran -mp -Mnostdlib + PGILIBS = $(PGI)/linux86/lib/libpgthread.a $(PGI)/linux86/lib/libpgc.a $(PGI)/linux86/lib/libpgftnrtl.a $(PGI)/linux86/lib/libpgc.a $(PGI)/linux86/lib/libpgmp.a $(PGI)/linux86/lib/libpgc.a + LIN_FC2 = /usr/local/lib/libf77blas.a /usr/local/lib/libatlas.a $(PGILIBS) + CRY_FC = f90 +diff --git a/bsd/setup-make b/bsd/setup-make +index 7759da2..1a497dd 100644 +--- a/bsd/setup-make ++++ b/bsd/setup-make +@@ -34,7 +34,7 @@ else if (-e $xname/kepler.flag) then + set acclib = "-Mcudalib=cublas" + set acclib1 = "" + else +- set pgname = "pgf77" ++ set pgname = "pgfortran" + set accopt = "" + set accflag = "" + set acclib = "" +@@ -88,16 +88,16 @@ else if (("$mach" == "i386") || ("$mach" == "amd64") || ("$mach" == "em64t") || + set xutilname = "util" + if (-e $xname/ia32p3.flag) then + set xutilname = "$xutilname,bsd/libf77blas-ia32,bsd/libatlas-ia32" +- set fcname = "FCN='pgf77 -Bstatic_pgi'" ++ set fcname = "FCN='pgfortran -Bstatic_pgi'" + set blas = "BLAS='' MACHTY=p6" + set fcflag = "FC='-mp=nonuma -tp p6'" +- set lfort = "pgf77 -Bstatic_pgi -tp p6 -mp=nonuma" ++ set lfort = "pgfortran -Bstatic_pgi -tp p6 -mp=nonuma" + else if ("$mach" == "i386") then + set xutilname = "$xutilname,bsd/libf77blas-ia32,bsd/libatlas-ia32" +- set fcname = "FCN='pgf77 -Bstatic_pgi'" ++ set fcname = "FCN='pgfortran -Bstatic_pgi'" + set blas = "BLAS='' " + set fcflag = "FC='-mp=nonuma -fastsse -tp p7-32'" +- set lfort = "pgf77 -Bstatic_pgi -fastsse -tp p7-32 -mp=nonuma" ++ set lfort = "pgfortran -Bstatic_pgi -fastsse -tp p7-32 -mp=nonuma" + else if ("$mach" == "amd64") then + set fcname = "FCN='" + set fcname = "$fcname$pgname -Bstatic_pgi'" +@@ -142,16 +142,16 @@ else if (("$mach" == "i386") || ("$mach" == "amd64") || ("$mach" == "em64t") || + endif + else if ("$mach" == "i386-mac64") then + set xutilname = "$xutilname,bsd/libf77blas-imac64,bsd/libatlas-imac64" +- set fcname = "FCN='pgf77'" ++ set fcname = "FCN='pgfortran'" + set fcflag = "FC='-Wl,-u -Wl,_drum_ -mp -tp p7-64 -i8 -r8'" + set blas = "BLAS='' MACHTY=p7-64 GAULIBU=util.a PGISTATIC= LINK1='-Wl,-u' LINK2='-Wl,_drum_' EXTCFLAGS=-D_FORTIFY_SOURCE=0 I8FLAG=-i8 R8FLAG=-r8 OPTOI=-m64 I8CPP1=-DI64 I8CPP2=-DP64 I8CPP3=-DPACK64 I8CPP4=-DUSE_I2 NJSEC=-DDEFJSEC=512" +- set lfort = "pgf77 -Wl,-u -Wl,_drum_ -mp -tp p7-64 -i8 -r8" ++ set lfort = "pgfortran -Wl,-u -Wl,_drum_ -mp -tp p7-64 -i8 -r8" + else if ("$mach" == "i386-mac32") then + set xutilname = "$xutilname,bsd/libf77blas-imac32,bsd/libatlas-imac32" +- set fcname = "FCN='pgf77'" ++ set fcname = "FCN='pgfortran'" + set fcflag = "FC='-Wl,-u -Wl,_drum_ -mp -tp p7-32'" + set blas = "BLAS='' MACHTY=p7-32 GAULIBU=util.a PGISTATIC= LINK1='-Wl,-u' LINK2='-Wl,_drum_' EXTCFLAGS=-D_FORTIFY_SOURCE=0 I8FLAG= R8FLAG=-r8 OPTOI=-m32" +- set lfort = "pgf77 -Wl,-u -Wl,_drum_ -mp -tp p7-32" ++ set lfort = "pgfortran -Wl,-u -Wl,_drum_ -mp -tp p7-32" + setenv LINDA_CC 'cc -m32' + else + echo "logic failure in setup-make" +diff --git a/bsd/tree.make b/bsd/tree.make +index e504f38..e22451b 100644 +--- a/bsd/tree.make ++++ b/bsd/tree.make +@@ -17,7 +17,7 @@ SGI_FC = f77 -w -i8 -r8 -r8const -mips4 -64 -mp -r10000 -align64 -trapuv + SGI_FC2 = -lcomplib.sgimath_mp -lfastm + SUN_FC = fc + ALP_FC = f90 -omp -automatic -O -i8 -r8 -align dcommons -threads +-LIN_FC = pgf77 -mp ++LIN_FC = pgfortran -mp + LIN_FC2 = -llapack /usr/local/lib/blas-opt.a /usr/local/lib/blas-f2c.a + CRY_FC = f90 + CRY_FC2 = -Wl"-M /dev/null -D DUPENTRY=NOTE -D FORCE=OFF -f indef" +@@ -31,7 +31,7 @@ NUTIL = ../nutil/*.o ../nutil/*.qo + NUTILL = ../nutill/*.lo ../nutill/*.o ../nutill/*.qo + NUTILX = nutil/*.o nutil/*.qo + else +-PGNAME = pgf77 ++PGNAME = pgfortran + NUTIL = ../nutil/*.o + NUTILL = ../nutill/*.lo ../nutill/*.o + NUTILX = nutil/*.o +-- +2.26.2 + |