[csw-maintainers] GCC versions on the buildfarm

Dagobert Michelsen dam at opencsw.org
Tue Jun 12 09:32:59 CEST 2012


Hi Maciej,

Am 12.06.2012 um 09:25 schrieb Maciej (Matchek) Bliziński:
> We now have different GCC versions on Solaris 9 and Solaris 10 hosts. This means, that we can't have a common OS-release-independent setting in GAR that will work for both systems.
> 
> Perhaps we need something like this?
> 
> diff --git a/gar/v2/gar.conf.mk b/gar/v2/gar.conf.mk
> index 6f3fc18..112cbdc 100644
> --- a/gar/v2/gar.conf.mk
> +++ b/gar/v2/gar.conf.mk
> @@ -539,7 +539,9 @@ SOS12U1_CC_HOME ?= /opt/studio/sunstudio12.1
>  SOS12U2_CC_HOME ?= /opt/solstudio12.2
>  SOS12U3_CC_HOME ?= /opt/solarisstudio12.3
>  
> -   GCC4_VERSION ?= 4.6
> +   GCC4_VERSION_5.9 ?= 4.6
> +   GCC4_VERSION_5.10 ?= 4.7
> +   GCC4_VERSION = $(GCC4_VERSION_$(GAROSREL))

You should always have
  GCC4_VERSION ?= $(GCC4_VERSION_$(GAROSREL))
to allow local overrides.

>  
>       GCC3_CC ?= $(GCC3_CC_HOME)/bin/gcc
>       GCC4_CC ?= $(GCC4_CC_HOME)/bin/gcc-$(GCC4_VERSION)
> 
> In “real life” we'd also need to handle the 5.11 case.

Alternatively you could have in /etc/opt/csw/garrc
  GCC4_VERSION = 4.6
on Solaris 9 and
  GCC4_VERSION = 4.7
on Solaris 10 defaulting to 4.7 in GAR itself.


Best regards

  -- Dago

-- 
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896



More information about the maintainers mailing list