Open ghosert opened 1 month ago
The bug is confirmed: the Linux Aarch64 artifact downloaded from the release has the wrong architecture.
$ file avante_repo_map.so
avante_repo_map.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=7206c1188027a8a8e00385c612064599b9227481, not stripped
The build script should specify the --target
in an x86_64 host. Besides, to build Aarch Linux, gcc-aarch64-linux-gnu
is required.
FYI: https://github.com/apache/opendal-go-services/blob/57c42a0fb656977bcbb5c60492528895e8826d30/.github/workflows/build_artifacts.yaml#L91 https://github.com/apache/opendal-go-services/blob/57c42a0fb656977bcbb5c60492528895e8826d30/.github/workflows/build_artifacts.yaml#L69
I could submit a change tomorrow.
cc @yetone
UPDATE Well, there is a cross-compile issue. The tokenizers crate with http feature enabled depends on hf-hub, which depends on OpenSSL. OpenSSL has a well-known problem with cross-compilation.
FYI:
We can take a try on: https://github.com/255doesnotexist/lintestor/issues/22
Hmm let me try to see if I can depend on tokio for tokenizers
This was reported for two weeks. I've mentioned it could be resolved by
make BUILD_FROM_SOURCE=true
but it's not an ideal solution.
Is this hard to resolve?
Describe the bug
I saw the same issue with this one: https://github.com/yetone/avante.nvim/issues/684
but it happens inside Ubuntu 22.04 arm64. It could be reproduced in the host Macbook M3 Pro or the host Android phone. Both hosts are ARM64 architectures, and the docker guest OS is Ubuntu 22.04 arm64.
Neovim inside guest os ubuntu 22.04 is built from neovim source code.
I eventually resolved this issue by building avante.nvim from source code inside guest OS like:
make BUILD_FROM_SOURCE=true
but would like to check if this could be avoided since compiling sources usually takes time.
To reproduce
Expected behavior
avante.nvim should be able to start inside Ubuntu 22.04 arm64-based machine
Installation method
Use lazy.nvim:
Environment
neovim: 0.10.1+, my neovim is installed from neovim source codes, not sure if the same error happens from apt install neovim OS: Ubuntu 22.04 arm64
Repro
No response