[Bug go/56827] Building Go support for gcc 4.8.0 fails on Linux: undefined type ‘SockFilter’
mfe at live dot de
gcc-bugzilla@gcc.gnu.org
Sat Jul 15 19:11:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56827
martin <mfe at live dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mfe at live dot de
--- Comment #3 from martin <mfe at live dot de> ---
I think I ran into the same issue?
the exact version of GCC:
gcc-7.1.0
the system type:
NetgearReadyNAS Duo
(http://wiki.dietpc.org/index.php/DIET-PC_on_SPARC_ReadyNAS)
the options given when GCC was configured/built:
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
the complete command line that triggers the bug;
/usr/local/bin/make
the compiler output (error messages, warnings, etc.);
[...]
ruct.go libcalls.go sysinfo.go syscall_arch.go epoll.go -fPIC -o
.libs/syscall.o
../../../gcc-7.1.0/libgo/go/syscall/exec_linux.go:197:27: error: reference to
undefined name ‘SYS_UNSHARE’
_, _, err1 = RawSyscall(SYS_UNSHARE, sys.Unshareflags, 0, 0)
^
../../../gcc-7.1.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-7.1.0/libgo/go/syscall/lsf_linux.go:14:28: error: use of undefined
type ‘SockFilter’
func LsfStmt(code, k int) *SockFilter {
^
../../../gcc-7.1.0/libgo/go/syscall/lsf_linux.go:14:28: error: use of undefined
type ‘SockFilter’
../../../gcc-7.1.0/libgo/go/syscall/lsf_linux.go:74:8: error: use of undefined
type ‘SockFprog’
var p SockFprog
^
../../../gcc-7.1.0/libgo/go/syscall/lsf_linux.go:75:3: error: reference to
field ‘Len’ in object which has no fields or methods
p.Len = uint16(len(i))
^
../../../gcc-7.1.0/libgo/go/syscall/lsf_linux.go:76:3: error: reference to
field ‘Filter’ in object which has no fields or methods
p.Filter = (*SockFilter)(unsafe.Pointer(&i[0]))
^
../../../gcc-7.1.0/libgo/go/syscall/lsf_linux.go:76:15: error: reference to
undefined name ‘SockFilter’
p.Filter = (*SockFilter)(unsafe.Pointer(&i[0]))
^
../../../gcc-7.1.0/libgo/go/syscall/lsf_linux.go:76:14: error: expected pointer
p.Filter = (*SockFilter)(unsafe.Pointer(&i[0]))
^
../../../gcc-7.1.0/libgo/go/syscall/socket_linux.go:173:22: error: reference to
undefined name ‘SizeofIPv6MTUInfo’
vallen := Socklen_t(SizeofIPv6MTUInfo)
^
../../../gcc-7.1.0/libgo/go/syscall/lsf_linux.go:14:28: error: use of undefined
type ‘SockFilter’
func LsfStmt(code, k int) *SockFilter {
^
../../../gcc-7.1.0/libgo/go/syscall/lsf_linux.go:14:28: error: use of undefined
type ‘SockFilter’
../../../gcc-7.1.0/libgo/go/syscall/lsf_linux.go:14:28: error: use of undefined
type ‘SockFilter’
../../../gcc-7.1.0/libgo/go/syscall/socket_linux.go:171:50: error: use of
undefined type ‘IPv6MTUInfo’
func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error) {
^
../../../gcc-7.1.0/libgo/go/syscall/socket_linux.go:171:50: error: use of
undefined type ‘IPv6MTUInfo’
make[4]: *** [Makefile:3331: syscall.lo] Error 1
More information about the Gcc-bugs
mailing list