Problem on a machine with sys/sysmacros.h
Tobias Burnus
burnus@net-b.de
Wed Feb 21 16:28:00 GMT 2007
Hi,
Daniel Franke schrieb:
>> __NTH however is not defined in /usr/include/sys/cdefs.h on the
>> machine with the problem
>> It is however defined on the machine that has no problem. So I guess
>> you've found the source of the problem.
>>
>> So the last question is "is this a new PR or the reopening of PR30678
>> or a problem with my work distro ?
>
> I'm not so sure, but even IF this is a problem with your distribution,
> fixincludes is supposed to fix it. So, I'd suggest you open a new PR.
I'm not sure either; but I think the presence of __NTH etc. is
determined at compile time of GCC. Thus it checks on the GCC-build
computer (here: Francois-Xavier's computer) whether it is available (it
is) and then it fails on one of Benjamin's computers.
I thus believe it only means that the build system of GCC is
incompatible to the system where GCC is used/run.
Therefore, it is essentially unfixable on the GCC side; it is obviously
fixable on the distribution by including these lines in
/usr/include/sys/cdefs.h, which probably happens as soon as the
distribution updates its glibc version. Since it is unlikely that they
would do so (I mean only as single package, not as full-flashed update
of everything), it boils down to:
- Updating the operating system to a version which contains such a
definition in /usr/include/sys/cdefs.h.
- Building GCC on that computer
- Messing around with /usr/include/sys/cdefs.h by adding the missing
definition
Tobias
More information about the Fortran
mailing list