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

Reply via email to