v
v copied to clipboard
compile of tvintris.v failed
V doctor:
V full version: V 0.4.7 bbbb864.05c7aa2
OS: linux, "Manjaro Linux"
Processor: 4 cpus, 64bit, little endian, Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz
getwd: /home/wpeckham/.vmodules
vexe: /home/wpeckham/v/v
vexe mtime: 2024-08-27 20:23:42
vroot: OK, value: /home/wpeckham/v
VMODULES: OK, value: /home/wpeckham/.vmodules
VTMP: OK, value: /tmp/v_1000
Git version: git version 2.46.0
Git vroot status: weekly.2022.24-4876-g05c7aa2c
.git/config present: true
CC version: cc (GCC) 14.2.1 20240805
thirdparty/tcc status: thirdparty-linux-amd64 a0799a5b
What did you do?
./v -g -o vdbg cmd/v && ./vdbg sdl/examples/tvintris/tvintris.v
See attached file sdl/examples/tvintris/tvintris.v
What did you expect to see?
successful compile
What did you see instead?
INFO: compile with `v -live sdl/examples/tvintris/tvintris.v `, if you want to use the @[live] function draw_begin .
================== C compilation error (from tcc): ==============
cc: /tmp/v_1000/tvintris.01J6ASNYWK7ANJFGF8V7KP01E7.tmp.c:2696: error: ';' expected (got "sdl__OSEvent")
=================================================================
(You can pass `-cg`, or `-show-c-output` as well, to print all the C error messages).
builder error:
==================
C error found. It should never happen, when compiling pure V code.
This is a V compiler bug, please report it using `v bug file.v`,
or goto https://github.com/vlang/v/issues/new/choose .
You can also use #help on Discord: https://discord.gg/vlang .
[!NOTE] You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote. Other reactions and those to comments will not be taken into account.