* RH 9 kernel compile error
@ 2003-07-23 20:20 Eric Wood
2003-07-24 6:20 ` Ben Greear
0 siblings, 1 reply; 3+ messages in thread
From: Eric Wood @ 2003-07-23 20:20 UTC (permalink / raw)
To: Kernel List
Sorry for the newbie question.
I'm trying some new megaraid drivers so I have to recompile. For RH9, in
the /usr/src/linux-2.4/ directory, I used:
# cp configs/kernel-2.4.20-i686.config .config
# make rpm
During the recompile I get an error:
I have 2.4.20-18.9 and 2.4.20-6 installed and get the error for both
versions. Any ideas?
-eric wood
gcc -D_KERNEL_ -I/usr/src/redhat/BUILD/kernel-2.4.2018.9custom/include -Wall
-
Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomi
t-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -
iwithpre
fix include -DKBUILD_BASENAME=oprofile_stats -c -o
../../../drivers/oprofile/oprofile_stats.o
../../../drivers/oprofile/oprofile_stats.c
../../../drivers/oprofile/oprofile_stats.c: In function
`oprofile_reset_stats':
../../../drivers/oprofile/oprofile_stats.c:25: warning: implicit declaration
of function `cpu_possible'
rm -f oprofile.o
ld -m elf_i386 -r -o oprofile.o init.o timer_int.o
../../../drivers/oprofile/oprof.o ../../../drivers/oprofile/cpu_buffer.o
../../../drivers/oprofile/buffer_sync.o
../../../drivers/oprofile/event_buffer.o
../../../drivers/oprofile/oprofile_files.o
../../../drivers/oprofile/oprofilefs.o
../../../drivers/oprofile/oprofile_stats.o
../../../drivers/oprofile/event_buffer.o(.text+0x0): In function
`dcookie_register':
> multiple definition of `dcookie_register'
../../../drivers/oprofile/buffer_sync.o(.text+0x0): first defined here
../../../drivers/oprofile/event_buffer.o(.text+0x10): In function
`dcookie_unregister':
> multiple definition of `dcookie_unregister'
../../../drivers/oprofile/buffer_sync.o(.text+0x10): first defined here
make[3]: *** [oprofile.o] Error 1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: RH 9 kernel compile error
2003-07-23 20:20 RH 9 kernel compile error Eric Wood
@ 2003-07-24 6:20 ` Ben Greear
2003-07-24 17:36 ` Eric Wood
0 siblings, 1 reply; 3+ messages in thread
From: Ben Greear @ 2003-07-24 6:20 UTC (permalink / raw)
To: Eric Wood; +Cc: Kernel List
Eric Wood wrote:
> Sorry for the newbie question.
> I'm trying some new megaraid drivers so I have to recompile. For RH9, in
> the /usr/src/linux-2.4/ directory, I used:
>
> # cp configs/kernel-2.4.20-i686.config .config
> # make rpm
>
> During the recompile I get an error:
> I have 2.4.20-18.9 and 2.4.20-6 installed and get the error for both
> versions. Any ideas?
> -eric wood
Try doing a make mrproper or make clean first. That has helped
me compile redhat kernels. After mrproper, have to copy the .config
again, make menuconfig (or maybe oldconfig would work),
then: make dep bzImage modules
I have never used rpm target...but I imagine it works :)
Ben
--
Ben Greear <greearb@candelatech.com> <Ben_Greear AT excite.com>
President of Candela Technologies Inc http://www.candelatech.com
ScryMUD: http://scry.wanfear.com http://scry.wanfear.com/~greear
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: RH 9 kernel compile error
2003-07-24 6:20 ` Ben Greear
@ 2003-07-24 17:36 ` Eric Wood
0 siblings, 0 replies; 3+ messages in thread
From: Eric Wood @ 2003-07-24 17:36 UTC (permalink / raw)
To: Kernel List
Ben Greear wrote:
> I have never used rpm target...but I imagine it works :)
Overall yes. As long as you:
# make mrproper `/bin/cp configs/kernel-2.4.20-i686.config .config`
oldconfig dep clean rpm
The resulting rpm file seems to always be built for i386 even though you're
using a 686 .config file. It looks like kerne.spec file which is generated
from "scripts/mkspec" neglects to issue an arch. Or you have to edit the
Makefile and slip in a "--target=i686" or "--target=athlon" like so:
$(RPM) -ta --target=i686 $(TOPDIR)/../$(KERNELPATH).tar.gz ; \
before you do the build.
-eric
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-07-24 17:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-23 20:20 RH 9 kernel compile error Eric Wood
2003-07-24 6:20 ` Ben Greear
2003-07-24 17:36 ` Eric Wood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).