Re: linux-2.4.22-1.2115.nptl won't compile

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

 



Hi,

Funny thing, I have a similar problem (kernel compiles, but modules
fail). I've posted it to linuxquestions.org here
[http://www.linuxquestions.org/questions/showthread.php?s=&threadid=119162],
and I will reproduce it below so that you don't have to follow the link to
understand the probl.

Any help will be much appreciated.

TIA

Andre

=========================

Hi all,

I am having probls recompiling the default kernel (2.4.22-1.2115.nptl).
Aftter a couple of failed attempts to compile my own kernel (tweaked to
my hardware config), I tried this basic test:

copy
/usr/src/linux-2.4.22-1.2115.nptl/configs/kernel-2.4.22-athlon.config to
/usr/src/linux-2.4.22-1.2115.nptl/.config

make dep

make bZimage (no probls here)

make modules


Now this is where probls begin... many modules are compiled
successfully, but CIPE module fails:

gcc32 -D__KERNEL__ -I/usr/src/linux-2.4.22-1.2115.nptl/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.22-1.2115.nptl/include/linux/modversions.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=module -c -o module.o module.c
In file included from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/if.h:23,
from cipe.h:21,
from module.c:15:
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/socket.h:266: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/socket.h:266: syntax error before numeric constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/socket.h:266: `memcpy_fromiovec_R_ver_str' declared as function returning a function
[...]

(many other errors are displayed)

I tried configuring the kernel not to use CIPE, but then ACPI modules
start failing compilation:

make[2]: Entering directory `/usr/src/linux-2.4.22-1.2115.nptl/drivers/acpi'
gcc32 -D__KERNEL__ -I/usr/src/linux-2.4.22-1.2115.nptl/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.22-1.2115.nptl/include/linux/modversions.h -Os -nostdinc -iwithprefix include -DKBUILD_BASENAME=ac -c -o ac.o ac.c
In file included from ac.c:26:
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/kernel.h:60: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/kernel.h:60: syntax error before numeric constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/kernel.h:60: warning: function declaration isn't a prototype
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/kernel.h:61: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/kernel.h:61: syntax error before numeric constant
[...]

Ok, I don't need ACPI either, so I turn it off. Now, ATM is the one to blame:

make[2]: Entering directory `/usr/src/linux-2.4.22-1.2115.nptl/drivers/atm'
gcc32 -D__KERNEL__ -I/usr/src/linux-2.4.22-1.2115.nptl/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.22-1.2115.nptl/include/linux/modversions.h -g -nostdinc -iwithprefix include -DKBUILD_BASENAME=eni -c -o eni.o eni.c
In file included from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/prefetch.h:13,
from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/list.h:6,
from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/module.h:12,
from eni.c:6:
[...]

I could go on with this, but it ends up with floppy.o failing
compilation. Besides, this doesn't sound right -- regardless of my
hardware support to these features, compilation should work just fine,
shouldn't it? Specially with the provided default kernel
configurations...

Any idea about what could be wrong? I upgraded from RH9, and I was using
a "hand-made" (i.e. not provided by RH) 2.4.22 kernel, from kernel.org
tarball. These kernel sources are still on /usr/src/linux-2.4.22, and I
am using default 2.4.22-1.2115 kernel.

TIA

Andre

On Mon, 24 Nov 2003 17:35:09 +0100
Jochen Schmitt <Jochen@xxxxxxxxxxxxxxx> wrote:

> On Mon, 24 Nov 2003 08:49:43 -0500, you wrote:
> 
> >I just took stock linux-2.4.22-1.2115.nptl source, 
> >ran make mrproper, then
> >copied configs/kernel-2.4.22-athlon.config to .config and ran this
> >command: make oldconfig dep bzImage modules
> 
> >make[2]: *** [oprofile.o] Error 1
> >make[2]: Leaving directory 
> >`/usr/src/linux-2.4.22-1.2115.nptl/arch/i386/oprofile'
> >make[1]: *** [first_rule] Error 2
> >make[1]: Leaving directory 
> >`/usr/src/linux-2.4.22-1.2115.nptl/arch/i386/oprofile'
> >m
> 
> try:
> 
> $ make oldconfig_nonint
> $ make oldconfig_nonint
> $ make CC=gcc32 CFLAGS_KERNEK="-Wno-unused -g" ...
> 
> Best Regards:
> 
> Jochen Schmitt
> 
> BTW: You may find it in the SPEC-File of the kernel Source-RPM.
> 
> 
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list


-- 
Andre Oliveira da Costa




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux