vlang / ui

A cross-platform UI library written in V
MIT License
2.31k stars 154 forks source link

Builder error on examples/users.v #508

Open ghost opened 1 year ago

ghost commented 1 year ago

V version: V 0.3.3 e2daa84 UI version: 0.0.4 OS: Gentoo Linux

What did you do?

v install ui
cd examples
v run users.v

What did you expect to see?

What did you see instead?

==================
/tmp/v_1000/users.9030358639595424200.tmp.c:70001: 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
/usr/lib/libXau.so.6: error: bad architecture
tcc: error: referenced dll 'libXau.so.6' not found
/usr/lib/libxcb.so.1: error: bad architecture
tcc: error: referenced dll 'libxcb.so.1' not found
...
==================
(Use `v -cg` to print the entire error message)

builder error: 
==================
C error. This should never happen.

This is a compiler bug, please report it using `v bug file.v`.

https://github.com/vlang/v/issues/new/choose

You can also use #help on Discord: https://discord.gg/vlang
ismyhc commented 1 year ago

Similar here. Cannot get any of the examples to run.

Im on Fedora 38 with latest v and ui

❯ ../v/v -cg examples/users.v 
/tmp/v_1000/users.10102165615358526159.tmp.c:44833: warning: assignment discards qualifiers from pointer target type
/tmp/v_1000/users.10102165615358526159.tmp.c:65553: warning: assignment from incompatible pointer type
tcc: error: library 'atomic' not found
builder error: 
==================
C error. This should never happen.

This is a compiler bug, please report it using `v bug file.v`.

https://github.com/vlang/v/issues/new/choose

You can also use #help on Discord: https://discord.gg/vlang
sandbankdisperser commented 1 year ago

The error from @ismyhc can be solved by symlinking the libatomic.so.1 to libatomic.so: sudo ln -s /usr/lib64/libatomic.so.1 /usr/lib64/libatomic.so Tested on Fedora