Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make install fails on Mac OS X 10.66 #30

Closed
jamra opened this issue Apr 5, 2011 · 6 comments
Closed

make install fails on Mac OS X 10.66 #30

jamra opened this issue Apr 5, 2011 · 6 comments

Comments

@jamra
Copy link

jamra commented Apr 5, 2011

When running make install, I am getting

make install
6g -o go.6 gocode.go autocompletefile.go package.go autocompletecontext.go server.go rpc.go decl.go apropos.go scope.go ripper.go config.go declcache.go os_posix.go
config.go:4: import /Users/Jacob/gocode/configfile.a: object is [darwin amd64 release.r56 7666] expected [darwin amd64 release.2011-03-07 7666]
make: *** [go.6] Error 1

I updated the go compiler to the latest version as well as the gocode source.
I am not so keen on make files. Can someone help me out?

@nsf
Copy link
Owner

nsf commented Apr 5, 2011

 make clean && make install

This should help

@jamra
Copy link
Author

jamra commented Apr 5, 2011

make install is outputting errors...different errors so we're getting somewhere.

make install
gomake -C goremote
6g -o go.6 goremote.go
6l -o goremote go.6
./goremote/goremote server.go | gofmt > rpc.go
gomake -C goconfig
6g -o go.6 configfile.go
rm -f _obj/configfile.a
gopack grc _obj/configfile.a go.6
cp goconfig/_obj/configfile.a .
6g -o go.6 gocode.go autocompletefile.go package.go autocompletecontext.go server.go rpc.go decl.go apropos.go scope.go ripper.go config.go declcache.go os_posix.go
gocode.go:288: undefined: os.ProcAttr
gocode.go:289: not enough arguments in call to os.StartProcess
autocompletefile.go:239: lastCursorAfter.List undefined (type ast.CaseClause has no field or method List)
autocompletefile.go:240: lastCursorAfter.List undefined (type *ast.CaseClause has no field or method List)
make: *
* [go.6] Error 1

@nsf
Copy link
Owner

nsf commented Apr 5, 2011

Same problem as here: https://github.com/nsf/gocode/issues#issue/29

@jamra
Copy link
Author

jamra commented Apr 5, 2011

I am using 6g for a compiler. Typing 6g -V gives me...

6g version release.2011-03-07 7666

@nsf
Copy link
Owner

nsf commented Apr 5, 2011

The latest version is:

[nsf @ src]$ 8g -V
8g version weekly.2011-04-04 7978

Use it, it works. It's a weekly release, you need to do:
hg update -r weekly
instead of
hg update -r release

@jamra
Copy link
Author

jamra commented Apr 5, 2011

I couldn't figure out how to get update to work so I just removed the go directory and cloned a new copy using -weekly instead of -release

The exact command:
hg clone -r weekly https://go.googlecode.com/hg/ go

Conclusion: I needed the latest copy of the Go compiler. Also, nsf is remarkably helpful. Thank you.

@jamra jamra closed this as completed Apr 5, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants