Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
syscall: mksyscall.sh doesn't make socketpair body for zsyscall_linux_amd64.go automatically #919
What steps will reproduce the problem? 1. run mkall.sh at $(GOROOT)/src/pkg/syscall 2. run make at $(GOROOT)/src/pkg/syscall 3. got error What is the expected output? no compilation errors What do you see instead? 6g -o _go_.6 str.go exec.go syscall.go syscall_amd64.go syscall_linux.go syscall_linux_amd64.go zerrors_linux_amd64.go zsyscall_linux_amd64.go zsysnum_linux_amd64.go ztypes_linux_amd64.go syscall_unix.go syscall_linux.go:372: undefined: socketpair make: *** [_go_.6] Error 1 What is your $GOOS? $GOARCH? GOARCH=amd64 GOOS=linux Which revision are you using? (hg identify) a481e050147b+ tip Please provide any additional information below. Looks like there are two reasons for this issue; a) syscall_linux_amd64.go doesn't contain ``//sys sockaetpair(...)'' prototype, b) mksyscall.sh doesn't take care about array type return parameter. % uname -a Linux vm5 2.6.32-23-generic #37-Ubuntu SMP Fri Jun 11 08:03:28 UTC 2010 x86_64 GNU/Linux % cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=10.04 DISTRIB_CODENAME=lucid DISTRIB_DESCRIPTION="Ubuntu 10.04 LTS"