You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cant build sharness deps: got some issues when running make in test/sharness in a freshly checked-out repo:
$ cd test/sharness
$ make
(...)
go build -buildmode=plugin -pkgdir "/home/lidel/.local/gopath/pkg/linux_amd64_dynlink" "-asmflags=all='-trimpath=/home/lidel/.local/gopath'" "-gcflags=all='-trimpath=/home/lidel/.local/gopath'" -o "plugin/plugins/git.so" "github.com/ipfs/go-ipfs/plugin/plugins/git/main"
# 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 (/home/lidel/.local/gopath/pkg/mod/github.com/klauspost/[email protected]/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 (/home/lidel/.local/gopath/pkg/mod/github.com/cespare/xxhash/[email protected]/xxhash_amd64.s:120) ADDQR15, AX
asm: assembly failed
make[1]: *** [plugin/plugins/Rules.mk:15: plugin/plugins/git.so] Error 2
make[1]: Leaving directory '/home/lidel/project/ipfs/go-ipfs'
make: *** [GNUmakefile:7: aggregate] Error 2
This issue is really cespare/xxhash#54. While we can update xxhash with something like:
go build -buildmode=plugin -pkgdir "/home/adin/go/pkg/linux_amd64_dynlink" "-asmflags=all='-trimpath='" "-gcflags=all='-trimpath='" -o "plugin/plugins/git.so" "github.com/ipfs/go-ipfs/plugin/plugins/git/main"
chmod +x "plugin/plugins/git.so"
go build -buildmode=plugin -pkgdir "/home/adin/go/pkg/linux_amd64_dynlink" "-asmflags=all='-trimpath='" "-gcflags=all='-trimpath='" -o "plugin/plugins/badgerds.so" "github.com/ipfs/go-ipfs/plugin/plugins/badgerds/main"
# github.com/cespare/xxhash
asm: xxhash_amd64.s:120: when dynamic linking, R15 is clobbered by a global variable access and is used here: 00092 (/home/adin/go/pkg/mod/github.com/cespare/[email protected]/xxhash_amd64.s:120) ADDQ R15, AX
asm: assembly failed
make: *** [plugin/plugins/Rules.mk:15: plugin/plugins/badgerds.so] Error 2
Because Badger is on xxhash v1.1.0 which is from September 2018.
Probably the easiest fix here is to not build Badger as an external plugin since it's preloaded with go-ipfs anyway. However, we should report upstream and see if they'll fix (and if they're ok with a v1 backport).
The text was updated successfully, but these errors were encountered:
tested today with go1.17.8 and issue is still here (can be reproduced by clean go-ipfs clone, then doing make clean and then cd test/sharness && make).
Checklist
Installation method
built from source
Version
No response
Config
No response
Description
From @lidel:
This issue is really cespare/xxhash#54. While we can update xxhash with something like:
We'll still run into this:
Because Badger is on xxhash v1.1.0 which is from September 2018.
Probably the easiest fix here is to not build Badger as an external plugin since it's preloaded with go-ipfs anyway. However, we should report upstream and see if they'll fix (and if they're ok with a v1 backport).
The text was updated successfully, but these errors were encountered: