On 29-10-15 02:37, Riccardo Murri wrote:

> 2. have `EB_GCC` supply `MAKEINFO=missing` in all stages when the
>    build-dependencies are ignored.
> 
> If you don't have 1. then build will fail on all distributions that have
> texinfo >= 5.0.0; but 2. is needed because `builddependencies` are
> ignored in early GCC build stages.

In the past we used the missing solution.

>> Maybe sys/cdefs.h moved, and GCC 4.5 isn't aware of that yet?
> 
> Well, `sys/cdefs.h` is included by `/usr/include/features.h` which is
> *not* part of GCC.  So it looks more like a missing component in the std
> include path for `xgcc`.
> 
> 
>> Have you tried something like: CPATH=/usr/include/x86_64-linux-gnu:$CPATH eb
>> GCC-4.5.3.eb ?
> 
> Thanks for the suggestion!  Unfortunately, it did not work -- same error.

That's normal. We unset the CPATH before building GCC due to ubuntu
weirdness in the past. The problem is that ubuntu pusts `sys/cdefs.h` in
a subdirectory of `/usr/include` for some reason. On Fedora, it can be
found directly under `/usr/include`. The most dirty solution would be to
simply symlink the directory. The proper solution would be to adapt the
build system. We can add the directory to the include list in the
easyblock when detecting ubuntu?


Ward

Reply via email to