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

Can't install latest revision: setMaxFileSize redeclared in this block #294

Open
smomapz opened this issue Apr 9, 2024 · 2 comments
Open

Comments

@smomapz
Copy link

smomapz commented Apr 9, 2024

I am trying to install the latest revision of imposm3 but since the changes last week I get the following error:

cache/ldb_pre_121.go:13:6: setMaxFileSize redeclared in this block
previous declaration at cache/ldb_post_121.go:15:52

when using

go get -u github.com/omniscale/imposm3
/go/src/github.com/omniscale/imposm3
go install -tags="ldbpost121" /go/src/github.com/omniscale/imposm3/cmd/imposm

Emitting the tag or changing to ldbpre121 does not resolve the issue.

I am running this on Ubuntu Focal with Go 1.13 and the libleveldb-dev package installed. It worked fine before the changes last week. What am I doing wrong?

@olt
Copy link
Member

olt commented Apr 9, 2024

It's go build -tags="ldbpre121" with the latest update. However, the error should not happen as the build tags are exclusive and only one file (post/pre) should be used. I recommend a fresh download and build.

I've updated the compile instructions as they were quite old. There is also a new binary release, but it might not work on Focal (untested).

@smomapz
Copy link
Author

smomapz commented Apr 9, 2024

I tried both make build and go build and with a fresh download (and fresh docker build) and it still gives me the same error.

The binaries also don't work because they seem to not be build for ARM chips.

If I manually rm ./cache/ldb_pre_121.go it works with go install /go/src/github.com/omniscale/imposm3/cmd/imposm though. So that is a workaround for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants