Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 256936 - app-office/openoffice-3.0.0 build aborts unexpectedly because building module pyuno fails
Summary: app-office/openoffice-3.0.0 build aborts unexpectedly because building module...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal with 1 vote (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-30 14:43 UTC by shade37337
Modified: 2009-11-28 22:08 UTC (History)
2 users (show)

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


Attachments
The contents of /etc/portage/ (etc_portage.tar.gz,11.02 KB, application/octet-stream)
2009-01-30 14:44 UTC, shade37337
Details
The contents of /etc/portage/var/tmp/portage/app-office/openoffice-3.0.0/build-info/ (var_tmp_portage_openoffice_buildinfo.tar.gz,5.07 KB, application/octet-stream)
2009-01-30 14:45 UTC, shade37337
Details
The contents of /etc/portage/var/tmp/portage/app-office/openoffice-3.0.0/temp/ (var_tmp_portage_openoffice_temp.tar.gz,688.90 KB, application/octet-stream)
2009-01-30 14:45 UTC, shade37337
Details

Note You need to log in before you can comment on or make changes to this bug.
Description shade37337 2009-01-30 14:43:23 UTC
In the Past, emerging of openoffice failed with this error Message from gcc "Python: file not found".
This error occured with openoffice-2.4.1 and the already realesed, but masked openoffice-3.0.0.
But I had openoffice-2.4 already installed, so for me, the failure of this process was not important, I just ignored it. But a few days ago, I got shocked: Openoffice didn't run. The splash screen appeared and disappeared, but that was everything. So I tried to emerge openoffice after unmerging to version installed, which didn't run.
But now I get another error message:

1 module(s): 
        pyuno
need(s) to be rebuilt

Reason(s):

ERROR: error 65280 occurred while making /var/tmp/portage/app-office/openoffice-3.0.0/work/ooo/build/ooo300-m9/pyuno/source/module

Attention: if you build and deliver the above module(s) you may prolongue your the build issuing command "build --from pyuno"

rmdir /tmp/13103
make: *** [stamp/build] Error 1
 * 
 * ERROR: app-office/openoffice-3.0.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 5519:  Called die
 * The specific snippet of code:
 *       make || die "Build failed"
 *  The die message:
 *   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-3.0.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/openoffice-3.0.0/temp/environment'.
 * 

For me, it seems, that this build is broken, may a dependency, which is not metionend in the ebuild ?

I attach

Reproducible: Always

Steps to Reproduce:
1.emerge openoffice
2.wait
3.see
(I know this sounds a bit naive, but for me, these are the steps to do)

Actual Results:  
I get the error message I metionend in the description field.

Expected Results:  
It should compile openoffice and install it

Output of emerge --info:
Portage 2.1.6.4 (default/linux/amd64/2008.0/no-multilib, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27.10 x86_64)
=================================================================
System uname: Linux-2.6.27.10-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5000+-with-glibc2.2.5
Timestamp of tree: Thu, 29 Jan 2009 15:45:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.4-r14, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=athlon64 -mtune=athlon64 -mmmx -msse -m3dnow -msse2 -pipe -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O3 -march=athlon64 -mtune=athlon64 -mmmx -msse -m3dnow -msse2 -pipe -mfpmath=sse -fweb -fomit-frame-pointer -fno-ident -fno-stack-protector -fno-stack-protector-all -momit-leaf-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS=" http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.mneisen.org/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 7zip X a52 aac aalib acl acpi akode alsa amd64 amr ao apache2 apm bash-completion berkdb bzip2 cairo cdr chroot cli crypt css cups curl cvs dbus djvu dri dts dv dvd dvdr dvdread encode ffmpeg flac foomaticdb fortran gdbm ggi gif hal hddtemp iconv id3tag idn ieee1394 ipv6 isdnlog java joystick jpeg jpeg2k kde kde3 ladspa lame lcms ldap lzo mad mailwrapper matroska midi mikmod mmap mmx mng mp3 mpd mpeg mplayer mudflap mysql ncurses nls nptl nptlonly odbc ogg opengl openmp pam pcre pdf perl php png ppds pppd python qt qt3 rdesktop readline reflection rss samba sdl session slang speex spell spl sqlite sqlite3 srv sse sse2 ssl subversion svg sysfs tcpd theora threads tiff trayicon truetype type1 unicode v4l v4l2 vcd vorbis webdav wifi wmf x264 xattr xcomposite xine xinerama xml xorg xprint xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS=" adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES=" actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES=" evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS=" dummy fbdev radeon radeonhd v4l vesa vga fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 shade37337 2009-01-30 14:44:21 UTC
Created attachment 180280 [details]
The contents of /etc/portage/
Comment 2 shade37337 2009-01-30 14:45:19 UTC
Created attachment 180281 [details]
The contents of /etc/portage/var/tmp/portage/app-office/openoffice-3.0.0/build-info/
Comment 3 shade37337 2009-01-30 14:45:52 UTC
Created attachment 180283 [details]
The contents of /etc/portage/var/tmp/portage/app-office/openoffice-3.0.0/temp/
Comment 4 shade37337 2009-01-30 14:48:42 UTC
emerge told me to add this to this bug report:
GENTOO_VM=  CLASSPATH="/opt/sun-jdk-1.6.0.11/:/opt/sun-jdk-1.6.0.11/jre/lib/resources.jar:/opt/sun-jdk-1.6.0.11/jre/lib/rt.jar:/opt/sun-jdk-1.6.0.11/jre/lib/jsse.jar:/opt/sun-jdk-1.6.0.11/jre/lib/jce.jar:/opt/sun-jdk-1.6.0.11/jre/lib/charsets.jar:." JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2009-01-30 22:17:51 UTC
Did you run python-updater after you upgraded to dev-lang/python-2.5?
Comment 6 shade37337 2009-01-31 00:40:19 UTC
(In reply to comment #5)
> Did you run python-updater after you upgraded to dev-lang/python-2.5?
> 

I think so. I'm almost sure. But to remove this potential error cause, I will run it (again). I will report tomorrow about the results.
Comment 7 shade37337 2009-01-31 10:50:24 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > Did you run python-updater after you upgraded to dev-lang/python-2.5?
> > 
> 
> I think so. I'm almost sure. But to remove this potential error cause, I will
> run it (again). I will report tomorrow about the results.
> 
I ran pyhton-updater and tried once more to emerge openoffice,
but it failed with the same error I described above: building module pyuno
failed.

Any other suggestions what could be the reason for this error?
Comment 8 David Tardon 2009-02-14 17:22:51 UTC
Have you EXTRA_CFLAGS env. variable set? If it's so, just unset it and everything should go all right. If it isn't, chances are your system has been identified as MacOS X....

The EXTRA_CFLAGS variable has special meaning for MacOS X builds; several tests are based on its presence. The one doing problems here is in pyuno/source/module/makefile.mk, where, if EXTRA_CFLAGS is set, '-framework Python' is added (indirectly) to compiler options.
Comment 9 shade37337 2009-02-14 20:15:19 UTC
(In reply to comment #8)
> Have you EXTRA_CFLAGS env. variable set? If it's so, just unset it and
> everything should go all right. If it isn't, chances are your system has been
> identified as MacOS X....
> 
> The EXTRA_CFLAGS variable has special meaning for MacOS X builds; several tests
> are based on its presence. The one doing problems here is in
> pyuno/source/module/makefile.mk, where, if EXTRA_CFLAGS is set, '-framework
> Python' is added (indirectly) to compiler options.
> 

As you can see in the enviroment file in the attachments, EXTRA_CFLAGS and EXTRA_CXXFLAGS are bot set.
Configure configures the makefiles for gentoo, if i can trust its output
in the build logfile.
So it should be identified as MAC OS X.

Comment 10 shade37337 2009-02-14 20:16:05 UTC
(In reply to comment #9)
> So it should be identified as MAC OS X.
I mean, it should NOT be identified as MAC OS...

Comment 11 David Tardon 2009-02-14 21:11:30 UTC
Yes, I saw it in the environment file and I wondered how it had come there; the variable is not set (or should not be set) anywhere in the build system, unless you happen to run MacOS X, so my first thought was you had it set in your environment. All I can do at this moment is to repeat my question: have you the EXTRA_CFLAGS variable set?

Could you attach /var/tmp/portage/app-office/openoffice/work/ooo/build/ooo300-m9/LinuxX86-64Env.Set.sh here?

Comment 12 Yar Odin 2009-02-15 05:18:15 UTC
Workaraound is change

+-CPPFLAGS=<--->-I. -I$(srcdir)/Include
++CPPFLAGS=<--->-D_FORTIFY_SOURCE=0 -I. -I$(srcdir)/Include

at the python/Python-2.3.4.patch
It works on my openoffice-infra at sunrise overlay (i will add this fix with version 3.0.1 today)
Comment 13 Yar Odin 2009-02-15 05:19:17 UTC
Consider with other offsets at python-2.3.4.patch of course
Comment 15 David Tardon 2009-02-15 06:16:42 UTC
(In reply to comment #12)
> Workaraound is change
> 
> +-CPPFLAGS=<--->-I. -I$(srcdir)/Include
> ++CPPFLAGS=<--->-D_FORTIFY_SOURCE=0 -I. -I$(srcdir)/Include
> 
> at the python/Python-2.3.4.patch
> It works on my openoffice-infra at sunrise overlay (i will add this fix with
> version 3.0.1 today)
> 

This change really changes nothing, because we don't build the included python, but use system one.
Comment 16 Yar Odin 2009-02-15 06:23:09 UTC
(In reply to comment #15)
> (In reply to comment #12)
> > Workaraound is change
> > 
> > +-CPPFLAGS=<--->-I. -I$(srcdir)/Include
> > ++CPPFLAGS=<--->-D_FORTIFY_SOURCE=0 -I. -I$(srcdir)/Include
> > 
> > at the python/Python-2.3.4.patch
> > It works on my openoffice-infra at sunrise overlay (i will add this fix with
> > version 3.0.1 today)
> > 
> 
> This change really changes nothing, because we don't build the included python,
> but use system one.
> 

Yep, sorry. I forget that's you build using distro-configs.
Comment 17 Yar Odin 2009-02-15 09:37:04 UTC
1. ebuild openoffice-3.0.0.ebuild compile
2. get error
3. goto /var/tmp/portage/app-office/openoffice-3.0.0/work/ooo/build/ooo300-m9/pyuno/unxlngx6.pro/misc/logs
4. pack all .txt files from this dir and attach to this bug report.

But i'm still think that's problem with CPPFLAGS of your _system_ python.
Comment 18 Hanno Zysik (geki) 2009-02-15 11:17:41 UTC
Error from log:
Making: ../../unxlngx6.pro/lib/libpyuno.so
g++ -Wl,-z,combreloc -Wl,-Bsymbolic-functions -Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo -Wl,-rpath,'$ORIGIN:$ORIGIN/../ure-link/lib' -shared -L../../unxlngx6.pro/lib ../../unxlngx6.pro/slo/pyuno_version.o -o ../../unxlngx6.pro/lib/libpyuno.so ../../unxlngx6.pro/slo/pyuno_runtime.o ../../unxlngx6.pro/slo/pyuno.o ../../unxlngx6.pro/slo/pyuno_callable.o ../../unxlngx6.pro/slo/pyuno_module.o ../../unxlngx6.pro/slo/pyuno_type.o ../../unxlngx6.pro/slo/pyuno_util.o ../../unxlngx6.pro/slo/pyuno_except.o ../../unxlngx6.pro/slo/pyuno_adapter.o ../../unxlngx6.pro/slo/pyuno_gc.o -luno_cppu -luno_cppuhelpergcc3 -luno_sal -lpython2.5 -framework Python -ldl -lpthread -lm  -L../lib -L/var/tmp/portage/app-office/openoffice-3.0.0/work/ooo/build/ooo300-m9/solenv/unxlngx6/lib -L/var/tmp/portage/app-office/openoffice-3.0.0/work/ooo/build/ooo300-m9/solver/300/unxlngx6.pro/lib -L/var/tmp/portage/app-office/openoffice-3.0.0/work/ooo/build/ooo300-m9/solenv/unxlngx6/lib -LNO_JAVA_HOME/lib64 -LNO_JAVA_HOME/jre/lib/amd64 -LNO_JAVA_HOME/jre/lib/amd64/server -LNO_JAVA_HOME/jre/lib/amd64/native_threads -L/usr/lib
g++: Python: No such file or directory
dmake:  Error code 1, while making '../../unxlngx6.pro/lib/libpyuno.so'


@shade
It is a incomplete g++ line.

Please consider pkg_setup messages and merge openoffice with single process, MAKEOPTS="-j1", before filing a bug, thanks.
Comment 19 Hanno Zysik (geki) 2009-02-15 14:33:58 UTC
Ah well, it is complete and that '-framework' switch is afais only for darwin(mac os...) archs.
So some bad env or config somewhere wrt mac os x.

Just to second Davids thought. ;)
Comment 20 Andreas Proschofsky (RETIRED) gentoo-dev 2009-11-28 22:08:16 UTC
Problem in the user system setup, see comments. Thanks everyone for giving advice, closing