fixincludes ignores sysroot
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: gcc-help <gcc-help@xxxxxxxxxxx>
- Subject: fixincludes ignores sysroot
- From: Didier Kryn <kryn@xxxxxxxx>
- Date: Tue, 12 Dec 2017 17:19:46 +0100
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
Hello.
I'm compiling gcc-6.3.0 in a chroot where there are no system
headers in /usr/include. This means that both the toolchain used for
build and the built compiler are sysrooted.
The compilation fails in libmpx/mpxrt/mpxrt-utils.c because
PATH_MAX isn't defined.
PATH_MAX isn't defined because gcc/include-fixed/limits.h doesn't
contain the instruction #include_next <limits.h>
The reason why this instruction isn't there is that some process in
fixincludes hasn't found /usr/include/limits.h. Touching this file is
enough to solve the issue.
It seems to me that, when the toolchain is sysrooted, fixincludes
should search the sysroot for system headers, rather than the canonical
location. Dunno how to achieve that though.
Thanks.
Didier
[Index of Archives]
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]