omniscale/imposm3

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

smomapz opened this issue · 2 comments

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 commented

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).

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.