Kernel compile problem with (P)GCC 2.95

Kernel compile problem with (P)GCC 2.95

Post by Andreas Spengle » Mon, 30 Aug 1999 04:00:00



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

 
 
 

Kernel compile problem with (P)GCC 2.95

Post by Peter Samuels » Mon, 30 Aug 1999 04:00:00



Quote:> 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......

Funny, doesn't happen here.  From your target `bzlilo' I assume you're
on i386.  Are you sure gcc is getting the flag `-fno-strict-aliases'
like gcc 2.95 needs?  Recent (2.2.12 and 2.3.something) versions of the
Makefile take care of this automatically but IIRC 2.2.9 does not.

Come to think of it I use the `bzImage' rather than the `bzlilo' target
... but I doubt that's the difference here.

--
Peter Samuelson
<sampo.creighton.edu!psamuels>

 
 
 

Kernel compile problem with (P)GCC 2.95

Post by Graham Murra » Tue, 31 Aug 1999 04:00:00



> 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 ..... ???

I think that these warnings are benign. Though I seem to remember that
it was a binutils update that started them rather than the upgrade to
gcc 2.95.

These should not cause your kernel not to boot.

--
ICQ 10305586

 
 
 

Kernel compile problem with (P)GCC 2.95

Post by Andreas Spengle » Tue, 31 Aug 1999 04:00:00




> > 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......

> Funny, doesn't happen here.  From your target `bzlilo' I assume you're
> on i386.  Are you sure gcc is getting the flag `-fno-strict-aliases'
> like gcc 2.95 needs?  Recent (2.2.12 and 2.3.something) versions of the
> Makefile take care of this automatically but IIRC 2.2.9 does not.

> Come to think of it I use the `bzImage' rather than the `bzlilo' target
> ... but I doubt that's the difference here.

Yes, the (p)gcc gets -fno-strict-aliases. And no, no version of gcc, be
it 2.95, PGCC 2.95
or the older PGCC-1.1.3 make a bootable kernel........

Sob,

Andreas Spengler

- Show quoted text -

Quote:

> --
> Peter Samuelson
> <sampo.creighton.edu!psamuels>

 
 
 

Kernel compile problem with (P)GCC 2.95

Post by Paul Kimo » Tue, 31 Aug 1999 04:00:00



>  Are you sure gcc is getting the flag `-fno-strict-aliases'
> like gcc 2.95 needs?  Recent (2.2.12 and 2.3.something) versions of the
> Makefile take care of this automatically but IIRC 2.2.9 does not.

This is probably not the problem here, but the flag is spelled
"-fno-strict-aliasing".

--

 
 
 

Kernel compile problem with (P)GCC 2.95

Post by Dave Hear » Wed, 01 Sep 1999 04:00:00


excuse my dumb question - did you run lilo before rebooting?


> 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

 
 
 

Kernel compile problem with (P)GCC 2.95

Post by Andreas Spengl » Thu, 02 Sep 1999 04:00:00


Hi Dave,

: excuse my dumb question - did you run lilo before rebooting?

Yes, the make bzlilo calls lilo in the end...

: >
: > 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

Thanks anyway,

Andreas

 
 
 

1. Compiling kernel with gcc 2.95?

I am working on a joint project for which the use of gcc 2.95 has just
become mandatory--the code won't compile under the older compilers.
However, I still would like to be able to compile custom kernels when
necessary.  Is it safe to do this using gcc 2.95, or do I have to go
to the trouble of maintaining two versions of the compiler?  I'm
currently at kernel version 2.2.16 and don't really plan to do
anything with older kernels.

Thanks.

Paul Hughett

2. Trivial question about 'su'...

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

4. Problem with direct access to /dev/lp1 on Solaris 2.5 x86

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

6. HELP! One of my users forgot the root password to their Solaris 2.5.1 system.

7. Can't compile 2.0.36 w/gcc 2.95

8. KOffice + KDE 3 probs

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