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

How to build consul in arch mips64el #8381

Closed
PoplarYang opened this issue Jul 25, 2020 · 1 comment
Closed

How to build consul in arch mips64el #8381

PoplarYang opened this issue Jul 25, 2020 · 1 comment
Labels
type/question Not an "enhancement" or "bug". Please post on discuss.hashicorp

Comments

@PoplarYang
Copy link

Feature Description

I want to use consul in arch mips64el, but I find GOOS=linux GOARCH=mips64le go build doesn't work. The error is:

../../go/pkg/mod/github.com/boltdb/bolt@v1.3.1/db.go:101:13: undefined: maxMapSize

Use Case(s)

According to the error above, I add below to ../../go/pkg/mod/github.com/boltdb/bolt@v1.3.1/db.go. GOOS=linux GOARCH=mips64le go build passed. But I think it's not a good idea.

const maxMapSize = 0xFFFFFFFFFFFF // 256TB

// maxAllocSize is the size used when creating array pointers.
const maxAllocSize = 0x7FFFFFFF

// Are unaligned load/stores broken on this arch?
var brokenUnaligned = false
@jsosulska jsosulska added the type/question Not an "enhancement" or "bug". Please post on discuss.hashicorp label Aug 7, 2020
@jsosulska
Copy link
Contributor

Hello @PoplarYang

Thank you for posting this. This is an issue with boltdb as a dependency. Unfortunately, that project is no longer being maintained. There is an open issue to upgrade the bolt database. Please follow that issue and then try to recompile after.

I followed the thread on the github issues page, and found someone who built with the following configuration.

In the meantime, I will go ahead and close this issue.

Best, Jono

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/question Not an "enhancement" or "bug". Please post on discuss.hashicorp
Projects
None yet
Development

No branches or pull requests

2 participants