Navigation Menu

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

cmd/go, cmd/cgo: cgo includes with dots cause file not to found error #20405

Closed
odeke-em opened this issue May 18, 2017 · 2 comments
Closed

cmd/go, cmd/cgo: cgo includes with dots cause file not to found error #20405

odeke-em opened this issue May 18, 2017 · 2 comments

Comments

@odeke-em
Copy link
Member

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version devel +f700f89 Thu May 18 00:05:25 2017 +0000 darwin/amd64

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOBIN="/Users/emmanuelodeke/go/bin"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/emmanuelodeke/go"
GORACE=""
GOROOT="/Users/emmanuelodeke/go/src/go.googlesource.com/go"
GOTOOLDIR="/Users/emmanuelodeke/go/src/go.googlesource.com/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/v3/7z434qpx5v3bw0wh8h2myfpw0000gn/T/go-build506069945=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"

What did you do?

Tried to run

$ go get -u -v github.com/ethereumproject/go-ethereum/cmd/geth

What did you expect to see?

Successful go getting and compilation

What did you see instead?

github.com/ethereumproject/go-ethereum (download)
github.com/ethereumproject/go-ethereum/crypto/secp256k1
# github.com/ethereumproject/go-ethereum/crypto/secp256k1
In file included from ../../../../../../go/src/github.com/ethereumproject/go-ethereum/crypto/secp256k1/secp256.go:30:
../../../../../../go/src/github.com/ethereumproject/go-ethereum/crypto/secp256k1/./libsecp256k1/src/secp256k1.c:9:10: fatal error: 'include/secp256k1.h' file not found

However, this problem doesn't exist with

  • Go1.7
  • Go1.8
    just on tip

I don't yet have a minimal reproducer nor have I bissected, as am working on something else
but I am tracking it at ethereumproject/go-ethereum#237.

@ianlancetaylor
Copy link
Contributor

Probably a dup of #20266.

@odeke-em
Copy link
Member Author

Thank you @ianlancetaylor, yes in deed, seems like it. I can no longer reproduce the bug after the dup issue was fixed.

@golang golang locked and limited conversation to collaborators Jun 20, 2018
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