Apache OpenOffice (AOO) Bugzilla – Issue 74682
Building OOo with gcj/ecj and gcc4.3
Last modified: 2013-02-07 21:57:34 UTC
This issue is for tracking progress with gcc4.3 and ecj. As mentioned at issue 63390 the java parts will not run correctly unless OOo is build with the Eclipse compiler. Distributions provide this by various methods but for porting it is preferable to use a method that does not depend on any specific distribution. In my case I like to build OOo complete and using gcc and gcj built from gcc.gnu.org sources. To build gcj with the eclipse compiler I used the latest sources at svn trunk and followed the gcc.gnu.org instructions to get ecj (putting ecj.jar in the top directory). The OOo internal stlport module will not build with gcc4.3 yet so I am using a copy of the debian provided package with a small patch. (This will be a separate issue.) jim@sun:~/stlhome$ diff -u stlport/config/stl_gcc.h /usr/include/stlport/config/stl_gcc.h --- stlport/config/stl_gcc.h 2007-02-19 21:19:55.000000000 +1100 +++ /usr/include/stlport/config/stl_gcc.h 2005-07-14 16:55:00.000000000 +1000 @@ -263,7 +263,7 @@ # if (__GNUC__ >= 3) -# define _STLP_NATIVE_INCLUDE_PATH /usr/local/4.3/include/c++/__GNUC__.__GNUC_MINOR__.0 +# define _STLP_NATIVE_INCLUDE_PATH /usr/include/c++/__GNUC__.__GNUC_MINOR__ # define _STLP_NATIVE_OLD_STREAMS_INCLUDE_PATH _STLP_NATIVE_INCLUDE_PATH/backward # elif (__GNUC_MINOR__ < 8) MY_CONFIGURE_FLAGS="\ --with-java=gij \ --with-jdk-home=/usr/local/4.3 \ --with-ant-home=/usr/local/apache-ant-1.7.0RC1 \ --with-package-format=rpm \ --with-alloc=system \ --enable-crashdump=STATIC \ --enable-symbols=SMALL \ --with-stlport4=/home/jim/stlhome" jim@sun:~$ /usr/local/4.3/bin/gcj --version gcj (GCC) 4.3.0 20070214 (experimental) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I have disabled warnings are errors for a while, as there are new warnings in various modules, related to stlport. Currently building in module curl...
start and set target
Build completed without stlport and without mozab (in connectivity). I will make separate issues for those. Also a few new types of warnings ...