public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Has anyone had problems with GCC 4.0 and the kernel?
@ 2005-06-09 14:21 Scott Robert Ladd
  2005-06-09 14:47 ` Mikael Pettersson
  0 siblings, 1 reply; 5+ messages in thread
From: Scott Robert Ladd @ 2005-06-09 14:21 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Hello,

I've had several inquiries recently in regard to compiling the kernel
with GCC 4.0. It seems folk are having problems, do a Google search, and
find my capsule review of GCC 4.0 at:

http://www.coyotegulch.com/reviews/gcc4/index.html

I'm not running a GCC 4.0-created kernel, but I had no problems
compiling it and running one a few weeks ago. Before I start looking
into this further, has anyone here had problems with GCC 4? Maybe I just
hallucinated that it compiled and booted... ;)

..Scott

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Has anyone had problems with GCC 4.0 and the kernel?
  2005-06-09 14:21 Scott Robert Ladd
@ 2005-06-09 14:47 ` Mikael Pettersson
  2005-06-09 15:50   ` Scott Robert Ladd
  0 siblings, 1 reply; 5+ messages in thread
From: Mikael Pettersson @ 2005-06-09 14:47 UTC (permalink / raw)
  To: Scott Robert Ladd; +Cc: Linux Kernel Mailing List

Scott Robert Ladd writes:
 > Hello,
 > 
 > I've had several inquiries recently in regard to compiling the kernel
 > with GCC 4.0. It seems folk are having problems, do a Google search, and
 > find my capsule review of GCC 4.0 at:
 > 
 > http://www.coyotegulch.com/reviews/gcc4/index.html
 > 
 > I'm not running a GCC 4.0-created kernel, but I had no problems
 > compiling it and running one a few weeks ago. Before I start looking
 > into this further, has anyone here had problems with GCC 4? Maybe I just
 > hallucinated that it compiled and booted... ;)

gcc-4.0.0 vanilla is broken and miscompiles some ipv4/sysctl stuff.
More recent 4.0.1 snapshots are OK.

I've been using gcc4 for 2.6 and 2.4 kernels since late January,
for both desktops and servers, and for i386/x86-64/ppc/ppc64.
Recent 2.6 kernels should work as-is, except perhaps in poorly
maintained drivers. The 2.4 kernels need fair amounts of patching,
99% of which is to prevent compile-time errors. These patches
are not yet merged into the standard 2.4 tree and may never be.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Has anyone had problems with GCC 4.0 and the kernel?
  2005-06-09 14:47 ` Mikael Pettersson
@ 2005-06-09 15:50   ` Scott Robert Ladd
  0 siblings, 0 replies; 5+ messages in thread
From: Scott Robert Ladd @ 2005-06-09 15:50 UTC (permalink / raw)
  To: Mikael Pettersson; +Cc: Linux Kernel Mailing List

Mikael Pettersson wrote:
> gcc-4.0.0 vanilla is broken and miscompiles some ipv4/sysctl stuff.
> More recent 4.0.1 snapshots are OK.

They're rolling release candidates for GCC 4.0.1 at the moment, so I
expect it to be out early next week. I'll simply recommend people wait
for the 4.0.1 release.

I get 2-3 messages per day, steadily, from people with various kernel
and GCC problems. Since I'm not exactly a kernel developer, I wonder why
they think *I* have answers.

Must be Google's fault... ;)

..Scott

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Has anyone had problems with GCC 4.0 and the kernel?
@ 2005-06-09 21:20 Nick Warne
  2005-06-11 19:32 ` Adrian Bunk
  0 siblings, 1 reply; 5+ messages in thread
From: Nick Warne @ 2005-06-09 21:20 UTC (permalink / raw)
  To: linux-kernel

> The 2.4 kernels need fair amounts of patching,
> 99% of which is to prevent compile-time errors. These patches
> are not yet merged into the standard 2.4 tree and may never be.

So does this mean GCC 4.x is a no-go for people still using kernel 2.4.x?

Nick
-- 
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Has anyone had problems with GCC 4.0 and the kernel?
  2005-06-09 21:20 Has anyone had problems with GCC 4.0 and the kernel? Nick Warne
@ 2005-06-11 19:32 ` Adrian Bunk
  0 siblings, 0 replies; 5+ messages in thread
From: Adrian Bunk @ 2005-06-11 19:32 UTC (permalink / raw)
  To: Nick Warne; +Cc: linux-kernel

On Thu, Jun 09, 2005 at 10:20:12PM +0100, Nick Warne wrote:
> > The 2.4 kernels need fair amounts of patching,
> > 99% of which is to prevent compile-time errors. These patches
> > are not yet merged into the standard 2.4 tree and may never be.
> 
> So does this mean GCC 4.x is a no-go for people still using kernel 2.4.x?

AFAIR Mikael wanted to provide his patches for compiling kernel 2.4 with 
gcc 4.0 somewhere.

But they will most likely never go into into the official 2.4 kernel.

> Nick

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-06-11 19:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-09 21:20 Has anyone had problems with GCC 4.0 and the kernel? Nick Warne
2005-06-11 19:32 ` Adrian Bunk
  -- strict thread matches above, loose matches on Subject: below --
2005-06-09 14:21 Scott Robert Ladd
2005-06-09 14:47 ` Mikael Pettersson
2005-06-09 15:50   ` Scott Robert Ladd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox