harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gregory Shimansky <gshiman...@gmail.com>
Subject Re: [general] gcc version 4.x as our "default" compiler version?
Date Wed, 10 Jan 2007 20:00:02 GMT
On Wednesday 10 January 2007 21:40 Naveen Neelakantam wrote:
> On Jan 10, 2007, at 12:02 PM, Gregory Shimansky wrote:
> > Geir Magnusson Jr. wrote:
> >> In the past, we've talked about what versions of GCC we will
> >> consider as our "supported" toolchain.  We noted that it's useful
> >> to keep using other versions, such as 3.x, to make sure we're not
> >> inadvertently hiding bugs through compiler bugs.
> >> I'd like to tighten up this degree of freedom a little.
> >> What's the harm if we declare 4.x as our default compiler
> >> version?  What potential platforms do we lose, or who do we
> >> inconvenience because requiring stdc++.so.6?
> >
> > AFAIK there are no Linux distributions which have versions that
> > don't have gcc 4.x included, it is the default compiler in all last
> > distros versions. So all last (and maybe some before last) versions
> > of Linux distros should have no problems with libstdc++.so.6.
>
> I use RHEL4 update 4 and the default compiler is gcc 3.4.6.  It does
> include an install of gcc 4.1.0, but it is named "gcc4" and "g++4".
>
> I am happy to switch to using the gcc 4.x install that I have, but I
> am not sure how to tell the build infrastructure to use "gcc4"
> instead of "gcc".  I did try building DRLVM by typing "./build.sh -
> DCXX=gcc4" but I got the following error:
>
> --------------------
> BUILD FAILED
> /home/dcsfiles/neelakan/Sandbox/Harmony/stable/working_vm/build/make/
> build.xml:432: The following error occurred while executing this line:
> /home/dcsfiles/neelakan/Sandbox/Harmony/stable/working_vm/build/make/
> build.xml:439: The following error occurred while executing this line:
> /home/dcsfiles/neelakan/Sandbox/Harmony/stable/working_vm/build/make/
> build_component.xml:72: The following error occurred while executing
> this line:
> /home/dcsfiles/neelakan/Sandbox/Harmony/stable/working_vm/build/
> lnx_ia32_gcc4_debug/semis/build/targets/common_extra.xml:8: gcc4 is
> not a legal value for this attribute
> --------------------
>
> There are two other alternatives as I see it.  I could move the
> "gcc4" and "g++4" binaries on my dev box over to "gcc" and "g++", but
> that effectively changes the default compiler version for everyone
> using the machine.  Our dev boxes are shared, so I don't like that
> option.  The other alternative would be to install a version of gcc
> 4.x into a private directory and set my path to point to it.  I can
> do this, but should I be expected to?

I never thought that RedHat which is the main developer of gcc still uses 
version 3.4 as the default compiler for their enterprise distribution. Makes 
you wonder about the quality of 4.x version that all other distros are using 
now...

Anyway, drlvm build uses cc-task which doesn't support any way to specify an 
alternative gcc name for compiler target [1]. Try to link gcc4 and g++4 
executables into a local directory with standard names and include it first 
into your path. If that doesn't work it would mean that you need a local 
installation of gcc 4.x.

[1] http://ant-contrib.sourceforge.net/compiler.html

-- 
Gregory

Mime
View raw message