ipfs/go-ds-s3

Fails on compile inside dockerfile.

damarnez opened this issue · 2 comments

When I try to compile the library fails.
GO Version : 1.17.6

CGO_ENABLED=1 go build -trimpath -buildmode=plugin -o "s3plugin.so" "plugin/main/main.go"
# github.com/klauspost/compress/zstd/internal/xxhash
asm: xxhash_amd64.s:120: when dynamic linking, R15 is clobbered by a global variable access and is used here: 00092 (/go/pkg/mod/github.com/klauspost/compress@v1.11.7/zstd/internal/xxhash/xxhash_amd64.s:120)        ADDQ    R15, AX
asm: assembly failed
# github.com/cespare/xxhash/v2
asm: xxhash_amd64.s:120: when dynamic linking, R15 is clobbered by a global variable access and is used here: 00092 (/go/pkg/mod/github.com/cespare/xxhash/v2@v2.1.1/xxhash_amd64.s:120)       ADDQ    R15, AX
asm: assembly failed
make: *** [Makefile:31: s3plugin.so] Error 2

Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review.
In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment.
Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:

  • "Priority" labels will show how urgent this is for the team.
  • "Status" labels will show if this is ready to be worked on, blocked, or in progress.
  • "Need" labels will indicate if additional input or analysis is required.

Finally, remember to use https://discuss.ipfs.io if you just need general support.

2022-07-01 conversation: We're going to close this. The README specifies the proper way to do this: https://github.com/ipfs/go-ds-s3/blob/master/README.md#building-and-installing