To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=74682
                 Issue #|74682
                 Summary|Building OOo with gcj/ecj and gcc4.3
               Component|porting
                 Version|OOo 2.2
                Platform|Sun
                     URL|
              OS/Version|Linux
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|TASK
                Priority|P3
            Subcomponent|code
             Assigned to|sparcmoz
             Reported by|sparcmoz





------- Additional comments from [EMAIL PROTECTED] Tue Feb 20 03:01:07 +0000 
2007 -------
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.)

[EMAIL PROTECTED]:~/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"

[EMAIL PROTECTED]:~$ /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...

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to