v
v copied to clipboard
C error when running `gg` under Wayland
Describe the bug
gg
cannot run on Wayland, but V should still tell you that it can't before the compiler does.
Expected Behavior
For V to generate an error that gg
cannot be run on Wayland, maybe something like:
Error: `gg` cannot be run under Wayland
Current Behavior
==================
/tmp/v_1000/ui_demo.12131229183948694070.tmp.c:64795: warning: assignment from incompatible pointer type
/lib/libc.so.6: error: bad architecture
tcc: error: referenced dll 'libc.so.6' not found
/lib/libm.so.6: error: bad architecture
tcc: error: /usr/lib64/libm.so: unrecognized file type
/usr/lib/libm.so: error: bad architecture
/lib/libc.so.6: error: bad architecture
tcc: error: referenced dll 'libc.so.6' not found
tcc: error: referenced dll 'libXau.so.6' not found
tcc: error: referenced dll 'libxcb.so.1' not found
tcc: error: library 'X11' not found
...
==================
(Use `v -cg` to print the entire error message)
builder error:
==================
C error. This should never happen.
Reproduction Steps
Run any of the gg
or sokol
examples under a Wayland environment.
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.3.3 8c35ee0.6f85384
Environment details (OS name and version, etc.)
V full version: V 0.3.3 8c35ee0.6f85384
OS: linux, "Gentoo Linux"
Processor: 16 cpus, 64bit, little endian, AMD Ryzen 9 5900HX with Radeon Graphics
getwd: /home/csfore
vexe: /home/csfore/v/v
vexe mtime: 2023-04-22 18:34:07
vroot: OK, value: /home/csfore/v
VMODULES: OK, value: /home/csfore/.vmodules
VTMP: OK, value: /tmp/v_1000
Git version: git version 2.39.2
Git vroot status: weekly.2023.15-50-g6f85384f
.git/config present: true
CC version: cc (Gentoo 12.2.1_p20230121-r1 p10) 12.2.1 20230121
thirdparty/tcc status: thirdparty-linux-amd64 12f392c3
Do you mean "run at all" or "as a native Wayland app"? Because you can run your X11 apps with xwayland
I feel like it shouldn't matter, as a C error is a C error regardless. If it does matter, then run at all, as I have X11 libraries installed.