Mailing List Archive

OpenOffice 2.3.0 on SPARC
For the person who asked for a copy of the build failures, here it is:

------------------------------
Making: ../../unxlngs.pro/lib/pythonloader.uno.so
g++ -z combreloc -Wl,-z,defs -Wl,-rpath,'$ORIGIN' -shared
-Wl,--version-script ../../unxlngs.pro/misc/component_pythonloader.uno.map
-L../../unxlngs.pro/lib -L../lib
-L/var/tmp/portage/app-office/openoffice-2.3.0/work/ooo/build/OOG680_m5/solenv/unxlngs/lib
-L/var/tmp/portage/app-office/openoffice-2.3.0/work/ooo/build/OOG680_m5/solver/680/unxlngs.pro/lib
-L/var/tmp/portage/app-office/openoffice-2.3.0/work/ooo/build/OOG680_m5/solenv/unxlngs/lib
-LNO_JAVA_HOME/lib -LNO_JAVA_HOME/jre/lib/sparc
-LNO_JAVA_HOME/jre/lib/sparc/client
-LNO_JAVA_HOME/jre/lib/sparc/native_threads
-L/usr/lib ../../unxlngs.pro/slo/pythonloader.uno_version.o
-o ../../unxlngs.pro/lib/pythonloader.uno.so ../../unxlngs.pro/slo/pyuno_loader.o
-luno_cppu -luno_cppuhelpergcc3 -luno_sal -lpyuno -lpython2.4 -ldl
-lpthread -lm -Wl,-Bdynamic -lstlport_gcc -lstdc++ rm
-f ../../unxlngs.pro/lib/check_pythonloader.uno.so
mv ../../unxlngs.pro/lib/pythonloader.uno.so ../../unxlngs.pro/lib/check_pythonloader.uno.so /var/tmp/portage/app-office/openoffice-2.3.0/work/ooo/build/OOG680_m5/solenv/bin/checkdll.sh
-L../../unxlngs.pro/lib -L../lib
-L/var/tmp/portage/app-office/openoffice-2.3.0/work/ooo/build/OOG680_m5/solenv/unxlngs/lib
-L/var/tmp/portage/app-office/openoffice-2.3.0/work/ooo/build/OOG680_m5/solver/680/unxlngs.pro/lib
-L/var/tmp/portage/app-office/openoffice-2.3.0/work/ooo/build/OOG680_m5/solenv/unxlngs/lib
-LNO_JAVA_HOME/lib -LNO_JAVA_HOME/jre/lib/sparc
-LNO_JAVA_HOME/jre/lib/sparc/client
-LNO_JAVA_HOME/jre/lib/sparc/native_threads
-L/usr/lib ../../unxlngs.pro/lib/check_pythonloader.uno.so Checking
DLL ../../unxlngs.pro/lib/check_pythonloader.uno.so ...: ok -rwxr-xr-x
1 root root 28076 Sep 27 15:40 ../../unxlngs.pro/lib/pythonloader.uno.so
-------------
cp pythonloader.py ../../unxlngs.pro/lib/pythonloader.py
rm
-f ../../unxlngs.pro/lib/pyuno_services.rdb ../../unxlngs.pro/lib/pyuno_services.tmp ../../unxlngs.pro/lib/pyuno_services.rdb
cd ../../unxlngs.pro/lib && regcomp -register -r pyuno_services.tmp -c
typeconverter.uno -c invocation.uno -c reflection.uno -c
introspection.uno -c invocadapt.uno -c proxyfac.uno -c
pythonloader.uno /bin/bash: line 1: 29606 Segmentation fault
regcomp -register -r pyuno_services.tmp -c typeconverter.uno -c
invocation.uno -c reflection.uno -c introspection.uno -c invocadapt.uno
-c proxyfac.uno -c pythonloader.uno dmake: Error code 139, while
making '../../unxlngs.pro/lib/pyuno_services.rdb'
---* tg_merge.mk *---

ERROR: Error 65280 occurred while
making /var/tmp/portage/app-office/openoffice-2.3.0/work/ooo/build/OOG680_m5/pyuno/source/loader
make: *** [stamp/build] Error 1 *
* ERROR: app-office/openoffice-2.3.0 failed.
* Call stack:
* ebuild.sh, line 1654: Called dyn_compile
* ebuild.sh, line 990: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* openoffice-2.3.0.ebuild, line 338: Called die
*
* Build failed
* If you need support, post the topmost build error, and the call
stack if relevant.
* A complete build log is located at
'/var/tmp/portage/app-office/openoffice-2.3.0/temp/build.log'. *
!!! When you file a bug report, please include the following
information: GENTOO_VM= CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info

