I have an Opteron 242 system, to which I recently added a second processor and
some more memory. I figured that to take advantage of that processor, all I
needed to do was recompile to kernel, reboot, and set "-j3" in the make.conf
file.
However, there must be something else, since when I try to compile the kernel
with smp, I get a whole bunch of errors like this when I run "make":
dandelion linux # make
CHK include/linux/version.h
CHK include/linux/compile.h
CHK usr/initramfs_list
CC arch/i386/kernel/process.o
In file included from include/asm/mpspec.h:5,
from include/asm/smp.h:18,
from include/linux/smp.h:19,
from include/linux/sched.h:26,
from arch/i386/kernel/process.c:18:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for field of
type 'unsigned char[5u]'
CC arch/i386/kernel/semaphore.o
CC arch/i386/kernel/signal.o
In file included from include/asm/mpspec.h:5,
from include/asm/smp.h:18,
from include/linux/smp.h:19,
from include/linux/sched.h:26,
from arch/i386/kernel/signal.c:10:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for field of
type 'unsigned char[5u]'
AS arch/i386/kernel/entry.o
CC arch/i386/kernel/traps.o
In file included from include/asm/mpspec.h:5,
from include/asm/smp.h:18,
from include/linux/smp.h:19,
from include/linux/sched.h:26,
from arch/i386/kernel/traps.c:15:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for field of
type 'unsigned char[5u]'
<snip for brevity, the last one is:>
In file included from include/asm/mpspec.h:5,
from include/asm/smp.h:18,
from include/linux/smp.h:19,
from include/linux/sched.h:26,
from include/linux/module.h:10,
from fs/smbfs/smbfs.mod.c:1:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for field of
type 'unsigned char[5u]'
LD [M] fs/smbfs/smbfs.ko
------------------
So no normal end to the compile. This is with gentoo-sources 2.6.14-r5. I
can't upgrade that right now for other reasons. The system is compiled as an
x86 system, not amd64, and the only change in kernel config is related to smp:
dandelion linux # grep -i smp .config
# CONFIG_X86_BIGSMP is not set
CONFIG_SMP=y
CONFIG_X86_FIND_SMP_CONFIG=y
CONFIG_X86_SMP=y
Any ideas?
Joel T. Osburn
--
[email protected] mailing list