Closed tengkuizdihar closed 5 months ago
cp /data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu/usr/lib/aarch64-linux-gnu/libgc.a ./
can you elaborate?
On Mon, 6 Feb 2023, 11:34 xiaojin20, @.***> wrote:
cp /data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/ubuntu/usr/lib/aarch64-linux-gnu/libgc.a ./
— Reply to this email directly, view it on GitHub https://github.com/vlang/v/issues/16386#issuecomment-1418505070, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFIOKCS6RICJ5RLOMWMZGFLWWB5O7ANCNFSM6AAAAAAR5GHYPQ . You are receiving this because you authored the thread.Message ID: @.***>
安装aarch64-linux-gnu,重aarch64-linux-gnu安装路径复制,libgc.a
ok, just did a translation for that, but you do realize I'm not on Ubuntu but on Nixos right? using the nix ecosystems?
用find命令 全系统, 搜索libgc.a 这文件在安装gcc时,是默认安装的。
@tengkuizdihar hey, I ran into the same error, and found the libgc.a file I'm now going through another error, my efforts so far are at https://github.com/NixOS/nixpkgs/pull/231959 If you have any ideas, feel free to post anything.
its on nixpkgs now.
If anyone still wanna build from source (works on termux android and all derivative):
cc -std=gnu99 -w -o v1.exe ./vc/v.c -lm -lpthread
,cd v/thirdparty
git clone https://github.com/vlang/tccbin --branch thirdparty-linux-aarch64 tcc
. Customize this to your device. See here for available branches.fg
V version:
OS: NixOS
What did you do? Mind you I'm not too familiar with the C buildsystem.
I'm trying to build vlang with a nix derivation but I'm having trouble with linking
libgc.a
. After some discussion, we decided to link libgc of our own instead of using what's provided locally viathirdparty/tcc
. Is there a way to do that? This piece of code tells me that you can use gc.o instead. I think I need to disable tinyc (how?) in the buildsystem.What did you expect to see?
v
is able to buildbuild-tools
,vdoc
,vvet
, etc.What did you see instead?