You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Andrew Rist <an...@oracle.com> on 2012/03/02 01:34:45 UTC

[BUILD] setting gcc g++ version

in an attempt to set the specific version of gcc on the machine used by 
the build, we tried the following:

    bash -ci 'CC=/usr/bin/gcc-4.4
      CXX=/usr/bin/g++-4.4
      ./configure --with-jdk-home=/usr/lib/jvm/java-6-openjdk --with-epm-url=http://ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz --with-dmake-url=http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.tar.bz2 --with-lang="es de fr it pt-BR ja zh-CN" --enable-verbose --enable-category-b --enable-minimizer --enable-presenter-console --enable-wiki-publisher --enable-opengl --enable-dbus --enable-gstreamer --with-package-format="installed deb" --with-build-version="2012-03-01_23:49:54-Rev.1295998"'

which was not successful as seen here:
http://ci.apache.org/builders/openoffice-linux32-nightly/builds/41/steps/shell/logs/stdio

        checking for gcc... /usr/bin/gcc
        checking the GNU gcc compiler version... checked (gcc 4.6.1)

        checking the GNU C++ compiler version... checked (g++ 4.6.1)
        checking for g++ include path... /usr/include/c++/4.6

        The variable GXX_INCLUDE_PATH  is set to: /usr/include/c++/4.6


    Am I just missing 'export' or is it even possible to use gcc/g++
    that are not in the path (not in /usr/bin)?



R: [BUILD] setting gcc g++ version

Posted by Pedro Giffuni <pf...@apache.org>.
Hi Andrew,
...

--- Gio 1/3/12, Andrew Rist <an...@oracle.com> ha scritto:
...
> in an attempt to set the specific
> version of gcc on the machine used by the build, we tried
> the following:
> 
>    bash -ci 'CC=/usr/bin/gcc-4.4
>      CXX=/usr/bin/g++-4.4
>      ./configure
> --with-jdk-home=/usr/lib/jvm/java-6-openjdk
> --with-epm-url=http://ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz
> --with-dmake-url=http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.tar.bz2
> --with-lang="es de fr it pt-BR ja zh-CN" --enable-verbose
> --enable-category-b --enable-minimizer
> --enable-presenter-console --enable-wiki-publisher
> --enable-opengl --enable-dbus --enable-gstreamer
> --with-package-format="installed deb"
> --with-build-version="2012-03-01_23:49:54-Rev.1295998"'
> 
> which was not successful as seen here:
> http://ci.apache.org/builders/openoffice-linux32-nightly/builds/41/steps/shell/logs/stdio
> 
>        checking for gcc...
> /usr/bin/gcc
>        checking the GNU gcc
> compiler version... checked (gcc 4.6.1)
> 
>        checking the GNU C++
> compiler version... checked (g++ 4.6.1)
>        checking for g++ include
> path... /usr/include/c++/4.6
> 
>        The variable
> GXX_INCLUDE_PATH  is set to: /usr/include/c++/4.6
> 
> 
>    Am I just missing 'export' or is it even
> possible to use gcc/g++
>    that are not in the path (not in
> /usr/bin)?
> 

FWIW, you are not crazy ;) ...

This was one of the reasons why I wanted the gnumake4
CWS merged. It solves an important bugzilla issue,
one of the commits says:

#i116959#: allow user to override {C,CXX,OBJCXX}FLAGS:

cheers,

Pedro.