vlang / v

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.79k stars 2.16k forks source link

OpenBSD V selfcompilation segfault #4003

Closed XVilka closed 4 years ago

XVilka commented 4 years ago

V version: bcaf72eccbea6520f0c2fdaf2246f315b662c866 OS: OpenBSD (SourceHut)

What did you do? Try to compile V

What did you expect to see? Successful compilation

What did you see instead? Full log is here: https://builds.sr.ht/~xvilka/job/167792#task-install-453

cd v && git reset --hard bcaf72eccbea6520f0c2fdaf2246f315b662c866
HEAD is now at bcaf72ec cgen: update the test
gmake -C v
gmake[2]: Entering directory '/home/build/radare2/test/src/v'
gmake fresh_vc
gmake[3]: Entering directory '/home/build/radare2/test/src/v'
rm -rf /tmp/vc
git clone --depth 1 --quiet https://github.com/vlang/vc /tmp/vc
gmake[3]: Leaving directory '/home/build/radare2/test/src/v'
cd /tmp/vc && git clean -xf && git pull --quiet
gmake fresh_tcc
gmake[3]: Entering directory '/home/build/radare2/test/src/v'
rm -rf /var/tmp/tcc
git clone --depth 1 --quiet https://github.com/vlang/tccbin /var/tmp/tcc
gmake[3]: Leaving directory '/home/build/radare2/test/src/v'
cd /var/tmp/tcc && git clean -xf && git pull --quiet
clang  -std=gnu11 -w -o v /tmp/vc/v.c  -lm
./v self
V Self Compiling...
Segmentation fault (core dumped)
medvednikov commented 4 years ago

Should be fixed now.