Skip to contentSkip to conversation

kernel/module.c (plus gratuitous rant)

PATCH Pavel Machek 12 participants 18 messages Oct 27, 2000 – Oct 31, 2000 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi!

Quoted 11 lines
Quoted 3 lines

if the person who sent you the -pre4 patch against module.c had Cc:'ed this mailing list then your kernel would do something useful when compiled with gcc-2.7.2.3.

It seems that gcc-2.7.2.3 is terminally ill. I'd rather change Documentation/Changes, and just document the fact.

These kinds of subtle work-arounds for gcc bugs are not really acceptable, nor is it worthwhile complaining when somebody does development with a gcc that is _not_ broken, and doesn't notice that some random gcc bug breaks the kernel for others.

Would it be possible to keep 2.7.2.3? You still need 2.7.2.3 to reliably compile 2.0.X (and maybe even 2.2.all-but-latest?).
Pavel

Signature · 6 lines
I'm [email protected]. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at [email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#2 lore raw
Quoted 2 lines

Would it be possible to keep 2.7.2.3? You still need 2.7.2.3 to reliably compile 2.0.X (and maybe even 2.2.all-but-latest?).

There has only been one know egcs 1.1 build problem found in the last 9 months or so (the fpu emu one). I really dont think using egcs 1.1.2 to build 2.2 kernels is a problem. In fact its probably the default nowdays

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#3 lore raw
In reply to Pavel Machek
Quoted 2 lines · Pavel Machek

Would it be possible to keep 2.7.2.3? You still need 2.7.2.3 to reliably compile 2.0.X (and maybe even 2.2.all-but-latest?).

You can have multiple versions of gcc installed, just select the one to use when you compile the kernel.

CC=gcc-2723 make 2.0 kernel
CC=gcc-2723 make 2.2 kernel
CC=egcs make 2.4 kernel

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#4 lore raw

In message <[email protected]> you write:

Quoted 11 lines
Quoted 2 lines · Pavel Machek

Would it be possible to keep 2.7.2.3? You still need 2.7.2.3 to reliably compile 2.0.X (and maybe even 2.2.all-but-latest?).

You can have multiple versions of gcc installed, just select the one to use when you compile the kernel.

CC=gcc-2723 make 2.0 kernel
CC=gcc-2723 make 2.2 kernel
CC=egcs make 2.4 kernel

No, environment doesn't override make variables by default. This works on any shell:

make CC=egcs <targets>

Rusty.
--
Hacking time.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#5 lore raw
In reply to Keith Owens

[Rusty]

Quoted 8 lines
Quoted 3 lines

CC=gcc-2723 make 2.0 kernel
CC=gcc-2723 make 2.2 kernel
CC=egcs make 2.4 kernel

No, environment doesn't override make variables by default. This works on any shell:

make CC=egcs <targets>

If you're going to get pedantic, that won't work either -- since the makefiles in kernels 2.0 and 2.2 expect $(CC) to include some compiler flags. This was fixed somewhere in 2.3.3x.

Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#6 lore raw

Recommended compiler? - Re: [patch] kernel/module.c (plus gratuitous rant)

In reply to Keith Owens

So which is the recommended compiler for each kernel version 2.2.x, 2.4.x(pre?) nowadays? I've pretty much kept gcc 2.7.2.3 around just for compiling the kernel however now I hear you need egcs to compile 2.4? I don't mind keeping 2.7.2.3 around in its own installation directory just for the purpose of doing kernel work however from a previous post I've now got the impression that egcs has become the recommended compiler? If I'm going to keep a secondary compiler around (outside of gcc 2.95.2 which I still hear is no good for kernel compiles) just for kernel work I'd prefer to use my disk space on the recommended one.

Quoted 9 lines

[Rusty]

Quoted 7 lines
Quoted 3 lines

CC=gcc-2723 make 2.0 kernel
CC=gcc-2723 make 2.2 kernel
CC=egcs make 2.4 kernel

No, environment doesn't override make variables by default. This works on any shell:

Quoted 8 lines
Quoted 1 line

make CC=egcs <targets>

If you're going to get pedantic, that won't work either -- since the makefiles in kernels 2.0 and 2.2 expect $(CC) to include some compiler flags. This was fixed somewhere in 2.3.3x.

Peter
-

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#7 lore raw

Re: Recommended compiler? - Re: [patch] kernel/module.c (plus gratuitous rant)

In reply to Keith Owens
Quoted 3 lines

So which is the recommended compiler for each kernel version 2.2.x, 2.4.x(pre?) nowadays?

* 2.91.66 aka egcs 1.1.2. It has been officially blessed for 2.4 and has been given an informal thumbs-up by Alan for 2.2. (It does NOT work for 2.0, if you still care about that.)

* 2.7.2.3 works for 2.2 (and 2.0) but NOT for 2.4.

* 2.95.2 seems to work with both 2.2 and 2.4 (no known bugs, AFAIK) and many of us use it, but it is a little riskier than egcs.

* Red Hat "2.96" or CVS 2.97 will probably break any known kernel.

Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#8 lore raw

Re: Recommended compiler? - Re: [patch] kernel/module.c (plus gratuitous rant)

In reply to Keith Owens
Quoted 8 lines · Peter Samuelson
Quoted 3 lines

So which is the recommended compiler for each kernel version 2.2.x, 2.4.x(pre?) nowadays?

* 2.91.66 aka egcs 1.1.2. It has been officially blessed for 2.4 and has been given an informal thumbs-up by Alan for 2.2. (It does NOT work for 2.0, if you still care about that.)

Quoted 6 lines

* 2.7.2.3 works for 2.2 (and 2.0) but NOT for 2.4.

* 2.95.2 seems to work with both 2.2 and 2.4 (no known bugs, AFAIK) and many of us use it, but it is a little riskier than egcs.

