microsoft / microsoft/ebpf-for-windows

[low-pri] cmake project generation steps show warnings or non-critical errors

Open
#2,944 0 comments 0 reactions 0 assignees View on GitHub
cleanup good first issue triaged
Dominant language
C
Stars
3.6k
Forks
311
Avg merge
6d 10h
Merged PRs (30d)
21

Description

### Describe the bug

There are errors during the cmake project generation steps that don't break the build:
For example: https://github.com/microsoft/ebpf-for-windows/actions/runs/6398158519/job/17367663983

This might be confusing for people setting up the project for the first time.

_Create verifier project_

```
Unknown command: 'ARGS'
NuGet.Commands.CommandException: Unknown command: 'ARGS'
at NuGet.CommandLine.CommandManager.GetCommand(String commandName)
at NuGet.CommandLine.CommandLineParser.ParseCommandLine(IEnumerable`1 commandLineArgs)
at NuGet.CommandLine.Program.MainCore(String workingDirectory, String[] args)
```

_Create ubpf project_

```
CMake Warning at vm/CMakeLists.txt:24 (message):
ubpf - elf.h was not found, disabling ELF support
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the CMake project-generation steps from the linked GitHub Actions run, then inspect the warning location at vm/CMakeLists.txt:24 and the verifier-generation step that reports the NuGet ARGS error. Done means project generation no longer reports these non-critical warnings or errors while the build still succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cmake
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.