public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Changing system from single to dual CPU ?
@ 2006-12-19 17:13 Joel Osburn
  2006-12-19 17:30 ` Richard Fish
  2006-12-19 23:03 ` Maurice E Johnson
  0 siblings, 2 replies; 8+ messages in thread
From: Joel Osburn @ 2006-12-19 17:13 UTC (permalink / raw
  To: 'gentoo-user@lists.gentoo.org'

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



-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: [gentoo-user] Changing system from single to dual CPU ?
@ 2006-12-19 19:41 Joel Osburn
  2006-12-20 22:18 ` Richard Fish
  0 siblings, 1 reply; 8+ messages in thread
From: Joel Osburn @ 2006-12-19 19:41 UTC (permalink / raw
  To: 'gentoo-user@lists.gentoo.org'

 
> From: richard.j.fish@gmail.com 
> 
> On 12/19/06, Joel Osburn <tjeckleberg@wbgs.com> wrote:
> > 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":
> 
> <snip>
> 
> Everything you posted is just a warning, and should not cause 
> the kernel build to fail.
> 
> > So no normal end to the compile.
> 
> If the compile really is failing, it probably isn't due to 
> the warnings you posted above.  Try posting the last dozen or 
> so messages you get from the build.
> 
> -Richard
> --

I'm accustomed to a kernel build ending with information regarding kernel image size.  This build ends with:

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 drivers/message/i2o/i2o_bus.mod.c:1:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for field of type 'unsigned char[5u]'
  LD [M]  drivers/message/i2o/i2o_bus.ko
  CC      drivers/message/i2o/i2o_config.mod.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 include/linux/module.h:10,
                 from drivers/message/i2o/i2o_config.mod.c:1:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for field of type 'unsigned char[5u]'
  LD [M]  drivers/message/i2o/i2o_config.ko
  CC      drivers/message/i2o/i2o_core.mod.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 include/linux/module.h:10,
                 from drivers/message/i2o/i2o_core.mod.c:1:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for field of type 'unsigned char[5u]'
  LD [M]  drivers/message/i2o/i2o_core.ko
  CC      drivers/message/i2o/i2o_proc.mod.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 include/linux/module.h:10,
                 from drivers/message/i2o/i2o_proc.mod.c:1:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for field of type 'unsigned char[5u]'
  LD [M]  drivers/message/i2o/i2o_proc.ko
  CC      drivers/message/i2o/i2o_scsi.mod.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 include/linux/module.h:10,
                 from drivers/message/i2o/i2o_scsi.mod.c:1:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for field of type 'unsigned char[5u]'
  LD [M]  drivers/message/i2o/i2o_scsi.ko
  CC      drivers/net/dummy.mod.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 include/linux/module.h:10,
                 from drivers/net/dummy.mod.c:1:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for field of type 'unsigned char[5u]'
  LD [M]  drivers/net/dummy.ko
  CC      fs/binfmt_misc.mod.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 include/linux/module.h:10,
                 from fs/binfmt_misc.mod.c:1:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for field of type 'unsigned char[5u]'
  LD [M]  fs/binfmt_misc.ko
  CC      fs/cifs/cifs.mod.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 include/linux/module.h:10,
                 from fs/cifs/cifs.mod.c:1:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for field of type 'unsigned char[5u]'
  LD [M]  fs/cifs/cifs.ko
  CC      fs/ntfs/ntfs.mod.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 include/linux/module.h:10,
                 from fs/ntfs/ntfs.mod.c:1:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for field of type 'unsigned char[5u]'
  LD [M]  fs/ntfs/ntfs.ko
  CC      fs/smbfs/smbfs.mod.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 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

-------------

There isn't an image in /usr/src/linux/arch/i386/boot/ either.

Joel

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: [gentoo-user] Changing system from single to dual CPU ?
@ 2006-12-19 23:09 Joel Osburn
  2006-12-19 23:41 ` Hemmann, Volker Armin
  0 siblings, 1 reply; 8+ messages in thread
From: Joel Osburn @ 2006-12-19 23:09 UTC (permalink / raw
  To: 'gentoo-user@lists.gentoo.org'

> From: Maurice E Johnson [mailto:maurice.e.johnson@gmail.com] 
> Sent: Tuesday, December 19, 2006 3:03 PM

> Might I suggest trying the following prior to your normal 
> (I assume genkernel) build process.

I don't use genkernel, never have.  I did try the following:

copy the .config to another directory, 
make clean && make mrproper
copy the .config back
make oldconfig
Make

Same end result, though.  The only change in the config from my working single cpu kernel is to answer yes to SMP, as outlined in my original mail.

> cd to /usr/src/linux<your version>

> as root type make mrproper

> This will ensure that your build tree is pristene.
> Now you should be able to run genkernel without problems. 

I wish.  Thanks for the suggestion, though!

Joel

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: [gentoo-user] Changing system from single to dual CPU ?
@ 2006-12-20 15:27 Joel Osburn
  0 siblings, 0 replies; 8+ messages in thread
From: Joel Osburn @ 2006-12-20 15:27 UTC (permalink / raw
  To: 'gentoo-user@lists.gentoo.org'

> From: Hemmann, Volker Armin
> Sent: Tuesday, December 19, 2006 3:41 PM
>
> > > Might I suggest trying the following prior to your normal
> (I assume
> > > genkernel) build process.
> >
> > I don't use genkernel, never have.  I did try the following:
> >
> > copy the .config to another directory, make clean && make mrproper 
> > copy the .config back make oldconfig Make
> 
> make menuconfig before make (make all modules_install install)

Alas, that doesn't make a any difference whatsoever.  So I'm still searching.

> and kick out smbfs. It is deprecated and broken.

Not relevant, but thanks anyway.

Joel

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-12-20 22:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-19 17:13 [gentoo-user] Changing system from single to dual CPU ? Joel Osburn
2006-12-19 17:30 ` Richard Fish
2006-12-19 23:03 ` Maurice E Johnson
  -- strict thread matches above, loose matches on Subject: below --
2006-12-19 19:41 Joel Osburn
2006-12-20 22:18 ` Richard Fish
2006-12-19 23:09 Joel Osburn
2006-12-19 23:41 ` Hemmann, Volker Armin
2006-12-20 15:27 Joel Osburn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox