Skip to content
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

Failed to build WSL kernel 6.6.y (6.6.36.6) #12431

Closed
1 of 2 tasks
wheeheee opened this issue Jan 4, 2025 · 6 comments
Closed
1 of 2 tasks

Failed to build WSL kernel 6.6.y (6.6.36.6) #12431

wheeheee opened this issue Jan 4, 2025 · 6 comments
Assignees

Comments

@wheeheee
Copy link

wheeheee commented Jan 4, 2025

Windows Version

Microsoft Windows [Version 10.0.26100.2605]

WSL Version

2.3.26.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.167.4-1

Distro Version

Fedora 41 (fedora remix)

Other Software

No response

Repro Steps

Following https://github.com/microsoft/WSL2-Linux-Kernel,

$ sudo dnf install git @development-tools @c-development kernel-devel dwarves elfutils-libelf-devel openssl-devel-engine
$ cd WSL2-Linux-Kernel
$ make -j$(nproc) KCONFIG_CONFIG=Microsoft/config-wsl

Expected Behavior

Builds the kernel without errors, or gives an informative error message.

Actual Behavior

$ make -j$(nproc) KCONFIG_CONFIG=Microsoft/config-wsl
... (lots of output)
  CC [M]  fs/btrfs/bio.o
  CC [M]  fs/btrfs/lru_cache.o
  CC [M]  fs/btrfs/acl.o
  CC [M]  fs/btrfs/zoned.o
  LD [M]  fs/btrfs/btrfs.o
make[1]: *** [/home/woodoo/WSL2-Linux-Kernel/Makefile:1921: .] Error 2
make: *** [Makefile:234: __sub-make] Error 2

Diagnostic Logs

strace output in gist
https://gist.github.com/wheeheee/53281ccdaed9c21894834cbb12082c6c

Copy link

github-actions bot commented Jan 4, 2025

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

Once completed please upload the output files to this Github issue.

Click here for more info on logging
If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

View similar issues

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@wheeheee
Copy link
Author

wheeheee commented Jan 4, 2025

Copy link

github-actions bot commented Jan 4, 2025

Diagnostic information
Detected appx version: 2.3.26.0

@chessturo
Copy link
Collaborator

It looks like one of the commands failed (but the parallel jobs continued to run, so the output from the failure isn't at the bottom). Since the strace output only follows the first make command, there's not much I can do with it. Could you please post the full output of the make command?

@wheeheee
Copy link
Author

wheeheee commented Jan 8, 2025

Ok, realized after running make without cleaning the folder that the openssl package was also required, not just openssl-dev that was installed. I guess it comes pre-installed on Ubuntu, but not on fedora/remix.

@wheeheee
Copy link
Author

Maybe the openssl dependency could be added to the documentation, but it's resolved for me so I'll close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants