omniscale / imposm3

Imposm imports OpenStreetMap data into PostGIS
http://imposm.org/docs/imposm3/latest/
Apache License 2.0
730 stars 157 forks source link

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

Open smomapz opened 7 months ago

smomapz commented 7 months ago

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 7 months ago

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 commented 7 months ago

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.