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

build fail with message "sys/cdefs.h: No such file or directory" #7542

Closed axetroy closed 3 years ago

axetroy commented 3 years ago

V version: V 0.2 0caf668

OS:

Linux in Github Action

What did you do?

v -prod -os linux -m32 -o cross-env_linux_386 main.v

What did you expect to see?

it should be compiled succesful.

What did you see instead?

==================
                 from /tmp/v/cross-env_linux_386.3082793611532960341.tmp.c:85:
/usr/include/features.h:424:12: fatal error: sys/cdefs.h: No such file or directory
 #  include <sys/cdefs.h>
            ^~~~~~~~~~~~~
compilation terminated.
...
==================
(Use `v -cg` to print the entire error message)

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

If you were not working with C interop, please raise an issue on GitHub:

vlang/v/issues/new/choose

You can also use #help on Discord: discord.gg/vlang

ref: https://github.com/axetroy/cross-env/runs/1606040384#step:5:9

axetroy commented 3 years ago

Due to too long time, so close it.