Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VisIt 3.4.1 Compile error: PyVTKReference.cxx:1061:1: error: cannot convert 'std::nullptr_t' to 'Py_ssize_t' {aka 'long int'} in initialization #19582

Closed
tharman-git opened this issue Jun 5, 2024 · 10 comments
Labels
bug Something isn't working impact medium Productivity partially degraded (not easily mitigated bug) or improved (enhancement) likelihood medium Neither low nor high likelihood reviewed Issue has been reviewed and labeled by a developer
Milestone

Comments

@tharman-git
Copy link

Greetings,

I'm hitting a compilation error:

3.4.1-build/VTK-8.1.0/Wrapping/PythonCore/PyVTKMethodDescriptor.cxx:230:1: error: cannot convert 'std::nullptr_t' to 'Py_ssize_t' {aka 'long int'} in initialization 3.4.1-build/VTK-8.1.0/Wrapping/PythonCore/PyVTKReference.cxx:1061:1: error: cannot convert 'std::nullptr_t' to 'Py_ssize_t' {aka 'long int'} in initialization 3.4.1-build/VTK-8.1.0/Wrapping/PythonCore/PyVTKReference.cxx:1118:1: error: cannot convert 'std::nullptr_t' to 'Py_ssize_t' {aka 'long int'} in initialization 3.4.1-build/VTK-8.1.0/Wrapping/PythonCore/PyVTKReference.cxx:1175:1: error: cannot convert 'std::nullptr_t' to 'Py_ssize_t' {aka 'long int'} in initialization 3.4.1-build/VTK-8.1.0/Wrapping/PythonCore/PyVTKReference.cxx:1232:1: error: cannot convert 'std::nullptr_t' to 'Py_ssize_t' {aka 'long int'} in initialization

with the the command:

build_visit3_4_1 --parallel --fortran --uintah --no-icet --mesagl --llvm --no-sphinx --skip-opengl-context-check --mpich --server-components-only --makeflags -j10

Attached is the log file.
build_visit3_4_1_log.gz

I'm compiling this on a cluster that is running:

Rocky Linux 8.8

with the modules:

  1. chpc/1.0 (S) 2) gcc/11.2.0 3) zlib/1.3.1 4) openmpi/4.1.6 5) cmake/3.26.0

Thanks for any insight you may have.
Todd Harman
University of Utah

@tharman-git tharman-git added bug Something isn't working impact medium Productivity partially degraded (not easily mitigated bug) or improved (enhancement) likelihood medium Neither low nor high likelihood labels Jun 5, 2024
@cyrush
Copy link
Member

cyrush commented Jun 5, 2024

@tharman-git can you try building with VTK-9 support?

--vtk9 (this will be the default for vtk in future releases)

@biagas
Copy link
Contributor

biagas commented Jun 5, 2024

@tharman-git, you might also want to try --qt6 as Qt 6 is the preferred version.

@tharman-git
Copy link
Author

Thanks.
I added --vtk9 an --qt6 options and it made it further to configuring mpich

