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

Build fail with tags=openssl for mipsle #6736

Closed
ImNotMyself opened this issue Oct 29, 2019 · 1 comment · Fixed by #6738
Closed

Build fail with tags=openssl for mipsle #6736

ImNotMyself opened this issue Oct 29, 2019 · 1 comment · Fixed by #6738
Labels
kind/bug A bug in existing code (including security flaws)

Comments

@ImNotMyself
Copy link

Version information:

go get -d -v -u github.com/ipfs/go-ipfs

Description:

When trying to build from source with openssl for mipsle:

export GOOS=linux
export GOARCH=mipsle
make build GOFLAGS=-tags=openssl

Got error messages:

go version go1.13.3 linux/amd64
bin/check_go_version 1.12
go build -tags=openssl -o "cmd/ipfs/ipfs" "github.com/ipfs/go-ipfs/cmd/ipfs"
go: downloading github.com/libp2p/go-openssl v0.0.2
go: extracting github.com/libp2p/go-openssl v0.0.2
go: finding github.com/libp2p/go-openssl v0.0.2
build github.com/ipfs/go-ipfs/cmd/ipfs: cannot find module for path github.com/libp2p/go-openssl/utils
cmd/ipfs/Rules.mk:22: recipe for target 'cmd/ipfs/ipfs' failed
make: *** [cmd/ipfs/ipfs] Error 1

No problem if build for amd64:

export GOARCH=amd64
make build GOFLAGS=-tags=openssl
go version go1.13.3 linux/amd64
bin/check_go_version 1.12
go build -tags=openssl -o "cmd/ipfs/ipfs" "github.com/ipfs/go-ipfs/cmd/ipfs"
go: downloading github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572
go: extracting github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572
go: finding github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572

Do I miss anything when building for mipsle ?

@ImNotMyself ImNotMyself added the kind/bug A bug in existing code (including security flaws) label Oct 29, 2019
@Stebalien
Copy link
Member

OpenSSL support requires CGO and CGO is disabled by default when cross compiling. You'll need to:

  1. Make sure you have a mips toolchain installed.
  2. export CGO_ENABLED=1.

Unfortunately, that's all I know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants