Apache OpenOffice (AOO) Bugzilla – Issue 219
I cannot bootstrap my compile
Last modified: 2003-12-06 14:52:34 UTC
I have been fiddling with this for some time and I have no idea where to look: $ gcc --version 2.95.2 Redhat 6.2 Error follows: g++ -w -nostdinc -c -I. -I. -I../inc -I../inc -I../unx/inc -I../unxlngi3.pro/inc -I. -I/data/office//sal/inc -I/data/office//vos/inc -I. -I/data/office//solver/609/unxlngi3.pro/inc/stl -I/data/office//solver/609/unxlngi3.pro/inc -I/data/office//solver/609/unxlngi3.pro/inc/external -I/data/office//solenv/unxlngi3/inc -I/data/office//solenv/inc -I/data/office//res -INO_GXX_INCLUDE -I/data/office//solenv/inc/Xp31 -I/opt/jre/include -I/opt/jre/include/linux -I/opt/jre/include/native_threads/include -I/usr/X11R6/include -I/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/include -I/usr/include -I. -I../res -I. -I/data/office//solenv/unxlngi3/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/include -I/data/office//solenv/unxlngi3/usr/include -O2 -pipe -mpentium -fno-for-scope -fpermissive -mpreferred-stack-boundary=2 -fguiding-decls -frtti -fno-exceptions -fpic -DLINUX -DUNX -DVCL -DGCC -DC295 -DINTEL -DTF_UCB -DENABLEUNICODE -DTF_SDBAPI -DCVER=C295 -DONE_LINGU -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=321 -D__DMAKE -DUNIX -DSUPD=609 -DBUILD=5717 -DSOLAR_PLUGIN -DVCL -DSO3 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOPTIMIZE -DGUI -DSOLAR_JAVA -DSRC609 -DBOOTSTRAPPER -DTF_ONE51 -DDLL_VERSION=\"609li\" -DCOM_STR=\"GCC\" -DSHAREDLIB -D_DLL_ -DMULTITHREAD -o ../unxlngi3.pro/slo/fibersrv.o /data/office/vos/source/fibersrv.cxx cc1plus: Invalid option `preferred-stack-boundary=2' cc1plus: Invalid option `-fpermissive' In file included from /data/office/solver/609/unxlngi3.pro/inc/stl/stl_list.h:34, from /data/office/solver/609/unxlngi3.pro/inc/stl/list:30, from ../inc/vos/queue.hxx:78, from ../inc/vos/fibersrv.hxx:82, from /data/office/vos/source/fibersrv.cxx:63: /data/office/solver/609/unxlngi3.pro/inc/stl/stl_algobase.h:39: cstddef: No such file or directory /data/office/solver/609/unxlngi3.pro/inc/stl/stl_algobase.h:47: cstring: No such file or directory /data/office/solver/609/unxlngi3.pro/inc/stl/stl_algobase.h:51: climits: No such file or directory /data/office/solver/609/unxlngi3.pro/inc/stl/stl_algobase.h:55: cstdlib: No such file or directory In file included from /data/office/solver/609/unxlngi3.pro/inc/stl/stl_algobase.h:71, from /data/office/solver/609/unxlngi3.pro/inc/stl/stl_list.h:34, from /data/office/solver/609/unxlngi3.pro/inc/stl/list:30, from ../inc/vos/queue.hxx:78, from ../inc/vos/fibersrv.hxx:82, from /data/office/vos/source/fibersrv.cxx:63: /data/office/solver/609/unxlngi3.pro/inc/stl/stl_iterator_base.h:34: cstddef: No such file or directory In file included from /data/office/solver/609/unxlngi3.pro/inc/stl/stl_list.h:38, from /data/office/solver/609/unxlngi3.pro/inc/stl/list:30, from ../inc/vos/queue.hxx:78, from ../inc/vos/fibersrv.hxx:82, from /data/office/vos/source/fibersrv.cxx:63: /data/office/solver/609/unxlngi3.pro/inc/stl/stl_alloc.h:39: cstddef: No such file or directory /data/office/solver/609/unxlngi3.pro/inc/stl/stl_alloc.h:47: cstdlib: No such file or directory /data/office/solver/609/unxlngi3.pro/inc/stl/stl_alloc.h:50: cstring: No such file or directory /data/office/solver/609/unxlngi3.pro/inc/stl/stl_alloc.h:56: cstdio: No such file or directory /data/office/solver/609/unxlngi3.pro/inc/stl/stl_alloc.h:59: cstdlib: No such file or directory In file included from /data/office/solver/609/unxlngi3.pro/inc/stl/stl_alloc.h:72, from /data/office/solver/609/unxlngi3.pro/inc/stl/stl_list.h:38, from /data/office/solver/609/unxlngi3.pro/inc/stl/list:30, from ../inc/vos/queue.hxx:78, from ../inc/vos/fibersrv.hxx:82, from /data/office/vos/source/fibersrv.cxx:63: /data/office/solver/609/unxlngi3.pro/inc/stl/stl_threads.h:38: cstddef: No such file or directory In file included from /data/office/solver/609/unxlngi3.pro/inc/stl/stl_algobase.h:71, from /data/office/solver/609/unxlngi3.pro/inc/stl/stl_list.h:34, from /data/office/solver/609/unxlngi3.pro/inc/stl/list:30, from ../inc/vos/queue.hxx:78, from ../inc/vos/fibersrv.hxx:82, from /data/office/vos/source/fibersrv.cxx:63: /data/office/solver/609/unxlngi3.pro/inc/stl/stl_iterator_base.h:117: parse error before `,' /data/office/solver/609/unxlngi3.pro/inc/stl/stl_iterator_base.h:121: confused by earlier errors, bailing out cpp: output pipe has been closed dmake: Error code 1, while making '../unxlngi3.pro/slo/fibersrv.obj'
Problem has been mostly solved. a) My Linux Environment set file did NOT have /usr/local/bin in it. G++ is in that directory and it was picking up the old /usr/bin version which is the wrong one. b) The upgrade to the current version of open office removed the other file location errors. Now I am looking for xml2cmp program...
I have now managed to get a fair way further. xml2cmp requires - -lstlport_gcc I deleted this library in a hand tuned compile line. I then reran dmake and installed correctly. I cannot easily see where this library request comes from to delete it from the target libraries. I have also had to change target.mk to include the include lines: -I/$$myoffice$$/vos/inc -I/usr/local/include/g++-3 I also had to patch the following file, it is an obvious fix: RCS file: /cvs/oo/util/tools/source/intntl/isolang.cxx,v retrieving revision 1.4 diff -r1.4 isolang.cxx 64c64 < #include <tools/intn.hxx> --- > #include <intn.hxx> // KMF @@@ Continuing my tour of discovery in the land of Open Office....
Do you have a consistent set of 613 sources? Did you rerun configure after updating the sources? The environment changed, so it is needed. You are also missing the STLport4 library (see www.stlport.org) which is a new pre-requisite for building OpenOffice in snapshot 613 onwards. You can specify where your 'correct' gcc is located by specifying --with-gcc-home=/path/to/gcc/toplevel/dir
this issue is long fixed but was never closed so I do it now.
Verified. The config_office system is completely different now anyway, thanks to, erm, the submitter of this bug :) Thanks Ken!