* Kernel compilation : make modules fails
@ 2004-01-29 18:54 Satheesh Kumar
2004-01-29 19:03 ` Richard B. Johnson
0 siblings, 1 reply; 3+ messages in thread
From: Satheesh Kumar @ 2004-01-29 18:54 UTC (permalink / raw)
To: linux-kernel
Hi,
I installed a fresh RedHat 9.0 distribution on my
system. I'm trying to compile kernel with a new
driver. The compilation steps I'm following are as
below:
* make oldconfig
* make dep
* make bzImage
* make modules
* make modules_install
Till 'make bzImage' everything succeeds. However,
'make modules' fails.
Can someone help me out with this? Are there any known
problems and solutions wit RH9.0 distribution of the
kernel sources? The kernel version is 2.4.20.
Thanks in advance!!
-Satheesh
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Kernel compilation : make modules fails
2004-01-29 18:54 Kernel compilation : make modules fails Satheesh Kumar
@ 2004-01-29 19:03 ` Richard B. Johnson
0 siblings, 0 replies; 3+ messages in thread
From: Richard B. Johnson @ 2004-01-29 19:03 UTC (permalink / raw)
To: Satheesh Kumar; +Cc: Linux kernel
On Thu, 29 Jan 2004, Satheesh Kumar wrote:
> Hi,
>
> I installed a fresh RedHat 9.0 distribution on my
> system. I'm trying to compile kernel with a new
> driver. The compilation steps I'm following are as
> below:
> * make oldconfig
> * make dep
> * make bzImage
> * make modules
> * make modules_install
>
> Till 'make bzImage' everything succeeds. However,
> 'make modules' fails.
>
> Can someone help me out with this? Are there any known
> problems and solutions wit RH9.0 distribution of the
> kernel sources? The kernel version is 2.4.20.
>
Some kind of hint on how `make modules` fails? Clearly both
2.4.20 and the RH9 distribution works okay for others.
Cheers,
Dick Johnson
Penguin : Linux version 2.4.24 on an i686 machine (797.90 BogoMips).
Note 96.31% of all statistics are fiction.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Kernel compilation : make modules fails
[not found] <20040129214636.75679.qmail@web41009.mail.yahoo.com>
@ 2004-01-29 22:06 ` Richard B. Johnson
0 siblings, 0 replies; 3+ messages in thread
From: Richard B. Johnson @ 2004-01-29 22:06 UTC (permalink / raw)
To: Satheesh Kumar; +Cc: Linux kernel
On Thu, 29 Jan 2004, Satheesh Kumar wrote:
> I've attached the compilation failure messages
> with this mail.
>
> Appreciate your help.
>
> -Satheesh
`make modules` should have started out as:
make -C kernel CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.20/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -DMODULE" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux-2.4.20/kernel'
make[1]: Nothing to be done for `modules'.
make[1]: Leaving directory `/usr/src/linux-2.4.20/kernel'
make -C drivers CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.20/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -DMODULE" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux-2.4.20/drivers'
make -C block modules
make[2]: Entering directory `/usr/src/linux-2.4.20/drivers/block'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -DMODULE -nostdinc -iwithprefix include -DKBUILD_BASENAME=loop -DEXPORT_SYMTAB -c loop.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -DMODULE -nostdinc -iwithprefix include -DKBUILD_BASENAME=xd -c -o xd.o xd.ca
Instead it started out as:
make -r -f tmp_include_depends all
make[1]: Entering directory `/usr/src/linux-2.4.20-8'
make[1]: Circular /usr/src/linux-2.4.20-8/include/asm/smplock.h <- /usr/src/linux-2.4.20-8/include/linux/interrupt.h dependency dropped.
make[1]: Circular /usr/src/linux-2.4.20-8/include/linux/netfilter_ipv4/ip_conntrack.h <- /usr/src/linux-2.4.20-8/include/linux/netfilter_ipv4/ip_conntrack_helper.h dependency dropped.
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/linux-2.4.20-8'
make -C kernel CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-8/include/linux/modversions.h" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux-2.4.20-8/kernel'
make[1]: Nothing to be done for `modules'.
make[1]: Leaving directory `/usr/src/linux-2.4.20-8/kernel'
make -C drivers CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-8/include/linux/modversions.h" MAKING_MODULES=1 modules
So, it seems that you started with an 'unclean' distribution.
Do:
cd /usr/src/linux-2.4.20-8 # Go there
cp .config /tmp # Save configuration
make distclean # Really clean it up
cp /tmp/.config . # Get configuration back
make oldconfig # Make configuration
make dep # Set dependencies
make bzImage # etc.
make modules
Cheers,
Dick Johnson
Penguin : Linux version 2.4.24 on an i686 machine (797.90 BogoMips).
Note 96.31% of all statistics are fiction.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-01-29 22:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-29 18:54 Kernel compilation : make modules fails Satheesh Kumar
2004-01-29 19:03 ` Richard B. Johnson
[not found] <20040129214636.75679.qmail@web41009.mail.yahoo.com>
2004-01-29 22:06 ` Richard B. Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®