Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 317207 - app-office/openoffice fails to build with gcc 4.5
Summary: app-office/openoffice fails to build with gcc 4.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
: 317691 (view as bug list)
Depends on:
Blocks: gcc-4.5
  Show dependency tree
 
Reported: 2010-04-26 01:41 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2010-06-16 08:56 UTC (History)
6 users (show)

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


Attachments
Build log (openoffice-3.2.0:20100425-215946.log,1.21 MB, text/plain)
2010-04-26 01:42 UTC, Diego Elio Pettenò (RETIRED)
Details
patch from upstream bug (enable-gcc45.diff,840 bytes, patch)
2010-04-26 10:26 UTC, Bartosz Brachaczek
Details | Diff
patch from upstream bug, adjusted to fit to ooo-build (openoffice-gcc45.diff,1.22 KB, patch)
2010-05-07 11:41 UTC, Bartosz Brachaczek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2010-04-26 01:41:28 UTC
Portage 2.2_rc67 (default/linux/amd64/10.0, gcc-4.5.0-asneeded, glibc-2.11-r1, 2.6.33.2 x86_64)
=================================================================
System uname: Linux-2.6.33.2-x86_64-Quad-Core_AMD_Opteron-tm-_Processor_2350-with-gentoo-2.0.1
Timestamp of tree: Sun, 25 Apr 2010 23:00:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p5
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.5-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.51.0.8
sys-devel/gcc:       4.4.3, 4.5.0
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-prerelease-jdk6 sun-bcla-java-vm"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=barcelona -O2 -ftracer -pipe -ftree-vectorize -g -ggdb -Wstrict-aliasing=2 -Wno-format-zero-length -Wformat=2 -Wno-error -Wno-pointer-sign -fdiagnostics-show-option"
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/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=barcelona -O2 -ftracer -pipe -ftree-vectorize -g -ggdb -Wno-error -Wformat=2 -Wstrict-aliasing=2 -fvisibility-inlines-hidden"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --with-bdeps=n"
FEATURES="assume-digests autoaddcvs autoconfig collision-protect cvs distlocks fixpackages multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign split-log splitdebug unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS="-march=barcelona -O2 -ftracer -pipe -ftree-vectorize -g -ggdb"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common"
LINGUAS="en it"
MAKEOPTS="-j12 -s"
PKGDIR="/var/spool/portage/packages"
PORTAGE_COMPRESS=""
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=ChangeLog"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/media/repos/gentoo-x86-sync"
PORTDIR_OVERLAY="/var/spool/portage/overlays/cross /var/lib/layman/x11 /var/lib/layman/x11 /var/lib/layman/tante_overlay /var/lib/layman/emacs /var/lib/layman/java-overlay /var/lib/layman/gnome /var/lib/layman/scarabeus /var/lib/layman/enlightenment /var/lib/layman/graaff /media/repos/flame/flame-overlay /media/repos/flame/gentoo/ruby-overlay /var/spool/portage/overlays/java-experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex 3dnowext S3TC a52 aac acl acpi4linux alsa amd64 apm audiofile avahi avi bluetooth bzip2 bzlib caps cjk cli crypt css cups custom-cflags custom-cxxflags cxx dbus dlloader dnd dpms dri dts emacs emboss fame ffmpeg flac foomaticdb gif gmp gnome gnome-keyring gnutls gpgme gphoto2 gtk gtk2 hal idn ieee1394 imlib imlib2 inotify ipv6 ithreads java5 java6 jpeg kdehiddenvisibility latex libnotify lm_sensors lx700 lzw lzw-tiff maildir matroska midi mmx mmx2 mmxext mng modules mozsvg mp3 mpeg mpeg4 mpm-threadpool mudflap multilib native network-cron nls no_wxgtk1 noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nodrm nojdepend nojsch nojython nolog4j nomotif nooro noregexp norhino noxalan noxerces nptl nptlonly nsplugin ogg oggvorbis openmp pam pch pdf pdflib pic pmount png policykit ppds pppd pulseaudio qemu-fast reflection rtc session snmp speex spell spl sse sse2 ssl ssse3 startup-notification stencil-buffer subversion svg svgz sysfs syslog tetex theora threads tiff truetype truetype-fonts type1 type1-fonts udev uncompressed-sounds unicode usb userlocales utf8 v4l v4l2 vhosts vorbis wxwindows x11vnc xcb xcomposite xorg xpm xv xvid zeroconf zlib zsh-completion zvbi" ALSA_CARDS="hda-intel usb-audio mpu401 ice1712" ALSA_PCM_PLUGINS="iec958 plug ioplug hooks empty route asym softvol extplug" APACHE2_MODULES="actions alias auth_basic auth_digest authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user cache dav dav_fs dav_lock deflate dir env expires ext_filter filter headers include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_http rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en it" LIRC_DEVICES="kworld" QEMU_SOFTMMU_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19 jruby" SANE_BACKENDS="snapscan" USERLAND="GNU" VIDEO_CARDS="radeon" 
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-04-26 01:42:16 UTC
Created attachment 229165 [details]
Build log
Comment 2 Bartosz Brachaczek 2010-04-26 10:24:56 UTC
There's already upstream bug for that: http://www.openoffice.org/issues/show_bug.cgi?id=109853. They have a patch, attaching it.
Comment 3 Bartosz Brachaczek 2010-04-26 10:26:56 UTC
Created attachment 229213 [details, diff]
patch from upstream bug
Comment 4 Andreas Proschofsky (RETIRED) gentoo-dev 2010-04-26 11:06:16 UTC
Would be nice if someone could test this, I really don't want to change my local toolchain just for this ;-)

@Bartosz: This is only the first patch, upstream bug says that a second one is necessary (and attached there)
Comment 5 Bartosz Brachaczek 2010-04-26 11:28:42 UTC
(In reply to comment #4)
> @Bartosz: This is only the first patch, upstream bug says that a second one is
> necessary (and attached there)
> 

The second patch was a workaround for a bug in gcc prerelease, and this bug is fixed in 4.5.0, so I assume it isn't needed anymore. Anyways, needs to be tested.
Comment 6 Anthoine Bourgeois 2010-04-29 07:05:34 UTC
The bug #317691 seems to be a duplicate of this one.
Comment 7 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-04-29 07:39:51 UTC
*** Bug 317691 has been marked as a duplicate of this bug. ***
Comment 8 milan hodoscek 2010-05-07 08:51:26 UTC
(In reply to comment #5)
> 
> The second patch was a workaround for a bug in gcc prerelease, and this bug is
> fixed in 4.5.0, so I assume it isn't needed anymore. Anyways, needs to be
> tested.

The first patch is enough. I patched it by hand and then used ebuild oo.ebuild {compile,install,qmerge} but I have no idea how to make this in paludis ??? The file to be patched gets created during the compile ????

Comment 9 Bartosz Brachaczek 2010-05-07 11:41:37 UTC
Created attachment 230669 [details, diff]
patch from upstream bug, adjusted to fit to ooo-build
Comment 10 Bartosz Brachaczek 2010-05-07 11:44:39 UTC
Try forcing portage/paludis to apply the patch I've just submitted. Should work. (Haven't had time yet to check this).
Comment 11 Tony Vroon (RETIRED) gentoo-dev 2010-05-09 09:47:23 UTC
Suka, as the sole remaining openoffice maintainer I'm looking to you to apply this. I hereby register my intention to commit this patch in 7 days, unless I see a complaint from you in this bug report or you beat me to it.
Comment 12 Andreas Proschofsky (RETIRED) gentoo-dev 2010-05-09 10:10:48 UTC
(In reply to comment #9)
> Created an attachment (id=230669) [details]
> patch from upstream bug, adjusted to fit to ooo-build
> 

This is really not necessary (and wrong). Just copy the upstream patch to "${S}/patches/hotfixes" (see the ebuild for reference how we usually deal with such fixes)
Comment 13 Andreas Proschofsky (RETIRED) gentoo-dev 2010-05-12 12:25:31 UTC
This is fixed now, thanks for the patch and comments. Closing.
Comment 14 Kevin Bowling 2010-05-13 01:00:26 UTC
(In reply to comment #13)
> This is fixed now, thanks for the patch and comments. Closing.
> 

I see the file in my portage tree but don't think it is getting applied:

In file included from ../../inc/uno/environment.hxx:37:0,
                 from /var/tmp/portage/app-office/openoffice-3.2.0/work/ooo/build/OOO320_m12/cppu/source/threadpool/current.cxx:38:
../../inc/uno/lbnames.h:70:2: error: #error "Supported gcc majors are 2 , 3 and 4 <= 4.4.  Unsupported gcc major version."
dmake:  Error code 1, while making '../../unxlngx6.pro/slo/current.obj'

1 module(s): 
        cppu
need(s) to be rebuilt
Comment 15 Aaron Haviland 2010-05-13 23:42:13 UTC
(In reply to comment #14)
> (In reply to comment #13)
> > This is fixed now, thanks for the patch and comments. Closing.
> I see the file in my portage tree but don't think it is getting applied:

According to the README in patches/hotfixes/README, the file needs to be suffixed .diff not as it is currently gcc45-buildfix.patch:

| All patches in this directory are automatically applied in alphabetical order.
| They are applied after the "regular" patches mentioned in the apply file.
| Only files with the .diff suffix are processed.
Comment 16 Andreas Proschofsky (RETIRED) gentoo-dev 2010-05-15 07:36:20 UTC
(In reply to comment #15)
> (In reply to comment #14)
> > (In reply to comment #13)
> > > This is fixed now, thanks for the patch and comments. Closing.
> > I see the file in my portage tree but don't think it is getting applied:
> 
> According to the README in patches/hotfixes/README, the file needs to be
> suffixed .diff not as it is currently gcc45-buildfix.patch:

Hmmm, weird, I actually thought I checked for the file being applied... Anyway I've renamed it now, hope that helps
Comment 17 milan hodoscek 2010-05-16 08:55:00 UTC
(In reply to comment #16)
> 
> Hmmm, weird, I actually thought I checked for the file being applied... Anyway
> I've renamed it now, hope that helps
> 

Now it works with paludis, too - thanks