[petsc-users] Installation issue of 3.18.* and 3.19.0 on Apple systems

Kaus, Boris kaus at uni-mainz.de
Wed Apr 5 15:37:45 CDT 2023


It can be reproduced with this:
sandbox:${WORKSPACE}/srcdir/petsc-3.18.0 # ./configure --prefix=/workspace/destdir/lib/petsc/double_real_Int32/
*******************************************************************************
    TypeError or ValueError possibly related to ERROR in COMMAND LINE ARGUMENT while running ./configure
-------------------------------------------------------------------------------
invalid literal for int() with base 10: ''
*******************************************************************************


  File "/workspace/srcdir/petsc-3.18.0/config/configure.py", line 457, in petsc_configure
    framework = config.framework.Framework(['--configModules=PETSc.Configure','--optionsModule=config.compilerOptions']+sys.argv[1:], loadArgDB = 0)
  File "/workspace/srcdir/petsc-3.18.0/config/BuildSystem/config/framework.py", line 101, in __init__
    self.createChildren()
  File "/workspace/srcdir/petsc-3.18.0/config/BuildSystem/config/framework.py", line 338, in createChildren
    self.getChild(moduleName)
  File "/workspace/srcdir/petsc-3.18.0/config/BuildSystem/config/framework.py", line 323, in getChild
    config.setupDependencies(self)
  File "/workspace/srcdir/petsc-3.18.0/config/PETSc/Configure.py", line 89, in setupDependencies
    self.registerPythonFile(utility,'config.utilities')
  File "/workspace/srcdir/petsc-3.18.0/config/PETSc/Configure.py", line 49, in registerPythonFile
    utilityObj                             = self.framework.require(directory+utilityName, self)
  File "/workspace/srcdir/petsc-3.18.0/config/BuildSystem/config/framework.py", line 343, in require
    config = self.getChild(moduleName, keywordArgs)
  File "/workspace/srcdir/petsc-3.18.0/config/BuildSystem/config/framework.py", line 317, in getChild
    config = type(self, *keywordArgs)
  File "/workspace/srcdir/petsc-3.18.0/config/BuildSystem/config/utilities/macosFirewall.py", line 12, in __init__
    self.isDarwin = config.setCompilers.Configure.isDarwin(self.log)
  File "/workspace/srcdir/petsc-3.18.0/config/BuildSystem/config/setCompilers.py", line 664, in isDarwin
    if not isUname_value: config.setCompilers.Configure.isUname(log)
  File "/workspace/srcdir/petsc-3.18.0/config/BuildSystem/config/setCompilers.py", line 630, in isUname
    v = tuple([int(a) for a in platform.mac_ver()[0].split('.')])
  File "/workspace/srcdir/petsc-3.18.0/config/BuildSystem/config/setCompilers.py", line 630, in <listcomp>
    v = tuple([int(a) for a in platform.mac_ver()[0].split('.')])


On 5. Apr 2023, at 22:32, Stefano Zampini <stefano.zampini at gmail.com> wrote:

It seems there's some typo/error in the configure command that is being executed. Can you post it here?

Il giorno mer 5 apr 2023 alle ore 23:18 Kaus, Boris <kaus at uni-mainz.de<mailto:kaus at uni-mainz.de>> ha scritto:
Hi everyone,

I’m trying to install precompiled binaries for PETSc 3.18.5 & 3.19.0 using the BinaryBuilder cross-compilation:
https://github.com/JuliaPackaging/Yggdrasil/pull/6533, which mostly works fine: https://buildkite.com/julialang/yggdrasil/builds/2093).

Yet, on apple systems I receive a somewhat weird bug during the configure step:

[22:08:49] *******************************************************************************
[22:08:49]     TypeError or ValueError possibly related to ERROR in COMMAND LINE ARGUMENT while running ./configure
[22:08:49] -------------------------------------------------------------------------------
[22:08:49] invalid literal for int() with base 10: ''
[22:08:49] *******************************************************************************
[22:08:49]
[22:08:49]
[22:08:49] /workspace/srcdir/petsc-3.18.0/lib/petsc/conf/rules:860: /workspace/srcdir/petsc-3.18.0//lib/petsc/conf/petscrules: No such file or directory
[22:08:49] make[1]: *** No rule to make target '/workspace/srcdir/petsc-3.18.0//lib/petsc/conf/petscrules'.  Stop.
[22:08:49] /workspace/srcdir/petsc-3.18.0/lib/petsc/conf/rules:860: /workspace/srcdir/petsc-3.18.0//lib/petsc/conf/petscrules: No such file or directory
[22:08:49] make[1]: *** No rule to make target '/workspace/srcdir/petsc-3.18.0//lib/petsc/conf/petscrules'.  Stop.
[22:08:49] make: *** [GNUmakefile:17: /workspace/srcdir/petsc-3.18.0//lib/petsc/conf/petscvariables] Error 2
[22:08:49] make: *** Waiting for unfinished jobs....
[22:08:49] make: *** [GNUmakefile:17: lib/petsc/conf/petscvariables] Error 2

The log file is rather brief:

sandbox:${WORKSPACE}/srcdir/petsc-3.18.0 # more configure.log
Executing: uname -s
stdout: Darwin

It works fine for PETSc 3.16.5/3.17.5, and this first occurs in 3.18.0.
Is there something that changed between 3.17 & 3.18 that could cause this?

The build system seems to use python3.9 (3.4+ as required)

Thanks!
Boris






--
Stefano

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230405/c83eeed4/attachment.html>


More information about the petsc-users mailing list