Apache OpenOffice (AOO) Bugzilla – Issue 74684
GCC4.3.0 cannot build stlport4.5
Last modified: 2013-02-07 21:59:23 UTC
I like to use gcc4.3 for GNU/Linux SPARC, but stlport fails: ccache /usr/local/4.3/bin/g++ -m32 -D_REENTRANT -DGXX_INCLUDE_PATH=/usr/local/4.3/lib/gcc/sparc-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0 -fexceptions -ftemplate-depth-32 -I../stlport -Wall -W -Wno-sign-compare -Wno-unused -Wno-uninitialized -O2 -fPIC num_put_float.cpp -c -o ../lib/obj/GCC/ReleaseD/num_put_float.o In file included from /usr/local/4.3/lib/gcc/sparc-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cmath:53, from ../stlport/cmath:29, from num_put_float.cpp:79: /usr/local/4.3/lib/gcc/sparc-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/ext/type_traits.h:185: error: 'streamsize' in namespace 'std' does not name a type /usr/local/4.3/lib/gcc/sparc-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/ext/type_traits.h:190: error: expected initializer before '__numeric_traits_floating' make: *** [../lib/obj/GCC/ReleaseD/num_put_float.o] Error 1 dmake: Error code 2, while making 'unxlngs.pro/misc/build/so_built_so_stlport' ---* tg_merge.mk *--- ERROR: Error 65280 occurred while making /home/jim/vanilla/stlport I assume we need this file to be included instead: jim@sun:~/vanilla/stlport$ find -name type_traits.h ./unxlngs.pro/misc/build/STLport-4.5/stlport/stl/type_traits.h The complete build log is attached.
Created attachment 43183 [details] build log stlport
target
Same problem in tools - and no workaround :( ccache /usr/local/4.3/bin/g++ -m32 -fmessage-length=0 -c -Os -fno-strict-aliasing -fvisibility=hidden -I. -I../../unxlngs.pro/inc/gen -I../inc -I../../inc/pch -I../../inc -I../../unx/inc -I../../unxlngs.pro/inc -I. -I/home/jim/vanilla/solver/680/unxlngs.pro/inc/stl -I/home/jim/vanilla/solver/680/unxlngs.pro/inc/external -I/home/jim/vanilla/solver/680/unxlngs.pro/inc -I/home/jim/vanilla/solenv/unxlngs/inc -I/home/jim/vanilla/solenv/inc -I/home/jim/vanilla/res -I/home/jim/stlhome/stlport -I/home/jim/stlhome/include/stlport -I/home/jim/stlhome/include/stlport -I/home/jim/vanilla/solenv/inc/Xp31 -I/usr/local/4.3/include -I/usr/include -I/home/jim/vanilla/solver/680/unxlngs.pro/inc/offuh -I. -I../../res -I. -pipe -g1 -Wreturn-type -Wno-ctor-dtor-privacy -fPIC -DLINUX -DUNX -DVCL -DGCC -DC300 -DSPARC -DCVER=C300 -DGLIBC=2 -D_PTHREADS -D_REENTRANT -DSPARC -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -DHAVE_GCC_VISIBILITY_FEATURE -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DGXX_INCLUDE_PATH=/usr/local/4.3/lib/gcc/sparc-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0 -DSUPD=680 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DCUI -DSOLAR_JAVA -DSRC680=SRC680 -DTOOLS_DLLIMPLEMENTATION -DSHAREDLIB -D_DLL_ -DMULTITHREAD -DEXCEPTIONS_OFF -fno-exceptions -o ../../unxlngs.pro/slo/line.o /home/jim/vanilla/tools/source/generic/line.cxx In file included from /usr/local/4.3/include/c++/4.3.0/cmath:53, from /home/jim/stlhome/stlport/cmath:29, from /home/jim/vanilla/tools/source/generic/line.cxx:55: /usr/local/4.3/lib/gcc/sparc-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/ext/type_traits.h:185: error: 'streamsize' in namespace 'std' does not name a type /usr/local/4.3/lib/gcc/sparc-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/ext/type_traits.h:190: error: expected initializer before '__numeric_traits_floating' dmake: Error code 1, while making '../../unxlngs.pro/slo/line.obj' ---* tg_merge.mk *--- ERROR: Error 65280 occurred while making /home/jim/vanilla/tools/source/generic
Build completed without stlport. I fetched clean sources for stlport 5 and got the same error. So this is either a bug in stlport or gcc, or my error. If I ever figure out which it is I will file a bug somewhere.
Found a gcc issue for this: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31481