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 **e**nvironment*

   - 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

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/dealii/CAMNc9yaEPfddGK2V2OW84qE3-R5yov5mbnGR5QkRPyKW2vke8Q%40mail.gmail.com.

Reply via email to