microsoft / microsoft/ebpf-for-windows

Cross-compiling ARM64 on AMD64 fails

Open
#3,846 0 comments 0 reactions 0 assignees View on GitHub
help wanted P3 triaged
Dominant language
C
Stars
3.6k
Forks
311
Avg merge
6d 10h
Merged PRs (30d)
21

Description

It is currently not possible to build ARM64 on an AMD64 machine. Specifically, the step where the samples are built fails as the bpf2c.exe built is arm64, but the host is AMD64.

It would be useful to be able to produce both ARM64 and AMD64 binaries irrespective of the host platform.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the samples build on an AMD64 host and inspect the step that builds or invokes bpf2c.exe. Compare the reported ARM64 and AMD64 artifacts and identify where the host architecture is assumed. Done means the build can produce both ARM64 and AMD64 binaries regardless of host platform.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.