wfxiang08 / goprotobuf

Automatically exported from code.google.com/p/goprotobuf
Other
0 stars 0 forks source link

goprotobuf does not build #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run the command as told in README:
    goinstall goprotobuf.googlecode.com/hg/proto

What is the expected output? What do you see instead?

I am expecting to see the lib been installed and built.  But it seems that hg 
clone works, but building does not. Attaches the output:

goinstall: === cd 
/Users/wangyi/3rd-party-build/go/src/pkg/goprotobuf.googlecode.com/hg/proto; 
gomake -f- install
6g -o _go_.6 
/Users/wangyi/3rd-party-build/go/src/pkg/goprotobuf.googlecode.com/hg/proto/deco
de.go 
/Users/wangyi/3rd-party-build/go/src/pkg/goprotobuf.googlecode.com/hg/proto/enco
de.go 
/Users/wangyi/3rd-party-build/go/src/pkg/goprotobuf.googlecode.com/hg/proto/exte
nsions.go 
/Users/wangyi/3rd-party-build/go/src/pkg/goprotobuf.googlecode.com/hg/proto/lib.
go 
/Users/wangyi/3rd-party-build/go/src/pkg/goprotobuf.googlecode.com/hg/proto/mess
age_set.go 
/Users/wangyi/3rd-party-build/go/src/pkg/goprotobuf.googlecode.com/hg/proto/prop
erties.go 
/Users/wangyi/3rd-party-build/go/src/pkg/goprotobuf.googlecode.com/hg/proto/text
.go 
/Users/wangyi/3rd-party-build/go/src/pkg/goprotobuf.googlecode.com/hg/proto/text
_parser.go 
/Users/wangyi/3rd-party-build/go/src/pkg/goprotobuf.googlecode.com/hg/proto/exte
nsions.go:148: v.UnsafeAddr undefined (type reflect.Value has no field or 
method UnsafeAddr)
/Users/wangyi/3rd-party-build/go/src/pkg/goprotobuf.googlecode.com/hg/proto/text
_parser.go:374: undefined: reflect.Copy
make: *** [_go_.6] Error 1
--- exit status 2
goinstall: installing goprotobuf.googlecode.com/hg/proto: running gomake: exit 
status 2

What version of the product are you using? On what operating system?

Mac OS X 10.6.7 with protobuf-2.3.0 and an up-to-date Go version from  
https://go.googlecode.com/hg installed.

Please provide any additional information below.

Original issue reported on code.google.com by Yi.Wang.2005 on 31 Mar 2011 at 2:43

GoogleCodeExporter commented 9 years ago
I'm almost certain you're trying to compile up-to-date protobufs against an 
out-of-date Go installation.  Are you sure you have an up to date, compiled 
instance of the Go tree, and only one?  And that when you compile protobuf 
that's the version you're getting.  These errors are all indications that 
you're not.

Look at $GOROOT, $GOBIN, etc.

Original comment by r@golang.org on 31 Mar 2011 at 6:27

GoogleCodeExporter commented 9 years ago

Original comment by dsymo...@golang.org on 5 Aug 2011 at 6:46