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

Can't compile misc/cgo/life on darwin/amd64 #723

Closed
gopherbot opened this issue Apr 11, 2010 · 4 comments
Closed

Can't compile misc/cgo/life on darwin/amd64 #723

gopherbot opened this issue Apr 11, 2010 · 4 comments

Comments

@gopherbot
Copy link
Contributor

by rjmpminus1:

What steps will reproduce the problem?
1. cd $GOROOT/misc/cgo/life && make clean && make install


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

I expect the example library and program to be compiled and installed.

Instead I get the following:
shaman:~ joe$ cd $GOROOT/misc/cgo/life && make clean && make install
rm -rf *.o *.a *.[568vq] [568vq].out life *.cgo1.go *.cgo2.c _cgo_defun.c
_cgo_gotypes.go _cgo_export.* *.so _obj _test _testmain.go
CGOPKGPATH= /Users/joe/go/bin/cgo  life.go
/Users/joe/go/bin/6g -o _go_.6 life.cgo1.go _cgo_gotypes.go
/Users/joe/go/bin/6c -FVw -I"/Users/joe/go/src/pkg/runtime" -D_64BIT
_cgo_defun.c
rm -f _obj/life.a
/Users/joe/go/bin/gopack grc _obj/life.a _go_.6 _cgo_defun.6
cp _obj/life.a "/Users/joe/go/pkg/darwin_amd64/life.a"
gcc -m64 -fPIC -O2 -o life.cgo2.o -c  life.cgo2.c
make: *** No rule to make target `_cgo_export.c', needed by
`_cgo_export.o'.  Stop.
rm life.cgo2.c



What is your $GOOS?  $GOARCH?
GOOS=darwin
GOARCH=amd64


Which revision are you using?  (hg identify)
c74c713ceb18 tip


Please provide any additional information below.
I can do a successful make install under GOOS=linux and GOARCH=amd64.
@rsc
Copy link
Contributor

rsc commented Apr 11, 2010

Comment 1:

Owner changed to i...@golang.org.

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented May 1, 2010

Comment 2:

Labels changed: added cgo.

@ianlancetaylor
Copy link
Contributor

Comment 3:

I can't recreate this problem on either Darwin or GNU/Linux, but based on the error 
message http://golang.org/cl/1073041 should fix it.

@ianlancetaylor
Copy link
Contributor

Comment 4:

This issue was closed by revision b3901dc.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants