Skip to contentSkip to conversation

Recommended compiler version

DISCUSSION Francois Romieu 4 participants 9 messages May 29, 2004 – May 30, 2004

lore
Share & tools
lore
#0 lore raw

The linux kernel README and Documentation/CHANGES suggests to use gcc 2.95.3. These files have not been updated for ages. Is there a rough consensus regarding the required versions of the different tools in the buildchain or should one simply submit a patch to remove the offending files ?

--
Ueimor

#1 lore raw

Francois Romieu <[email protected]> :
[...]

I forgot to mention: 2.95.3 does not compile correctly the 2.6.6 r8169 driver.

The archive does not make clear what should be used. The whole 2.95.[234] family seems flaky. :o/

--
Ueimor

#2 lore raw

Quote from Francois Romieu <[email protected]>:

Quoted 8 lines

Francois Romieu <[email protected]> :
[...]

I forgot to mention: 2.95.3 does not compile correctly the 2.6.6 r8169 driver.

The archive does not make clear what should be used. The whole 2.95.[234] family seems flaky. :o/

In my opinion, code that doesn't compile with 2.95.3 is broken - 2.95.3 is still the recommended compiler, and although various developers have been using 3.x.x versions for a long time, I haven't been aware of any efforts to test a specific 3.x.x version of GCC over a wide range of kernels.

Basically, 2.95.3 is something of a point of reference, so it only makes sense to throw it out once we have a new point of reference.

John.

#3 lore raw

John Bradford <[email protected]> :
[...]

Quoted 1 line

In my opinion, code that doesn't compile with 2.95.3 is broken - 2.95.3 is

If you are asking for technical details, please read the thread ending
at: http://oss.sgi.com/projects/netdev/archive/2004-05/msg00440.html

[...]

Quoted 2 lines

Basically, 2.95.3 is something of a point of reference, so it only makes sense to throw it out once we have a new point of reference.

It makes no sense to religiously recommended 2.95.3 if it is known broken.

If nobody comes with a better approach, I'll simply submit a patch to remove the 2.95.3 recommendation (+ #error for the driver as suggested by ak).

--
Ueimor

#4 lore raw
Quoted 2 lines · Francois Romieu

...
It makes no sense to religiously recommended 2.95.3 if it is known broken.

In my experience, 2.95.3 isn't more broken than the average 3.3 compiler.

Quoted 2 lines

If nobody comes with a better approach, I'll simply submit a patch to remove the 2.95.3 recommendation (+ #error for the driver as suggested by ak).

The common solution in the kernel for such issues is to change the code to compile correctly with all supported compilers.

This might not be a perfect solution, but otherwise different drivers might require different compiler versions resulting in a chaos.

Whether support for gcc 2.95 should be dropped is a discussion for 2.7.

Quoted 1 line

Ueimor

cu
Adrian

Signature · 4 lines
       "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
#5 lore raw

Quote from Adrian Bunk <[email protected]>:

Quoted 1 line

Whether support for gcc 2.95 should be dropped is a discussion for 2.7.

Is there any single 3.x.x version of GCC that's actively in use by a large number of core developers? How do we make a sensible recommendation if not?

John.

#6 lore raw
Quoted 5 lines · John Bradford

Quote from Adrian Bunk <[email protected]>:

Quoted 1 line

Whether support for gcc 2.95 should be dropped is a discussion for 2.7.

Is there any single 3.x.x version of GCC that's actively in use by a large number of core developers? How do we make a sensible recommendation if not?

I've used gcc-3.3.2, since about when it came out. It's been reliable for me so I haven't noticed/tried newer versions. A few times I had problems, with xfree or mplayer and reverted to my distro version:
gcc version 2.95.4 20011002 (Debian prerelease)

if a standard, by someone more experienced with c than myself, where used that indicated preferred, known.works, known.broken versions of gcc, then developers could maintain the information, for their code, in a way that would make it easy to make global assertions on what gcc version is preferred, works or broken. Plus, make errors that say "this doesn't work with that gcc version" could save a lot of headaches.

// George

Signature · 3 lines
George Georgalis, Architect and administrator, Linux services. IXOYE
http://galis.org/george/  cell:646-331-2027  mailto:[email protected]
Key fingerprint = 5415 2738 61CF 6AE1 E9A7  9EF0 0186 503B 9831 1631
#7 lore raw
In reply to Francois Romieu

Quote from Francois Romieu <[email protected]>:

Quoted 4 lines

John Bradford <[email protected]> :
[...]

Quoted 1 line

In my opinion, code that doesn't compile with 2.95.3 is broken - 2.95.3 is

Quoted 8 lines

If you are asking for technical details, please read the thread ending
at: http://oss.sgi.com/projects/netdev/archive/2004-05/msg00440.html

[...]

Quoted 2 lines

Basically, 2.95.3 is something of a point of reference, so it only makes sense to throw it out once we have a new point of reference.

It makes no sense to religiously recommended 2.95.3 if it is known broken.

The _code_ is broken if it doesn't compile with the recommended compiler, not the compiler itself.

Quoted 2 lines

If nobody comes with a better approach, I'll simply submit a patch to remove the 2.95.3 recommendation (+ #error for the driver as suggested by ak).

Please leave the recommendation unless it's being replaced by a new one.

John.

#8 lore raw

John Bradford <[email protected]> :
[...]

Quoted 2 lines

The _code_ is broken if it doesn't compile with the recommended compiler, not the compiler itself.

Second time I read this statement. Discussion is over.

--
Ueimor