`checking whether Fortran 77 compiler accepts option -O2... yes
checking whether routines compiled with -O2 can be linked with ones compiled without -O2... yes
checking how to get verbose linking output from /uufs/chpc.utah.edu/sys/spack/linux-rocky8-nehalem/gcc-8.5.0/gcc-11.2.0-wc2i7djjsrbmf7or7prpvcjf4xlcijdf/bin/gfortran... -v
checking for Fortran 77 libraries of /uufs/chpc.utah.edu/sys/spack/linux-rocky8-nehalem/gcc-8.5.0/gcc-11.2.0-wc2i7djjsrbmf7or7prpvcjf4xlcijdf/bin/gfortran... -L/uufs/chpc.utah.edu/sys/spack/linux-rocky8-nehalem/gcc-8.5.0/gcc-11.2.0-wc2i7djjsrbmf7or7prpvcjf4xlcijdf/lib64/../lib64 -L/uufs/chpc.utah.edu/sys/spack/linux-rocky8-nehalem/gcc-8.5.0/gcc-11.2.0-wc2i7djjsrbmf7or7prpvcjf4xlcijdf/lib/../lib64 -L/uufs/chpc.utah.edu/sys/spack/linux-rocky8-nehalem/gcc-8.5.0/gcc-11.2.0-wc2i7djjsrbmf7or7prpvcjf4xlcijdf/lib/gcc/x86_64-pc-linux-gnu/11.2.0 -L/uufs/chpc.utah.edu/sys/spack/linux-rocky8-nehalem/gcc-8.5.0/gcc-11.2.0-wc2i7djjsrbmf7or7prpvcjf4xlcijdf/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/uufs/chpc.utah.edu/sys/spack/v019/linux-rocky8-x86_64/gcc-11.2.0/openmpi-4.1.6-wooyfpvdndufimxcy3rshvlfg7lvxsrv/lib -L/uufs/chpc.utah.edu/sys/spack/v019/linux-rocky8-x86_64/gcc-11.2.0/zlib-1.3.1-5e2k6fewfrs4jvmo3rcj4qlhbpo2uhvp/lib -L/uufs/chpc.utah.edu/sys/spack/linux-rocky8-nehalem/gcc-8.5.0/gcc-11.2.0-wc2i7djjsrbmf7or7prpvcjf4xlcijdf/lib64 -L/uufs/chpc.utah.edu/sys/spack/linux-rocky8-nehalem/gcc-8.5.0/gcc-11.2.0-wc2i7djjsrbmf7or7prpvcjf4xlcijdf/lib -L/uufs/chpc.utah.edu/sys/spack/linux-rocky8-nehalem/gcc-8.5.0/gcc-11.2.0-wc2i7djjsrbmf7or7prpvcjf4xlcijdf/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../.. -lgfortran -lm -lquadmath
checking whether /uufs/chpc.utah.edu/sys/spack/linux-rocky8-nehalem/gcc-8.5.0/gcc-11.2.0-wc2i7djjsrbmf7or7prpvcjf4xlcijdf/bin/gfortran accepts the FLIBS found by autoconf... yes
checking whether gcc links with FLIBS found by autoconf... yes
checking whether Fortran 77 and C objects are compatible... yes
checking for linker for Fortran main program... Use Fortran to link programs
checking for Fortran 77 name mangling... lower uscore
checking for libraries to link Fortran main with C stdio routines... none
checking whether Fortran init will work with C... yes
checking for extension for Fortran 90 programs... f90
checking whether the Fortran 90 compiler (/uufs/chpc.utah.edu/sys/spack/linux-rocky8-nehalem/gcc-8.5.0/gcc-11.2.0-wc2i7djjsrbmf7or7prpvcjf4xlcijdf/bin/gfortran ) works... yes
checking whether the Fortran 90 compiler (/uufs/chpc.utah.edu/sys/spack/linux-rocky8-nehalem/gcc-8.5.0/gcc-11.2.0-wc2i7djjsrbmf7or7prpvcjf4xlcijdf/bin/gfortran ) is a cross-compiler... no
checking whether Fortran 90 compiler works with Fortran 77 compiler... yes
checking for shared library (esp. rpath) characteristics of F77... done (results in src/env/f77_shlib.conf)
checking whether Fortran 77 accepts ! for comments... yes
checking for include directory flag for Fortran... -I
checking for Fortran 77 flag for library directories... -L
checking whether Fortran 77 compiler processes .F files with C preprocessor... yes
checking whether /uufs/chpc.utah.edu/sys/spack/linux-rocky8-nehalem/gcc-8.5.0/gcc-11.2.0-wc2i7djjsrbmf7or7prpvcjf4xlcijdf/bin/gfortran allows mismatched arguments... no
configure: error: The Fortran compiler /uufs/chpc.utah.edu/sys/spack/linux-rocky8-nehalem/gcc-8.5.0/gcc-11.2.0-wc2i7djjsrbmf7or7prpvcjf4xlcijdf/bin/gfortran will not compile files that call
the same routine with arguments of different types.

  • return 1
  • set +x
    make: *** No targets specified and no makefile found. Stop.`

I've attached the log file.
build_visit3_4_1_log.gz

Note, this cluster has mpich modules if that helps:
mpich/default mpich/3.2 mpich/3.2.1 mpich/3.3 mpich/3.3.1 mpich/3.4.2 mpich/4.0.2 mpich/4.1.1 mpich/4.1.2-gpu mpich/4.1.2
Should I downshift to gcc8.5?

@tharman-git
Copy link
Author

I was able to get passed the fortran compiler issue by setting the flag:
FFLAGS="-w -fallow-argument-mismatch -O2"

See URL below for details:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91731

I then ran:

'/configure --enable-shared --enable-fortran=all --prefix=
make -j20
make install
`

@tharman-git
Copy link
Author

To configure Uintah I added -std=c++11 to build_visit3_4_1

21388: CFLAGS="-std=c++11 $CFLAGS $C_OPT_FLAGS -headerpad_max_install_names" CXXFLAGS="-std=c++11 $CXXFLAGS $CXX_OPT_FLAGS"

21409: CFLAGS="-std=c++11 $CFLAGS $C_OPT_FLAGS" CXXFLAGS="-std=c++11 $CXXFLAGS $CXX_OPT_FLAGS" \

@biagas
Copy link
Contributor

biagas commented Jun 6, 2024

To configure Uintah I added -std=c++11 to build_visit3_4_1

Yes, we discovered this and have fixed it for our next release.

@cyrush
Copy link
Member

cyrush commented Jul 11, 2024

@tharman-git we updated build_visit to add the -std=c++11 flag, are there other build changes we should try to get codified -- or can we resolve this issue?

@cyrush cyrush added the reviewed Issue has been reviewed and labeled by a developer label Jul 11, 2024
@cyrush cyrush added this to the 3.4.2 milestone Jul 11, 2024
@cyrush
Copy link
Member

cyrush commented Jul 18, 2024

@tharman-git we think we have smoothed out the bumps, if you have any more issues please open a new ticket and we will work with you on them

@cyrush cyrush closed this as completed Jul 18, 2024
@tharman-git
Copy link
Author

@cyrush I send an email regarding an updated version of Uintah that is c++17 compliant. Did you receive it?

@cyrush
Copy link
Member

cyrush commented Jul 18, 2024

@tharman-git Sorry - I don't believe I did, can you resend?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working impact medium Productivity partially degraded (not easily mitigated bug) or improved (enhancement) likelihood medium Neither low nor high likelihood reviewed Issue has been reviewed and labeled by a developer
Projects
None yet
Development

No branches or pull requests

3 participants