2.6.39.4 build failure on i386
Posted: Sat Aug 13, 2011 4:23 pm
With grsecurity-2.2.2-2.6.39.4-201108071438 I get the following on i386:
CC arch/x86/kernel/asm-offsets.s
In file included from include/linux/fs.h:393:0,
from include/linux/module.h:19,
from include/linux/crypto.h:21,
from arch/x86/kernel/asm-offsets.c:8:
include/linux/semaphore.h: In function ‘sema_init’:
include/linux/semaphore.h:35:17: error: assignment of read-only location ‘*sem’
In file included from /usr/src/linux-2.6.39.4/arch/x86/include/asm/uaccess.h:11:0,
from include/linux/uaccess.h:5,
from include/linux/crypto.h:26,
from arch/x86/kernel/asm-offsets.c:8:
include/linux/sched.h: In function ‘thread_group_cputime_init’:
include/linux/sched.h:2579:2: error: assignment of member ‘rlock’ in read-only object
make[3]: *** [arch/x86/kernel/asm-offsets.s] Erreur 1
Also, when cross-compiling from amd64 to i386, I get:
CC kernel/bounds.s
kernel/bounds.c:1:0: error: CPU you selected does not support x86-64 instruction set
kernel/bounds.c:1:0: warning: -mregparm is ignored in 64-bit mode
make[3]: *** [kernel/bounds.s] Erreur 1
CC arch/x86/kernel/asm-offsets.s
In file included from include/linux/fs.h:393:0,
from include/linux/module.h:19,
from include/linux/crypto.h:21,
from arch/x86/kernel/asm-offsets.c:8:
include/linux/semaphore.h: In function ‘sema_init’:
include/linux/semaphore.h:35:17: error: assignment of read-only location ‘*sem’
In file included from /usr/src/linux-2.6.39.4/arch/x86/include/asm/uaccess.h:11:0,
from include/linux/uaccess.h:5,
from include/linux/crypto.h:26,
from arch/x86/kernel/asm-offsets.c:8:
include/linux/sched.h: In function ‘thread_group_cputime_init’:
include/linux/sched.h:2579:2: error: assignment of member ‘rlock’ in read-only object
make[3]: *** [arch/x86/kernel/asm-offsets.s] Erreur 1
Also, when cross-compiling from amd64 to i386, I get:
CC kernel/bounds.s
kernel/bounds.c:1:0: error: CPU you selected does not support x86-64 instruction set
kernel/bounds.c:1:0: warning: -mregparm is ignored in 64-bit mode
make[3]: *** [kernel/bounds.s] Erreur 1