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 lammps version is lammps/5Jun2019 with gcc version 4.8.5 on centos 7.

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

You need to install/use either a newer compiler (with fewer bugs) or a newer LAMMPS version (with a workaround for the broken compiler).

Axel.

Like Axel said, this is a bug in your compiler, not in LAMMPS. You either need to use gcc 7 or later, or update to the latest LAMMPS which has a workaround for the bug in the compiler.

Stan