============= Building project pyuno ============= /var/tmp/portage/openoffice-2.0.2_rc3-r1/work/ooo-build-oob680.3.0/build/oob680-m3/pyuno/unotypes ------------- /var/tmp/portage/openoffice-2.0.2_rc3-r1/work/ooo-build-oob680.3.0/build/oob680-m3/pyuno/source/module dmake: Executing shell macro: $(FIND) . -name "{$(subst,$($(WINVERSIONNAMES)_MAJOR),* $(subst,$(UPD)$(DLLPOSTFIX), $(SHL1TARGET)))}.xml" ------------------------------ Making: ../../unxlngi6.pro/misc/pyuno.dpc dmake subdmake=true -f makefile.mk depend=t ALLDPC Making : Dependencies touch ../../unxlngi6.pro/misc/pyuno.dpc --- NOOPTFILES --- dmake: Executing shell macro: $(FIND) . -name "{$(subst,$($(WINVERSIONNAMES)_MAJOR),* $(subst,$(UPD)$(DLLPOSTFIX), $(SHL1TARGET)))}.xml" `../../unxlngi6.pro/slo/pyuno_module.obj' is up to date --- NOOPTFILES OVER --- ------------- /var/tmp/portage/openoffice-2.0.2_rc3-r1/work/ooo-build-oob680.3.0/build/oob680-m3/pyuno/source/loader dmake: Executing shell macro: $(FIND) . -name "{$(subst,$($(WINVERSIONNAMES)_MAJOR),* $(subst,$(UPD)$(DLLPOSTFIX), $(SHL1TARGET)))}.xml" ------------------------------ Making: ../../unxlngi6.pro/misc/pythonloader.uno.dpc dmake subdmake=true -f makefile.mk depend=t ALLDPC Making : Dependencies touch ../../unxlngi6.pro/misc/pythonloader.uno.dpc ------------- rm -f ../../unxlngi6.pro/lib/pyuno_services.rdb ../../unxlngi6.pro/lib/pyuno_services.tmp ../../unxlngi6.pro/lib/pyuno_services.rdb cd ../../unxlngi6.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 Segmentation fault dmake: Error code 139, while making '../../unxlngi6.pro/lib/pyuno_services.rdb' '---* tg_merge.mk *---' ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-2.0.2_rc3-r1/work/ooo-build-oob680.3.0/build/oob680-m3/pyuno/source/loader make: *** [stamp/build] Error 1 -- Portage 2.1_pre5-r2 (default-linux/x86/2005.1, gcc-4.1.0-pre20060223, glibc-2.3.6-r3, 2.6.15-gentoo-r6 i686) ================================================================= System uname: 2.6.15-gentoo-r6 i686 Intel(R) Pentium(R) M processor 1500MHz Gentoo Base System version 1.12.0_pre16 dev-lang/python: 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium-m -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=pentium-m -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig cvs digest distlocks fixpackages sandbox sfperms sign strict" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://trumpetti.atm.tut.fi/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" LINGUAS="de" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlay/personal /usr/local/overlay/cvs /usr/local/overlay/gnome" SYNC="rsync://194.97.4.250/gentoo-portage" USE="x86 X a52 aac acpi alsa asf avi beagle berkdb bitmap-fonts bonjour browserplugin bzip2 cairo cdr crypt cups dbus divx4linux dvd dvdr dvdread eds emboss encode exif fame firefox flac foomaticdb fortran galago gdbm gif glitz gnome gpm gstreamer gtk gtk2 hal howl imlib ipv6 java jpeg libg++ libnotify libsexy libwww lzo mad matroska mikmod mjpeg mmx mng mono moznocompose moznoirc moznomail mozsvg mp3 mpeg ncurses nls nomotif nptl nsplugin nvidia ogg oggvorbis opengl oss pam pam_console pcre pdflib perl png python quicktime readline spell sse sse2 ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb vorbis win32codecs wmf xml2 xv xvid zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux linguas_de userland_GNU video_cards_nv video_cards_nvidia" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, MAKEOPTS
try with a real compiler
Mark said in http://www.advogato.org/person/halcy0n/diary.html?start=38, and I quote, "You now have permission to file bugs for all gcc-4.1 related errors and not get yelled at.".
The usual questions: Does this only happen with 4.1.0? Does it happen in the same place every single time?
I tried two times with gcc-4.1.0_pre20060223 and both times it happened in the same place. When I try with gcc-3.4.5-r1 it seems that the target during which the segmentation fault happens is not built (see the attached pyuno-gcc345.log).
Created attachment 81136 [details] pyuno-gcc345.log
Created attachment 81174 [details] pyuno-gcc410.log
The problem persists with the current sys-devel/gcc-4.1.0 package.
Renaming this bug, please report this upstream and post the bug numbers here. If there is a working patch for the problems, I can add it to our build, but unfortunately atm OOo does not support gcc-4.1 out of the box. Also going to mark the other bug as duplicate of this
*** Bug 124932 has been marked as a duplicate of this bug. ***
Filed UPSTREAM: http://www.openoffice.org/issues/show_bug.cgi?id=62770
*** Bug 125250 has been marked as a duplicate of this bug. ***
I know that pyuno module is very sensible to CFLAGS and segfaults or throws other errors even with gcc-4.0.x like on this forums post: http://forums.gentoo.org/viewtopic-p-2575537.html#2575537 (-ffast-math was it there) @ Sebastian: Can you give these CFLAGS a try? CFLAGS="-march=pentium4 -O2 -pipe" Or pentium3 if it is an older cpu. I have no problems to compile OOo2 with gcc-4.1 and CFLAGS="-march=pentium4 -O2 -pipe" on a Centrino mobile. I used 4.1.0_pre20060219 but I do not think that there are big changes to 20060223.
Same segfault with CFLAGS="-march=pentium3 -O2 -pipe".
Same segfault problem with gcc-4.02-r3. My CFLAGS : CFLAGS="-march=pentium-m -mtune=pentium-m -O2 -pipe -fomit-frame-pointer -fforce-addr -mmmx -msse -msse2"
(In reply to comment #14) > Same segfault problem with gcc-4.02-r3. My CFLAGS : CFLAGS="-march=pentium-m > -mtune=pentium-m -O2 -pipe -fomit-frame-pointer -fforce-addr -mmmx -msse > -msse2" > Are you sure it actually fails at the exact same point. Cause your CFLAGS look made for build breakage, so I would guess that this is the culprit in your case...
In my case compilation breaks at the saame point. Here is my emerge --info: Portage 2.1_pre6-r3 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.15-archck7 i686) ================================================================= System uname: 2.6.15-archck7 i686 Intel(R) Pentium(R) M processor 1600MHz Gentoo Base System version 1.12.0_pre16 ccache version 2.3 [enabled] dev-lang/python: 2.4.2-r1 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r10, 2.16.1, 2.16.91.0.3, 2.16.91.0.4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/fax /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control /var/spool/fax/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/" LANG="de_DE@euro" LC_ALL="de_DE@euro" LDFLAGS="-Wl,-O1" LINGUAS="de" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X Xaw3d aalib accessibility acl acpi adabas adns alsa apache2 arts atlas audiofile avi bcmath bidi bitmap-fonts bluetooth bonobo boundschecking bzip2 bzlib calendar canna caps cdb cdr cli cpdflib cross crypt cscope ctype cups curl curlwrappers dbase dbus dbx dga dio divx4linux dri dvb dvd dvdr eds emacs-w3 emboss encode esob ethereal evo exif expat fastbuild fastcgi ffmpeg fftw flash foomaticdb force-cgi-redirect fortran freewnn frontbase fsm ftp gb gd gdbm ggi gif ginac gmp gnutls gpm gps guile hal hardenedphp hyperwave-api iconv icq idn ifc imagemagic imap imlib innodb interbase iodbc irmc jack java jikes joystick jpeg junit kde kerberos krb4 ladccs lcms ldap leim lesstif libedit libg++ libgda libwww lirc mad maildir mailwrapper mbox mcal mcve memlimit mhash mikmod milter mime ming mmap mmx mng mnogosearch motif moyilla mp3 mpeg mpi msession msn mysql nas ncurses netcdf nhc98nis nls nocd nptl nptlonly odbc offensive ofx ogg oggvorbis openal opengl oscar pam pam_console pcntl pcre pda pdflib perl pfpro pic pie plotutils png pnp portaudio posix ppds prelude python qdbm qt quicktime readline recode ruby samba sasl scanner sdl session shared sharedmem simplexml slang slp sndfile snmp soap sockets socks5 speex spell spl sqlite sse ssl svg svga sybase sybase-ct szip tcltk tcpd tetex theora tidy tiff tokenizer truetype truetype-fonts trusted type1-fonts udev unicode usb vhosts videos vorbis wavelan wddx win32codecs wmf wxwindows xface xine xml xml2 xmlrpc xosd xpm xsl xv xvid yahoo yaz zeo zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_-acecad input_devices_-aiptek input_devices_-calcomp input_devices_-citron input_devices_-digitaledge input_devices_-dmc input_devices_-dynapro input_devices_-elo2300 input_devices_-elographics input_devices_-fpit input_devices_-hyperpen input_devices_-jamstudio input_devices_joystick input_devices_-magellan input_devices_-magictouch input_devices_-microtouch input_devices_-mutouch input_devices_-palmax input_devices_-penmount input_devices_-spaceorb input_devices_-summa input_devices_synaptics input_devices_-tek4957 input_devices_-ur98 input_devices_-vmmouse input_devices_-void kernel_linux linguas_de userland_GNU video_cards_-nvidia video_cards_-apm video_cards_-ark video_cards_ati video_cards_-chips video_cards_-cirrus video_cards_-cyrix video_cards_-dummy video_cards_-fbdev video_cards_-fglrx video_cards_-glint video_cards_-i128 video_cards_-i740 video_cards_-i810 video_cards_-imstt video_cards_-mga video_cards_-neomagic video_cards_-newport video_cards_-nsc video_cards_-nv video_cards_-rendition video_cards_-s3 video_cards_-s3virge video_cards_-savage video_cards_-siliconmotion video_cards_-sis video_cards_-sisusb video_cards_-sunbw2 video_cards_-suncg14 video_cards_-suncg3 video_cards_-suncg6 video_cards_-sunffb video_cards_-sunleo video_cards_-suntcx video_cards_-tdfx video_cards_-tga video_cards_-trident video_cards_-tseng video_cards_-v4l video_cards_-vesa video_cards_-vga video_cards_-via video_cards_-vmware video_cards_-voodoo" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS
(In reply to comment #15) > Are you sure it actually fails at the exact same point. Cause your CFLAGS look > made for build breakage, so I would guess that this is the culprit in your > case. Sorry for the late answer. Yeah, it seems to be the same : ------------------------------ Making: ../../unxlngi6.pro/lib/ipythonloader.uno.lib no ImportLibs on Mac and *nix ------------- cp pythonloader.py ../../unxlngi6.pro/lib/pythonloader.py rm -f ../../unxlngi6.pro/lib/pyuno_services.rdb ../../unxlngi6.pro/lib/pyuno_services.tmp ../../unxlngi6.pro/lib/pyuno_services.rdb cd ../../unxlngi6.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 Segmentation fault dmake: Error code 139, while making '../../unxlngi6.pro/lib/pyuno_services.rdb' '---* tg_merge;mk *---' ERROR: Error 65280 occured while making /var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/build/OOO_2_0_2/pyuno/source/loader make: *** [stamp/build] Erreur 1 !!! ERROR: app-office/openoffice-2.0.2 failed. Call stack: ebuild.sh, line 1557: Called dyn_compile ebuild.sh, line 966: Called src_compile And I have no problems with my CFLAGS, the packages aren't more broken than for others unstable users. :-) I retried with the new gcc-4.0.3 and glibc-2.4-r1, same failure at the same point.
@ Sebastian: You may recompile python and then openoffice with these. CFLAGS="-march=pentium3 -O2 -pipe" Otherwise... It happens on systems compiled with '-march=pentium-m' and gcc 4.0 or newer. Nothing one could fix easily I guess. :)
I rebuilt Python with CFLAGS="-march=pentium3 -O2 -pipe" and tried to build OOo 2.0.2 with the same CFLAGS and got the same segmentation fault.
Created attachment 82678 [details, diff] Hack to disable pyuno stuff to workaround segfault. This is the diff to the openoffice source. Tested with 2.0.2RC5 so it may need to be adjusted for 2.0.2 final. I hope that not. Anyone not using python scripts to access OOo can use this. Others have bad luck. A quick test starting oowriter2 and oocalc2 was successful.
Created attachment 82680 [details, diff] Diff to ${S}/patches/src680/apply file.
Created attachment 82681 [details, diff] Diff to app-office/openoffice/openoffice-2.0.2.ebuild. Why I add this? At least one can merge openoffice again. Missing python bridge is not that important to the general user. I hope it does not have a deeper impact. I got a copy of openoffice with debug infos merged with this hack to reproduce strange errors if one may occur.
Please note that emerging openoffice-2.0.2 worked fine in my case, with gcc-4.1 and glibc-2.4. I have the following USE flags: -binfilter +cairo -eds +firefox +gnome +gtk -java +kde -ldap -mozilla +xml2 And the following C{,XX}FLAGS: -Os -march=pentium4 -pipe I hope this helps.
With post OOo 2.0.2 milestones I also get a segfault at that place. I did some cflags testing. It seems that gcc41 has a bug in -O2, -fpeephole2. Or, at least, some OOo2 code just dislikes that flag. I added -fno-peephole2 cflag to build module sal and regcomp no longer segfaults. Anyone can confirm this?
But: The last comment in http://www.openoffice.org/issues/show_bug.cgi?id=62770 points to sal-cxa-guard.diff in ooo-build being the cause (which we shouldn't need), did someone already test if this is true? (my system here is still on gcc-3.4 so can't test)
Supposedly fixed UPSTREAM: http://www.openoffice.org/issues/show_bug.cgi?id=62770.
(In reply to comment #26) > Supposedly fixed UPSTREAM: > http://www.openoffice.org/issues/show_bug.cgi?id=62770. > Yeah that's what I wrote one comment above ;) I've now removed the faulty patch from the ebuild in portage, could someone please test, if this solves the problem for them?
Fixed in CVS, thanks.