* Red Hat "2.96" or CVS 2.97 will probably break any known kernel.

Works fine for me and 2.4.0-test10-pre5... however there are tons of preprocessor warnings in some drivers.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#9 lore raw

Re: Recommended compiler? - Re: [patch] kernel/module.c (plus gratuitous rant)

Quoted 1 line · Martin Dalecki

Peter Samuelson wrote:

[...]

Quoted 4 lines
Quoted 1 line

* Red Hat "2.96" or CVS 2.97 will probably break any known kernel.

Works fine for me and 2.4.0-test10-pre5... however there are tons of preprocessor warnings in some drivers.

CVS (from 20001028 or so) gave a 2.4.0.10.6/i686 that crashed on boot, no time to dig deeper yet.

Signature · 8 lines
Dr. Horst H. von Brand                       mailto:[email protected]
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#10 lore raw

Re: Recommended compiler? - Re: [patch] kernel/module.c (plus gratuitous rant)

Quoted 5 lines · Horst von Brand
Quoted 1 line · Martin Dalecki

Peter Samuelson wrote:

[...]

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

* Red Hat "2.96" or CVS 2.97 will probably break any known kernel.

Works fine for me and 2.4.0-test10-pre5... however there are tons of preprocessor warnings in some drivers.

CVS (from 20001028 or so) gave a 2.4.0.10.6/i686 that crashed on boot, no time to dig deeper yet.

CVS 2.97 is known to miscompile e.g. buffer.c.

Jakub
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#11 lore raw

Re: Recommended compiler? - Re: [patch] kernel/module.c (plus gratuitous rant)

In reply to Horst von Brand
Quoted 6 lines · Horst von Brand
Quoted 1 line · Martin Dalecki

Peter Samuelson wrote:

[...]

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

* Red Hat "2.96" or CVS 2.97 will probably break any known kernel.

Works fine for me and 2.4.0-test10-pre5... however there are tons of preprocessor warnings in some drivers.

CVS (from 20001028 or so) gave a 2.4.0.10.6/i686 that crashed on boot, no time to dig deeper yet.

I was just using the compiler shipped by RedHat with all the fixes contained
therein.... self compiled under glibc-2.1.95 on a system which some long time
ago was RedHat-5.1 ;-). And it worked.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#12 lore raw
In reply to Pavel Machek
Quoted 11 lines · Keith Owens
Quoted 2 lines · Pavel Machek

Would it be possible to keep 2.7.2.3? You still need 2.7.2.3 to reliably compile 2.0.X (and maybe even 2.2.all-but-latest?).

You can have multiple versions of gcc installed, just select the one to use when you compile the kernel.

CC=gcc-2723 make 2.0 kernel
CC=gcc-2723 make 2.2 kernel
CC=egcs make 2.4 kernel

Even simpler: "gcc -V 2.7.2.3" or "gcc -V 2.95.2" or whatever...

Yours,
Dominik Kubla

Signature · 5 lines
http://petition.eurolinux.org/index_html - No Software Patents In Europe!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#14 lore raw
In reply to Pavel Machek
Quoted 5 lines · Richard Henderson
Quoted 1 line · Dominik Kubla

Even simpler: "gcc -V 2.7.2.3" or "gcc -V 2.95.2" or whatever...

Which was a nice idea, but it doesn't actually work. Changes in spec file format between versions makes this fall over.

Wow. So much for reading the manual... well, that's considered cheating anyway, isn't it?

Dominik

Signature · 5 lines
http://petition.eurolinux.org/index_html - No Software Patents In Europe!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#15 lore raw
In reply to Pavel Machek

[rth]

Quoted 2 lines
Quoted 2 lines

Which was a nice idea, but it doesn't actually work. Changes in spec file format between versions makes this fall over.

[Dominik Kubla]

Quoted 2 lines

Wow. So much for reading the manual... well, that's considered cheating anyway, isn't it?

I know this was true at one time -- egcs couldn't read 2.7 spec files, or something like that. (I remember at the time thinking "so much for the great and glorious '-V' theory".)

But I think it's since been fixed:

  $ gcc -v
  Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.2/specs
  gcc version 2.95.2 20000220 (Debian GNU/Linux)
  $ gcc -V2.7.2.3 -v
  Reading specs from /usr/lib/gcc-lib/i386-linux/2.7.2.3/specs
  gcc driver version 2.95.2 20000220 (Debian GNU/Linux) executing gcc version 2.7.2.3

Is there more subtle breakage?

Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#17 lore raw
In reply to a message not in the archive
Quoted 2 lines · Pavel Machek

Would it be possible to keep 2.7.2.3? You still need 2.7.2.3 to reliably compile 2.0.X (and maybe even 2.2.all-but-latest?).

What fails, when you use egcs-1.1.2 to build 2.0.x or early 2.2.x?

Maybe they need -fno-strict-aliasing... is that what you are referring to?

Regards,

Jeff

Signature · 10 lines
Jeff Garzik                    | "Mind if I drive?"  -Sam
Building 1024                  | "Not if you don't mind me clawing at
the
MandrakeSoft                   |  dash and screaming like a
cheerleader."
                               |      -Max
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#18 lore raw
Quoted 5 lines
Quoted 2 lines · Pavel Machek

Would it be possible to keep 2.7.2.3? You still need 2.7.2.3 to reliably compile 2.0.X (and maybe even 2.2.all-but-latest?).

What fails, when you use egcs-1.1.2 to build 2.0.x or early 2.2.x?

egcs miscompiles inlined strstr. It gets combined with bad asm constraints to mean that 2.0 and earlier 2.2 will crash when fed the right (wrong ?) sequence of FPU ops to software emulate

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/