Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when dynamic linking, R15 is clobbered by a global variable access #428

Closed
efabens opened this issue Aug 31, 2021 · 3 comments · Fixed by #430
Closed

when dynamic linking, R15 is clobbered by a global variable access #428

efabens opened this issue Aug 31, 2021 · 3 comments · Fixed by #430

Comments

@efabens
Copy link

efabens commented Aug 31, 2021

When compiling in plugin mode I am getting the following error

> go build -buildmode=plugin plugins/requestlogger/requestlogger.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 (/Users/efabens/go/pkg/mod/github.com/klauspost/compress@v1.13.5/zstd/internal/xxhash/xxhash_amd64.s:120)        ADDQ    R15, AX
asm: assembly failed

CONTEXT
The requestlogger.go, uses https://github.com/tozny/utils-go/blob/b17551f08121c0f8be8e660e5004547930380ea3/stream/kakfa.go#L126 which uses https://github.com/Shopify/sarama which in turn uses this lovely library.

I sincerely wish I knew assembly well enough to be able to help resolve this issue but alas that is not a specialty of mine.

What I have found, that may be useful
https://groups.google.com/g/golang-codereviews/c/124cVR_LDTo
golang/go#43661

@efabens
Copy link
Author

efabens commented Sep 1, 2021

Forgot to give versions.

  • go 1.17 darwin/amd64 on macOS 11.4
  • go version go1.17 linux/amd64 docker build in image based on alpine 3.14.2

@klauspost
Copy link
Owner

Fixed by #430

@efabens
Copy link
Author

efabens commented Sep 1, 2021

Thank You!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants