Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Gcc v2.96 versus Trolltech QtEmbedded Window System
@ 2002-07-13 11:15 Kevin D. Kissell
  2002-07-13 11:15 ` Kevin D. Kissell
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Kevin D. Kissell @ 2002-07-13 11:15 UTC (permalink / raw)
  To: linux-mips

I am trying to build the GPL version of the Trolltech
QT embedded windowing system on my Malta, using
what I believe to be H.J. Lu's most recent tool chain:

[root@localhost release-emb-generic]# g++ -v
Reading specs from /usr/lib/gcc-lib/mipsel-redhat-linux-gnu/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110.1)

The QT build process is a little unusual - the configure
script causes a fairly huge (640KB) C++ source file
to be generated, which is then thrown at the compiler.
I would expect that to take a while, but after about 
20 hours with zero output passed to the assembler
stage (it runs with -pipe) and the gradual accretion
of about 90MB of virtual memory (on my poor 32MB
system) I concluded that it was probably trapped in
an infinite loop.  As I have seen this sort of thing occur
in the past in optimizer stages, I hacked the makefile
to replace -O2 with -O0.  It hasn't run for 20 hours
at -O0 yet, but after a couple of hours the memory 
allocation dynamic looks to be the same, only faster
(72MB after only a couple of hours), so I'm not
optimistic.

My questions to the assembled panel of experts are:

Are there known problems with gcc 2.96.110.1 in
this regard?

Is there a native toolchain that would be more 
likely to be able to handle the build of QT?
I'm considering trying the 2.95 set on Maciej's
site out of desperation.

Has anyone succeeded in building QT Embedded
for mips(el) Linux, either native or using cross-tools?

            Regards,

            Kevin K.

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

* Gcc v2.96 versus Trolltech QtEmbedded Window System
  2002-07-13 11:15 Gcc v2.96 versus Trolltech QtEmbedded Window System Kevin D. Kissell
@ 2002-07-13 11:15 ` Kevin D. Kissell
  2002-07-13 12:15 ` Bradley D. LaRonde
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Kevin D. Kissell @ 2002-07-13 11:15 UTC (permalink / raw)
  To: linux-mips

I am trying to build the GPL version of the Trolltech
QT embedded windowing system on my Malta, using
what I believe to be H.J. Lu's most recent tool chain:

[root@localhost release-emb-generic]# g++ -v
Reading specs from /usr/lib/gcc-lib/mipsel-redhat-linux-gnu/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110.1)

The QT build process is a little unusual - the configure
script causes a fairly huge (640KB) C++ source file
to be generated, which is then thrown at the compiler.
I would expect that to take a while, but after about 
20 hours with zero output passed to the assembler
stage (it runs with -pipe) and the gradual accretion
of about 90MB of virtual memory (on my poor 32MB
system) I concluded that it was probably trapped in
an infinite loop.  As I have seen this sort of thing occur
in the past in optimizer stages, I hacked the makefile
to replace -O2 with -O0.  It hasn't run for 20 hours
at -O0 yet, but after a couple of hours the memory 
allocation dynamic looks to be the same, only faster
(72MB after only a couple of hours), so I'm not
optimistic.

My questions to the assembled panel of experts are:

Are there known problems with gcc 2.96.110.1 in
this regard?

Is there a native toolchain that would be more 
likely to be able to handle the build of QT?
I'm considering trying the 2.95 set on Maciej's
site out of desperation.

Has anyone succeeded in building QT Embedded
for mips(el) Linux, either native or using cross-tools?

            Regards,

            Kevin K.

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

* Re: Gcc v2.96 versus Trolltech QtEmbedded Window System
  2002-07-13 11:15 Gcc v2.96 versus Trolltech QtEmbedded Window System Kevin D. Kissell
  2002-07-13 11:15 ` Kevin D. Kissell
@ 2002-07-13 12:15 ` Bradley D. LaRonde
  2002-07-13 12:15   ` Bradley D. LaRonde
  2002-07-13 16:00 ` H. J. Lu
  2002-07-14  9:53 ` Kevin D. Kissell
  3 siblings, 1 reply; 7+ messages in thread
From: Bradley D. LaRonde @ 2002-07-13 12:15 UTC (permalink / raw)
  To: Kevin D. Kissell, linux-mips

I've built qt 2.3.2 with various toolchains that I've built myself.  Most
recently I built qt 2.3.2 for mipsel with binutils 2.12, gcc 3.1, and glibc
2.4.

Here is how I build my toolchains:

    http://www.ltc.com/~brad/mips/mips-cross-toolchain

I configure qt starting like this:

    ./configure -xplatform linux-mips-g++

Regards,
Brad

