Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46089 - Patches needed for OpenOffice 1.1.1 on Sparc
Summary: Patches needed for OpenOffice 1.1.1 on Sparc
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc All
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
: 47809 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-29 02:45 UTC by Sven Blumenstein (RETIRED)
Modified: 2004-05-25 06:13 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Blumenstein (RETIRED) gentoo-dev 2004-03-29 02:45:01 UTC
Hiya, 
I talked to the OpenOffice.org Linux/Sparc porter (sparcmoz on freenode) and he pointed me to some patches needed for a successfull build of OOo which also fix a compile error that I got.

10:23 < sparcmoz> bazik: good luck with the build, you will need some other patches for 1.1.1, standby for the details
10:25 < sparcmoz> bazik: http://qa.openoffice.org/issues/show_bug.cgi?id=26278
10:25 < sparcmoz> bazik: those patches did not make it into the final, they are needed to use java
10:26 < sparcmoz> bazik: also i had to build --with-system-zlib to avoid crashing in autopilot-->report
10:27 < sparcmoz> bazik: if you enable mozilla you will need some zip files, do you know about that?
10:29 < sparcmoz> bazik: see the fiels in moz/zipped. you need to build mozilla 1.0 from source and extract files such as those 
10:30 < sparcmoz> bazik: you can just copy what others have done or email me and i can upload some for you
10:31 < sparcmoz> bazik: else you need configure to build disable-mozilla for now
10:31 < sparcmoz> bazik: my email is sparcmoz@openoffice.org

So this patch would need to go in the 1.1.1 ebuild if [ $ARCH = "sparc" ]: http://qa.openoffice.org/issues/show_bug.cgi?id=26278

It would be nice if we can roll out an rc3 ebuild to test these patches before the final gets released.

He also said that some build issues can occure when building with an 2.6 kernel. I am just trying to build a self-made rc3 ebuild with 2.4... lets see what happens :)
Comment 1 Paul de Vrieze (RETIRED) gentoo-dev 2004-03-29 02:54:27 UTC
We have a patch that should fix building on 2.6. My 1.1.1rc1 is build on a 2.6 kernel
Comment 2 Sven Blumenstein (RETIRED) gentoo-dev 2004-03-29 02:56:02 UTC
The build error that I got was:

[...]
Making: ../../unxlngs.pro/bin/mksvconf
unx
cat ../../unxlngs.pro/misc/mksvconf.cmd
gcc -z combreloc -Wl,-export-dynamic -Wl,--noinhibit-exec -L../../unxlngs.pro/lib -L../lib -L/var/tmp/portage/openoffice-1.1.1_rc1/work/oo_1.1.1_src/solenv/unxlngs/lib -L/var/tmp/portage/openoffice-1.1.1_rc1/work/oo_1.1.1_src/solver/645/unxlngs.pro/lib -L/var/tmp/portage/openoffice-1.1.1_rc1/work/oo_1.1.1_src/solenv/unxlngs/lib -L/opt/blackdown-jdk-1.4.1/lib -L/opt/blackdown-jdk-1.4.1/jre/lib/sparc -L/opt/blackdown-jdk-1.4.1/jre/lib/sparc/client -L/opt/blackdown-jdk-1.4.1/jre/lib/sparc/native_threads -L/usr/X11R6/lib -o ../../unxlngs.pro/bin/mksvconf ../../unxlngs.pro/obj/solar.o \
-ldl -lpthread -lm -Wl,-Bdynamic -lstlport_gcc -lstdc++
-rwxr-xr-x  1 root root 13978 Mar 28 21:54 ../../unxlngs.pro/bin/mksvconf
-------------
../../unxlngs.pro/bin/mksvconf ../../unxlngs.pro/inc/svconf.h
char    = signed char
short   = signed short
int     = signed int
long    = signed long
sizeof(char)    = 1
sizeof(short)   = 2
sizeof(int)     = 4
sizeof(long)    = 4
sizeof(float)   = 4
sizeof(double)  = 8
sizeof(void *)  = 4
BIGENDIAN (Sparc, MC680x0, RS6000, IP22, IP32, g3)
Stack waechst nach unten
STACKALIGNMENT   : 1
Bus error
dmake:  Error code 138, while making '../../unxlngs.pro/inc/svconf.h'
---* TG_SLO.MK *---

ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-1.1.1_rc1/work/oo_1.1.1_src/tools/source/solar

!!! ERROR: app-office/openoffice-1.1.1_rc1 failed.
!!! Function src_compile, Line 355, Exitcode 1
!!! Build failed!

This was on a Ultra1 with Kernel 2.6.5rc2. I am currently trying to build it on wesolows' E4500 with 2.4.x...

The bug report that sparcmoz pointed me too was http://porting.openoffice.org/servlets/ReadMsg?list=dev&msgNo=12745 which happens for ppc and got fixed by our nptl.patch ... doesnt seem to fix it for sparc tho.
Comment 3 Sven Blumenstein (RETIRED) gentoo-dev 2004-03-29 02:56:33 UTC
>> We have a patch that should fix building on 2.6. 
>> My 1.1.1rc1 is build on a 2.6 kernel

Is this on sparc?

Comment 4 Paul de Vrieze (RETIRED) gentoo-dev 2004-03-29 04:07:34 UTC
No, only on x86. I guess you allready have the most recent compiler and a kernel patched for sparc. If not maybe trying with them helps.

btw. Any idea why on sparcs there are bus errors instead of segmentation faults.
Comment 5 Sven Blumenstein (RETIRED) gentoo-dev 2004-03-29 06:11:47 UTC
>> No, only on x86. I guess you allready have the most recent compiler and a 
>> kernel patched for sparc. If not maybe trying with them helps.

mydoom root # gcc --version          
gcc (GCC) 3.3.3 20040217 (Gentoo Linux 3.3.3, propolice-3.3-7)
Copyright (C) 2003 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.

mydoom root # uname -a
Linux mydoom 2.6.5-rc2 #1 Sun Mar 28 04:12:44 CEST 2004 sparc64 sun4u TI UltraSparc I   (SpitFire) GNU/Linux
mydoom root # 

Should be recent enough :)

Whatever, sparcmoz said (and told me by email) that these patches are definatly needed to assure a clean build of OOo 1.1.1 and unfortunatly they wont go into the 'offical' 1.1.1 final. So I'd like to have them in *our* 1.1.1 final.

>> btw. Any idea why on sparcs there are bus errors instead of segmentation faults.

We also get segfaults sometimes ;)
Comment 6 Tobias Scherbaum (RETIRED) gentoo-dev 2004-03-31 07:05:54 UTC
Applied this [1] Patch and successfully built openoffice-1.1.1_rc1 on sparc.

bart / # gcc --version
gcc (GCC) 3.3.3 20040217 (Gentoo Linux 3.3.3, propolice-3.3-7)
Copyright (C) 2003 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.

bart / # uname -a
Linux bart 2.4.25-sparc #1 Mon Mar 29 15:33:58 UTC 2004 sparc64 sun4u TI UltraSparc IIi (Sabre) GNU/Linux

[1] http://qa.openoffice.org/issues/show_bug.cgi?id=26278
Comment 7 Jeremy Huddleston (RETIRED) gentoo-dev 2004-04-29 01:08:47 UTC
*** Bug 47809 has been marked as a duplicate of this bug. ***
Comment 8 Jason Wever (RETIRED) gentoo-dev 2004-05-25 06:13:10 UTC
All of these find sparc patches and more coming soon to a portage mirror near you! :)