Issue 74682 - Building OOo with gcj/ecj and gcc4.3
Summary: Building OOo with gcj/ecj and gcc4.3
Status: ACCEPTED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: OOo 2.2
Hardware: Sun Linux, all
: P3 Trivial (vote)
Target Milestone: DevTools
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on: 74684 74691
Blocks:
  Show dependency tree
 
Reported: 2007-02-20 03:01 UTC by sparcmoz
Modified: 2013-02-07 21:57 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description sparcmoz 2007-02-20 03:01:07 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...
Comment 1 sparcmoz 2007-02-20 03:02:11 UTC
start and set target
Comment 2 sparcmoz 2007-02-27 11:44:22 UTC
Build completed without stlport and without mozab (in connectivity). I will make
separate issues for those. Also a few new types of warnings ...