justinquinn
Thank you for your quick reply ! Yes, I run MSYS2 MINGW64 as administrator. I also followed the instructions in the document (https://issm.jpl.nasa.gov/download/windows/) for installation. Everything went well up until the "External package installation" step, but from there, problems began. I executed "$source $ISSM_DIR/etc/environment.sh" before installing these external packages. Now, I tried the installation of these external packages again. The path to my ISSM is "E:/ISSM".
When I installed "petsc", the following message appeared after a large list of files was displayed:
===============================================================================
Configuring PETSc to compile on your system
/e/ISSM/externalpackages/petsc/src/config/BuildSystem/config/base.py:221: SyntaxWarning: invalid escape sequence '\ '
prog = prog.replace('\ ',' ').replace('(','(').replace(')',')')
/e/ISSM/externalpackages/petsc/src/config/BuildSystem/config/base.py:221: SyntaxWarning: invalid escape sequence '('
prog = prog.replace('\ ',' ').replace('(','(').replace(')',')')
/e/ISSM/externalpackages/petsc/src/config/BuildSystem/config/base.py:221: SyntaxWarning: invalid escape sequence ')'
prog = prog.replace('\ ',' ').replace('(','(').replace(')',')')
/e/ISSM/externalpackages/petsc/src/config/BuildSystem/config/framework.py:205: SyntaxWarning: invalid escape sequence '['
self.help.title = 'Configure Help\n Comma separated lists should be given between [] (use [ ] in tcsh/csh)\n For example: --with-mpi-lib=[/usr/local/lib/libmpich.a,/usr/local/lib/libpmpich.a]\n Options beginning with --known- are to provide values you already know\n Options beginning with --with- indicate that you are requesting something\n For example: --with-clanguage=c++\n <prog> means a program name or a full path to a program\n For example:--with-cmake=/Users/bsmith/bin/cmake\n <bool> means a boolean, use either 0 or 1\n <dir> means a directory\n For example: --with-packages-download-dir=/Users/bsmith/Downloads\n For packages use --with-PACKAGE-dir=<dir> OR\n --with-PACKAGE-include=<dir> --with-PACKAGE-lib=<lib> OR --download-PACKAGE'
/e/ISSM/externalpackages/petsc/src/config/BuildSystem/config/setCompilers.py:225: SyntaxWarning: invalid escape sequence '\s'
strmatch = re.match('GNU Fortran\s+(.)\s+(\d+).(\d+)',output)
/e/ISSM/externalpackages/petsc/src/config/BuildSystem/config/setCompilers.py:240: SyntaxWarning: invalid escape sequence '\s'
strmatch = re.match('GNU Fortran\s+(.)\s+(\d+).(\d+)',output)
/e/ISSM/externalpackages/petsc/src/config/BuildSystem/config/setCompilers.py:255: SyntaxWarning: invalid escape sequence '\s'
strmatch = re.match('GNU Fortran\s+(.)\s+(\d+).(\d+)',output)
/e/ISSM/externalpackages/petsc/src/config/BuildSystem/config/setCompilers.py:270: SyntaxWarning: invalid escape sequence '\s'
strmatch = re.match('GNU Fortran\s+(.)\s+(\d+).(\d+)',output)
/e/ISSM/externalpackages/petsc/src/config/BuildSystem/config/types.py:242: SyntaxWarning: invalid escape sequence '\s'
MaxPathLength = re.compile('\nchar petsc_max_path_len\s?[\s?] = '+HASHLINESPACE+'\"([0-9]+)\"'+HASHLINESPACE+';').search(buf).group(1)
/e/ISSM/externalpackages/petsc/src/config/PETSc/options/petscclone.py:40: SyntaxWarning: invalid escape sequence '*'
self.addDefine('VERSION_BRANCH_GIT','"'+re.compile('* (.*)').search(o4).group(1)+'"')
/e/ISSM/externalpackages/petsc/src/config/BuildSystem/config/packages/MPI.py:213: SyntaxWarning: invalid escape sequence '\ '
self.mpiexec = self.mpiexec.replace(' ', '\ ').replace('(', '\(').replace(')', '\)').replace('\ -',' -')
/e/ISSM/externalpackages/petsc/src/config/BuildSystem/config/packages/MPI.py:569: SyntaxWarning: invalid escape sequence '.'
mpich_numversion = re.compile('\nconst char mpich_ver ='+HASHLINESPACE+'"([.0-9]+)"'+HASHLINESPACE+';').search(buf).group(1)
/e/ISSM/externalpackages/petsc/src/config/BuildSystem/config/packages/MPI.py:621: SyntaxWarning: invalid escape sequence '['
msmpi_version = re.compile('\nchar msmpi_hex[] = '+HASHLINESPACE+'\"([a-zA-Z0-9_])\"'+HASHLINESPACE+';').search(buf).group(1)
TypeError or ValueError possibly related to ERROR in COMMAND LINE ARGUMENT while running ./configure
Invalid directory: E for key with-mpi-include
File "/e/ISSM/externalpackages/petsc/src/./config/configure.py", line 453, in petsc_configure
framework = config.framework.Framework(['--configModules=PETSc.Configure','--optionsModule=config.compilerOptions']+sys.argv[1:], loadArgDB = 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/e/ISSM/externalpackages/petsc/src/config/BuildSystem/config/framework.py", line 107, in init
self.createChildren()
File "/e/ISSM/externalpackages/petsc/src/config/BuildSystem/config/framework.py", line 324, in createChildren
self.getChild(moduleName)
File "/e/ISSM/externalpackages/petsc/src/config/BuildSystem/config/framework.py", line 309, in getChild
config.setupDependencies(self)
File "/e/ISSM/externalpackages/petsc/src/config/PETSc/Configure.py", line 80, in setupDependencies
self.blasLapack = framework.require('config.packages.BlasLapack',self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/e/ISSM/externalpackages/petsc/src/config/BuildSystem/config/framework.py", line 329, in require
config = self.getChild(moduleName, keywordArgs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/e/ISSM/externalpackages/petsc/src/config/BuildSystem/config/framework.py", line 309, in getChild
config.setupDependencies(self)
File "/e/ISSM/externalpackages/petsc/src/config/BuildSystem/config/packages/BlasLapack.py", line 21, in setupDependencies
config.package.Package.setupDependencies(self, framework)
File "/e/ISSM/externalpackages/petsc/src/config/BuildSystem/config/package.py", line 149, in setupDependencies
self.mpi = framework.require('config.packages.MPI',self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/e/ISSM/externalpackages/petsc/src/config/BuildSystem/config/framework.py", line 329, in require
config = self.getChild(moduleName, keywordArgs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/e/ISSM/externalpackages/petsc/src/config/BuildSystem/config/framework.py", line 307, in getChild
config.setup()
File "/e/ISSM/externalpackages/petsc/src/config/BuildSystem/config/base.py", line 94, in setup
script.Script.setup(self)
File "/e/ISSM/externalpackages/petsc/src/config/BuildSystem/script.py", line 108, in setup
logger.Logger.setup(self)
File "/e/ISSM/externalpackages/petsc/src/config/BuildSystem/logger.py", line 75, in setup
args.ArgumentProcessor.setup(self)
File "/e/ISSM/externalpackages/petsc/src/config/BuildSystem/args.py", line 76, in setup
self.setupArguments(self.argDB)
File "/e/ISSM/externalpackages/petsc/src/config/BuildSystem/script.py", line 92, in setupArguments
self.setupHelp(self.help)
File "/e/ISSM/externalpackages/petsc/src/config/BuildSystem/config/packages/MPI.py", line 63, in setupHelp
config.package.Package.setupHelp(self,help)
File "/e/ISSM/externalpackages/petsc/src/config/BuildSystem/config/package.py", line 159, in setupHelp
help.addArgument(self.PACKAGE,'-with-'+self.package+'-include=<dirs>',nargs.ArgDirList(None,None,'Indicate the directory of the '+self.name+' include files'))
File "/e/ISSM/externalpackages/petsc/src/config/BuildSystem/help.py", line 108, in addArgument
self.argDB.setType(self.getArgName(name), argType, forceLocal = 1)
File "/e/ISSM/externalpackages/petsc/src/config/BuildSystem/RDict.py", line 222, in setType
value.setValue(v.getValue())
File "/e/ISSM/externalpackages/petsc/src/config/BuildSystem/nargs.py", line 314, in setValue
raise ValueError('Invalid directory: '+str(dir)+' for key '+str(self.key))
makefile:15: arch-mswin-c-opt/lib/petsc/conf/petscvariables: No such file or directory
make[1]: *** No rule to make target 'arch-mswin-c-opt/lib/petsc/conf/petscvariables'. Stop.
gmakefile:5: arch-mswin-c-opt/lib/petsc/conf/petscvariables: No such file or directory
make: *** [GNUmakefile:17: arch-mswin-c-opt/lib/petsc/conf/petscvariables] Error 2
makefile:15: arch-mswin-c-opt/lib/petsc/conf/petscvariables: No such file or directory
make[1]: *** No rule to make target 'arch-mswin-c-opt/lib/petsc/conf/petscvariables'. Stop.
gmakefile:5: arch-mswin-c-opt/lib/petsc/conf/petscvariables: No such file or directory
make: *** [GNUmakefile:17: arch-mswin-c-opt/lib/petsc/conf/petscvariables] Error 2
When I installed "triangle", the following options appeared. I selected "A" and received the following prompt:
./install-win-msys2-mingw.sh
File triangle.zip already exists and will not be downloaded...
Archive: triangle.zip
replace src/A.poly? [y]es, [n]o, [A]ll, [N]one, [r]ename: A
inflating: src/A.poly
inflating: src/README
inflating: src/makefile
inflating: src/showme.c
inflating: src/triangle.c
inflating: src/triangle.h
inflating: src/tricall.c
patching file src/triangle.c
Hunk #1 FAILED at 340 (different line endings).
Hunk #2 FAILED at 938 (different line endings).
Hunk #3 FAILED at 1111 (different line endings).
Hunk #4 FAILED at 1158 (different line endings).
Hunk #5 FAILED at 3891 (different line endings).
Hunk #6 FAILED at 3899 (different line endings).
Hunk #7 FAILED at 4008 (different line endings).
Hunk #8 FAILED at 4033 (different line endings).
Hunk #9 FAILED at 4092 (different line endings).
Hunk #10 FAILED at 4129 (different line endings).
Hunk #11 FAILED at 4141 (different line endings).
Hunk #12 FAILED at 4197 (different line endings).
Hunk #13 FAILED at 4226 (different line endings).
Hunk #14 FAILED at 4586 (different line endings).
Hunk #15 FAILED at 4603 (different line endings).
Hunk #16 FAILED at 7649 (different line endings).
Hunk #17 FAILED at 7721 (different line endings).
17 out of 17 hunks FAILED -- saving rejects to file src/triangle.c.rej
When I install "m1qn3", the prompt is as follows:
./install-win-msys2-mingw.sh
File m1qn3-3.3-distrib.tgz already exists and will not be downloaded...
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/src/m1qn3.f
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/blas/ddot.f
gfortran -fpic -c m1qn3.f -o m1qn3.o
gfortran -shared -c m1qn3.f -o libm1qn3.dll
gfortran -fpic -c ddot.f -o ddot.o
gfortran -shared -c ddot.f -o libddot.dll
Please help me analyze the cause of the error.
Thanks !