Re: SMP compile problem in locks....

Robert M. Hyatt (hyatt@cis.uab.edu)
Tue, 20 Jul 1999 09:14:58 -0500 (CDT)


you also might be sure you are doing a "make clean". Once you compile
a non-smp kernel, and then switch to SMP, the "make" might not recompile
every source file. ie do:

make oldconfig; make dep; make clean; make install

and see if you get errors. If you do, reinstall the source as something
has gone wrong...

Robert Hyatt Computer and Information Sciences
hyatt@cis.uab.edu University of Alabama at Birmingham
(205) 934-2213 115A Campbell Hall, UAB Station
(205) 934-5473 FAX Birmingham, AL 35294-1170

On Tue, 20 Jul 1999, Kurt Garloff wrote:

> On Mon, Jul 19, 1999 at 05:41:30PM -0700, Raj, Ashok wrote:
> > Hello.
> >
> > Iam trying to compile my module for SMP support but having problems with
> > some comile flags.
> >
> > iam defining __SMP__ is there something else i need to define?
> >
> > iam seeing NO_PROC_ID, current undefined...
> >
> > am i missing any switches?
>
> Try the options the kernel uses:
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -DCPU=486
> -DMODULE -D__SMP__ -c YOURMODULE.c -o YOURMODULE.o
>
> You may use -fschedule-insns2 -mpentiumpro -DCPU=686 instead of
> -fno-strength-.... if compiling a 2.2 kernel for 686 with egcs-1.1.x
>
> In 2.2, your the kernel configuration now includes the SMP switch:
> CONFIG_SMP, but you still should use -D__SMP__
>
> Regards,
> --
> Kurt Garloff <garloff@suse.de> SuSE GmbH, Nürnberg, FRG
> Linux kernel development; SCSI drivers: tmscsim(DC390), DC395
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/