v
v copied to clipboard
./thirdparty/stdatomic/nix/atomic.h:12:23: fatal error: stdatomic.h: No such file or directory #include <stdatomic.h> compilation terminated. GNUmakefile:93: recipe for target 'all' failed
V version: OS: Linux CentOS7 3.10.0-1160.2.2.el7.x86_64 #1 SMP Tue Oct 20 16:53:08 UTC 2020 x86_64 GNU/Linux
What did you do? make
What did you expect to see? A clean compilation of the v compiler
What did you see instead?
make
make fresh_vc
make[1]: Entering directory '/home/user/vlang/v'
rm -rf ./vc
git clone --depth 1 --quiet --single-branch https://github.com/vlang/vc ./vc
make[1]: Leaving directory '/home/user/vlang/v'
cd ./vc && git clean -xf && git pull --quiet
make fresh_tcc
make[1]: Entering directory '/home/user/vlang/v'
rm -rf ./thirdparty/tcc
git clone --depth 1 --quiet --single-branch --branch thirdparty-linux-amd64 https://github.com/vlang/tccbin ./thirdparty/tcc
make[1]: Leaving directory '/home/user/vlang/v'
cd ./thirdparty/tcc && git clean -xf && git pull --quiet
cc -std=gnu99 -w -I ./thirdparty/stdatomic/nix -o v1.exe ./vc/v.c -lm -lpthread
In file included from ./vc/v.c:1242:0:
./thirdparty/stdatomic/nix/atomic.h:12:23: fatal error: stdatomic.h: No such file or directory
#include <stdatomic.h>
^
compilation terminated.
GNUmakefile:93: recipe for target 'all' failed
make: *** [all] Error 1
Probably missing any of clang or libstd++.