Bug 18012 - kernel compile problem
Summary: kernel compile problem
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kernel
Version: 7.0
Hardware: i386
OS: Linux
high
high
Target Milestone: ---
Assignee: Michael K. Johnson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-10-01 10:33 UTC by Need Real Name
Modified: 2008-05-01 15:37 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2000-10-01 18:31:29 UTC
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2000-10-01 10:33:04 UTC
If I recompile the kernel that is shipped with redhat 7 I get the uptime to 1 on my celeron 633Mhz 
I have a intel 815 motherboard. Precompiled kernel that ships with RH7 seems to work.

I have downloaded the kernel 2.2.17 from kernel.org
Unpacked it to /usr/src/linux-2.2.17
ln -s linux-2.2.17 linux
make mrpproper
make menuconfig
make dep
make bzImage

I get a lot of warning messages and then:



 tmp/ccpi52Qj.s:877: Warning: using `%eax' instead of `%ax' due to `l' suffix
/tmp/ccpi52Qj.s:957: Warning: using `%eax' instead of `%ax' due to `l' suffix
/tmp/ccpi52Qj.s:958: Warning: using `%eax' instead of `%ax' due to `l' suffix
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce 
-m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686   -c -o init_task.o init_task.c
make[1]: Leaving directory `/usr/src/linux-2.2.17/arch/i386/kernel'
make -C  arch/i386/mm
make[1]: Entering directory `/usr/src/linux-2.2.17/arch/i386/mm'
make all_targets
make[2]: Entering directory `/usr/src/linux-2.2.17/arch/i386/mm'
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce 
-m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686   -c -o init.o init.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce 
-m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686   -c -o fault.o fault.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce 
-m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686   -c -o ioremap.o ioremap.c
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce 
-m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686   -c -o extable.o extable.c
rm -f mm.o
ld -m elf_i386  -r -o mm.o  init.o fault.o ioremap.o extable.o
make[2]: Leaving directory `/usr/src/linux-2.2.17/arch/i386/mm'
make[1]: Leaving directory `/usr/src/linux-2.2.17/arch/i386/mm'
make -C  arch/i386/lib
make[1]: Entering directory `/usr/src/linux-2.2.17/arch/i386/lib'
make all_targets
make[2]: Entering directory `/usr/src/linux-2.2.17/arch/i386/lib'
cc -D__KERNEL__ -I/usr/src/linux/include -D__ASSEMBLY__  -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-2.2.17/arch/i386/lib'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.2.17/arch/i386/lib'
make: *** [_dir_arch/i386/lib] Error 2
[root@transmetawww  linux]# 



Hope to get a fix

TOM

Comment 1 Michael McTernan 2000-10-01 18:31:27 UTC
Hi,

I get the same problem.  I couldn't compile the kernel from the Redhat 7.0 CD 
(1), and so downloaded 2.2.17 from kernel.org and got exactly the same output.

Please fix this as I need to add some things to my kernel configuration and 
can't at the moment.

Mike

Comment 2 Alan Cox 2000-10-01 21:44:09 UTC
Its in the docs - you need to use kgcc not the gcc 2.96. The vanilla kernel has
problems that make
it break under the newer compiler.

Edit the top Makefile and set CC to use kgcc (or pick up a current 2.2.18pre)


Comment 3 Harvey Modlin 2000-10-05 08:03:56 UTC
Well, I get the same error msg and as a result get no bzImage -- with or 
without the "export CC=kgcc" before the make.

Comment 4 Harvey Modlin 2000-10-05 09:03:35 UTC
Aha. Found the problem! I really did forget to do the 'make mrproper' first! So 
with makr mrproper and 'export CC=kgcc', the kernel compiled just fine (thank 
you!) and the outcome was the bzImage file I wanted. Yippee! Thanks again.

Comment 5 Joel J. Garrett 2001-01-08 04:32:19 UTC
Would somebody mind posting the proper order?

I tried doing the following sequence:

make mrproper
make xconfig
export CC=kgcc
make dep
make bzImage

and ended up with exactly the same errors that you all have been talking about
while trying to build the 2.2.17 kernel sources that you've all talked about
getting from www.kernel.org

Where should I be doing the export and the 'make mrproper' ?



Note You need to log in before you can comment on or make changes to this bug.