Skip to content

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

@gopherbot

Description

@gopherbot

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions