https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82208
Bug ID: 82208 Summary: exec_linux.go:197:27: error: reference to undefined name 'SYS_UNSHARE' Product: gcc Version: 8.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: --- I used: /gcc-trunk-compiled# ../gcc-trunk/configure CC=/opt/gcc-7.1/bin/gcc CXX=/opt/gcc-7.1/bin/g++ --enable-languages=c,c++,go --prefix=/opt/gcc-7.2.0 --with-cpu=v7 --disable-libstdcxx-pch --disable-linux-futex --disable-libsanitizer --enable-__cxa_atexit --with-system-zlib --enable-clocale=gnu --enable-debug --disable-doc --disable-libcilkrts --disable-libitm --disable-nls The error occurred with: /usr/local/bin/make The error message: scall/libcall_uname.go ../../../gcc-trunk/libgo/go/syscall/libcall_wait4.go ../../../gcc-trunk/libgo/go/syscall/lsf_linux.go ../../../gcc-trunk/libgo/go/syscall/msan0.go ../../../gcc-trunk/libgo/go/syscall/netlink_linux.go ../../../gcc-trunk/libgo/go/syscall/setuidgid_linux.go ../../../gcc-trunk/libgo/go/syscall/sleep_select.go ../../../gcc-trunk/libgo/go/syscall/sockcmsg_linux.go ../../../gcc-trunk/libgo/go/syscall/sockcmsg_unix.go ../../../gcc-trunk/libgo/go/syscall/socket.go ../../../gcc-trunk/libgo/go/syscall/socket_linux.go ../../../gcc-trunk/libgo/go/syscall/socket_linux_type.go ../../../gcc-trunk/libgo/go/syscall/socket_posix.go ../../../gcc-trunk/libgo/go/syscall/str.go ../../../gcc-trunk/libgo/go/syscall/syscall.go ../../../gcc-trunk/libgo/go/syscall/syscall_errno.go ../../../gcc-trunk/libgo/go/syscall/syscall_linux.go ../../../gcc-trunk/libgo/go/syscall/syscall_unix.go ../../../gcc-trunk/libgo/go/syscall/timestruct.go libcalls.go sysinfo.go syscall_arch.go epoll.go -fPIC -o .libs/syscall.o ../../../gcc-trunk/libgo/go/syscall/exec_linux.go:197:27: error: reference to undefined name 'SYS_UNSHARE' _, _, err1 = RawSyscall(SYS_UNSHARE, sys.Unshareflags, 0, 0) ^ ../../../gcc-trunk/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-trunk/libgo/go/syscall/lsf_linux.go:14:28: error: use of undefined type 'SockFilter' func LsfStmt(code, k int) *SockFilter { ^ ../../../gcc-trunk/libgo/go/syscall/lsf_linux.go:14:28: error: use of undefined type 'SockFilter' ../../../gcc-trunk/libgo/go/syscall/lsf_linux.go:74:8: error: use of undefined type 'SockFprog' var p SockFprog ^ ../../../gcc-trunk/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-trunk/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-trunk/libgo/go/syscall/lsf_linux.go:76:15: error: reference to undefined name 'SockFilter' p.Filter = (*SockFilter)(unsafe.Pointer(&i[0])) ^ ../../../gcc-trunk/libgo/go/syscall/lsf_linux.go:76:14: error: expected pointer p.Filter = (*SockFilter)(unsafe.Pointer(&i[0])) ^ ../../../gcc-trunk/libgo/go/syscall/socket_linux.go:173:22: error: reference to undefined name 'SizeofIPv6MTUInfo' vallen := Socklen_t(SizeofIPv6MTUInfo) ^ ../../../gcc-trunk/libgo/go/syscall/lsf_linux.go:14:28: error: use of undefined type 'SockFilter' func LsfStmt(code, k int) *SockFilter { ^ ../../../gcc-trunk/libgo/go/syscall/lsf_linux.go:14:28: error: use of undefined type 'SockFilter' ../../../gcc-trunk/libgo/go/syscall/lsf_linux.go:14:28: error: use of undefined type 'SockFilter' ../../../gcc-trunk/libgo/go/syscall/socket_linux.go:171:50: error: use of undefined type 'IPv6MTUInfo' func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error) { ^ ../../../gcc-trunk/libgo/go/syscall/socket_linux.go:171:50: error: use of undefined type 'IPv6MTUInfo' make[4]: *** [Makefile:3213: syscall.lo] Error 1 make[4]: Leaving directory '/c/media/gcc-trunk-compiled/sparc-unknown-linux-gnu/libgo' make[3]: *** [Makefile:2629: all-recursive] Error 1 make[3]: Leaving directory '/c/media/gcc-trunk-compiled/sparc-unknown-linux-gnu/libgo' Do you need any more informations?