Visual Studio C++ compiler gets rejected
With the current 3.17.4 version the Visual Studio C++ compiler gets ignored although it is specified explicitly:
$ ./configure \
> --with-shared-libraries=1 --with-cc="win32fe cl" --with-fc="win32fe ifort" --with-cxx="win32fe cl" \
> --with-mpi-include="[$(cygpath "$I_MPI_ONEAPI_ROOT/include")]" --with-mpi-lib="[$(cygpath "$I_MPI_ONEAPI_ROOT/lib/release/impi.lib")]" \
> --with-debugging=0 --COPTFLAGS="-O2" --CXXOPTFLAGS="-O2" --FOPTFLAGS="-O2" \
> --with-x=0 --with-windows-graphics=0 \
> --with-fortran-bindings=0 \
> --download-fblaslapack
=============================================================================================
Configuring PETSc to compile on your system
=============================================================================================
============================================================================================= Trying to download git://https://bitbucket.org/petsc/pkg-fblaslapack for FBLASLAPACK ============================================================================================= ============================================================================================= Compiling FBLASLAPACK; this may take several minutes ============================================================================================= Compilers:
C Compiler: /home/jac/reps/petsc/lib/petsc/bin/win32fe/win32fe cl -MD -wd4996 -O2
Version: Win32 Development Tool Front End, version 1.11.4 Fri, Sep 10, 2021 6:33:40 PM\nMicrosoft (R) C/C++ Optimizing Compiler Version 19.29.30146 for x64
Fortran Compiler: /home/jac/reps/petsc/lib/petsc/bin/win32fe/win32fe ifort -MD -O2 -fpp
Version: Win32 Development Tool Front End, version 1.11.4 Fri, Sep 10, 2021 6:33:40 PM\nIntel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.1 Build 20201112_000000
Linkers:
Shared linker: /home/jac/reps/petsc/lib/petsc/bin/win32fe/win32fe cl -LD -MD -wd4996 -O2
[...]
Configuration looks fine but CXX is not listed as compiler anymore and C++ projects will not be able to use PETSc later (PETSC_FUNCTION_NAME_CXX
undefined).
The mswin-opt-impi
CI job running on the release branch shows the same behavior. E.g. https://gitlab.com/petsc/petsc/-/jobs/2809707974#L640
Any idea what to do?
Thanks and kind regards, Volker