Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io
MIT License
35.76k
stars
2.16k
forks
source link
Building v on current Raspian 32-Bit (debian bulleye) fails #15563
pi@homeserver:~/v/v $ export LDFLAGS="-latomic"
pi@homeserver:~/v/v $ make
cd ./vc && git clean -xf && git pull --quiet
cd ./thirdparty/tcc && git clean -xf && git pull --quiet
cc -std=gnu99 -w -o v1.exe ./vc/v.c -lm -lpthread -latomic
./v1.exe -no-parallel -o v2.exe cmd/v
./v2.exe -o ./v cmd/v
rm -rf v1.exe v2.exe
Note: `tcc` was not used, so unless you install it yourself, your backend
C compiler will be `cc`, which is usually either `clang`, `gcc` or `msvc`.
These C compilers, are several times slower at compiling C source code,
compared to `tcc`. They do produce more optimised executables, but that
is done at the cost of compilation speed.
V has been successfully built
V 0.3.0 d75c62b
pi@homeserver:~/v/v $ v doctor
OS: linux, Raspbian GNU/Linux 11 (bullseye)
Processor: 4 cpus, 32bit, little endian, ARMv7 Processor rev 4 (v7l)
CC version: cc (Raspbian 10.2.1-6+rpi1) 10.2.1 20210110
getwd: /home/pi/v/v
vmodules: /home/pi/.vmodules
vroot: /home/pi/v/v
vexe: /home/pi/v/v/v
vexe mtime: 2022-08-27 13:23:01
is vroot writable: true
is vmodules writable: true
V full version: V 0.3.0 d75c62b
Git version: git version 2.30.2
Git vroot status: weekly.2022.34-38-gd75c62b8
.git/config present: true
thirdparty/tcc status: thirdparty-linux-arm b5dcedaa
On a fresh installed Raspberry Pi System (
) make v fails:
Adding a explicit
-latomic
would fix the problem:workaround: