Uros Bizjak <ubiz...@gmail.com> writes: >> I have committed a patch to libgo to update it to the weekly.2011-12-22 >> release. As usual I am not including all the changes here, only the >> ones to files which are specific to gccgo. Bootstrapped and ran Go >> testsuite on x86_64-unknown-linux-gnu. Committed to mainline. > > After this commit, compile on alphaev68-linux-gnu dies with: > > libtool: compile: /space/uros/gcc-build-go/./gcc/gccgo > -B/space/uros/gcc-build-go/./gcc/ > -B/usr/local/alphaev68-unknown-linux-gnu/bin/ > -B/usr/local/alphaev68-unknown-linux-gnu/lib/ -isystem > /usr/local/alphaev68-unknown-linux-gnu/include -isystem > /usr/local/alphaev68-unknown-linux-gnu/sys-include -O2 -g -mieee -I . > -c -fgo-prefix=libgo_exp > ../../../gcc-svn/trunk/libgo/go/exp/terminal/terminal.go > ../../../gcc-svn/trunk/libgo/go/exp/terminal/util.go -fPIC -o > exp/.libs/terminal.o > ../../../gcc-svn/trunk/libgo/go/exp/terminal/util.go:69:23: error: > reference to undefined identifier ‘syscall.TIOCGWINSZ’ > make[4]: *** [exp/terminal.lo] Error 1 > make[4]: *** Waiting for unfinished jobs....
Thanks for the report, but this is surprising. Doesn't Alpha GNU/Linux define TIOCGWINSZ in /usr/include/asm-generic/ioctls.h? And isn't that file #include'd, indirectly, by <sys/ioctl.h>? If not, does Alpha GNU/Linux define TIOCGWINSZ at all, and how does it define it? I thought TIOCGWINSZ was common, and I'm particularly surprised to not find it on a GNU/Linux system. Ian