Issue 74684 - GCC4.3.0 cannot build stlport4.5
Summary: GCC4.3.0 cannot build stlport4.5
Status: CONFIRMED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: OOo 2.2
Hardware: All Linux, all
: P3 Trivial (vote)
Target Milestone: DevTools
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks: 74682
  Show dependency tree
 
Reported: 2007-02-20 05:01 UTC by sparcmoz
Modified: 2013-02-07 21:59 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
build log stlport (44.47 KB, text/plain)
2007-02-20 05:02 UTC, sparcmoz
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description sparcmoz 2007-02-20 05:01:06 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.
Comment 1 sparcmoz 2007-02-20 05:02:30 UTC
Created attachment 43183 [details]
build log stlport
Comment 2 sparcmoz 2007-02-20 05:04:00 UTC
target
Comment 3 sparcmoz 2007-02-20 10:16:19 UTC
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

Comment 4 sparcmoz 2007-02-27 11:50:44 UTC
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.
Comment 5 sparcmoz 2007-05-28 08:05:32 UTC
Found a gcc issue for this:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31481