Search code examples
emacsbuilding

Building emacs 25.2 fails with "gcc: error: libgomp.spec: No such file or directory"


On Oracle Linux 6.9 (similar to Centos) I try to build GNU Emacs 25.2. make fails on

CCLD     temacs

with

gcc: error: libgomp.spec: No such file or directory

Same problem occurs when building Emacs 25.3.

The strange things is: I did build Emacs 25.2 six months ago on the same machine and it built fine, but now the exact same tarball gives the above mentioned error.

Any idea what causes this and how to fix it?


Solution

  • Thanks to @lawlist's probing in the comments I got on the right track to pinpoint the problem:

    During the last couple of months V6 of gcc was installed and this version doesn't seem to have the needed packages containing libgomp.spec.

    My solution was to switch back to V4 of gcc and everything went smoothly through.