Replies: 13 comments 10 replies
-
Please reinstall V using these instructions: https://github.com/vlang/v?tab=readme-ov-file#installing-v-from-source |
Beta Was this translation helpful? Give feedback.
-
is that builtin.closure error related to 2d87ac4 ? |
Beta Was this translation helpful? Give feedback.
-
Yes, so it is part of the V repo, and should have been found... if you had the latest source. |
Beta Was this translation helpful? Give feedback.
-
as I often cannot visit github.com, I use an mirror, such as https://gitclone.com/github.com/vlang/vc, and modified the url in makefile.
|
Beta Was this translation helpful? Give feedback.
-
/vg/v# VFLAGS="-cc cc" make
ldd: error: you do not have read permission for `/bin/ls'
cd ./vc && git clean -xf && git pull --quiet
cd ./thirdparty/tcc && git clean -xf && git pull --quiet
fatal: unable to access 'https://github.1git.de/vlang/tccbin/': gnutls_handshake() failed: Internal error
make: *** [GNUmakefile:157: latest_tcc] Error 1
and I modified the makefile,from VFLAGS ?= to VFLAGS ?="-cc cc" and tried again
/vg/v# make
ldd: error: you do not have read permission for `/bin/ls'
cd ./vc && git clean -xf && git pull --quiet
cd ./thirdparty/tcc && git clean -xf && git pull --quiet
fatal: unable to access 'https://github.1git.de/vlang/tccbin/': CONNECT tunnel failed, response 302
make: *** [GNUmakefile:157: latest_tcc] Error 1
/vg/v#
At 2025-08-06 21:08:40, "JalonSolov" ***@***.***> wrote:
That version of tcc will likely not work correctly with V. That's why we try to have a version for each system available for download, though it doesn't appear that we have one for your system.
I suggest making the environment variable VFLAGS="-cc cc" then trying the make command again. Your compiles will run slower, but should, at least, work.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
cc --version
cc (GCC) 14.2.0
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
gcc --version
gcc (GCC) 14.2.0
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
they are the same.
could you add a build of aarch64 linux on github actions?
At 2025-08-07 10:11:49, "JalonSolov" ***@***.***> wrote:
You have a very unusual system. The first "red flag" is this:
ldd: error: you do not have read permission for `/bin/ls'
You should always have read permission to standard system tools.
You also don't appear to have the "standard" CC link to a compiler, as it is still trying to run tcc.
So try this, instead: VFLAGS="-cc gcc" make if you have the gcc compiler installed, or VFLAGS="-cc clang" make if you have clang installed. If you don't have either one, I'm not sure what to tell you...
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Compiled
Produced binary:
System specs (v doctor)
I think adding this to V CI for weekly builds will be easy, I'll give it a try. For now use this download link v_linux_arm64.zip 16.5MB (expires after 7 days or 100 downloads). |
Beta Was this translation helpful? Give feedback.
-
I tried on Termux/Android as readme.md wrote.
pkg update
pkg install clang libexecinfo libgc libgc-static make git
the clang version is 20.8
git clone --depth=1 https://gitclone.com/github.com/vlang/v
cd v
git clone --depth=1 https://gitclone.com/github.com/vlang/vc
make
when run
cc -std=gnu11 -w -o v1 vc/v.c -lm -lexecinfo -lpthread
I got an error of aligned_aclloc function not declared, i add void *aligned_alloc( size_t alignment, size_t size ); line at the top of file vc/v.c , the v1 file is build.
when run
./v1 -no-parallel -o v2 -cc cc cmd/v
I got the same error of aarch64 Linux .
At 2025-08-07 10:11:49, "JalonSolov" ***@***.***> wrote:
You have a very unusual system. The first "red flag" is this:
ldd: error: you do not have read permission for `/bin/ls'
You should always have read permission to standard system tools.
You also don't appear to have the "standard" CC link to a compiler, as it is still trying to run tcc.
So try this, instead: VFLAGS="-cc gcc" make if you have the gcc compiler installed, or VFLAGS="-cc clang" make if you have clang installed. If you don't have either one, I'm not sure what to tell you...
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
the file your attached work on my machine, thanks a lot
it need GLIBC_2.33 and 2.34, so can not run on kylin linux.
I run a gcc docker, the v works
the log is as following
***@***.***:/shujv/par/d/v$ ./v
./v: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./v)
./v: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./v)
***@***.***:/shujv/par/d/v$ sudo docker start gcc
gcc
***@***.***:/shujv/par/d/v$ sudo docker exec -it gcc bash
***@***.***:/# cd /par/d/v
***@***.***:/par/d/v# ./v
____ ____
\ \ / / | Welcome to the V REPL (for help with V itself, type exit , then run v help ).
\ \/ / | Note: the REPL is highly experimental. For best V experience, use a text editor,
\ / | save your code in a main.v file and execute: v run main.v
\ / | V 0.4.11 3a6b651 . Use list to see the accumulated program so far.
\__/ | Use Ctrl-C or exit to exit, or help to see other available commands.
>>
At 2025-08-08 00:25:27, "gechandesu" ***@***.***> wrote:
Compiled v from 3a6b651 on OrangePi 3B (aarch64) on Armbian (Debian 12 based):
git clone --depth=1 https://github.com/vlang/v
cd v
make
./v -cc gcc -prod -o v cmd/v
./v -cc gcc -prod cmd/tools/vup.v
./v -cc gcc -prod cmd/tools/vdoctor.v
find . -type d -name ".git" -exec rm -rf {} +
rm -rf vc/
rm -rf v_old
rm -rf vlib/v/tests/bench/gcboehm/*.svg.xz
cd ..
zip -r9 --symlinks v_linux_arm64.zip v/
Produced binary:
$ ./v version
V 0.4.11 3a6b651
$ ldd v
linux-vdso.so.1 (0x0000ffffaa797000)
libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000ffffaa270000)
/lib/ld-linux-aarch64.so.1 (0x0000ffffaa750000)
System specs (v doctor)
| V full version | V 0.4.11 3a6b651 |
| OS | linux, Armbian 25.2.0-trunk.388 bookworm |
| Processor | 4 cpus, 64bit, little endian, aarch64 |
| Memory | 2.54GB/7.51GB |
| | |
| V executable | /home/ge/vlang/v/v |
| V last modified time | 2025-08-07 16:01:48 |
| | |
| V home dir | OK, value: /home/ge/vlang/v |
| VMODULES | OK, value: /home/ge/.vmodules |
| VTMP | OK, value: /tmp/v_1000 |
| Current working dir | OK, value: /home/ge/vlang/v |
| | |
| Git version | git version 2.39.5 |
| V git status | N/A |
| .git/config present | false |
| | |
| cc version | cc (Debian 12.2.0-14+deb12u1) 12.2.0 |
| gcc version | gcc (Debian 12.2.0-14+deb12u1) 12.2.0 |
| clang version | N/A |
| tcc version | tcc version 0.9.27 mob:da11cf6 (AArch64 Linux) |
| tcc git status | N/A |
| emcc version | N/A |
| glibc version | ldd (Debian GLIBC 2.36-9+deb12u10) 2.36 |
I think adding this to V CI for weekly builds will be easy, I'll give it a try.
For now use this download link v_linux_arm64.zip 16.5MB (expires after 7 days or 100 downloads).
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I use your binary to build vsql, the build process is ok,but the vsql doesn't work, my os:
kylin linux+ docker gcc 14.2(debian 12)
***@***.***:/par/d/vsql# git clone --depth=1 https://gitclone.com/github.com/elliotchance/vsql
Cloning into 'vsql'...
remote: 对象计数中: 366, 完成.
remote: 压缩对象中: 100% (328/328), 完成.
remote: Total 366 (delta 32), reused 366 (delta 32)
Receiving objects: 100% (366/366), 1.36 MiB | 661.00 KiB/s, done.
Resolving deltas: 100% (32/32), done.
***@***.***:/par/d/vsql# export PATH=$PATH:/par/d/v
***@***.***:/par/d/vsql# cd vsql
***@***.***:/par/d/vsql/vsql# make bin/vsql
./scripts/generate-grammar.vsh
v run scripts/vyacc.v -o vsql/y.v vsql/y.y
conflicts: 8 shift/reduce, 946 reduce/reduce
mkdir -p bin
v -prod cmd/vsql -o bin/vsql
***@***.***:/par/d/vsql/vsql# bin/vsql cli test.vsql
no version information available
cli execution error: unable seek start: os.FileNotOpenedError: os: file not opened
***@***.***:/par/d/vsql/vsql# bin/vsql cli test.vsql
no version information available
vsql> create table foo(a int,b varchar(10));
ERROR: unable to read raw header: os.Eof:
vsql> create table foo(a int,b varchar(10));
ERROR: unable to read raw header: os.Eof:
vsql> insert into foo(a,b) values(1,'abc');
^C
在 2025-08-08 01:39:12,"gechandesu" ***@***.***> 写道:
Created PR #25064
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I use another phone that installed gcc on proot, it works fine.
so the v language needs the gcc installed to be run?
At 2025-08-08 00:25:27, "gechandesu" ***@***.***> wrote:
Compiled v from 3a6b651 on OrangePi 3B (aarch64) on Armbian (Debian 12 based):
git clone --depth=1 https://github.com/vlang/v
cd v
make
./v -cc gcc -prod -o v cmd/v
./v -cc gcc -prod cmd/tools/vup.v
./v -cc gcc -prod cmd/tools/vdoctor.v
find . -type d -name ".git" -exec rm -rf {} +
rm -rf vc/
rm -rf v_old
rm -rf vlib/v/tests/bench/gcboehm/*.svg.xz
cd ..
zip -r9 --symlinks v_linux_arm64.zip v/
Produced binary:
$ ./v version
V 0.4.11 3a6b651
$ ldd v
linux-vdso.so.1 (0x0000ffffaa797000)
libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000ffffaa270000)
/lib/ld-linux-aarch64.so.1 (0x0000ffffaa750000)
System specs (v doctor)
| V full version | V 0.4.11 3a6b651 |
| OS | linux, Armbian 25.2.0-trunk.388 bookworm |
| Processor | 4 cpus, 64bit, little endian, aarch64 |
| Memory | 2.54GB/7.51GB |
| | |
| V executable | /home/ge/vlang/v/v |
| V last modified time | 2025-08-07 16:01:48 |
| | |
| V home dir | OK, value: /home/ge/vlang/v |
| VMODULES | OK, value: /home/ge/.vmodules |
| VTMP | OK, value: /tmp/v_1000 |
| Current working dir | OK, value: /home/ge/vlang/v |
| | |
| Git version | git version 2.39.5 |
| V git status | N/A |
| .git/config present | false |
| | |
| cc version | cc (Debian 12.2.0-14+deb12u1) 12.2.0 |
| gcc version | gcc (Debian 12.2.0-14+deb12u1) 12.2.0 |
| clang version | N/A |
| tcc version | tcc version 0.9.27 mob:da11cf6 (AArch64 Linux) |
| tcc git status | N/A |
| emcc version | N/A |
| glibc version | ldd (Debian GLIBC 2.36-9+deb12u10) 2.36 |
I think adding this to V CI for weekly builds will be easy, I'll give it a try.
For now use this download link v_linux_arm64.zip 16.5MB (expires after 7 days or 100 downloads).
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
also failed on proot without gcc.
~ $ proot-distro login ubuntu
***@***.***:~# v/v build-tools
cannot compile `/root/v/cmd/tools/vbuild-tools.v`: 1
builder error: 'inttypes.h' not found
At 2025-08-11 21:55:11, "gechandesu" ***@***.***> wrote:
I use another phone that installed gcc on proot, it works fine.
so the v language needs the gcc installed to be run?
Definetly not, but most of V tools are not precompiled. v command executes the vrepl.v. gcc or clang is needed to build vrepl.v on first run. Same for other tools. In V weekly release archive only vup.v (v up command) and vdoctor.v (v doctor command) tools are precompiled. You can force tools compilation via v build-tools command.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
many system doesn't have the inttypes.h
such as docker.io/library/debian
At 2025-08-11 22:27:37, "JalonSolov" ***@***.***> wrote:
inttypes.h is a dev file that needs to be installed outside V. It is a system include.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I tried to compile by myself, always failed
Beta Was this translation helpful? Give feedback.
All reactions