You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Peter Kovacs <pe...@apache.org> on 2021/05/24 10:10:23 UTC

Build Error

Hello all,


I am building OpenOffice trunk in a CentOSX Environment running as a 
docker image. Anyone has an Idea where to look. The versions look very 
old and even for CentOSx not up to time.

My host system is Arch Linux. I run into a strange QA Issue:

Entering workspace/AOO/github/main/sal/qa/osl/condition

../../../unxlngx6.pro/bin/sal_ut_osl_condition: /lib64/libstdc++.so.6: 
version `GLIBCXX_3.4.20' not found (required by 
workspace/AOO/github/main/solver/450/unxlngx6.pro/lib/libgtest.so.0)
../../../unxlngx6.pro/bin/sal_ut_osl_condition: /lib64/libstdc++.so.6: 
version `CXXABI_1.3.9' not found (required by 
workspace/AOO/github/main/solver/450/unxlngx6.pro/lib/libgtest.so.0)
../../../unxlngx6.pro/bin/sal_ut_osl_condition: /lib64/libstdc++.so.6: 
version `GLIBCXX_3.4.26' not found (required by 
workspace/AOO/github/main/solver/450/unxlngx6.pro/lib/libgtest.so.0)
../../../unxlngx6.pro/bin/sal_ut_osl_condition: /lib64/libstdc++.so.6: 
version `GLIBCXX_3.4.21' not found (required by 
workspace/AOO/github/main/solver/450/unxlngx6.pro/lib/libgtest.so.0)
dmake:  Error code 1, while making 'sal_ut_osl_condition_run'


My Config:

./configure \
     --with-dmake-path=/usr/local/bin/dmake \
     --with-epm=/usr/local/bin/epm \
     --with-ant-home=/ant \
     --with-lang="${LANGS}" \
     --with-jdk-home=${jdkhome} \
     --with-package-format="installed" \
     --with-vendor="Petko Testbuild"\
     --with-build-version="aoo4ever-$(date +"%Y-%m-%d %H:%M") - `uname 
-sm`\n ${GitHash}" \
     --with-system-stdlibs \
     --enable-crashdump=yes \
     --enable-category-b \
     --enable-beanshell \
     --enable-wiki-publisher \
     --enable-bundled-dictionaries \
     --enable-opengl  \
     --enable-dbus  \
     --without-junit \
     --without-stlport \
     --disable-odk \
     --without-fonts

My Docker build environment:

FROM centos:7
RUN yum update -y
RUN echo "assumeyes=1" >> /etc/yum.conf
RUN yum install epel-release -y
RUN yum install -y\
        gcc \
        expat-devel \
        openssl-devel \
        autoconf \
        gcc-c++ \
        cups-devel \
        pam-devel \
        java-1.8.0-openjdk-devel \
        rpm-build \
        dpkg \
        fakeroot \
        gperf \
        freetype-devel \
        libX11-devel \
        libXt-devel \
        fontconfig-devel \
        libXrandr-devel \
        bison \
        flex \
        GConf2-devel \
        gnome-vfs2-devel \
        gtk2-devel \
        gstreamer-devel \
        gstreamer-plugins-base-devel \
        gstreamer1-devel \
        gstreamer1-plugins-base-devel \
        mesa-libGLU-devel \
        wget \
        subversion \
        ccache \
        glib2-devel \
        dbus-glib-devel \
        perl \
        ORBit2-devel
RUN ccache -M 2G
RUN wget 
http://mirrors.nxnethosting.com/apache//ant/binaries/apache-ant-1.9.15-bin.tar.bz2
RUN tar xvf apache-ant-1.9.15-bin.tar.bz2
RUN mv apache-ant-1.9.15 ant
RUN yum install \
        cpan \
        perl-libwww-perl \
        perl-Archive-Zip \
        perl-Digest-SHA \
        perl-XML-Parser \
        perl-Crypt-SSLeay \
        perl-Env \
        perl-LWP-Protocol-https \
        perl-Test-Simple \
        perl-File-Path
RUN wget https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz
RUN tar xvf dmake-4.13.1.tar.gz
WORKDIR /dmake-4.13.1
RUN ./configure --prefix=/usr/local; make install
WORKDIR /
RUN wget https://github.com/jimjag/epm/archive/v5.0.0/epm-5.0.0.tar.gz
RUN tar xvf epm-5.0.0.tar.gz
WORKDIR epm-5.0.0
RUN ./configure --prefix=/usr/local ; make -i install
RUN yum install -y git autoconf


-- 
This is the Way! http://www.apache.org/theapacheway/index.html

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: Build Error

Posted by Peter Kovacs <pe...@apache.org>.
On 24.05.21 13:53, Arrigo Marchiori wrote:
> Hello Peter,
>
> On Mon, May 24, 2021 at 10:10:23AM +0000, Peter Kovacs wrote:
>
>> Hello all,
>>
>>
>> I am building OpenOffice trunk in a CentOSX Environment running as a docker
>> image. Anyone has an Idea where to look. The versions look very old and even
>> for CentOSx not up to time.
>>
>> My host system is Arch Linux. I run into a strange QA Issue:
>>
>> Entering workspace/AOO/github/main/sal/qa/osl/condition
>>
>> ../../../unxlngx6.pro/bin/sal_ut_osl_condition: /lib64/libstdc++.so.6:
>> version `GLIBCXX_3.4.20' not found (required by
>> workspace/AOO/github/main/solver/450/unxlngx6.pro/lib/libgtest.so.0)
> I don't know Docker, but what you wrote below may give us a
> suggestion.
>
> [...]
>> My Config:
> [ ...snip as nothing seems wrong there ... ]
>> My Docker build environment:
>>
>> FROM centos:7
>> RUN yum update -y
>> RUN echo "assumeyes=1" >> /etc/yum.conf
>> RUN yum install epel-release -y
>> RUN yum install -y\
>>         gcc \
>>         expat-devel \
>>         openssl-devel \
>>         autoconf \
>>         gcc-c++ \
> Here we are.