* Messages for package app-office/openoffice-2.3.0:

*
* It is important to note that OpenOffice.org is a very fragile
* build when it comes to CFLAGS. A number of flags have already
* been filtered out. If you experience difficulty merging this
* package and use agressive CFLAGS, lower the CFLAGS and try to
* merge again. Also note that building OOo takes a lot of time and
* hardware ressources: 4-6 GB free diskspace and 256 MB RAM are
* the minimum requirements. If you have less, use openoffice-bin
* instead.
*
* You are building with java-support disabled, this results in some
* of the OpenOffice.org functionality (i.e. help) being disabled.
* If something you need does not work for you, rebuild with
* java in your USE-flags.
*
*
* ERROR: app-office/openoffice-2.3.0 failed.
* Call stack:
* ebuild.sh, line 1654: Called dyn_compile
* ebuild.sh, line 990: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* openoffice-2.3.0.ebuild, line 338: Called die
*
* Build failed
* If you need support, post the topmost build error, and the callstack
if relevant.
* A complete build log is located at
'/var/tmp/portage/app-office/openoffice-2.3.0/temp/build.log'. *
* Regenerating GNU info directory index...
* Processed 138 info files.
bigbastard ~ #
--
http://www.munted.org.uk

Fearsome grindings.
--
gentoo-sparc@gentoo.org mailing list
Re: OpenOffice 2.3.0 on SPARC [ In reply to ]
Alex Buell wrote:
> -L/var/tmp/portage/app-office/openoffice-2.3.0/work/ooo/build/OOG680_m5/solenv/unxlngs/lib
>
That tells the version of source code is OOG680_m5

> cd ../../unxlngs.pro/lib && regcomp -register -r pyuno_services.tmp -c
> typeconverter.uno -c invocation.uno -c reflection.uno -c
> introspection.uno -c invocadapt.uno -c proxyfac.uno -c
> pythonloader.uno /bin/bash: line 1: 29606 Segmentation fault
>

That is the relevant part of the log. Next step is search the
OpenOffice.org issues for some issue containing those words "pyuno"
"regcomp" "segmentation" "fault" . I will have a look on the weekend and
start a sparc build of that source version here ... takes a few days.

jim
--
gentoo-sparc@gentoo.org mailing list
Re: OpenOffice 2.3.0 on SPARC [ In reply to ]
Jim Watson wrote:
> Alex Buell wrote:
>> -L/var/tmp/portage/app-office/openoffice-2.3.0/work/ooo/build/OOG680_m5/solenv/unxlngs/lib
>>
>>
> That tells the version of source code is OOG680_m5
>
>> cd ../../unxlngs.pro/lib && regcomp -register -r pyuno_services.tmp -c
>> typeconverter.uno -c invocation.uno -c reflection.uno -c
>> introspection.uno -c invocadapt.uno -c proxyfac.uno -c
>> pythonloader.uno /bin/bash: line 1: 29606 Segmentation fault
>>
>
> That is the relevant part of the log. Next step is search the
> OpenOffice.org issues for some issue containing those words "pyuno"
> "regcomp" "segmentation" "fault" . I will have a look on the weekend
> and start a sparc build of that source version here ... takes a few days.
>
> jim
pyuno builds Ok here with the upstream sources on sparc.
I think gentoo use the ooobuild system? This uses patches to the
upstream sources.
http://svn.gnome.org/viewcvs/ooo-build/trunk/patches/src680/

Searching at OOo and debian suggests this might be relevant:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=441380

Have you got that patch applied: ooo80816.selinux.bridges

if so, remove the patch and rebuild and deliver module bridges. then try
pyuno again
this is how to rebuild a module upstream - hopefully it works for you:

$ cd /var/tmp/portage/app-office/openoffice-2.3.0/work/ooo/build/OOG680_m5
$ source LinuxSparcEnv.Set.sh
$ cd bridges
$ rm -rf unxlngs.pro
$ build
$ deliver
$ cd ../pyuno
$ rm -rf unxlngs.pro
$ build
$ deliver

Now restart the build. there should not be any need to clean.

Plan B:
If it fails without that patch, try and get a backtrace in pyuno
Source the environment as above and copy the failed commands
Except use regcomp.bin in place of regcomp

$ cd pyuno
$ cd unxlngs.pro/lib
$ gdb --args regcomp.bin -register -r pyuno_services.tmp -c \
typeconverter.uno -c invocation.uno -c reflection.uno -c \
introspection.uno -c invocadapt.uno -c proxyfac.uno -c \
pythonloader.uno

jim

--
gentoo-sparc@gentoo.org mailing list