Error whiling install gromacs 2019

GROMACS version:2018
GROMACS modification: Yes/No
I installed gromacs 2018 on default location before. Now i wish to install gromacs 2019 on a non-standard location(/home/user/Documents). I also install mpich with command line :
sudo apt install mpich
and then followed this steps:

tar xfz gromacs-2019.5.tar.gz
cd gromacs-2019.5
mkdir build
cd build
cmake … -DGMX_BUILD_OWN_FFTW=ON -DCMAKE_INSTALL_PREFIX=/home/user/Documents/gromacs-2019.5 -DGMX_GPU=on -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda7.5

in this step after alot of lines, I countered this errors:

/usr/lib/gcc/x86_64-linux-gnu/5/include/mwaitxintrin.h(36): error: identifier “__builtin_ia32_monitorx” is undefined

/usr/lib/gcc/x86_64-linux-gnu/5/include/mwaitxintrin.h(42): error: identifier “__builtin_ia32_mwaitx” is undefined

2 errors detected in the compilation of “/tmp/tmpxft_00004256_00000000-19_nbnxn_cuda.compute_52.cpp1.ii”.
CMake Error at (message):
Error generating file

src/gromacs/CMakeFiles/libgromacs.dir/build.make:63: recipe for target ‘src/gromacs/CMakeFiles/libgromacs.dir/mdlib/nbnxn_cuda/’ failed
make[2]: *** [src/gromacs/CMakeFiles/libgromacs.dir/mdlib/nbnxn_cuda/] Error 1
CMakeFiles/Makefile2:2778: recipe for target ‘src/gromacs/CMakeFiles/libgromacs.dir/all’ failed
make[1]: *** [src/gromacs/CMakeFiles/libgromacs.dir/all] Error 2
Makefile:160: recipe for target ‘all’ failed
make: *** [all] Error 2
could you guide me how i can resolve this problem?