dgraph-io / ristretto

A high performance memory-bound Go cache
https://dgraph.io/blog/post/introducing-ristretto-high-perf-go-cache/
Apache License 2.0
5.54k stars 364 forks source link

[BUG]: compilation reports asm error when -buildmode=plugin #357

Closed bafflingbug closed 4 months ago

bafflingbug commented 11 months ago

What version of Ristretto are you using?

v0.1.0

What version of Go are you using?

1.18.3

Have you tried reproducing the issue with the latest release?

None

What is the hardware spec (RAM, CPU, OS)?

amd64 16G linux

What steps will reproduce the bug?

Build the program using -buildmode=plugin

# 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 (/home/webroot/go/1.18.10/pkg/mod/github.com/cespare/xxhash/v2@v2.1.1/xxhash_amd64.s:120)       ADDQ    R15, AX
asm: assembly failed

Expected behavior and actual result.

No response

Additional information

After testing, related problems are solved in xxhash v2.2.0, please update https://github.com/cespare/xxhash/issues/54