[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Problems compiling the kernel



I had problems compiling my kernel as well.  I found that changing the top
level makefile compiler from gcc to kgcc it fixed my problem.

-Ben Polidore
polidore@wpi.edu

----- Original Message -----
From: "Reinhard X. Fuerst" <rxf@gmx.net>
To: <guinness-list@redhat.com>
Sent: Sunday, October 29, 2000 1:57 PM
Subject: Problems compiling the kernel


> Hi,
>
> I did a fresh install of RH7, installed the kernel-source... rpm
> and tried to compile it.
> It stops with an error in ksyms.c:
>
> --------------------------------------------------------------------------
---------------------------------------
>
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fom
it-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -mali
gn-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686   -DEXPORT_SYMTAB -
c ksyms.c
> In file included from /usr/src/linux/include/linux/modversions.h:50,
>                  from /usr/src/linux/include/linux/module.h:19,
>                  from ksyms.c:14:
> /usr/src/linux/include/linux/modules/i386_ksyms.ver:6:18: warning:
"cpu_data" redefined
> /usr/src/linux/include/asm/processor.h:96:1: warning: this is the location
of the previous definition
> /usr/src/linux/include/linux/modules/i386_ksyms.ver:28:22: warning:
"smp_num_cpus" redefined
> /usr/src/linux/include/linux/smp.h:77:1: warning: this is the location of
the previous definition
> /usr/src/linux/include/linux/modules/i386_ksyms.ver:118:27: warning:
"smp_call_function" redefined
> /usr/src/linux/include/linux/smp.h:83:1: warning: this is the location of
the previous definition
> In file included from ksyms.c:18:
> /usr/src/linux/include/linux/kernel_stat.h: In function `kstat_irqs':
> /usr/src/linux/include/linux/kernel_stat.h:47: `smp_num_cpus' undeclared
(first use in this function)
> /usr/src/linux/include/linux/kernel_stat.h:47: (Each undeclared identifier
is reported only once
> /usr/src/linux/include/linux/kernel_stat.h:47: for each function it
appears in.)
> In file included from /usr/src/linux/include/linux/interrupt.h:51,
>                  from ksyms.c:21:
> /usr/src/linux/include/asm/hardirq.h:23:24: warning: "synchronize_irq"
redefined
> /usr/src/linux/include/linux/modules/i386_ksyms.ver:138:1: warning: this
is the location of the previous definition
> In file included from /usr/src/linux/include/linux/interrupt.h:52,
>                  from ksyms.c:21:
> /usr/src/linux/include/asm/softirq.h:75:23: warning: "synchronize_bh"
redefined
> /usr/src/linux/include/linux/modules/i386_ksyms.ver:142:1: warning: this
is the location of the previous definition
> make[2]: *** [ksyms.o] Fehler 1
> make[2]: Verlassen des Verzeichnisses
Verzeichnis »/usr/src/linux-2.2.16/kernel«
> make[1]: *** [first_rule] Fehler 2
> make[1]: Verlassen des Verzeichnisses
Verzeichnis »/usr/src/linux-2.2.16/kernel«
> make: *** [_dir_kernel] Fehler 2
> --------------------------------------------------------------------------
---------------------------
>
> I also used kgcc with the same error.
>
> The problem is the identifier smp_num_cpus. It's defined in smp.h and
kernel_stat.h
> includes smp.h. I do not understand, why this identifier is undefined. ( I
dont want
> to build an smp-kernel)
>
> Any help appreciated
>
> regards
>   Reinhard
>
> --
> Reinhard X. Fuerst  DK2GE  Forststr. 66a   D-70176 Stuttgart
> Tel: +49-711-6369409/+49-179-3914685     e-mail: rxf@gmx.net
>
>
>
> _______________________________________________
> Guinness-list mailing list
> Guinness-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/guinness-list
>





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []