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

Satish Balay balay at mcs.anl.gov
Wed Apr 5 15:45:42 CDT 2023


Well this doesn't trigger the error for me. Do you have any env variables set with unicode [non-ascii] chars?

Satish

---

balay at ypro petsc-3.19.0 % sw_vers        
ProductName:		macOS
ProductVersion:		13.3
BuildVersion:		22E252
balay at ypro petsc-3.19.0 % ./configure --with-mpi=0 --prefix=/workspace/destdir/lib/petsc/double_real_Int32/
=============================================================================================
                         Configuring PETSc to compile on your system
=============================================================================================
=============================================================================================
                                     ***** WARNING *****
  You have a version of GNU make older than 4.0. It will work, but may not support all the
  parallel testing options. You can install the latest GNU make with your package manager,
  such as Brew or MacPorts, or use the --download-make option to get the latest GNU make
=============================================================================================
Compilers:
  C Compiler:         gcc  -fPIC -Wall -Wwrite-strings -Wno-unknown-pragmas -fstack-protector -fno-stack-check -Qunused-arguments -fvisibility=hidden -g3 -O0 
    Version: Apple clang version 14.0.3 (clang-1403.0.22.14.1)
...
...


On Wed, 5 Apr 2023, Kaus, Boris wrote:

> 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
> 
> 


More information about the petsc-users mailing list