Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 288263 - app-office/openoffice-3.1.1 fails to build on amd64 (dmake: Error code 1, while making '../unxlngx6.pro/lib/libsclx.so')
Summary: app-office/openoffice-3.1.1 fails to build on amd64 (dmake: Error code 1, wh...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-09 07:08 UTC by Ben Mellor
Modified: 2009-10-10 08:27 UTC (History)
2 users (show)

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


Attachments
compressed build log (build.log.bz2,332.02 KB, text/plain)
2009-10-09 07:13 UTC, Ben Mellor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Mellor 2009-10-09 07:08:58 UTC
Building openoffice-3.1.1 fails. The last seemingly relevant bit and the end of the build log is (full build log to be attached):


Entering /var/tmp/portage/app-office/openoffice-3.1.1/work/ooo/build/ooo310-m19/sc/util
Compiling: sc/unxlngx6/misc/sc_dflt_version.c
Compiling: sc/unxlngx6/misc/scd_dflt_version.c
Compiling: sc/unxlngx6/misc/scfilt_dflt_version.c
Compiling: sc/unxlngx6/misc/xlsx_dflt_version.c
Compiling: sc/unxlngx6/misc/scui_dflt_version.c
Compiling: sc/unxlngx6/misc/vbaobj_dflt.uno_version.c
Making:    scalc3.lib
Making:    scalc3c.lib
Making:    xlsx2.lib
Making:    scui.lib
Making:    libsclx.so
`.gnu.linkonce.t._ZN4cppu8any2boolERKN3com3sun4star3uno3AnyE' referenced in section `.gnu.linkonce.r._ZN4cppu8any2boolERKN3com3sun4star3uno3AnyE' of ../unxlngx6.pro/slo/XMLExportDatabaseRanges.o: defined in discarded section `.gnu.linkonce.t._ZN4cppu8any2boolERKN3com3sun4star3uno3AnyE' of ../unxlngx6.pro/slo/XMLExportDatabaseRanges.o
`.gnu.linkonce.t._ZN4cppu8any2boolERKN3com3sun4star3uno3AnyE' referenced in section `.gnu.linkonce.r._ZN4cppu8any2boolERKN3com3sun4star3uno3AnyE' of ../unxlngx6.pro/slo/XMLExportDatabaseRanges.o: defined in discarded section `.gnu.linkonce.t._ZN4cppu8any2boolERKN3com3sun4star3uno3AnyE' of ../unxlngx6.pro/slo/XMLExportDatabaseRanges.o
`.gnu.linkonce.t._ZN4cppu8any2boolERKN3com3sun4star3uno3AnyE' referenced in section `.gnu.linkonce.r._ZN4cppu8any2boolERKN3com3sun4star3uno3AnyE' of ../unxlngx6.pro/slo/XMLExportDatabaseRanges.o: defined in discarded section `.gnu.linkonce.t._ZN4cppu8any2boolERKN3com3sun4star3uno3AnyE' of ../unxlngx6.pro/slo/XMLExportDatabaseRanges.o
`.gnu.linkonce.t._ZN4cppu8any2boolERKN3com3sun4star3uno3AnyE' referenced in section `.gnu.linkonce.r._ZN4cppu8any2boolERKN3com3sun4star3uno3AnyE' of ../unxlngx6.pro/slo/XMLExportDatabaseRanges.o: defined in discarded section `.gnu.linkonce.t._ZN4cppu8any2boolERKN3com3sun4star3uno3AnyE' of ../unxlngx6.pro/slo/XMLExportDatabaseRanges.o
`.gnu.linkonce.t._ZN4cppu8any2boolERKN3com3sun4star3uno3AnyE' referenced in section `.gnu.linkonce.r._ZN4cppu8any2boolERKN3com3sun4star3uno3AnyE' of ../unxlngx6.pro/slo/XMLExportDatabaseRanges.o: defined in discarded section `.gnu.linkonce.t._ZN4cppu8any2boolERKN3com3sun4star3uno3AnyE' of ../unxlngx6.pro/slo/XMLExportDatabaseRanges.o
collect2: ld returned 1 exit status
dmake:  Error code 1, while making '../unxlngx6.pro/lib/libsclx.so'

ERROR: Error 65280 occurred while making /var/tmp/portage/app-office/openoffice-3.1.1/work/ooo/build/ooo310-m19/sc/util


This is particularly serious as revdep-rebuild needs to rebuild openoffice and 3.1.1 is the only version in the portage tree at the moment.

I noticed that there are a number of bugs about openoffice-3.1.1 failing to build, but was unable to identify my issue as a duplicate of any of them.

Reproducible: Always

Steps to Reproduce:




Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-3.4.6, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7700_@_2.40GHz-with-gentoo-1.12.12
Timestamp of tree: Fri, 09 Oct 2009 00:00:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1, 3.1.1-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.12
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  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.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.aarnet.edu.au/pub/gentoo                       http://mirror.aarnet.edu.au/pub/gentoo                      http://ftp.swin.edu.au/gentoo                               ftp://mirror.pacific.net.au/linux/Gentoo                    http://mirror.pacific.net.au/linux/Gentoo                   ftp://ftp.swin.edu.au/gentoo"
LANG="en_AU.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/layman/sunrise /usr/local/overlays"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cegui cli consolekit cracklib crypt cups custom-optimization dbus doc dri dts dvd dvdr emboss encode esd evo fam firefox flac fortran gdbm gif git gnutls gpm graphviz gstreamer gtk hal iconv ipv6 isdnlog java6 jpeg latex ldap libnotify libsamplerate lm_sensors mad mikmod mmx modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nvidia ogg opengl openmp pam pcre pdf perl pmu png ppds pppd python qt3support quicktime readline reflection rtc samba sdl session spell spl sse sse2 sse3 ssl ssse3 startup-notification subversion svg sysfs tcpd threads thunar tiff truetype unicode usb vim-syntax vorbis x264 xcomposite xfce xinerama xml xorg xscreensaver xulrunner 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Ben Mellor 2009-10-09 07:13:19 UTC
Created attachment 206499 [details]
compressed build log
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2009-10-09 08:43:08 UTC
Please try to reemerge with an more uptodate compiler. >gcc-4
Comment 3 Hanno Zysik (geki) 2009-10-09 11:21:20 UTC
Maybe add a dependency on minimum gcc version and on-the-fly change, or so? See:
http://wiki.services.openoffice.org/wiki/Compiler_versions_used_by_port_maintainers_and_release_engineers

The release engineers use GCC 4.2.3 for x86-based platforms, e.g. ;)
Comment 4 Ben Mellor 2009-10-10 00:56:00 UTC
Is there a way to build openoffice with gcc-4 without rebuilding my entire system? For the next month or so I'm stuck with some other software that isn't very compatible with gcc-4.
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2009-10-10 07:33:17 UTC
emerge it, select it, emerge openoffice.
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2009-10-10 07:34:22 UTC
And btw, normally if toolchains are marked stable neraly 100% of all packages are tested to compile with it. So you can upgrade w/o fear.
Comment 7 Ben Mellor 2009-10-10 08:06:47 UTC
I was under the impression that it was likely that applications compiled with gcc-X will fail to link against libraries compiled with gcc-Y, if X and Y are substantially different. I'll give it a go, anyway.

The other software I need is not under portage control, and doesn't work very well (in some modes, at least) with gcc-4.
Comment 8 Justin Lecher (RETIRED) gentoo-dev 2009-10-10 08:12:27 UTC
(In reply to comment #7)
> I was under the impression that it was likely that applications compiled with
> gcc-X will fail to link against libraries compiled with gcc-Y, if X and Y are
> substantially different. I'll give it a go, anyway.
> 
> The other software I need is not under portage control, and doesn't work very
> well (in some modes, at least) with gcc-4.
> 

Of course you are right!
Here is the upgrade guide:
http://www.gentoo.org/doc/en/gcc-upgrading.xml
Comment 9 Ben Mellor 2009-10-10 08:27:43 UTC
> Of course you are right!
> Here is the upgrade guide:
> http://www.gentoo.org/doc/en/gcc-upgrading.xml
> 

Ah, yes, I'm aware of the upgrade guide.

I wanted to know if there was a way to test building openoffice with gcc-4 without first rebuilding my entire system, as I'd then have to rebuild it back again with gcc-3, and I really can't spare the time for such a massive operation until after my Honours project is complete (which is what makes me dependent on software that doesn't work with gcc-4, anyway, so after that I'll just upgrade back again).

If there's no way to resolve this issue without switching my system compiler to gcc-4, then I'll just have to live without openoffice for now.