Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Builder error on examples/users.v #508

Open
ghost opened this issue Mar 1, 2023 · 2 comments
Open

Builder error on examples/users.v #508

ghost opened this issue Mar 1, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Mar 1, 2023

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
@ghost ghost added the bug Something isn't working label Mar 1, 2023
@ismyhc
Copy link

ismyhc commented Jun 27, 2023

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
Copy link
Contributor

sandbankdisperser commented Jul 22, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants