Internal compiler error for kokkos_omp

Dear Lammps users,
After I installed the Kokkos package, I build the lammps with the kokkos package for OpenMP via Makefile.kokkos_omp, but the compilation fails,

It says:
In file included from …/pair_snap_kokkos.cpp:15:0:

…/pair_snap_kokkos_impl.h: In lambda function:
…/ pair_snap_kokkos_impl.h:412:6: internal compiler error: in gimplify_var_or_parm_decl, at gimplify.c:2085

make [1]: *** [pair_snap_kokkos.o] Error 1

My Makefile.kokkos_omp is:

CC = mpicxx
CCFLAGS = -g -O3 -fopenmp
SHFLAGS = -fPIC
DEPFLAGS = -M

LINK = mpicxx
LINKFLAGS = -g -O3 -fopenmp
LIB =
SIZE = size

ARCHIVE = ar
ARFLAGS = -rc
SHLIBFLAGS = -shared
KOKKOS_DEVICES = OpenMP
KOKKOS_ARCH = BDW

Could someone tell me if I did something wrong in the makefile?

Many thanks in advance and best regards,
Kevin

An internal compiler error is by definition a bug in the compiler.

What LAMMPS version are you using, what platform are you running on, and what is your compiler version?

Axel.