----- Original Message -----
From: "Kevin D. Kissell" <kevink@mips.com>
To: <linux-mips@oss.sgi.com>
Sent: Saturday, July 13, 2002 7:15 AM
Subject: Gcc v2.96 versus Trolltech QtEmbedded Window System


> I am trying to build the GPL version of the Trolltech
> QT embedded windowing system on my Malta, using
> what I believe to be H.J. Lu's most recent tool chain:
>
> [root@localhost release-emb-generic]# g++ -v
> Reading specs from /usr/lib/gcc-lib/mipsel-redhat-linux-gnu/2.96/specs
> gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110.1)
>
> The QT build process is a little unusual - the configure
> script causes a fairly huge (640KB) C++ source file
> to be generated, which is then thrown at the compiler.
> I would expect that to take a while, but after about
> 20 hours with zero output passed to the assembler
> stage (it runs with -pipe) and the gradual accretion
> of about 90MB of virtual memory (on my poor 32MB
> system) I concluded that it was probably trapped in
> an infinite loop.  As I have seen this sort of thing occur
> in the past in optimizer stages, I hacked the makefile
> to replace -O2 with -O0.  It hasn't run for 20 hours
> at -O0 yet, but after a couple of hours the memory
> allocation dynamic looks to be the same, only faster
> (72MB after only a couple of hours), so I'm not
> optimistic.
>
> My questions to the assembled panel of experts are:
>
> Are there known problems with gcc 2.96.110.1 in
> this regard?
>
> Is there a native toolchain that would be more
> likely to be able to handle the build of QT?
> I'm considering trying the 2.95 set on Maciej's
> site out of desperation.
>
> Has anyone succeeded in building QT Embedded
> for mips(el) Linux, either native or using cross-tools?
>
>             Regards,
>
>             Kevin K.
>
>

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

* Re: Gcc v2.96 versus Trolltech QtEmbedded Window System
  2002-07-13 12:15 ` Bradley D. LaRonde
@ 2002-07-13 12:15   ` Bradley D. LaRonde
  0 siblings, 0 replies; 7+ messages in thread
From: Bradley D. LaRonde @ 2002-07-13 12:15 UTC (permalink / raw)
  To: Kevin D. Kissell, linux-mips

I've built qt 2.3.2 with various toolchains that I've built myself.  Most
recently I built qt 2.3.2 for mipsel with binutils 2.12, gcc 3.1, and glibc
2.4.

Here is how I build my toolchains:

    http://www.ltc.com/~brad/mips/mips-cross-toolchain

I configure qt starting like this:

    ./configure -xplatform linux-mips-g++

Regards,
Brad

----- Original Message -----
From: "Kevin D. Kissell" <kevink@mips.com>
To: <linux-mips@oss.sgi.com>
Sent: Saturday, July 13, 2002 7:15 AM
Subject: Gcc v2.96 versus Trolltech QtEmbedded Window System


> I am trying to build the GPL version of the Trolltech
> QT embedded windowing system on my Malta, using
> what I believe to be H.J. Lu's most recent tool chain:
>
> [root@localhost release-emb-generic]# g++ -v
> Reading specs from /usr/lib/gcc-lib/mipsel-redhat-linux-gnu/2.96/specs
> gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110.1)
>
> The QT build process is a little unusual - the configure
> script causes a fairly huge (640KB) C++ source file
> to be generated, which is then thrown at the compiler.
> I would expect that to take a while, but after about
> 20 hours with zero output passed to the assembler
> stage (it runs with -pipe) and the gradual accretion
> of about 90MB of virtual memory (on my poor 32MB
> system) I concluded that it was probably trapped in
> an infinite loop.  As I have seen this sort of thing occur
> in the past in optimizer stages, I hacked the makefile
> to replace -O2 with -O0.  It hasn't run for 20 hours
> at -O0 yet, but after a couple of hours the memory
> allocation dynamic looks to be the same, only faster
> (72MB after only a couple of hours), so I'm not
> optimistic.
>
> My questions to the assembled panel of experts are:
>
> Are there known problems with gcc 2.96.110.1 in
> this regard?
>
> Is there a native toolchain that would be more
> likely to be able to handle the build of QT?
> I'm considering trying the 2.95 set on Maciej's
> site out of desperation.
>
> Has anyone succeeded in building QT Embedded
> for mips(el) Linux, either native or using cross-tools?
>
>             Regards,
>
>             Kevin K.
>
>

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

* Re: Gcc v2.96 versus Trolltech QtEmbedded Window System
  2002-07-13 11:15 Gcc v2.96 versus Trolltech QtEmbedded Window System Kevin D. Kissell
  2002-07-13 11:15 ` Kevin D. Kissell
  2002-07-13 12:15 ` Bradley D. LaRonde
