lkml.org 
[lkml]   [1999]   [Jul]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: SMP compile problem in locks....

    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/

    \
     
     \ /
      Last update: 2005-03-22 13:53    [W:3.160 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site