redhat7.0_kernel_compiles

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



Subject: Compiling 2.2.17 on RH7
From: Charles Boening <bones@jahl.com>
Date: Thu, 28 Sep 2000 18:54:04 -0700

Anyone having problems accomplishing this?  I've compiled 2.2.17 on RH 6.2
systems with no problems.


make dep seems to go ok, but make bzImage or make zImage fails.
The error I'm getting is:

<snip>
make[2]: Entering directory `/usr/src/linux/arch/i386/lib'
cc -D__KERNEL__ -I/usr/src/linux/include -D__ASSEMBLY__ -D__SMP__
-traditional -c checksum.S -o checksum.o
checksum.S:231: badly punctuated parameter list in #define
checksum.S:237: badly punctuated parameter list in #define
make[2]: *** [checksum.o] Error 1
make[2]: Leaving directory `/usr/src/linux/arch/i386/lib'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux/arch/i386/lib'
make: *** [_dir_arch/i386/lib] Error 2
</snip>

I've visually inspected the lines in question and compared them against the
2.2.17 source on another system that I successfully compiled it on.

I have tried with kernel config defaults and the changes I typically make to
compile in networking, scsi drivers and some masq stuff.

===

Subject: RE: Compiling 2.2.17 on RH7
From: "Mark Basil" <mortimer@oraclesix.com>
Date: Fri, 29 Sep 2000 00:03:00 -0400

Edit the makefile in the /usr/src/linux directory, and change every 'gcc' to
'kgcc' .  Hope that helps.





===

Subject: RE: Kernel compile problems
From: "Mark Basil" <mortimer@oraclesix.com>
Date: Thu, 28 Sep 2000 22:45:38 -0400

Mr FW User <mr_fwuser@yahoo.com> wrote:

> Hi. I've just installed 7.0 on a blank disk and now
> understand there is a 'kgcc' that must be used to
> compile the kernel. I removed gcc and linked kgcc to
> gcc and cc in /usr/bin. Now, I'm receiving the
> following assembly errors:
> 
> cc -D__KERNEL__ -I/usr/src/linux/include -Wall
> -Wstrict-prototypes -O2 -fomit-fr
> ame-pointer -fno-strict-aliasing -pipe
> -fno-strength-reduce -m486 -malign-loops=
> 2 -malign-jumps=2 -malign-functions=2 -DCPU=586   -c
> -o apm.o apm.c
> {standard input}: Assembler messages:
> {standard input}:197: Warning: indirect lcall without
> `*'
> {standard input}:277: Warning: indirect lcall without
> `*'
> cc -D__KERNEL__ -I/usr/src/linux/include -Wall
> -Wstrict-prototypes -O2 -fomit-fr
> ame-pointer -fno-strict-aliasing -pipe
> -fno-strength-reduce -m486 -malign-loops=
> 2 -malign-jumps=2 -malign-functions=2 -DCPU=586   -c
> -o process.o process.c
> {standard input}: Assembler messages:
> {standard input}:331: Warning: using `%eax' instead of
> `%ax' due to `l' suffix
> {standard input}:332: Warning: using `%eax' instead of
> `%ax' due to `l' suffix
> {standard input}:333: Warning: using `%eax' instead of
> `%ax' due to `l' suffix
> {standard input}:334: Warning: using `%eax' instead of
> `%ax' due to `l' suffix
> {standard input}:335: Warning: using `%eax' instead of
> `%ax' due to `l' suffix
> 
> What's going on? The kernel compiles okay, but this
> doesn't give me the warm-and-fuzzy... Why does this
> seem so half-assed?


Warnings aren't really anything to be all that worried about.  If you have a
kernel, just be happy :o)

===
Subject: Re: Kernel compile problems
From: Statux <statux@bigfoot.com>
Date: Thu, 28 Sep 2000 22:48:44 -0400 (EDT)

What's going on? The kernel compiles okay, but this
> doesn't give me the warm-and-fuzzy... Why does this
> seem so half-assed?

You should be using cc or gcc to compile anything on a redhat
system... including the kernel.

===

Subject: Re: Kernel compile problems
From: Jason Costomiris <jcostom@jasons.org>
Date: Thu, 28 Sep 2000 22:45:27 -0400

On Thu, Sep 28, 2000 at 06:45:25PM -0700, Mr FW User wrote:
: Hi. I've just installed 7.0 on a blank disk and now
: understand there is a 'kgcc' that must be used to
: compile the kernel. I removed gcc and linked kgcc to
: gcc and cc in /usr/bin. Now, I'm receiving the
: following assembly errors:

Those are errors caused by gcc 2.96.  You have to have the kgcc package
installed, which is essentially egcs 1.1.2.

To get my kernel compile (2.2.17) to use it, I had to change line 25 of the
top-level Makefile in the kernel source tree.  Change "cc" to "kgcc", so it
looks like this:

CC  =$(CROSS_COMPILE)kgcc -D__KERNEL__ -I$(HPATH)


===

Subject: Re: Kernel compile problems
From: Mr FW User <mr_fwuser@yahoo.com>
Date: Thu, 28 Sep 2000 20:51:34 -0700 (PDT)

You should be using cc or gcc to compile anything on
> a redhat system... including the kernel.

Well, apparently this kgcc is specifically designed to
compile the kernel, due to it being a new version, I
think?

So you're able to compile the kernel using:

cpp-2.96-54
kernel-2.2.16-22
glibc-2.1.92-14
make-3.79.1-5
glibc-devel-2.1.92-14

and the regular gcc that comes with 7.0? When I use
the regular gcc, it produces a ton of errors on
particular files.

===


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu