-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Cross compile for linux on macOS fails #6446
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
Comments
This is very weird. You should have Could you try installing it manually? You should be able to find all the necessary files here, in the folder |
@Bowero For cross-compilation you need to have target system headers and libraries installed. |
@vitalyster, I understand that, but MacOS should have |
MacOS headers are not used in cross-compilation |
it auto downloaded a linux image, it should comes with the image. might be broken image? where I can find the image and delete it and retry? and in case the image is missing that, is there any doc on fix up the image? |
Hi @seven1240 , can you confirm that the problem still exists on a fresh V (0.2.4)? |
@ArtemkaKun , confirmed on 0.2.4. v -os linux .
Cross compilation for Linux failed (first step, cc). Make sure you have clang installed.
builder error: /tmp/v_501/vweb.15036157459749877477.tmp.c:1097:2: error: VERROR_MESSAGE Header file <sys/un.h>, needed for module `net` was not found. Please install the corresponding development headers.
#error VERROR_MESSAGE Header file <sys/un.h>, needed for module `net` was not found. Please install the corresponding development headers.
^
/tmp/v_501/vweb.15036157459749877477.tmp.c:1151:2: error: VERROR_MESSAGE Header file <arpa/inet.h>, needed for module `net` was not found. Please install the corresponding development headers.
#error VERROR_MESSAGE Header file <arpa/inet.h>, needed for module `net` was not found. Please install the corresponding development headers.
^
2 errors generated. v doctor
OS: macos, macOS, 12.1, 21C52
Processor: 12 cpus, 64bit, little endian, Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
CC version: Apple clang version 13.0.0 (clang-1300.0.29.30)
getwd: /Users/stec/Projects/v/v/examples/vweb
vmodules: /Users/stec/.vmodules
vroot: /Users/stec/Projects/v/v
vexe: /Users/stec/Projects/v/v/v
vexe mtime: 2022-03-02 07:14:30
is vroot writable: true
is vmodules writable: true
V full version: V 0.2.4 7f8f571
Git version: git version 2.34.1
Git vroot status: weekly.2022.09-7-g7f8f571e
.git/config present: true
thirdparty/tcc status: thirdparty-macos-amd64 93fa86be |
V version:
OS:
What did you do?
What did you expect to see?
success build a linux binary.
What did you see instead?
error above.
The text was updated successfully, but these errors were encountered: