# Failing energy minimization with 2023.2+gcc on apple silicon

**URL:** <https://gromacs.bioexcel.eu/t/failing-energy-minimization-with-2023-2-gcc-on-apple-silicon/7192>\
**Category:** User discussions\
**Tags:** mdrun\
**Created:** [September 14, 2023, 6:15pm UTC](https://gromacs.bioexcel.eu/t/failing-energy-minimization-with-2023-2-gcc-on-apple-silicon/7192 "2023-09-14T18:15:15Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![al42and](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/al42and/32/1393_2.png) [@al42and](https://gromacs.bioexcel.eu/u/al42and)\
**Post date:** [September 15, 2023, 6:00pm UTC](https://gromacs.bioexcel.eu/t/failing-energy-minimization-with-2023-2-gcc-on-apple-silicon/7192/7 "2023-09-15T18:00:55Z")

</div>

> [@egmarklund](#):
>
> The reported problems with make tests on apple silicon: [Error compiling Gromacs 2023’s checks on Mac M2](https://gromacs.bioexcel.eu/t/error-compiling-gromacs-2023s-checks-on-mac-m2/5924)

Ah, that one. So, Apple still has not fixed their linker :(

> [@egmarklund](#):
>
> I forgot that I compiled with -DGMX\_GPU=OpenCL. Full cmake command:

Be warned that there is an issue with OpenCL on Apple Silicon: [GROMACS 2023.2 tests fail/segfault on Apple Silicon with OpenCL (#4852) · Issues · GROMACS / GROMACS · GitLab](https://gitlab.com/gromacs/gromacs/-/issues/4852). Not sure how widespread it is, but if you encounter it, please try the proposed patch.

But your bug also happens without GPU, so that’s not it.

---

_[View the full topic](https://gromacs.bioexcel.eu/t/failing-energy-minimization-with-2023-2-gcc-on-apple-silicon/7192)._
