2017-09-21 12:28 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0012912Buildsys[All Projects] generalpublic2017-09-11 21:24
Reporterscrandall 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionwon't fix 
Platformx86_64OSCentOS7.3OS Version3.10.0-514.2.2
Summary0012912: Kernel doesn't build without CONFIG_MEM_SOFT_DIRTY enabled
DescriptionAttempts to build the kernel for x86_64 fail if CONFIG_MEM_SOFT_DIRTY is not enabled.

[ 251s] /home/abuild/rpmbuild/BUILDROOT/kernel-source-3.10.0-1.0000.b5632e1.0.0.x86_64/usr/src/linux-3.10.0-514.2.2.el7_3.2/arch/x86/include/asm/pgtable_types.h:112:23: error: "_PAGE_BIT_SWP_SOFT_DIRTY" is not defined [-Werror=undef]
[ 251s] #if _PAGE_BIT_FILE == _PAGE_BIT_SWP_SOFT_DIRTY
[ 251s] ^
[ 251s] cc1: all warnings being treated as errors
[ 251s] make[2]: *** [kernel/bounds.s] Error 1
[ 251s] make[1]: *** [prepare0] Error 2
[ 251s] make: *** [sub-make] Error 2
[ 251s] error: Bad exit status from /var/tmp/rpm-tmp.xvnS4I (%build)

The code here is at fault(from arch/x86/include/asm/pgtable_types.h):
100 #ifdef CONFIG_MEM_SOFT_DIRTY
101 #define _PAGE_BIT_SWP_SOFT_DIRTY _PAGE_BIT_PSE
102 #define _PAGE_SWP_SOFT_DIRTY (_AT(pteval_t, 1) << _PAGE_BIT_SWP_SOFT_DIRTY)
103 #else
104 #define _PAGE_SWP_SOFT_DIRTY (_AT(pteval_t, 0))
105 #endif
106
107 #if defined(CONFIG_X86_64) || defined(CONFIG_X86_PAE)
108 /*
109 * Do compile-time checks for all the bits that may be set on
110 * non-present PTEs
111 */
112 #if _PAGE_BIT_FILE == _PAGE_BIT_SWP_SOFT_DIRTY
113 #error conflicting _PAGE_BIT_FILE
Steps To ReproduceTry to build the kernel for x86_64 with CONFIG_MEM_SOFT_DIRTY not enabled.
TagsNo tags attached.
Attached Files

-Relationships
+Relationships

-Notes

~0028745

kabe (reporter)

It is very common that non-standard kernel options will
make the kernel compile fail. This is expected.
You're on your own when compiling with your own options.

If the problem does occur in vanilla kernel.org code,
you should report it there.

~0030040

JohnnyHughes (administrator)

CentOS Linux does not modify the upstream RHEL kernel, we don't support kernels that are not either:

1) Our SRPM
2) Our CentOSPlus kernel
+Notes

-Issue History
Date Modified Username Field Change
2017-03-02 14:46 scrandall New Issue
2017-03-03 03:15 kabe Note Added: 0028745
2017-09-11 21:24 JohnnyHughes Status new => resolved
2017-09-11 21:24 JohnnyHughes Resolution open => won't fix
2017-09-11 21:24 JohnnyHughes Note Added: 0030040
+Issue History