Cannot build the latest deal.II with an "Internal Compiler Error (codegen)"

14 views
Skip to first unread message

Jihuan Tian

unread,
Feb 28, 2026, 10:28:47 PM (2 days ago) Feb 28
to dea...@googlegroups.com
Hello everyone!

Since I want to integrate some fundamental modules in HierBEM to deal.ii, I try to build the latest deal.ii (commit eb03c61540) on Debian Trixie but fail. The details are as follows. Thanks for your help!

Build environment
  • Linux QuantumHome 6.12.73+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.73-1 (2026-02-17) x86_64 GNU/Linux
  • NVIDIA driver: 580.126.18
  • CUDA version: 13.1.1
CMake configuration
  • Kokkos

    export NVCC_WRAPPER_DEFAULT_COMPILER=g++-14
    cmake -GNinja \
            -DCMAKE_BUILD_TYPE=Release \
            -DCMAKE_INSTALL_PREFIX=/home/jihuan/lib/kokkos \
            -DBUILD_SHARED_LIBS=ON \
            -DCMAKE_C_COMPILER=/usr/bin/gcc-14 \
            -DCMAKE_CXX_COMPILER=/home/jihuan/Projects/hierbem-dependencies/kokkos/bin/nvcc_wrapper \
            -DCMAKE_CUDA_HOST_COMPILER=/usr/bin/g++-14 \
            -DKokkos_ENABLE_OPENMP=ON \
            -DKokkos_ENABLE_CUDA=ON \
            -DKokkos_ARCH_AMPERE86=ON \
            -DKokkos_ENABLE_SERIAL=ON \
            -DKokkos_ENABLE_CUDA_CONSTEXPR=ON \
            -DKokkos_ENABLE_CUDA_LAMBDA=ON
            ../kokkos
  • deal.II

    cmake -GNinja \
            -DCMAKE_BUILD_TYPE=Debug \
            -DCMAKE_INSTALL_PREFIX=/home/jihuan/lib/dealii-debug \
            -DCMAKE_C_COMPILER=/usr/bin/gcc-14 \
            -DCMAKE_CXX_COMPILER=/home/jihuan/lib/kokkos/bin/nvcc_wrapper \
            -DCMAKE_CUDA_HOST_COMPILER=/usr/bin/g++-14 \
            -DCMAKE_CXX_STANDARD=20 \
            -DCMAKE_Fortran_COMPILER=gfortran-14 \
            -DDEAL_II_ALLOW_AUTODETECTION=OFF \
            -DDEAL_II_WITH_BOOST=ON \
            -DBoost_ROOT=/home/jihuan/lib/boost \
            -DDEAL_II_WITH_KOKKOS=ON \
            -DKOKKOS_DIR=/home/jihuan/lib/kokkos \
            -DDEAL_II_WITH_MPI=ON \
            -DDEAL_II_WITH_COMPLEX_VALUES=ON \
            -DDEAL_II_WITH_LAPACK=ON \
            -DBLAS_DIR=${MKLROOT} \
            -DLAPACK_DIR=${MKLROOT} \
            -DDEAL_II_WITH_MUPARSER=ON \
            -DDEAL_II_WITH_HDF5=ON \
            -DHDF5_DIR=/usr/lib/x86_64-linux-gnu/hdf5/openmpi \
            -DDEAL_II_WITH_TBB=ON \
            -DDEAL_II_WITH_OPENCASCADE=ON \
            -DOPENCASCADE_DIR=/home/jihuan/lib/occt \
            -DDEAL_II_WITH_GMSH=ON \
            -DGMSH_DIR=/home/jihuan/lib/gmsh
            ../dealii

Build errors

According to my test, the following error occurs for all GCC versions from 11 to 14.

/home/jihuan/lib/kokkos/bin/nvcc_wrapper -DBOOST_SERIALIZATION_DYN_LINK -DBOOST_SERIALIZATION_NO_LIB -DDEBUG -DKOKKOS_DEPENDENCE -D_GLIBCXX_ASSERTIONS -I/home/jihuan/Projects/hierbem-dependencies/dealii-build/include -I/home/jihuan/Projects/hierbem-dependencies/dealii-build/source -I/home/jihuan/Projects/hierbem-dependencies/dealii/include -isystem /home/jihuan/lib/boost/include -isystem /home/jihuan/lib/kokkos/include -isystem /home/jihuan/lib/gmsh/include -isystem /usr/lib/x86_64-linux-gnu/hdf5/openmpi/include -isystem /home/jihuan/lib/occt/include/opencascade -std=c++20 -fPIC -pedantic -Wall -Wextra -Wmissing-braces -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wsuggest-override -Wswitch -Wsynth -Wwrite-strings -Wno-placement-new -Wno-deprecated-declarations -Wno-literal-suffix -Wno-psabi -Wno-misleading-indentation -Wno-unused-local-typedefs -fopenmp-simd -Xcudafe --diag_suppress=68 -Xcudafe --diag_suppress=128 -Xcudafe --diag_suppress=177 -Xcudafe --diag_suppress=186 -Xcudafe --diag_suppress=191 -Xcudafe --diag_suppress=284 -Xcudafe --diag_suppress=550 -Xcudafe --diag_suppress=940 -Xcudafe --diag_suppress=20012 -O0 -ggdb -Wa,--compress-debug-sections --relocatable-device-code=true -extended-lambda -Wext-lambda-captures-this -expt-relaxed-constexpr -arch=sm_86 -fopenmp -MD -MT source/numerics/CMakeFiles/object_numerics_debug.dir/vector_tools_mean_value.cc.o -MF source/numerics/CMakeFiles/object_numerics_debug.dir/vector_tools_mean_value.cc.o.d -o source/numerics/CMakeFiles/object_numerics_debug.dir/vector_tools_mean_value.cc.o -c /home/jihuan/Projects/hierbem-dependencies/dealii/source/numerics/vector_tools_mean_value.cc
  Error: Internal Compiler Error (codegen): "casting aggregate to non-void type is not supported!"

-- 
Best regards!

Yours sincerely,
Jihuan Tian

Bruno Turcksin

unread,
11:53 AM (8 hours ago) 11:53 AM
to deal.II User Group
Hello,

Can you try using CUDA 12? We have had issues with CUDA 13 in other projects.

Best,

Bruno
Reply all
Reply to author
Forward
0 new messages