Can't compile 2.0.36 w/gcc 2.95

Can't compile 2.0.36 w/gcc 2.95

Post by Greg Gershowi » Sun, 31 Dec 1899 09:00:00



   I'm having a problem compiling RH 5.2 (2.0.36) with gcc 2.95.
Here's
the errors I'm getting:  (I've truncated the list, as there were a
whole
lot of them)

-----
cd /usr/src/linux/
make zImage
gcc -D__KERNEL__ -I/vol2/linux-2.0.36/include -Wall
-Wstrict-prototypes
-O2 -fomit-frame-pointer -fno-strength-reduce -pipe -m486
-malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586  -c -o
init/main.o init/main.c
In file included from init/main.c:43:
/vol2/linux-2.0.36/include/asm/bugs.h: In function `check_k6_bug':
/vol2/linux-2.0.36/include/asm/string.h:118: Invalid `asm' statement:
/vol2/linux-2.0.36/include/asm/string.h:118: fixed or forbidden
register 4 (si) was spilled for class SIREG.
/vol2/linux-2.0.36/include/asm/bugs.h: In function
`check_cyrix_various':
/vol2/linux-2.0.36/include/asm/string.h:39: Invalid `asm' statement:
/vol2/linux-2.0.36/include/asm/string.h:39: fixed or forbidden
register 4 (si) was spilled for class SIREG.
init/main.c: In function `get_options':
init/main.c:259: warning: subscript has type `char'
/vol2/linux-2.0.36/include/asm/string.h:159: Invalid `asm' statement:
/vol2/linux-2.0.36/include/asm/string.h:159: fixed or forbidden
register 4 (si) was spilled for class SIREG.
init/main.c: In function `checksetup':
/vol2/linux-2.0.36/include/asm/string.h:140: Invalid `asm' statement:
/vol2/linux-2.0.36/include/asm/string.h:140: fixed or forbidden
register 2 (cx) was spilled for class CREG.
/vol2/linux-2.0.36/include/asm/string.h:140: Invalid `asm' statement:
/vol2/linux-2.0.36/include/asm/string.h:140: fixed or forbidden
register 2 (cx) was spilled for class CREG.
/vol2/linux-2.0.36/include/asm/string.h:140: Invalid `asm' statement:
/vol2/linux-2.0.36/include/asm/string.h:140: fixed or forbidden
register 2 (cx) was spilled for class CREG.
/vol2/linux-2.0.36/include/asm/string.h:140: Invalid `asm' statement:
/vol2/linux-2.0.36/include/asm/string.h:140: fixed or forbidden
register 2 (cx) was spilled for class CREG.
init/main.c: In function `calibrate_delay':
/vol2/linux-2.0.36/include/asm/delay.h:24: Invalid `asm' statement:
/vol2/linux-2.0.36/include/asm/delay.h:24: fixed or forbidden register
0 (ax) was spilled for class AREG.
/vol2/linux-2.0.36/include/asm/delay.h:24: Invalid `asm' statement:
/vol2/linux-2.0.36/include/asm/delay.h:24: fixed or forbidden register
0 (ax) was spilled for class AREG.
init/main.c: In function `parse_root_dev':
-----

Here's what gcc -v reports:
-----
Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnu/2.95/specs
gcc version 2.95 19990728 (release)
-----

   Any ideas what's happening here?  Thanks.

--
-Greg "TORCHA" Gershowitz
-DGX3K's own Extreme Icon
To Reply: See the organization line
Spam sucks.  * you spammers.  Have a Nice Day.
http://www.veryComputer.com/

 
 
 

Can't compile 2.0.36 w/gcc 2.95

Post by GC » Sun, 31 Dec 1899 09:00:00



>    I'm having a problem compiling RH 5.2 (2.0.36) with gcc 2.95.
> Here's
> the errors I'm getting:  (I've truncated the list, as there were a
> whole
> lot of them)

There was an issue regarding the 2.2.x kernels not being able to be
compiled under gcc 2.95. Perhaps this extends back to the 2.0.x kernels?

Cheers,
GC

 
 
 

Can't compile 2.0.36 w/gcc 2.95

Post by Greg Gershowi » Sun, 31 Dec 1899 09:00:00




>>    I'm having a problem compiling RH 5.2 (2.0.36) with gcc 2.95.
>> Here's
>> the errors I'm getting:  (I've truncated the list, as there were a
>> whole
>> lot of them)

>There was an issue regarding the 2.2.x kernels not being able to be
>compiled under gcc 2.95. Perhaps this extends back to the 2.0.x kernels?

   I found some patches at suse.de that were supposed to fix a problem
with gcc 2.8.x and the 2.0.x kernel.  I applied that, but it didn't
help, and didn't seem to have touched any of the code involving this.
   Can you point me to a page about the 2.95 issue?  Thanks.

-Greg G

--
-Greg "TORCHA" Gershowitz
-DGX3K's own Extreme Icon
To Reply: See the organization line
Spam sucks.  * you spammers.  Have a Nice Day.
http://www.veryComputer.com/

 
 
 

1. Kernel compile problem with (P)GCC 2.95

Hi folks,

I recently upgraded my compiler to GCC 2.95 and now whenever
I try to compile a kernel (tried it with 2.3.11-15 and 2.2.9) and do
a make bzlilo, towards the end I get the warnings

Warning; using %eax instead of %ax due to ..... ???

When I reboot the system the kernel hangs at

Uncompressing Linux. OK. Booting kernel......

From then on I ve to press the reset button to reanimate my system.

Does anyone know why this happens ???

Greets,

Andreas Spengler

2. Win98 + RedHat7

3. Trying to compile gtkwave on Solaris 7 box, with GCC 2.95, having no luck.

4. How start x-desktop from...

5. Compiling with gcc 2.95 on Solaris 8 --> core dump

6. OPTi 82c925 PnP headache!

7. Compiling kernel with gcc 2.95?

8. Source for uptime or ruptime?

9. gcc 2.95 compile error

10. compiling ksh93 with gcc 2.95.[23] fails

11. JFS no longer compiles with gcc 2.95

12. 2.5.60: JFS no longer compiles with gcc 2.95

13. Compiling KDE 1.2 with gcc 2.95