omniscale / imposm3

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

Hangs on startup on arm64 Mac #264

Closed tomkv closed 3 years ago

tomkv commented 3 years ago

Context

When built as a native binary, it will hang on startup, no matter what command was chosen (even "version").

It is possible to exit with Ctrl-C.

This happens only on ARM Macs. On Intel Macs, it works fine.

Expected Behavior

Application should normally run.

Actual Behavior

Application is stuck, until Ctrl-C is pressed in the terminal.

Steps to Reproduce

  1. build native binary:
    brew install golang geos leveldb
    mkdir go && cd go
    export GOPATH=`pwd`
    go get -u github.com/omniscale/imposm3
    CGO_CPPFLAGS="-I/opt/homebrew/include" CGO_LDFLAGS="-L/opt/homebrew/lib" \
    go install -tags="ldbpost121" github.com/omniscale/imposm3/cmd/imposm@v0.11.1
  2. run it:
    cd $GOPATH/bin
    ./imposm version

Context

Your Environment

tomkv commented 3 years ago

No longer an issue with go 1.16.1 and macOS 11.2.3.