On Sat, Jan 14, 2012 at 12:18 AM, Ian Lance Taylor <i...@google.com> wrote:
>> This is the same problem with -fdump-go-spec we discussed a couple of >> months ago [1]. In short, alpha linux doesn't just include >> <asm-generic/ioctls.h> with hardcoded numbers in asm/ioctls.h, but >> builds ioctl arguments as shown in [1]. Probably, this is the right >> way ... > > Oh yeah. > > I think I've worked out a way to handle this kind of thing. With luck > this patch will fix the problem. Bootstrapped on > x86_64-unknown-linux-gnu, although that doesn't really test it properly. > Committed to mainline. Please let me know if this helps. The library compiles OK, with following small patch: --cut here-- Index: mksysinfo.sh =================================================================== --- mksysinfo.sh (revision 183192) +++ mksysinfo.sh (working copy) @@ -538,7 +538,7 @@ # We need TIOCGWINSZ. if ! grep '^const TIOCGWINSZ' ${OUT} >/dev/null 2>&1; then if grep '^const _TIOCGWINSZ_val' ${OUT} >/dev/null 2>&1; then - echo 'const TIOCGWINSZ = TIOCGWINSZ_val' >> ${OUT} + echo 'const TIOCGWINSZ = _TIOCGWINSZ_val' >> ${OUT} fi fi --cut here-- Thanks, Uros.