https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81528
Bug ID: 81528 Summary: libgo/go/syscall/lsf_linux.go:13:28: error: use of undefined type ‘SockFilter’ Product: gcc Version: 5.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: go Assignee: ian at airs dot com Reporter: mfe at live dot de CC: cmang at google dot com Target Milestone: --- the exact version of GCC: gcc-7.1.0 the system type: NetgearReadyNAS Duo (http://netgear.nas-central.org/wiki/Category:ReadyNasDUO) the options given when GCC was configured/built: ../gcc-5.4.0/configure CC=/opt/gcc-4.6/bin/gcc CXX=/opt/gcc-4.6/bin/g++ --enable-languages=c,c++,go --prefix=/opt/gcc-7.1 --with-cpu=v7 --with-mpc=/usr/local --with-mpfr=/usr/local --with-gmp=/usr/local --with-isl=/usr/local/ --disable-libstdcxx-pch --disable-linux-futex --enable-__cxa_atexit --with-system-zlib --enable-nls --enable-clocale=gnu --enable-debug --build=sparc-linux --host=sparc-linux --target=sparc-linux the complete command line that triggers the bug; /usr/local/bin/make the compiler output (error messages, warnings, etc.); [...] ll/libcall_uname.go ../../../gcc-5.4.0/libgo/go/syscall/netlink_linux.go ../../../gcc-5.4.0/libgo/go/syscall/lsf_linux.go ../../../gcc-5.4.0/libgo/go/syscall/libcall_linux_utimesnano.go ../../../gcc-5.4.0/libgo/go/syscall/libcall_linux.go libcalls.go sysinfo.go syscall_arch.go -fPIC -o .libs/syscall.o ../../../gcc-5.4.0/libgo/go/syscall/lsf_linux.go:13:28: error: use of undefined type ‘SockFilter’ func LsfStmt(code, k int) *SockFilter { ^ ../../../gcc-5.4.0/libgo/go/syscall/lsf_linux.go:13:28: error: use of undefined type ‘SockFilter’ ../../../gcc-5.4.0/libgo/go/syscall/lsf_linux.go:69:8: error: use of undefined type ‘SockFprog’ var p SockFprog ^ ../../../gcc-5.4.0/libgo/go/syscall/lsf_linux.go:70:3: error: reference to field ‘Len’ in object which has no fields or methods p.Len = uint16(len(i)) ^ ../../../gcc-5.4.0/libgo/go/syscall/lsf_linux.go:71:3: error: reference to field ‘Filter’ in object which has no fields or methods p.Filter = (*SockFilter)(unsafe.Pointer(&i[0])) ^ ../../../gcc-5.4.0/libgo/go/syscall/lsf_linux.go:71:15: error: reference to undefined name ‘SockFilter’ p.Filter = (*SockFilter)(unsafe.Pointer(&i[0])) ^ ../../../gcc-5.4.0/libgo/go/syscall/lsf_linux.go:71:14: error: expected pointer p.Filter = (*SockFilter)(unsafe.Pointer(&i[0])) ^ ../../../gcc-5.4.0/libgo/go/syscall/libcall_linux_utimesnano.go:17:18: error: reference to undefined name ‘_AT_FDCWD’ err = utimensat(_AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0) ^ ../../../gcc-5.4.0/libgo/go/syscall/lsf_linux.go:13:28: error: use of undefined type ‘SockFilter’ func LsfStmt(code, k int) *SockFilter { ^ ../../../gcc-5.4.0/libgo/go/syscall/lsf_linux.go:13:28: error: use of undefined type ‘SockFilter’ ../../../gcc-5.4.0/libgo/go/syscall/lsf_linux.go:13:28: error: use of undefined type ‘SockFilter’ make[4]: *** [Makefile:5857: syscall.lo] Error 1 make[4]: Leaving directory '/c/media/gcc-5.4.0-compiled/sparc-linux/libgo' make[3]: *** [Makefile:4119: all-recursive] Error 1 make[3]: Leaving directory '/c/media/gcc-5.4.0-compiled/sparc-linux/libgo' make[2]: *** [Makefile:2371: all] Error 2 make[2]: Leaving directory '/c/media/gcc-5.4.0-compiled/sparc-linux/libgo' make[1]: *** [Makefile:17088: all-target-libgo] Error 2 make[1]: Leaving directory '/c/media/gcc-5.4.0-compiled' make: *** [Makefile:903: all] Error 2