Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Openoffice with gcj on ppc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Sat Jun 24, 2006 1:49 pm    Post subject: Openoffice with gcj on ppc Reply with quote

I have been attempting to build openoffice 2.0.3 using gcj from geki's ebuild. The attempt has come to the point where everything compiles cleanly, but fails with installation. That seems to be related to aggressive CFLAGS on the x86 platform, ie -ffast-math, but on ppc platform I don't know what the problem might be.
Quote:
CFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -mlong-double-128"

I have tried without -mlong-double-128, -fno-strict-aliasing, and setting -02 to -Os.

System uses gcc-4.1.1, gcj-4.1.1, glibc-2.4, and python-2.4.3.
Quote:
**************************************************
ERROR: ERROR: Could not register all components!
in function: create_services_rdb
**************************************************

The generated log file has the more specific error being in the pymodules mailmerge and pythonscript.
Quote:

ERROR: /var/tmp/portage/openoffice-2.0.3_rc5/work/ooo-build/build/ooc680-m5/solver/680/unxlngppc.pro/bin/regcomp -register -br /var/tmp/portage/openoffice-2.0.3_rc5/work/ooo-build/build/ooc680-m5/solver/680/unxlngppc.pro/bin/types.rdb -br /var/tmp/portage/openoffice-2.0.3_rc5/work/ooo-build/build/ooc680-m5/solver/680/unxlngppc.pro/bin/pyuno_services.rdb -r /var/tmp/portage/openoffice-2.0.3_rc5/work/ooo-build/build/ooc680-m5/instsetoo_native/util/OpenOffice//services.rdb/en-US_inprogress_1/services.rdb -c vnd.openoffice.pymodule:mailmerge -l com.sun.star.loader.Python 2>&1 |
ERROR: /var/tmp/portage/openoffice-2.0.3_rc5/work/ooo-build/build/ooc680-m5/solver/680/unxlngppc.pro/bin/regcomp -register -br /var/tmp/portage/openoffice-2.0.3_rc5/work/ooo-build/build/ooc680-m5/solver/680/unxlngppc.pro/bin/types.rdb -br /var/tmp/portage/openoffice-2.0.3_rc5/work/ooo-build/build/ooc680-m5/solver/680/unxlngppc.pro/bin/pyuno_services.rdb -r /var/tmp/portage/openoffice-2.0.3_rc5/work/ooo-build/build/ooc680-m5/instsetoo_native/util/OpenOffice//services.rdb/en-US_inprogress_1/services.rdb -c vnd.openoffice.pymodule:pythonscript -l com.sun.star.loader.Python 2>&1 |
ERROR: Could not register all components!
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Sat Jun 24, 2006 11:58 pm    Post subject: Reply with quote

For OOo-2.0.2-r2, in the end I used CFLAGS="" to avoid this problem. I am not sure
which particular flags trigers the problem. OOo is still compiled with some optimisation
(-O2 for example) from its own configuration.
I also found that if you have ccache enabled it interfers.
My first compile was with optimized CFLAGS and ccache on, it failled.
My second compile was with CFLAGS="" and it failled as well.
On the third try I erased /var/tmp/ccache/* and kept CFLAGS="" and
it succeded.
So if you use ccache be careful when you want to change your optimization
setting, because of ccache you may still be using optimized objects.
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Sun Jun 25, 2006 1:03 am    Post subject: Reply with quote

no ccache being used, currently trying
Quote:
CFLAGS="-O -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec"
. Have recompiled python and am recompiling various python modules in openoffice.
Back to top
View user's profile Send private message
combellus
n00b
n00b


Joined: 04 Nov 2005
Posts: 7
Location: Marseille, France

PostPosted: Mon Sep 18, 2006 12:46 pm    Post subject: OOo 2.0.3 fails... Reply with quote

I've the same problem...

I've look on this thread but nothing...

If someone as new information...

Thx
_________________
--==NicOl@$==--
Back to top
View user's profile Send private message
timotheus25
Apprentice
Apprentice


Joined: 27 Dec 2005
Posts: 162
Location: *upstate* New York, USA

PostPosted: Mon Sep 18, 2006 10:39 pm    Post subject: Reply with quote

This is the same issue as everyone else has -- registering components post-compilation with the pyuno module of the OO suite.

You must remove the mtune flag. Also, OO does not typically handle the G4 cpu nor 7450 types correctly due to pyuno issues. If you want optimizations, you should use, at maximum, -O2 -pipe -mcpu=7400 -maltivec -mabi=altivec. I can compile and use the official ebuild with these CFLAGS and all USE flags, without GUI or Java issues.

EDIT: See this post: https://forums.gentoo.org/viewtopic-p-3548188-highlight-.html#3548188
EDIT 2: I used ccache just fine for the official ebuild. I do not think it will affect the gcj part as ccache only pays attention to C/C++ code.
_________________
http://tstotts.net/linux/gentoopb.html
http://tstotts.net/linux/gentooinsp640m.html
Back to top
View user's profile Send private message
combellus
n00b
n00b


Joined: 04 Nov 2005
Posts: 7
Location: Marseille, France

PostPosted: Wed Sep 20, 2006 4:28 pm    Post subject: Reply with quote

Thanks !!! I'll test tonight :P !

I hope that I could use OOo just tomorrow !
_________________
--==NicOl@$==--
Back to top
View user's profile Send private message
timotheus25
Apprentice
Apprentice


Joined: 27 Dec 2005
Posts: 162
Location: *upstate* New York, USA

PostPosted: Sat Sep 23, 2006 4:17 am    Post subject: Reply with quote

@combellus: I'm curious, did this work for you?
_________________
http://tstotts.net/linux/gentoopb.html
http://tstotts.net/linux/gentooinsp640m.html
Back to top
View user's profile Send private message
combellus
n00b
n00b


Joined: 04 Nov 2005
Posts: 7
Location: Marseille, France

PostPosted: Mon Sep 25, 2006 6:45 am    Post subject: Solved... Reply with quote

timotheus25 wrote:
@combellus: I'm curious, did this work for you?


Yes, all things are right !

GCJ was not the real problem ! If you have other questions, you can ask me...

Thx ! :D
_________________
--==NicOl@$==--
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum