<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div> Jacob,<div class=""><br class=""></div><div class=""> Since the reconfigure scripts are python you'll need to use python variables to access environmental variables like <span style="font-family: Menlo; font-size: 15px;" class="">os.environ['PETSC_DIR'] </span></div><div class=""><font face="Menlo" class=""><span style="font-size: 15px;" class=""><br class=""></span></font></div><div class=""><font face="Menlo" class=""><span style="font-size: 15px;" class=""> Barry</span></font></div><div class=""><font face="Menlo" class=""><span style="font-size: 15px;" class=""><br class=""></span></font><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 2, 2020, at 1:57 PM, Jacob Faibussowitsch <<a href="mailto:jacob.fai@gmail.com" class="">jacob.fai@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello All,<div class=""><br class=""></div><div class="">I am reconfiguring an arch within a docker using the attached reconfigure script. My petsc dir is mounted via the following commands to docker -v ${PETSC_DIR}:/petsc:delegated. I am trying to use the existing arches on my native machine as the install directories for packages compiled within the docker images because SSH keys aren’t persistent in the images and hence git pull’s won’t work. I encountered this odd bug when trying —with-zlib-dir where it prepends the existing $PETSC_DIR to the directory name automatically, but this problem persists for any package. </div><div class=""><br class=""></div><div class=""><span style="caret-color: rgb(0, 0, 0);" class="">There is no configure.log generated since this I guess is early enough in the configure process, so unfortunately the only error output is the wall of error text from terminal. </span>The error indicates that configure is passing ./[COMMAND LINE DIRECTORY] instead of [COMMAND LINE DIRECTORY] to configure.</div><div class=""><br class=""></div><div class="">$ ls ${PETSC_DIR}/master-arch-darwin-c-debug/externalpackages/<br class="">Permissions Size User Date Modified Name<br class="">drwxrwxr-x - root 8 Jul 16:07 petsc-pkg-mumps-d1a5c931b762<br class="">drwxr-xr-x - root 3 Jul 21:39 hdf5-1.12.0<br class="">drwxrwxr-x - root 1 Aug 21:34 netcdf-c-4.5.0<br class="">drwxr-xr-x - root 3 Jul 21:38 zlib-1.2.11<br class="">drwxr-xr-x - root 29 Jul 17:43 mpich-3.3.2<br class="">drwxr-xr-x - root 6 Jul 17:06 Chaco-2.2-p2<br class="">drwxr-xr-x - root 1 Aug 21:36 git.ctetgen<br class="">drwxr-xr-x - root 1 Aug 21:34 git.exodusii<br class="">drwxr-xr-x - root 1 Aug 21:31 git.med<br class="">drwxr-xr-x - root 1 Aug 21:31 git.metis<br class="">drwxr-xr-x - root 1 Aug 21:31 git.parmetis<br class="">drwxr-xr-x - root 1 Aug 21:32 git.pnetcdf<br class="">drwxr-xr-x - root 1 Aug 21:35 git.scalapack<br class="">drwxr-xr-x - root 1 Aug 21:31 git.sowing<br class="">drwxr-xr-x - root 1 Aug 21:34 git.triangle<br class=""><br class=""></div><div class="">$ echo $PETSC_DIR</div><div class="">/petsc</div><div class=""><br class=""></div><div class="">$./reconfigure-arch-linux-c-debug</div><div class="">===============================================================================<br class=""> Configuring PETSc to compile on your system <br class="">===============================================================================<br class="">*******************************************************************************<br class=""> TypeError or ValueError possibly related to ERROR in COMMAND LINE ARGUMENT while running ./configure <br class="">-------------------------------------------------------------------------------<br class="">Nonexistent directory: /petsc/${PETSC_DIR}/master-arch-darwin-c-debug/externalpackages/zlib-1.2.11 for key with-zlib-dir<br class="">*******************************************************************************<br class=""><br class=""><br class=""> File "/petsc/config/configure.py", line 449, in petsc_configure<br class=""> framework = config.framework.Framework(['--configModules=PETSc.Configure','--optionsModule=config.compilerOptions']+sys.argv[1:], loadArgDB = 0)<br class=""> File "/petsc/config/BuildSystem/config/framework.py", line 107, in __init__<br class=""> self.createChildren()<br class=""> File "/petsc/config/BuildSystem/config/framework.py", line 324, in createChildren<br class=""> self.getChild(moduleName)<br class=""> File "/petsc/config/BuildSystem/config/framework.py", line 309, in getChild<br class=""> config.setupDependencies(self)<br class=""> File "/petsc/config/PETSc/Configure.py", line 91, in setupDependencies<br class=""> obj = self.registerPythonFile(package,'config.packages')<br class=""> File "/petsc/config/PETSc/Configure.py", line 49, in registerPythonFile<br class=""> utilityObj = self.framework.require(directory+utilityName, self)<br class=""> File "/petsc/config/BuildSystem/config/framework.py", line 329, in require<br class=""> config = self.getChild(moduleName, keywordArgs)<br class=""> File "/petsc/config/BuildSystem/config/framework.py", line 309, in getChild<br class=""> config.setupDependencies(self)<br class=""> File "/petsc/config/BuildSystem/config/packages/ADIOS.py", line 17, in setupDependencies<br class=""> self.zlib = framework.require('config.packages.zlib',self)<br class=""> File "/petsc/config/BuildSystem/config/framework.py", line 329, in require<br class=""> config = self.getChild(moduleName, keywordArgs)<br class=""> File "/petsc/config/BuildSystem/config/framework.py", line 307, in getChild<br class=""> config.setup()<br class=""> File "/petsc/config/BuildSystem/config/base.py", line 94, in setup<br class=""> script.Script.setup(self)<br class=""> File "/petsc/config/BuildSystem/script.py", line 108, in setup<br class=""> logger.Logger.setup(self)<br class=""> File "/petsc/config/BuildSystem/logger.py", line 75, in setup<br class=""> args.ArgumentProcessor.setup(self)<br class=""> File "/petsc/config/BuildSystem/args.py", line 76, in setup<br class=""> self.setupArguments(self.argDB)<br class=""> File "/petsc/config/BuildSystem/script.py", line 92, in setupArguments<br class=""> self.setupHelp(self.help)<br class=""> File "/petsc/config/BuildSystem/config/packages/zlib.py", line 16, in setupHelp<br class=""> config.package.Package.setupHelp(self, help)<br class=""> File "/petsc/config/BuildSystem/config/package.py", line 156, in setupHelp<br class=""> help.addArgument(self.PACKAGE,'-with-'+self.package+'-dir=<dir>',nargs.ArgDir(None,None,'Indicate the root directory of the '+self.name+' installation',mustExist = 1))<br class=""> File "/petsc/config/BuildSystem/help.py", line 108, in addArgument<br class=""> self.argDB.setType(self.getArgName(name), argType, forceLocal = 1)<br class=""> File "/petsc/config/BuildSystem/RDict.py", line 222, in setType<br class=""> value.setValue(v.getValue())<br class=""> File "/petsc/config/BuildSystem/nargs.py", line 325, in setValue<br class=""> raise ValueError('Nonexistent directory: '+str(value)+' for key '+str(self.key))</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""></div></div><span id="cid:9F04113F-F7FC-4C7B-B67D-3D76076E75EB"><reconfigure-arch-linux-c-debug.py></span><meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Best regards,<br class=""><br class="">Jacob Faibussowitsch<br class="">(Jacob Fai - booss - oh - vitch)<br class="">Cell: (312) 694-3391</div></div>
</div>
<br class=""></div></div></div></blockquote></div><br class=""></div></body></html>