I am getting internal compiler error when trying to compile a C++ code that is designed as a header-only + driver combination. The specific error message is :
NVC+±F-0000-Internal compiler error. is_cond_jmp – Invalid ILI: 0 (../../include/sbd/chemistry/basic/determinants.h: 434)
NVC++/x86-64 Linux 25.11-0: compilation aborted
Due to the header-only design, it is difficult to extract a small test case, but it is simple to describe how to reproduce the error.
1. git clone GitHub - r-ccs-cms/sbd
- cd samples/chemistry_tpb_selected_basis_diagonalization
3. edit the Configuration file, set CCFLAGS=-O2
This is MPI code, so set MPICH_CXX=/path/to/nvc++ or OMPI_CXX if you are using OpenMPI, then “make”. It is not necessary to specify a BLAS/Lapack library because the failure is in the compilation step, before attemting to link the object file with libraries to create the executable. The same error arises with earlier versions of the nvc++ compiler that I tried, including 25.9. The test system is Linux, x86_64, with Ubuntu 22.04.5. This code compiles and runs correctly with GNU and Clang compilers, but it would be really useful to have nvc++ as a viable option.