Hello everyone.
Does anyone knows how to build libreoffice 4.3.4.1 on Power8?
I try to build it on RHEL6.1. I got spec from Fedora21, patched it and
successfully build it on x86_64.
On power with RHEL 6.1 I have installed all necessary packages for
building, but after on hour of compiling I get an error about stdlibc++.
Now I don't know what to do. Maybe I need some patches for ppc, but I don't
found anything in SRPM
The full text of error is:
S=/mnt/rpmbuild/BUILD/libreoffice-4.3.4.1 && I=$S/instdir && W=$S/workdir
&& mkdir -p $W/CxxObject/vcl/source/window/
$W/Dep/CxxObject/vcl/source/window/ && cd
/mnt/rpmbuild/BUILD/libreoffice-4.3.4.1 && ccache g++ -DCPPU_ENV=gcc3
-DLIBO_INTERNAL_ONLY -DLINUX -DNDEBUG -DOPTIMIZE -DOSL_DEBUG_LEVEL=0
-DPOWERPC64 -DPPC -DSUPD=430 -DUNIX -DUNX -D_PTHREADS -D_REENTRANT
-DRTL_USING -DVCL_DLLIMPLEMENTATION -DSYSTEM_NSS -DENABLE_CUPS
-DENABLE_DBUS -DHAVE_GCC_VISIBILITY_FEATURE -fvisibility=hidden -Wall
-Wendif-labels -Wextra -Wundef -Wunused-macros -fmessage-length=0
-fno-common -pipe -fvisibility-inlines-hidden -fPIC -Wshadow
-Woverloaded-virtual -Wno-non-virtual-dtor -fno-strict-aliasing -ggdb2
-DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs -O2
-Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64
-mminimal-toc -c $S/vcl/source/window/resource.cxx -o
$W/CxxObject/vcl/source/window/resource.o -MMD -MT
$W/CxxObject/vcl/source/window/resource.o -MP -MF
$W/Dep/CxxObject/vcl/source/window/resource.d_ -I$S/vcl/source/window/
-I$W/UnpackedTarball/lcms2/include -I$W/UnpackedTarball/harfbuzz/src
-I$W/UnpackedTarball/boost -I$S/include
-I/usr/lib/jvm/java-1.7.0-openjdk/include
-I/usr/lib/jvm/java-1.7.0-openjdk/include/linux -I$S/config_host
-I$W/CustomTarget/officecfg/registry
-I$W/CustomTarget/vcl/generic/fontmanager -I$S/vcl/inc
-I$W/UnoApiHeadersTarget/udkapi/normal
-I$W/UnoApiHeadersTarget/offapi/normal -I$W/CustomTarget/officecfg/registry
-isystem/usr/include/nss3 -isystem/usr/include/nspr4 -pthread
-isystem/usr/include/dbus-1.0 -isystem/usr/lib64/dbus-1.0/include
-isystem/usr/include/glib-2.0 -isystem/usr/lib64/glib-2.0/include
-isystem/usr/include/freetype2 && mv
$W/Dep/CxxObject/vcl/source/window/resource.d_
$W/Dep/CxxObject/vcl/source/window/resource.d
In file included from
/usr/lib/gcc/ppc64-redhat-linux/4.4.5/../../../../include/c++/4.4.5/ostream:41,
from
/mnt/rpmbuild/BUILD/libreoffice-4.3.4.1/include/rtl/ustring.hxx:27,
from
/mnt/rpmbuild/BUILD/libreoffice-4.3.4.1/include/tools/resid.hxx:24,
from
/mnt/rpmbuild/BUILD/libreoffice-4.3.4.1/include/tools/rcid.h:23,
from
/mnt/rpmbuild/BUILD/libreoffice-4.3.4.1/include/tools/rc.h:23,
from
/mnt/rpmbuild/BUILD/libreoffice-4.3.4.1/vcl/source/window/resource.cxx:20:
/usr/lib/gcc/ppc64-redhat-linux/4.4.5/../../../../include/c++/4.4.5/bits/ostream_insert.h:
In function 'std::basic_ostream<_CharT, _Traits>&
std::__ostream_insert(std::basic_ostream<_CharT, _Traits>&, const _CharT*,
std::streamsize)':
/usr/lib/gcc/ppc64-redhat-linux/4.4.5/../../../../include/c++/4.4.5/bits/ostream_insert.h:83:
error: '__try' was not declared in this scope
/usr/lib/gcc/ppc64-redhat-linux/4.4.5/../../../../include/c++/4.4.5/bits/ostream_insert.h:84:
error: expected ';' before '{' token
In file included from
/usr/lib/gcc/ppc64-redhat-linux/4.4.5/../../../../include/c++/4.4.5/ext/atomicity.h:34,
from
/usr/lib/gcc/ppc64-redhat-linux/4.4.5/../../../../include/c++/4.4.5/bits/basic_string.h:41,
from
/usr/lib/gcc/ppc64-redhat-linux/4.4.5/../../../../include/c++/4.4.5/string:53,
from
/mnt/rpmbuild/BUILD/libreoffice-4.3.4.1/include/sal/log.hxx:17,
from
/mnt/rpmbuild/BUILD/libreoffice-4.3.4.1/include/rtl/string.hxx:39,
from
/mnt/rpmbuild/BUILD/libreoffice-4.3.4.1/include/rtl/ustring.hxx:32,
from
/mnt/rpmbuild/BUILD/libreoffice-4.3.4.1/include/tools/resid.hxx:24,
from
/mnt/rpmbuild/BUILD/libreoffice-4.3.4.1/include/tools/rcid.h:23,
from
/mnt/rpmbuild/BUILD/libreoffice-4.3.4.1/include/tools/rc.h:23,
from
/mnt/rpmbuild/BUILD/libreoffice-4.3.4.1/vcl/source/window/resource.cxx:20:
/usr/lib/gcc/ppc64-redhat-linux/4.4.5/../../../../include/c++/4.4.5/ppc64-redhat-linux/bits/gthr.h:30:
error: expected '}' before end of line
/usr/lib/gcc/ppc64-redhat-linux/4.4.5/../../../../include/c++/4.4.5/ppc64-redhat-linux/bits/gthr.h:30:
error: expected '}' before end of line
/usr/lib/gcc/ppc64-redhat-linux/4.4.5/../../../../include/c++/4.4.5/ppc64-redhat-linux/bits/gthr.h:
At global scope:
/usr/lib/gcc/ppc64-redhat-linux/4.4.5/../../../../include/c++/4.4.5/ppc64-redhat-linux/bits/gthr.h:30:
error: expected '}' before end of line
/usr/lib/gcc/ppc64-redhat-linux/4.4.5/../../../../include/c++/4.4.5/ppc64-redhat-linux/bits/gthr.h:30:
error: expected declaration before end of line
make[1]: ***
[/mnt/rpmbuild/BUILD/libreoffice-4.3.4.1/workdir/CxxObject/vcl/source/window/resource.o]
Error 1
make[1]: Leaving directory `/mnt/rpmbuild/BUILD/libreoffice-4.3.4.1'
make: *** [build] Error 2