Skip to content

windows cross compilation arm error #24785

@libreadmin

Description

@libreadmin

Describe the bug

E:\vlang_space\weblearn>v -os linux -arch arm64 -prod main.v
Cross compilation for Linux failed (first step, cc). Make sure you have clang installed.
builder error: D:\temp\v_0\main.01JYH6BG2P9BC30FJVAD5G0JFP.tmp.c:970:10: fatal error: 'sys/syscall.h' file not found
970 | #include <sys/syscall.h>
| ^~~~~~~~~~~~~~~
1 error generated.

E:\vlang_space\weblearn>clang --version
clang version 18.1.8
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: F:\clang+llvm-18.1.8-x86_64-pc-windows-msvc.tar\clang+llvm-18.1.8-x86_64-pc-windows-msvc\bin

Reproduction Steps

v -os linux -arch arm64 -prod main.v

Expected Behavior

Cross compilation for Linux failed (first step, cc). Make sure you have clang installed.

Current Behavior

Cross compilation for Linux failed (first step, cc). Make sure you have clang installed.

Possible Solution

No response

Additional Information/Context

No response

V version

V 0.4.11

Environment details (OS name and version, etc.)

win11

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugThis tag is applied to issues which reports bugs.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions