Bug 1643599

Summary: Building kernel modules is broken on 4.20.0-0.rc0.git3.2.fc30.x86_64
Product: [Fedora] Fedora Reporter: someone <securetalk>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: airlied, bskeggs, ewk, hdegoede, ichavero, itamar, jarodwilson, jforbes, jglisse, john.j5live, jonathan, josef, kernel-maint, linville, mchehab, mjg59, steved
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-31 20:39:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description someone 2018-10-26 16:24:01 UTC
Description of problem:

Building kernel modules on 4.20-rc0 throws:

Assembler messages:
Error: can't open arch/x86/kernel/macros.s for reading: No such file or directory
Assembler messages:
Error: can't open arch/x86/kernel/macros.s for reading: No such file or director
How reproducible:

with DKMS too.

Adding that file with the one from the upstream tree ends up with a bunch of errors similar to "./arch/x86/include/asm/atomic64_64.h:88: Error: no such instruction: `lock_prefix incq 56(%rax)'".

https://paste.fedoraproject.org/paste/~LQMn7yXbcINWFNr8HVpPg/raw is the log of a failed kernel module building attempt.

This bug doesn't exist on 4.19, and continuing to build modules for 4.19 after installing 4.20-rc0 still works fine.

Comment 1 Justin M. Forbes 2018-10-31 20:39:42 UTC
This should be fixed with the current rawhide build.

Comment 2 Hal Murphy 2018-11-12 14:59:21 UTC
@Justin M. Forbes can you point me the fix for this? Is it https://src.fedoraproject.org/cgit/rpms/kernel.git/commit/?id=6904e708917a12819d1fe0d329f605030d6e4b0d ?