* [U-Boot-Users] GCC version for Linux kernel?
@ 2005-06-13 22:19 Allen Curtis
2005-06-14 3:53 ` Wolfgang Denk
0 siblings, 1 reply; 15+ messages in thread
From: Allen Curtis @ 2005-06-13 22:19 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] GCC version for Linux kernel?
2005-06-13 22:19 [U-Boot-Users] GCC version for Linux kernel? Allen Curtis
@ 2005-06-14 3:53 ` Wolfgang Denk
2005-06-14 7:14 ` Marc Leeman
0 siblings, 1 reply; 15+ messages in thread
From: Wolfgang Denk @ 2005-06-14 3:53 UTC (permalink / raw)
To: u-boot
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
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
The day-to-day travails of the IBM programmer are so amusing to most
of us who are fortunate enough never to have been one - like watching
Charlie Chaplin trying to cook a shoe.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] GCC version for Linux kernel?
2005-06-14 3:53 ` Wolfgang Denk
@ 2005-06-14 7:14 ` Marc Leeman
2005-06-14 9:27 ` Bryan O'Donoghue
2005-06-14 14:58 ` Allen Curtis
0 siblings, 2 replies; 15+ messages in thread
From: Marc Leeman @ 2005-06-14 7:14 UTC (permalink / raw)
To: u-boot
> 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.
--
greetz, marc
Revenge is a feast best served immediately.
D'Argo - Dog With Two Bones
scorpius 2.6.11 #1 Wed Mar 2 16:38:38 CET 2005 GNU/Linux
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.denx.de/pipermail/u-boot/attachments/20050614/da4c3548/attachment.pgp
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] GCC version for Linux kernel?
2005-06-14 7:14 ` Marc Leeman
@ 2005-06-14 9:27 ` Bryan O'Donoghue
2005-06-14 10:48 ` Marc Leeman
2005-06-14 14:58 ` Allen Curtis
1 sibling, 1 reply; 15+ messages in thread
From: Bryan O'Donoghue @ 2005-06-14 9:27 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] GCC version for Linux kernel?
2005-06-14 9:27 ` Bryan O'Donoghue
@ 2005-06-14 10:48 ` Marc Leeman
2005-06-14 14:19 ` Allen Curtis
0 siblings, 1 reply; 15+ messages in thread
From: Marc Leeman @ 2005-06-14 10:48 UTC (permalink / raw)
To: u-boot
> 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...
--
greetz, marc
That's your plan? Wile E. Coyote would come up with a better plan
than that!
Crichton - Throne for a Loss
scorpius 2.6.11 #1 Wed Mar 2 16:38:38 CET 2005 GNU/Linux
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.denx.de/pipermail/u-boot/attachments/20050614/8a99f78f/attachment.pgp
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] GCC version for Linux kernel?
2005-06-14 10:48 ` Marc Leeman
@ 2005-06-14 14:19 ` Allen Curtis
2005-06-14 14:59 ` Marc Leeman
2005-06-14 18:11 ` Detlef Vollmann
0 siblings, 2 replies; 15+ messages in thread
From: Allen Curtis @ 2005-06-14 14:19 UTC (permalink / raw)
To: u-boot
>> 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.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] GCC version for Linux kernel?
2005-06-14 7:14 ` Marc Leeman
2005-06-14 9:27 ` Bryan O'Donoghue
@ 2005-06-14 14:58 ` Allen Curtis
1 sibling, 0 replies; 15+ messages in thread
From: Allen Curtis @ 2005-06-14 14:58 UTC (permalink / raw)
To: u-boot
>> 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.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] GCC version for Linux kernel?
2005-06-14 14:19 ` Allen Curtis
@ 2005-06-14 14:59 ` Marc Leeman
2005-06-14 18:11 ` Detlef Vollmann
1 sibling, 0 replies; 15+ messages in thread
From: Marc Leeman @ 2005-06-14 14:59 UTC (permalink / raw)
To: u-boot
> 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.
--
greetz, marc
One Mippippippi... Two Mippippippi...
D'Argo - Through the Looking Glass
scorpius 2.6.11 #1 Wed Mar 2 16:38:38 CET 2005 GNU/Linux
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.denx.de/pipermail/u-boot/attachments/20050614/dffdc5e3/attachment.pgp
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] GCC version for Linux kernel?
2005-06-14 14:19 ` Allen Curtis
2005-06-14 14:59 ` Marc Leeman
@ 2005-06-14 18:11 ` Detlef Vollmann
2005-06-15 7:12 ` Marc Leeman
1 sibling, 1 reply; 15+ messages in thread
From: Detlef Vollmann @ 2005-06-14 18:11 UTC (permalink / raw)
To: u-boot
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
--
Detlef Vollmann vollmann engineering gmbh
Linux and C++ for Embedded Systems http://www.vollmann.ch/
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] GCC version for Linux kernel?
2005-06-14 18:11 ` Detlef Vollmann
@ 2005-06-15 7:12 ` Marc Leeman
2005-06-15 8:45 ` Bryan O'Donoghue
` (2 more replies)
0 siblings, 3 replies; 15+ messages in thread
From: Marc Leeman @ 2005-06-15 7:12 UTC (permalink / raw)
To: u-boot
> 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.
--
greetz, marc
You honestly believe I could find you appealing? I mean, you're so,
so, blue!
Rygel - DNA Mad Scientist
scorpius 2.6.11 #1 Wed Mar 2 16:38:38 CET 2005 GNU/Linux
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.denx.de/pipermail/u-boot/attachments/20050615/6eefa67b/attachment.pgp
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] GCC version for Linux kernel?
2005-06-15 7:12 ` Marc Leeman
@ 2005-06-15 8:45 ` Bryan O'Donoghue
2005-06-15 8:46 ` Gerhard Jaeger
2005-06-15 9:58 ` Detlef Vollmann
2 siblings, 0 replies; 15+ messages in thread
From: Bryan O'Donoghue @ 2005-06-15 8:45 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] GCC version for Linux kernel?
2005-06-15 7:12 ` Marc Leeman
2005-06-15 8:45 ` Bryan O'Donoghue
@ 2005-06-15 8:46 ` Gerhard Jaeger
2005-06-15 8:56 ` Bryan O'Donoghue
2005-06-15 17:12 ` Allen Curtis
2005-06-15 9:58 ` Detlef Vollmann
2 siblings, 2 replies; 15+ messages in thread
From: Gerhard Jaeger @ 2005-06-15 8:46 UTC (permalink / raw)
To: u-boot
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 <gjaeger@sysgo.com>
SYSGO AG Embedded and Real-Time Software
www.sysgo.com | www.elinos.com | www.pikeos.com | www.osek.de
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] GCC version for Linux kernel?
2005-06-15 8:46 ` Gerhard Jaeger
@ 2005-06-15 8:56 ` Bryan O'Donoghue
2005-06-15 17:12 ` Allen Curtis
1 sibling, 0 replies; 15+ messages in thread
From: Bryan O'Donoghue @ 2005-06-15 8:56 UTC (permalink / raw)
To: u-boot
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 !
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] GCC version for Linux kernel?
2005-06-15 7:12 ` Marc Leeman
2005-06-15 8:45 ` Bryan O'Donoghue
2005-06-15 8:46 ` Gerhard Jaeger
@ 2005-06-15 9:58 ` Detlef Vollmann
2 siblings, 0 replies; 15+ messages in thread
From: Detlef Vollmann @ 2005-06-15 9:58 UTC (permalink / raw)
To: u-boot
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
--
Detlef Vollmann vollmann engineering gmbh
Linux and C++ for Embedded Systems http://www.vollmann.ch/
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot-Users] GCC version for Linux kernel?
2005-06-15 8:46 ` Gerhard Jaeger
2005-06-15 8:56 ` Bryan O'Donoghue
@ 2005-06-15 17:12 ` Allen Curtis
1 sibling, 0 replies; 15+ messages in thread
From: Allen Curtis @ 2005-06-15 17:12 UTC (permalink / raw)
To: u-boot
> 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.
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2005-06-15 17:12 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-13 22:19 [U-Boot-Users] GCC version for Linux kernel? Allen Curtis
2005-06-14 3:53 ` Wolfgang Denk
2005-06-14 7:14 ` Marc Leeman
2005-06-14 9:27 ` Bryan O'Donoghue
2005-06-14 10:48 ` Marc Leeman
2005-06-14 14:19 ` Allen Curtis
2005-06-14 14:59 ` Marc Leeman
2005-06-14 18:11 ` Detlef Vollmann
2005-06-15 7:12 ` Marc Leeman
2005-06-15 8:45 ` Bryan O'Donoghue
2005-06-15 8:46 ` Gerhard Jaeger
2005-06-15 8:56 ` Bryan O'Donoghue
2005-06-15 17:12 ` Allen Curtis
2005-06-15 9:58 ` Detlef Vollmann
2005-06-14 14:58 ` Allen Curtis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox