# Error during installation gromacs+cp2k \[g++: error: -E or -x required when input is from standard\]

**URL:** <https://gromacs.bioexcel.eu/t/error-during-installation-gromacs-cp2k-g-error-e-or-x-required-when-input-is-from-standard/9926>\
**Category:** User discussions\
**Created:** [August 20, 2024, 7:31am UTC](https://gromacs.bioexcel.eu/t/error-during-installation-gromacs-cp2k-g-error-e-or-x-required-when-input-is-from-standard/9926 "2024-08-20T07:31:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kwongrape](https://avatars.discourse-cdn.com/v4/letter/k/eb8c5e/32.png) [@kwongrape](https://gromacs.bioexcel.eu/u/kwongrape)\
**Post date:** [August 20, 2024, 7:31am UTC](https://gromacs.bioexcel.eu/t/error-during-installation-gromacs-cp2k-g-error-e-or-x-required-when-input-is-from-standard/9926/1 "2024-08-20T07:31:13Z")

</div>

GROMACS version: 2023.3  
GROMACS modification: Yes  
cp2k version : 2024.2  
OS : WSL2 ubuntu 22.04

Greetings to all seniors and friends.

I am trying to compile GROMACS-2023.1 with CP2K-2023.2 and the following error occurred during the installation process (during make -j 20 command).

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/2X/d/d7861347620caa7595b05b7057dc6bd258ad229b.png)

The complete commands I used are as follows.

1. mkdir build
2. cd build
3. cmake … -DBUILD\_SHAPED\_LIBS=OFF -DGMXAPI=OFF -DGMX\_INSTALL\_NBLIB\_API=OFF -DGMX\_DOUBLE=ON -DGMX\_CP2K=ON -DCP2K\_DIR=/home/k/cp2k/cp2k-2024.2/lib/local/psmp -DGMX\_FFT\_LIBRARY=fftw3 -DFFTWF\_LIBRARY=/home/k/cp2k/cp2k-2024.2/tools/toolchain/install/fftw-3.3.10/lib -DFFTW\_INCLUDE\_DIR=/home/k/cp2k/cp2k-2024.2/tools/toolchain/install/fftw-3.3.10/include -DGMX\_BLAS\_USER=/home/k/cp2k/cp2k-2024.2/tools/toolchain/install/openblas-0.3.27/lib/libopenblas.a -DGMX\_LAPACK\_USER=/home/k/cp2k/cp2k-2024.2/tools/toolchain/install/scalapack-2.2.1/lib/libscalapack.a -DCP2K\_LINKER\_FLAGS=“-Wl, --enable-new-dtags - pthread -L '/home/k/cp2k/cp2k-2024.2/tools/toolchain/install/elpa-2024.03.001/cpu/lib -L ‘/home/k/cp2k/cp2k-2024.2/tools/toolchain/install/fftw-3.3.10/lib’ -L ‘/home/k/cp2k/cp2k-2024.2/tools/toolchain/install/libint-v2.6.0-cp2k-lmax-5/lib’ -L ‘/home/k/cp2k/cp2k-2024.2/tools/toolchain/install/libxc-6.2.2/lib’ -L ‘/home/k/cp2k/cp2k-2024.2/tools/toolchain/install/libxsmm-1.17/lib’ -L ‘/home/k/cp2k/cp2k-2024.2/tools/toolchain/install/scalapack-2.2.1/’ -L ‘/home/k/cp2k/cp2k-2024.2/tools/toolchain/install/elpa-2024.03.001/lib’ -lelpa\_openmp -lscalapack -lxsmm -ldl -lpthread -lxcf03 -lxc -lint2 -lfftw3\_mpi -lfftw3 -lfftw3\_omp -lmpi -lstdc++” -DCMAKE\_INSTALL\_PREFIX=/home/k/cp2k/ -DGMX\_MPI=ON -DCMAKE\_C\_COMPILER=/usr/bin/mpicc -DCMAKE\_CXX\_COMPILER=/usr/bin/mpicxx
4. make -j 20

Thank you for your time and reading this. Is there anyone who can help me with this?