@ 2002-07-13 16:00 ` H. J. Lu
  2002-07-14  9:53 ` Kevin D. Kissell
  3 siblings, 0 replies; 7+ messages in thread
From: H. J. Lu @ 2002-07-13 16:00 UTC (permalink / raw)
  To: Kevin D. Kissell; +Cc: linux-mips

On Sat, Jul 13, 2002 at 01:15:54PM +0200, Kevin D. Kissell wrote:
> I am trying to build the GPL version of the Trolltech
> QT embedded windowing system on my Malta, using
> what I believe to be H.J. Lu's most recent tool chain:
> 
> [root@localhost release-emb-generic]# g++ -v
> Reading specs from /usr/lib/gcc-lib/mipsel-redhat-linux-gnu/2.96/specs
> gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110.1)
> 
> The QT build process is a little unusual - the configure
> script causes a fairly huge (640KB) C++ source file
> to be generated, which is then thrown at the compiler.
> I would expect that to take a while, but after about 
> 20 hours with zero output passed to the assembler
> stage (it runs with -pipe) and the gradual accretion
> of about 90MB of virtual memory (on my poor 32MB
> system) I concluded that it was probably trapped in
> an infinite loop.  As I have seen this sort of thing occur
> in the past in optimizer stages, I hacked the makefile
> to replace -O2 with -O0.  It hasn't run for 20 hours
> at -O0 yet, but after a couple of hours the memory 
> allocation dynamic looks to be the same, only faster
> (72MB after only a couple of hours), so I'm not
> optimistic.
> 
> My questions to the assembled panel of experts are:
> 
> Are there known problems with gcc 2.96.110.1 in
> this regard?

Have you tried the same C++ code with the same version of the cross
toolchain on Linux/x86? It may just take huge amount of memory.

> 
> Is there a native toolchain that would be more 
> likely to be able to handle the build of QT?
> I'm considering trying the 2.95 set on Maciej's
> site out of desperation.
> 

You can try my gcc 3.1 for RedHat 7.3. But it may need more memory.



H.J.

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

* Re: Gcc v2.96 versus Trolltech QtEmbedded Window System
  2002-07-13 11:15 Gcc v2.96 versus Trolltech QtEmbedded Window System Kevin D. Kissell
                   ` (2 preceding siblings ...)
  2002-07-13 16:00 ` H. J. Lu
@ 2002-07-14  9:53 ` Kevin D. Kissell
  2002-07-14  9:53   ` Kevin D. Kissell
  3 siblings, 1 reply; 7+ messages in thread
From: Kevin D. Kissell @ 2002-07-14  9:53 UTC (permalink / raw)
  To: Kevin D. Kissell, linux-mips

Many thanks to all of you who replied with suggestions.
I was able to repeat the experiment on a system with
essentially the same configuration as my own, except
with 256MB of memory instead of 32M.  The compilation
that took 20 hours to get to 90MB if virtual size completed
in something like 5 minutes, with the last sampled virtual
footprint being 94MB.  Now all I've gotta do is to squeeze
the resulting build tree across an ISDN line back to my
own system to install, but even if that comes out to 
hundreds of megabytes, it'll be faster than a local build.  ;-)

            Regards,

            Kevin K.

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

* Re: Gcc v2.96 versus Trolltech QtEmbedded Window System
  2002-07-14  9:53 ` Kevin D. Kissell
@ 2002-07-14  9:53   ` Kevin D. Kissell
  0 siblings, 0 replies; 7+ messages in thread
From: Kevin D. Kissell @ 2002-07-14  9:53 UTC (permalink / raw)
  To: Kevin D. Kissell, linux-mips

Many thanks to all of you who replied with suggestions.
I was able to repeat the experiment on a system with
essentially the same configuration as my own, except
with 256MB of memory instead of 32M.  The compilation
that took 20 hours to get to 90MB if virtual size completed
in something like 5 minutes, with the last sampled virtual
footprint being 94MB.  Now all I've gotta do is to squeeze
the resulting build tree across an ISDN line back to my
own system to install, but even if that comes out to 
hundreds of megabytes, it'll be faster than a local build.  ;-)

            Regards,

            Kevin K.

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

end of thread, other threads:[~2002-07-14  9:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-13 11:15 Gcc v2.96 versus Trolltech QtEmbedded Window System Kevin D. Kissell
2002-07-13 11:15 ` Kevin D. Kissell
2002-07-13 12:15 ` Bradley D. LaRonde
2002-07-13 12:15   ` Bradley D. LaRonde
2002-07-13 16:00 ` H. J. Lu
2002-07-14  9:53 ` Kevin D. Kissell
2002-07-14  9:53   ` Kevin D. Kissell

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