Anwender95 / go-tour

Automatically exported from code.google.com/p/go-tour
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

failed to compile #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. goinstall go-tour.googlecode.com/hg/gotour
2. compile failed.

What do you see instead?
6g -I "/opt/go/pkg/linux_amd64" -I "/opt/go/pkg/linux_amd64"  -p 
go-tour.googlecode.com/hg/pic -o _go_.6 pic.go 
pic.go:21: cannot use dx (type int) as type image.Rectangle in function argument
pic.go:21: too many arguments in call to image.NewNRGBA
make: *** [_go_.6] Error 1
--- exit status 2
goinstall: go-tour.googlecode.com/hg/pic: install: running bash: exit status 2

What version of the product are you using? On what operating system?
go from hg on archlinux

Original issue reported on code.google.com by adria.ka...@gmail.com on 5 Oct 2011 at 8:07

GoogleCodeExporter commented 8 years ago
I can confirm this on 32bit/ubuntu, running go at rev "weekly.2011-09-21"

/bin/bash: === cd 
/scratch/scratch/schilly/golang/src/pkg/go-tour.googlecode.com/hg/pic; bash 
gomake -f- install
8g -I "/scratch/scratch/schilly/golang/pkg/linux_386"  -p 
go-tour.googlecode.com/hg/pic -o _go_.8 pic.go 
pic.go:21: cannot use dx (type int) as type image.Rectangle in function argument
pic.go:21: too many arguments in call to image.NewNRGBA
make: *** [_go_.8] Error 1
--- exit status 2
goinstall: go-tour.googlecode.com/hg/pic: install: running bash: exit status 2 
($GOPATH not set)

Original comment by harald.schilly on 5 Oct 2011 at 12:36

GoogleCodeExporter commented 8 years ago
You must be using the latest stable release of Go, `release.r60.1`.

Original comment by a...@golang.org on 5 Oct 2011 at 5:20

GoogleCodeExporter commented 8 years ago
Issue 18 has been merged into this issue.

Original comment by a...@golang.org on 13 Nov 2011 at 8:12