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

Tracking Issue: out-of-tree modules failing to build on Linux 6.13 #375605

Closed
SigmaSquadron opened this issue Jan 21, 2025 · 7 comments · Fixed by #376078
Closed

Tracking Issue: out-of-tree modules failing to build on Linux 6.13 #375605

SigmaSquadron opened this issue Jan 21, 2025 · 7 comments · Fixed by #376078
Labels
0.kind: build failure A package fails to build 0.kind: regression Something that worked before working no longer 5. scope: tracking Long-lived issue tracking long-term fixes or multiple sub-problems 6.topic: kernel The Linux kernel

Comments

@SigmaSquadron
Copy link
Contributor

SigmaSquadron commented Jan 21, 2025

Problem Description

Since the Linux 6.13 upgrade, several out of tree modules have been failing to build with similar logs. Multiple issues have been filed thus far, and this is a helper issue to centralise the individual module reports.

Since the logs seem to be the same, it stands to reason that the cause of the build failure is the same, so hopefully there's a single solution for all of these issues. The PR author that will fix this issue can then easily link back to all of the individual issues.

Issue List

These issues fail with mkdir: cannot create directory '.tmp_##': Permission denied

Issue List (Other)

These issues fail with different logs, but all seem to be related to an incorrect working directory.


Add a 👍 reaction to issues you find important.

@SigmaSquadron SigmaSquadron added 5. scope: tracking Long-lived issue tracking long-term fixes or multiple sub-problems 6.topic: kernel The Linux kernel 0.kind: regression Something that worked before working no longer 0.kind: build failure A package fails to build labels Jan 21, 2025
@SigmaSquadron SigmaSquadron changed the title Tracking Issue: Linux 6.13 drivers failing to build Tracking Issue: out-of-tree modules failing to build on Linux 6.13 Jan 21, 2025
@Bot-wxt1221
Copy link
Member

Bot-wxt1221 commented Jan 22, 2025

@SigmaSquadron I'm strange to see that set buildRoot will fix the problem. I'm not sure why it was used. But now it is empty. I fix it by export buildRoot=.

@misuzu
Copy link
Contributor

misuzu commented Jan 22, 2025

cc @K900

przempore added a commit to przempore/nixos-config that referenced this issue Jan 22, 2025
nvidia drivers build fails on kernel 6.13
tracking issue: NixOS/nixpkgs#375605
@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/nvidia-565-77-wont-work-in-kernel-6-13/59234/5

@raj-magesh
Copy link

Not sure if I should open a separate issue, but in case anyone's wondering why, ddcci-driver-6.13-0.4.5-unstable-2024-09-26.drv also fails to build with similar errors.

@fpletz
Copy link
Member

fpletz commented Jan 23, 2025

Adding "KBUILD_OUTPUT=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" to makeFlags in the affected kernel modules also fixes the issue. Adding this to every module might be the way to go but we might need to guard it for 6.13+ only. Maybe we should add this to the kernel's makeFlags since they are generally added via kernel.makeFlags to the makeFlags of out of tree modules.

@K900
Copy link
Contributor

K900 commented Jan 23, 2025

FWIW I'm not sure that's the right solution, though the whole module build system is already a big mess upstream.

@K900
Copy link
Contributor

K900 commented Jan 23, 2025

Thinking about it more, we should probably add a separate moduleMakeFlags or similar variable that sets things specifically for out of tree modules, and use that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build 0.kind: regression Something that worked before working no longer 5. scope: tracking Long-lived issue tracking long-term fixes or multiple sub-problems 6.topic: kernel The Linux kernel
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants