Skip to content

cgo_export_static main only allowed in cgo-generated code #125

@p2227

Description

@p2227

mac 10.13.4
go version go1.8.3 darwin/amd64

my env:

export GOROOT=/usr/local/go # where your `go` sitting, usually here ( Mac )
export GOPATH=$HOME/go # means `~/go` 
export PATH=$PATH:$HOME/go/bin:$GOPATH/bin

I had successfully run

xcode-select --install
brew install protobuf
brew install pkg-config
(sudo) go get -u github.com/golang/protobuf/protoc-gen-go
(sudo) go get -u github.com/jteeuwen/go-bindata/...
(sudo) go get -u github.com/ry/v8worker2
cd $GOPATH/src/github.com/ry/v8worker2
./build.py --use_ccache

(sudo) go get -u github.com/ry/deno/...
cd $GOPATH/src/github.com/ry/deno

but when I run

make
go build -o deno ./cmd
# runtime
/usr/local/go/src/runtime/cgo.go:9:3: //go:cgo_export_static main only allowed in cgo-generated code
make: *** [deno] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions