[U-Boot-Users] GCC version for Linux kernel?

I am using GCC 3.4.2 for PowerPC. When you compile the Linux 2.4 PPC kernel you get lots of "deprecated" warning messages from the compiler. What is the recommended GCC version? TIA

In message 3e305f527ea735cc8356c4045027b08d@onz.com you wrote:
I am using GCC 3.4.2 for PowerPC. When you compile the Linux 2.4 PPC kernel you get lots of "deprecated" warning messages from the compiler. What is the recommended GCC version?
GCC < 3.4.x (We use GCC 3.3.3 in our ELDK).
Best regards,
Wolfgang Denk

GCC < 3.4.x (We use GCC 3.3.3 in our ELDK).
Unfortunately gcc 3.4.x produces faster code for PPC. We compile U-Boot with the eldk compiler and everything else with gcc-3.4.3 (buildroot toolchain).
IIRC, the difference was about >10-15% for parsing mpeg streams.

Marc Leeman wrote:
GCC < 3.4.x (We use GCC 3.3.3 in our ELDK).
Unfortunately gcc 3.4.x produces faster code for PPC. We compile U-Boot with the eldk compiler and everything else with gcc-3.4.3 (buildroot toolchain).
IIRC, the difference was about >10-15% for parsing mpeg streams.
I've compiled U-Boot & Kernel with 3.4.2... the only thing that seems to fail in this process (obscurely) is hello_world, whereas the rest of the tree seems quite happy to compile *without* error/warning !
Granted.. U-Boot doesn't currently actually boot on my board, but, /that's/ just a matter of time/proffering sacrifice to the gods of SDRAM-UPM configuration. Easy !
--
Bryan

tree seems quite happy to compile *without* error/warning ! Granted.. U-Boot doesn't currently actually boot on my board, but,
That's my experience too. But time is not only an issue on the board itself :( It's on my todo list though...

tree seems quite happy to compile *without* error/warning ! Granted.. U-Boot doesn't currently actually boot on my board, but,
That's my experience too. But time is not only an issue on the board itself :( It's on my todo list though...
Most of the "warnings" I was referring to are from the linuxppc-2.4_devel_* kernel from the FTP site. U-Boot compiled cleanly compared to this.

Most of the "warnings" I was referring to are from the linuxppc-2.4_devel_* kernel from the FTP site. U-Boot compiled cleanly compared to this.
I'm using the linux.org kernel and it compiles cleanly. I seem to remember some warnings in a transition from one version to another, but I cannot remember what the compiler versions were.
I've been picking up the stable ones since 2.4.21 (...-2.4.31) for our systems.

Allen Curtis wrote:
Most of the "warnings" I was referring to are from the linuxppc-2.4_devel_* kernel from the FTP site. U-Boot compiled cleanly compared to this.
Warning! from gcc-3.3 to gcc-3.4 the handling of the attribute 'unused' changed. For that reason, compiling a linux-2.4 kernel with gcc-3.4 will break silently!
Detlef

Warning! from gcc-3.3 to gcc-3.4 the handling of the attribute 'unused' changed. For that reason, compiling a linux-2.4 kernel with gcc-3.4 will break silently!
Euhm. I've been doing this for 5 months without any problem for PPC.

Marc Leeman wrote:
Warning! from gcc-3.3 to gcc-3.4 the handling of the attribute 'unused' changed. For that reason, compiling a linux-2.4 kernel with gcc-3.4 will break silently!
Euhm. I've been doing this for 5 months without any problem for PPC.
I had a quick
grep -rs attrib | grep unused | grep -v Binary
On my Kernel source tree... and assuming that unused is indeed incorrectly handled... or rather differently handled, between 3.3.x and 3.4.x ... you probably wouldn't notice the difference, unless you were using SCSI, or the 8390 driver on powerpc.
--
Bryan

On Wednesday 15 June 2005 09:12, Marc Leeman wrote:
Warning! from gcc-3.3 to gcc-3.4 the handling of the attribute 'unused' changed. For that reason, compiling a linux-2.4 kernel with gcc-3.4 will break silently!
Euhm. I've been doing this for 5 months without any problem for PPC.
Same here ;)
Compiling U-Boot (latest CVS) is no problem on gcc-3.4.3, as long, as you are not addressing ARM targets and of course it works!
For kernel compilation, you need at least kernel 2.4.28 or higher when using gcc 3.4.x - or some patches that fix these attribute issues (and other stuff, that changed)
Ciao, Gerhard

Gerhard Jaeger wrote:
On Wednesday 15 June 2005 09:12, Marc Leeman wrote:
Warning! from gcc-3.3 to gcc-3.4 the handling of the attribute 'unused' changed. For that reason, compiling a linux-2.4 kernel with gcc-3.4 will break silently!
Euhm. I've been doing this for 5 months without any problem for PPC.
Same here ;)
Compiling U-Boot (latest CVS) is no problem on gcc-3.4.3, as long, as you are not addressing ARM targets and of course it works!
For kernel compilation, you need at least kernel 2.4.28 or higher when using gcc 3.4.x - or some patches that fix these attribute issues (and other stuff, that changed)
Ah yes, someone (you?) already mentioned that on linuxppc-embedded.
I run 2.4.28-pre3 !

On Wednesday 15 June 2005 09:12, Marc Leeman wrote:
Warning! from gcc-3.3 to gcc-3.4 the handling of the attribute 'unused' changed. For that reason, compiling a linux-2.4 kernel with gcc-3.4 will break silently!
Euhm. I've been doing this for 5 months without any problem for PPC.
Same here ;)
Compiling U-Boot (latest CVS) is no problem on gcc-3.4.3, as long, as you are not addressing ARM targets and of course it works!
For kernel compilation, you need at least kernel 2.4.28 or higher when using gcc 3.4.x - or some patches that fix these attribute issues (and other stuff, that changed)
The PPC devel version on the Denx FTP site is 2.4.25.

Marc Leeman wrote:
Warning! from gcc-3.3 to gcc-3.4 the handling of the attribute 'unused' changed. For that reason, compiling a linux-2.4 kernel with gcc-3.4 will break silently!
Euhm. I've been doing this for 5 months without any problem for PPC.
That is what "will break silently!" means. I used a 3.4 compiler for several weeks, until I tracked down a problem I didn't notice before to the compiler version.
Actually, the ARM version of U-Boot (at least 1.1.2) has the same problem (in include/asm-arm/setup.h).
Detlef

GCC < 3.4.x (We use GCC 3.3.3 in our ELDK).
Unfortunately gcc 3.4.x produces faster code for PPC. We compile U-Boot with the eldk compiler and everything else with gcc-3.4.3 (buildroot toolchain).
I am handing this off to non-Linux people. A single toolchain is best.
participants (6)
-
Allen Curtis
-
Bryan O'Donoghue
-
Detlef Vollmann
-
Gerhard Jaeger
-
Marc Leeman
-
Wolfgang Denk