Bug#1068708: Building with EPICS fails because the compiler cannot find `compilerSpecific.h`.

Florian Forster ff at octo.it
Tue Apr 9 14:38:56 BST 2024


Package: epics-dev
Version: 7.0.8+dfsg1-1

Building with EPICS fails because the compiler cannot find `
compilerSpecific.h`:

```
In file included from /usr/include/epics/epicsThread.h:62,
                 from /usr/include/epics/cadef.h:35,
                 from src/epics.c:26:
/usr/include/epics/compilerDependencies.h:21:10: fatal error:
compilerSpecific.h: No such file or directory
  21 | #include "compilerSpecific.h"
     | ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:8195: src/epics_la-epics.lo] Error 1
```

The file exists at `/usr/include/epics/compiler/gcc/compilerSpecific.h`,
which is not a directory searched by the compiler.

`"compilerSpecific.h"` is included unconditionally, and fails when not
compiled with GCC. My recommendation is to guard the inclusion of the file
with an appropriate check, for example:

```
// /usr/include/epics/compilerDependencies.h, line 21
#if __GNUC__
# include "compiler/gcc/compilerSpecific.h"
#endif
```

Best regards
—octo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20240409/a01d5a3e/attachment-0001.htm>


More information about the debian-science-maintainers mailing list