# Internal compiler error while installing gromacs

**URL:** <https://gromacs.bioexcel.eu/t/internal-compiler-error-while-installing-gromacs/9208>\
**Category:** User discussions\
**Created:** [May 23, 2024, 3:28am UTC](https://gromacs.bioexcel.eu/t/internal-compiler-error-while-installing-gromacs/9208 "2024-05-23T03:28:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaitu0606](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/chaitu0606/32/3349_2.png) [@chaitu0606](https://gromacs.bioexcel.eu/u/chaitu0606)\
**Post date:** [May 23, 2024, 3:28am UTC](https://gromacs.bioexcel.eu/t/internal-compiler-error-while-installing-gromacs/9208/1 "2024-05-23T03:28:29Z")

</div>

GROMACS version: 2024.1

Hi everyone,

I am trying to install gromacs in my machine. But while running the `make` command after running the `cmake` command, I get an internal compiler error.

The commands and their outputs are as follows:  
`cmake .. -DGMX_BUILD_OWN_FFTW=ON -DREGRESSIONTEST_DOWNLOAD=ON -DGMX_GPU=CUDA` :  
– Could NOT find Sphinx (missing: SPHINX\_EXECUTABLE pygments) (Required is at least version “4.0.0”)  
– Configuring done  
– Generating done  
– Build files have been written to: /home/sudeeplab/softwares/gromacs-2024.1/build

`make` :  
/home/sudeeplab/softwares/gromacs-2024.1/build/src/external/build-fftw/fftwBuild-prefix/src/fftwBuild/libbench2/mp.c:444:13: internal compiler error: Segmentation fault  
444 | static void fft0(int n, N \*a, int sign)  
| ^~~~

The machine has following configurations:  
compiler: gnu-11.4.0  
cuda toolkit: 12.2  
nvidia drivers: 535.171.04  
gpu: NVIDIA GeForce RTX 4070  
ubuntu: 22.04

I do not even know where to begin with this. The machine had gromacs earlier, but since there is some issue in the installation, I am trying to re-install gromacs.

I hope someone can help me with this.

Thanks and regards,  
Chaitanya

---

<div class="post-metadata">

**Author:** ![Carsten](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@Carsten](https://gromacs.bioexcel.eu/u/Carsten)\
**Post date:** [May 23, 2024, 11:19am UTC](https://gromacs.bioexcel.eu/t/internal-compiler-error-while-installing-gromacs/9208/2 "2024-05-23T11:19:25Z")

</div>

Hi,

why not try out a different compiler (or compiler version)? That might already solve the issue.

Best,  
Carsten

---

<div class="post-metadata">

**Author:** ![chaitu0606](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/chaitu0606/32/3349_2.png) [@chaitu0606](https://gromacs.bioexcel.eu/u/chaitu0606)\
**Post date:** [May 23, 2024, 1:08pm UTC](https://gromacs.bioexcel.eu/t/internal-compiler-error-while-installing-gromacs/9208/3 "2024-05-23T13:08:13Z")

</div>

Hi, Carsten

I tried to use intel one api compilers, icx and icpx, but then it gives me some other error in the installation related to nvidia/cuda. This maybe because the nvidia drivers were installed based on gnu compilers.

I am not sure it the updating of the gnu compilers may cause an issue with the nvidia drivers. Hence, was avoiding to try that.

But if there is no other work around, I will be forced to do so.

Let me know what you think.

Thanks,  
Chaitanya

---

<div class="post-metadata">

**Author:** ![Carsten](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@Carsten](https://gromacs.bioexcel.eu/u/Carsten)\
**Post date:** [May 23, 2024, 1:48pm UTC](https://gromacs.bioexcel.eu/t/internal-compiler-error-while-installing-gromacs/9208/4 "2024-05-23T13:48:19Z")

</div>

You could try another GCC, e.g. GCC 12.2, if you have. Or, alternatively, as the error occurs during the compilation of FFTW, you could first build FFTW yourself with some compiler that works (even older GCCs) and then let GROMACS use that precompiled FFTW version.

---

<div class="post-metadata">

**Author:** ![chaitu0606](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/chaitu0606/32/3349_2.png) [@chaitu0606](https://gromacs.bioexcel.eu/u/chaitu0606)\
**Post date:** [May 23, 2024, 6:36pm UTC](https://gromacs.bioexcel.eu/t/internal-compiler-error-while-installing-gromacs/9208/5 "2024-05-23T18:36:46Z")

</div>

Okay Carsten.

I will try that out and get back to you.

Thanks for your inputs.

Regards,  
Chaitanya

---

<div class="post-metadata">

**Author:** ![chaitu0606](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/chaitu0606/32/3349_2.png) [@chaitu0606](https://gromacs.bioexcel.eu/u/chaitu0606)\
**Post date:** [May 27, 2024, 5:29pm UTC](https://gromacs.bioexcel.eu/t/internal-compiler-error-while-installing-gromacs/9208/6 "2024-05-27T17:29:23Z")

</div>

Hello Carsten,

I tried your suggestions and built the FFTW library separately.  
I also tried using the gcc-12 and gcc-11 and gcc-10 compilers.  
I am

I am still getting error or the other. I am pasting those below for your reference:

gcc-10: cmake command runs, but error during make command

```auto
/home/sudeeplab/softwares/gromacs-2024.1/src/external/colvars/colvar.cpp: In member function ‘int colvar::set_state_params(const string&)’:

/home/sudeeplab/softwares/gromacs-2024.1/src/external/colvars/colvar.cpp:2383:1: internal compiler error: in try_forward_edges, at cfgcleanup.c:581

```

gcc-11: cmake command gives error

```auto
CMake Error at cmake/gmxManageNvccConfig.cmake:110 (message):
  CUDA compiler does not seem to be functional or is not compatible with the
  host compiler. Set the GMX_NVCC_WORKS CMake cache variable to bypass this
  check if you know what you are doing.
Call Stack (most recent call first):
  cmake/gmxManageCuda.cmake:110 (include)
  CMakeLists.txt:704 (include)

```

gcc-12: cmake command gives error

```auto
CMake Error at cmake/gmxManageNvccConfig.cmake:104 (if):
  if given arguments:

    "In file included from /usr/include/cuda_runtime.h:83,
                   from <command-line>:

  /usr/include/crt/host_config.h:139:2: error: #error -- unsupported GNU
  version! gcc versions later than 11 are not supported! The nvcc flag
  '-allow-unsupported-compiler' can be used to override this version check" "
  however, using an unsupported host compiler may cause compilation failure
  or incorrect run time execution. Use at your own risk.

    139 | #error -- unsupported GNU version! gcc versions later than 11 are not supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check" " however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
        | ^ ~~~~

  " "MATCHES" "nsupported"

  Unknown arguments specified
Call Stack (most recent call first):
  cmake/gmxManageCuda.cmake:110 (include)
  CMakeLists.txt:703 (include)

```

I humbly request you to help me with this. It has taken up a lot of my time.

Regards,  
Chaitanya

---

<div class="post-metadata">

**Author:** ![Carsten](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@Carsten](https://gromacs.bioexcel.eu/u/Carsten)\
**Post date:** [May 31, 2024, 2:37pm UTC](https://gromacs.bioexcel.eu/t/internal-compiler-error-while-installing-gromacs/9208/7 "2024-05-31T14:37:43Z")

</div>

Hi Chaitanya,

regarding the last error: “unsupported GNU version” - could you re-check that you used the correct combination of GCC and CUDA Versions? I can compile GROMACS 2024 with GCC 12.2 and CUDA 12.2, so it should work on your machine as well.

Best,  
Carsten

---

<div class="post-metadata">

**Author:** ![chaitu0606](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/chaitu0606/32/3349_2.png) [@chaitu0606](https://gromacs.bioexcel.eu/u/chaitu0606)\
**Post date:** [June 8, 2024, 6:55am UTC](https://gromacs.bioexcel.eu/t/internal-compiler-error-while-installing-gromacs/9208/8 "2024-06-08T06:55:08Z")

</div>

Thanks for your kind reply Carsten.

I will check it, but as fas as I know, I did take care of that.

Thanks again,

Chaitanya
