goreleaser / goreleaser-cross

Docker image for Golang cross-compiling with CGO
MIT License
134 stars 23 forks source link

libxar.so not found #28

Closed AskAlexSharov closed 1 year ago

AskAlexSharov commented 1 year ago

Version: 1.19.5

failed to build for darwin_arm64

/usr/local/go/pkg/tool/linux_amd64/link: running oa64-clang++ failed: exit status 255
[263](https://github.com/ledgerwatch/erigon/actions/runs/4120944114/jobs/7116173623#step:6:264)
/osxcross/bin/arm64-apple-darwin21.1-ld: error while loading shared libraries: libxar.so.1: cannot open shared object file: No such file or directory
[264](https://github.com/ledgerwatch/erigon/actions/runs/4120944114/jobs/7116173623#step:6:265)
clang: error: unable to execute command: No such file or directory

https://github.com/ledgerwatch/erigon/actions/runs/4121190447/jobs/7116640008#step:6:75 https://github.com/ledgerwatch/erigon/blob/devel/.goreleaser.yml

troian commented 1 year ago

thanks, checking

troian commented 1 year ago

retagged 1.19.5. please retry

AskAlexSharov commented 1 year ago

Retry failed: https://github.com/ledgerwatch/erigon/actions/runs/4130391548/jobs/7137027883#step:7:258

   error=failed to build for darwin_arm64

/usr/local/go/pkg/tool/linux_amd64/link: running oa64-clang++ failed: exit status 255
[258](https://github.com/ledgerwatch/erigon/actions/runs/4130391548/jobs/7137027883#step:7:259)
/osxcross/bin/arm64-apple-darwin21.1-ld: error while loading shared libraries: libxar.so.1: cannot open shared object file: No such file or directory
troian commented 1 year ago

it looks like you're using image from docker hub, try one from ghcr.io instead as dockerhub releases are lacking behind for now.

AskAlexSharov commented 1 year ago

yes. this way works. thank you.

arbourd commented 1 year ago

I'm still experiencing this in both 1.20 and 1.19.

For anyone pulling v1.20 or v1.19 are going to get non-working versions of the image.

troian commented 1 year ago

you can set LD_LIBRARY_PATH manually curious tho. I've your project locally and it links fine

arbourd commented 1 year ago

The tags v1.20 need to be updated to reference v1.20.0.

troian commented 1 year ago

thanks, i'll update

troian commented 1 year ago

i've completely retagged 1.20.x 1.20. there was a fail during release.