It is part of the guide. see [1]

Does this needs to change?

(The guide differs a bit with the docker commands, since it did not work 
out of the box.

>
> If I understand correctly, you are installing an older C++ (from
> Centos 7) into your up-to-date system.
>
> The error message is about a library mismatch between
> /lib64/libstdc++.so.6 and one of the shared libraries you compiled.
>
> Is it possible that, for some reason, the AOO build system is not
> always using the same version of GCC, or the same libraries? I.e. it
> is mixing them from the CentOS installation and from the host system?
>
> Or maybe the Docker image contains multiple versions of GCC, and the
> build system is mixing them?
>
> This could lead to errors similar to the one you reported.
>
> You can get information about individual libstdc+ versions with the
> following command:
>
> $ strings /path/libstdc++.so.6 | grep GLIBCXX
>
> And from here:
> https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html you can see
> that GLIBC_3.4.20 corresponds to GCC 4.9.0.
>
> I hope this helps.
However I believe that during my tries to make the docker image world I 
tried to build OpenOffice with different gcc version as you have suspected.

Thanks for pointing this out.

[1] 
https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Step_by_step_Linux#CentOS_7_and_Fedora_19_for_AOO_4.2.x_and_later
-- 
This is the Way! http://www.apache.org/theapacheway/index.html

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: Build Error

Posted by Arrigo Marchiori <ar...@yahoo.it.INVALID>.
Hello Peter,

On Mon, May 24, 2021 at 10:10:23AM +0000, Peter Kovacs wrote:

> Hello all,
> 
> 
> I am building OpenOffice trunk in a CentOSX Environment running as a docker
> image. Anyone has an Idea where to look. The versions look very old and even
> for CentOSx not up to time.
> 
> My host system is Arch Linux. I run into a strange QA Issue:
> 
> Entering workspace/AOO/github/main/sal/qa/osl/condition
> 
> ../../../unxlngx6.pro/bin/sal_ut_osl_condition: /lib64/libstdc++.so.6:
> version `GLIBCXX_3.4.20' not found (required by
> workspace/AOO/github/main/solver/450/unxlngx6.pro/lib/libgtest.so.0)

I don't know Docker, but what you wrote below may give us a
suggestion.

[...]
> My Config:
[ ...snip as nothing seems wrong there ... ]
> 
> My Docker build environment:
> 
> FROM centos:7
> RUN yum update -y
> RUN echo "assumeyes=1" >> /etc/yum.conf
> RUN yum install epel-release -y
> RUN yum install -y\
>        gcc \
>        expat-devel \
>        openssl-devel \
>        autoconf \
>        gcc-c++ \

Here we are.

If I understand correctly, you are installing an older C++ (from
Centos 7) into your up-to-date system.

The error message is about a library mismatch between
/lib64/libstdc++.so.6 and one of the shared libraries you compiled.

Is it possible that, for some reason, the AOO build system is not
always using the same version of GCC, or the same libraries? I.e. it
is mixing them from the CentOS installation and from the host system?

Or maybe the Docker image contains multiple versions of GCC, and the
build system is mixing them?

This could lead to errors similar to the one you reported.

You can get information about individual libstdc+ versions with the
following command:

$ strings /path/libstdc++.so.6 | grep GLIBCXX

And from here:
https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html you can see
that GLIBC_3.4.20 corresponds to GCC 4.9.0.

I hope this helps.

Best regards,
-- 
Arrigo

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: Build Error

Posted by Peter Kovacs <pe...@apache.org>.
Okay, sorry for the fuzz. Was some ISO Layer 8 Issue.

I did a dmake clean and then i seem to pass the Issue. -.-

On 24.05.21 12:10, Peter Kovacs wrote:
> Hello all,
>
>
> I am building OpenOffice trunk in a CentOSX Environment running as a 
> docker image. Anyone has an Idea where to look. The versions look very 
> old and even for CentOSx not up to time.
>
> My host system is Arch Linux. I run into a strange QA Issue:
>
> Entering workspace/AOO/github/main/sal/qa/osl/condition
>
> ../../../unxlngx6.pro/bin/sal_ut_osl_condition: /lib64/libstdc++.so.6: 
> version `GLIBCXX_3.4.20' not found (required by 
> workspace/AOO/github/main/solver/450/unxlngx6.pro/lib/libgtest.so.0)
> ../../../unxlngx6.pro/bin/sal_ut_osl_condition: /lib64/libstdc++.so.6: 
> version `CXXABI_1.3.9' not found (required by 
> workspace/AOO/github/main/solver/450/unxlngx6.pro/lib/libgtest.so.0)
> ../../../unxlngx6.pro/bin/sal_ut_osl_condition: /lib64/libstdc++.so.6: 
> version `GLIBCXX_3.4.26' not found (required by 
> workspace/AOO/github/main/solver/450/unxlngx6.pro/lib/libgtest.so.0)
> ../../../unxlngx6.pro/bin/sal_ut_osl_condition: /lib64/libstdc++.so.6: 
> version `GLIBCXX_3.4.21' not found (required by 
> workspace/AOO/github/main/solver/450/unxlngx6.pro/lib/libgtest.so.0)
> dmake:  Error code 1, while making 'sal_ut_osl_condition_run'
>
>
> My Config:
>
> ./configure \
>     --with-dmake-path=/usr/local/bin/dmake \
>     --with-epm=/usr/local/bin/epm \
>     --with-ant-home=/ant \
>     --with-lang="${LANGS}" \
>     --with-jdk-home=${jdkhome} \
>     --with-package-format="installed" \
>     --with-vendor="Petko Testbuild"\
>     --with-build-version="aoo4ever-$(date +"%Y-%m-%d %H:%M") - `uname 
> -sm`\n ${GitHash}" \
>     --with-system-stdlibs \
>     --enable-crashdump=yes \
>     --enable-category-b \
>     --enable-beanshell \
>     --enable-wiki-publisher \
>     --enable-bundled-dictionaries \
>     --enable-opengl  \
>     --enable-dbus  \
>     --without-junit \
>     --without-stlport \
>     --disable-odk \
>     --without-fonts
>
> My Docker build environment:
>
> FROM centos:7
> RUN yum update -y
> RUN echo "assumeyes=1" >> /etc/yum.conf
> RUN yum install epel-release -y
> RUN yum install -y\
>        gcc \
>        expat-devel \
>        openssl-devel \
>        autoconf \
>        gcc-c++ \
>        cups-devel \
>        pam-devel \
>        java-1.8.0-openjdk-devel \
>        rpm-build \
>        dpkg \
>        fakeroot \
>        gperf \
>        freetype-devel \
>        libX11-devel \
>        libXt-devel \
>        fontconfig-devel \
>        libXrandr-devel \
>        bison \
>        flex \
>        GConf2-devel \
>        gnome-vfs2-devel \
>        gtk2-devel \
>        gstreamer-devel \
>        gstreamer-plugins-base-devel \
>        gstreamer1-devel \
>        gstreamer1-plugins-base-devel \
>        mesa-libGLU-devel \
>        wget \
>        subversion \
>        ccache \
>        glib2-devel \
>        dbus-glib-devel \
>        perl \
>        ORBit2-devel
> RUN ccache -M 2G
> RUN wget 
> http://mirrors.nxnethosting.com/apache//ant/binaries/apache-ant-1.9.15-bin.tar.bz2
> RUN tar xvf apache-ant-1.9.15-bin.tar.bz2
> RUN mv apache-ant-1.9.15 ant
> RUN yum install \
>        cpan \
>        perl-libwww-perl \
>        perl-Archive-Zip \
>        perl-Digest-SHA \
>        perl-XML-Parser \
>        perl-Crypt-SSLeay \
>        perl-Env \
>        perl-LWP-Protocol-https \
>        perl-Test-Simple \
>        perl-File-Path
> RUN wget 
> https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz
> RUN tar xvf dmake-4.13.1.tar.gz
> WORKDIR /dmake-4.13.1
> RUN ./configure --prefix=/usr/local; make install
> WORKDIR /
> RUN wget https://github.com/jimjag/epm/archive/v5.0.0/epm-5.0.0.tar.gz
> RUN tar xvf epm-5.0.0.tar.gz
> WORKDIR epm-5.0.0
> RUN ./configure --prefix=/usr/local ; make -i install
> RUN yum install -y git autoconf
>
>
-- 
This is the Way! http://www.apache.org/theapacheway/index.html

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org