Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47702 - Openoffice 1.1.1 fails to build.
Summary: Openoffice 1.1.1 fails to build.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-13 07:23 UTC by Xake
Modified: 2004-04-16 12:10 UTC (History)
0 users

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


Attachments
Fixes problem with compile locale LC_ALL for OO.o 1.1.1 (LC_ALL-fix.patch,511 bytes, patch)
2004-04-15 15:44 UTC, Morten Sjoegren
Details | Diff
ebuild for: Fixes problem with compile locale LC_ALL for OO.o 1.1.1 (openoffice-1.1.1.ebuild,15.95 KB, application/octet-stream)
2004-04-15 15:51 UTC, Morten Sjoegren
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xake 2004-04-13 07:23:44 UTC
When I try to emerge openoffice 1.1.1 I get the following message:

/var/tmp/portage/openoffice-1.1.1/work/oo_1.1.1_src/external/gcc3_specific
gccinstlib.pl libstdc++.so.5 /var/tmp/portage/openoffice-1.1.1/work/oo_1.1.1_src/solver/645/unxlngi4.pro/lib
printf (...) interpreted as function at /var/tmp/portage/openoffice-1.1.1/work/oo_1.1.1_src/solenv/bin/gccinstlib.pl line 77.
Foo at /var/tmp/portage/openoffice-1.1.1/work/oo_1.1.1_src/solenv/bin/gccinstlib.pl line 70.
dmake:  Error code 255, while making '/var/tmp/portage/openoffice-1.1.1/work/oo_1.1.1_src/solver/645/unxlngi4.pro/lib/libstdc++.so.5'
---* TG_SLO.MK *---
 
ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-1.1.1/work/oo_1.1.1_src/external/gcc3_specific
 
!!! ERROR: app-office/openoffice-1.1.1 failed.
!!! Function src_compile, Line 359, Exitcode 1
!!! Build failed!

I have no clue what it could be coused by.

Reproducible: Always
Steps to Reproduce:
1. emerge openoffice

Actual Results:  
It fails.

Expected Results:  
Got installed and be usable.

Portage 2.0.50-r5 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-gentoo)
=================================================================
System uname: 2.6.5-gentoo i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-pipe -O3 -march=pentium4"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/cursors/xfree/default/index.theme /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-pipe -O3 -march=pentium4"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa apm avi berkdb cdr crypt cups encode flac foomaticdb gdbm gif
gimpprint gnome gpm gstreamer gtk gtk2 imlib ipv6 java joystick jpeg libg++
libwww mad mikmod mmx motif mozilla mpeg mysql ncurses nls ogg oggvorbis opengl
oss pam pdflib perl pic png postgres ppds python quicktime readline sdl slang
spell sse ssl svga tcltk tcpd theora threads tiff truetype x86 xml2 xmms xv zlib"
Comment 1 Morten Sjoegren 2004-04-15 02:17:15 UTC
I've got the same problem.
My System seems to be allmost the same as yours.
Pentium4 2.8GHz (HT)

I've gotten this result with both kernel 2.6.3, 2.6.4 and 2.6.5. and i've tried emerging with 
 
"LANGUAS=45 emerge /usr/portage/app-office/openoffice/openoffice-1.1.1.ebuild"
 
"emerge /usr/portage/app-office/openoffice/openoffice-1.1.1.ebuild"

"LANGUAS=45 USE="" CFLAGS="" CXXFLAGS="" FEATURES="-sandbox" emerge /usr/portage/app-office/openoffice/openoffice-1.1.1.ebuild"

all with the same result.

Portage 2.0.50-r5 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5)
=================================================================
System uname: 2.6.5 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE=""
ARCH="x86"
AUTOCLEAN="yes"
BASH_ENV="/etc/portage/bashrc"
CC="gcc"
CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
CLASSPATH="/opt/blackdown-jdk-1.4.2_rc1/jre/lib/rt.jar:.:."
CLEAN_DELAY="5"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /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"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CVS_RSH="ssh"
CXX="g++"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
DISPLAY=":0.0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
FEATURES="autoaddcvs ccache sandbox"
FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
GRP_STAGE23_USE="ipv6 pam tcpd readline nls ssl gpm perl python berkdb acl ncurses"
G_BROKEN_FILENAMES="1"
HOME="/root"
HOSTNAME="mygentoo"
INFODIR="/usr/share/info:/usr/X11R6/info"
INFOPATH="/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info"
INPUTRC="/etc/inputrc"
JAVAC="/opt/blackdown-jdk-1.4.2_rc1/bin/javac"
JAVA_HOME="/opt/blackdown-jdk-1.4.2_rc1"
JDK_HOME="/opt/blackdown-jdk-1.4.2_rc1"
KDEDIR="/usr/kde/3.2"
KDEDIRS="/usr"
LANG="da_DK"
LC_ALL="da_DK"
LESS="-R"
LESSOPEN="|lesspipe.sh %s"
LINGUAS="da"
LOGNAME="root"
MAKEOPTS="-j2"
MANPATH="/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man:/usr/X11R6/man::/opt/blackdown-jdk-1.4.2_rc1/man:/usr/qt/3/doc/man"
NOCOLOR="false"
PAGER="/usr/bin/less"
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3:/opt/Acrobat5:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.2_rc1/bin:/opt/blackdown-jdk-1.4.2_rc1/jre/bin:/usr/qt/3/bin:/usr/kde/3.2/sbin:/usr/kde/3.2/bin"
PKGDIR="/usr/portage/packages"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_CACHEDIR="/var/cache/edb/dep/"
PORTAGE_CALLER="emerge"
PORTAGE_GID="250"
PORTAGE_MASTER_PID="31593"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/Storage/Linux/gentoo/portage"
PRELINK_PATH=""
PRELINK_PATH_MASK=""
PS1="\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]"
PWD="/root"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
RPMDIR="/usr/portage/rpm"
RSYNC_RETRIES="3"
RSYNC_TIMEOUT="180"
SHELL="/bin/bash"
SHLVL="1"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="xterm"
USE="X aalib alsa apache2 apm arts audiofuke avi berkdb bonobo cdr crypt cups directfb dvd encode esd foomaticdb gdbm gif gpm gtk gtk2 gtkhtml imlib java jpeg kde libg++ libwww linguas_da mad mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd tetex truetype wxwidgets wxwindows x86 xml2 xmms xv zlib"
USER="root"
USERLAND="GNU"
USE_EXPAND="VIDEO_CARDS INPUT_DEVICES LINGUAS"
XARGS="xargs -r"
XAUTHORITY="/root/.xauthKn9CXJ"
XINITRC="/etc/X11/xinit/xinitrc"
_="/usr/bin/emerge"
Comment 2 Paul de Vrieze (RETIRED) gentoo-dev 2004-04-15 02:33:00 UTC
Don't use -O3, use -O2, and no unroll-loops and other compiler options. These still have issues with current gcc.
Comment 3 Xake 2004-04-15 05:40:48 UTC
CFLAGS="-O2 -march=pentium4"

This one gives the same error.
Comment 4 Xake 2004-04-15 06:16:40 UTC
...and only -march=pentium4 doesn't looks that good either.........
Comment 5 Xake 2004-04-15 06:57:56 UTC
And remove all cflags but -mcpu=i686 didn't change it either.
I don't think thats where the problem lies.
Comment 6 Morten Sjoegren 2004-04-15 10:35:12 UTC
If you look at the error it says...
"Foo at /var/tmp/portage/openoffice-1.1.1/work/oo_1.1.1_src/solenv/bin/gccinstlib.pl line 70"

So I looked, 
Line says "$LibPaths = $SearchDirs{'libraries'} || die 'Foo';"

Now I can't program in Perl (A least I think this is Perl), but it looks like to me that $SearchDirs don't contain 'libraries'. Which it should have gotten from line 68 "%SearchDirs = GetGccSearchDirs ();"

But the error at line 77, I don't get shouldn't printf be to a function?

Can this be an error due to the version of perl, installed? I've got perl v5.8.2
Comment 7 Xake 2004-04-15 11:25:28 UTC
dev-lang/perl-5.8.2-r1 exists here.
reemrging it right now.
OpenOffice 1.1.1 did work for you, Morten?
Comment 8 Morten Sjoegren 2004-04-15 11:35:34 UTC
No, still not.. :-(
Comment 9 Andreas Proschofsky (RETIRED) gentoo-dev 2004-04-15 11:43:38 UTC
This looks like a duplicate of bug #33559 . Quite a longstanding one which only happens to a few and is not easily reproducable. Please take a look there for some ideas. I still think this is some strange compiler related bug, so you could try to reemerge gcc and see if that helps...
Comment 10 Morten Sjoegren 2004-04-15 12:40:52 UTC
#9, I just upgraded gcc to 3.3.3 insteed of 3.3.2, the same :-( Now i'm downgrading to 3.2.3-r4.
And I'll of course go look at the other bug you suggested.
Comment 11 Morten Sjoegren 2004-04-15 15:44:06 UTC
Created attachment 29375 [details, diff]
Fixes problem with compile locale LC_ALL for OO.o 1.1.1

Okay, I believe that I have found the course of this problem, it's
localization.
My system runs with LC_ALL=da_DK which is danish, this makes
"gcc -print-search-dirs" which
/var/tmp/portage/openoffice-1.1.1/work/oo_1.1.1_src/solenv/bin/gccinstlib.pl
calles, output the following:
"installering: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/
programmer:
=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/:/usr/lib/gcc-lib/i686-pc-linux-gnu/:/usr/lib/gcc/i686-pc-linux-gnu/3.3.2/:/usr/lib/gcc/i686-pc-linux-gnu/:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/i686-pc-linux-gnu/3.3.2/:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/

biblioteker:
=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/:/usr/lib/gcc/i686-pc-linux-gnu/3.3.2/:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/lib/i686-pc-linux-gnu/3.3.2/:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/lib/:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../i686-pc-linux-gnu/3.3.2/:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../:/lib/i686-pc-linux-gnu/3.3.2/:/lib/:/usr/lib/i686-pc-linux-gnu/3.3.2/:/usr/lib/"


but the following output is expected:

"install: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/
programs:
=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/:/usr/lib/gcc-lib/i686-pc-linux-gnu/:/usr/lib/gcc/i686-pc-linux-gnu/3.3.2/:/usr/lib/gcc/i686-pc-linux-gnu/:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/i686-pc-linux-gnu/3.3.2/:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/

libraries:
=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/:/usr/lib/gcc/i686-pc-linux-gnu/3.3.2/:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/lib/i686-pc-linux-gnu/3.3.2/:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/lib/:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../i686-pc-linux-gnu/3.3.2/:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../:/lib/i686-pc-linux-gnu/3.3.2/:/lib/:/usr/lib/i686-pc-linux-gnu/3.3.2/:/usr/lib/"


so this script fails when looking for "libraries" in the output
There are as I see it two solutions to this problem
1. emerge LC_ALL="C" like this:
LC_ALL="C" emerge /usr/portage/app-office/openoffice/openoffice-1.1.1.ebuild

but this might make openoffice.org install in english insteed of the locale
langauge.

So this a another option 

2. this is to patch "gccinstlib.pl" which I've made :-) and attached it to this
post
Comment 12 Morten Sjoegren 2004-04-15 15:51:59 UTC
Created attachment 29378 [details]
ebuild for: Fixes problem with compile locale LC_ALL for OO.o 1.1.1

Just wantet too upload the ebuild as well
Comment 13 Xake 2004-04-15 23:13:15 UTC
So the problem is the installscripts for OpenOffice having problems with localizations?
I am trying "unset LC_ALL LANGUAGE && LC_ALL="C" LANGUAGE="SWED" emerge openoffice" right now and it seems to have gone past the breakpoint.
After the current operation I am going to test your ebuild.
Comment 14 Xake 2004-04-16 00:01:26 UTC
Heh.
Trying out with LC_ALL="C" did take me trough the breakage-point but I got another problem insted.
Time to go trough my CFLAGS again, I believe.

***
/var/tmp/portage/openoffice-1.1.1/work/oo_1.1.1_src/padmin/source/padialog.cxx: In function `Point project(const Point&)':
/var/tmp/portage/openoffice-1.1.1/work/oo_1.1.1_src/padmin/source/padialog.cxx:308: warning: passing `double' for argument 1 of `Point::Point(long int, long int)'
/var/tmp/portage/openoffice-1.1.1/work/oo_1.1.1_src/padmin/source/padialog.cxx:308: warning: passing `double' for argument 2 of `Point::Point(long int, long int)'
/var/tmp/portage/openoffice-1.1.1/work/oo_1.1.1_src/padmin/source/padialog.cxx: In member function `void padmin::PADialog::PrintTestPage()':
/var/tmp/portage/openoffice-1.1.1/work/oo_1.1.1_src/padmin/source/padialog.cxx:545: warning: assignment to `long int' from `double'
/var/tmp/portage/openoffice-1.1.1/work/oo_1.1.1_src/padmin/source/padialog.cxx:545: warning: argument to `long int' from `double'
/var/tmp/portage/openoffice-1.1.1/work/oo_1.1.1_src/padmin/source/padialog.cxx:546: warning: assignment to `long int' from `double'
/var/tmp/portage/openoffice-1.1.1/work/oo_1.1.1_src/padmin/source/padialog.cxx:546: warning: argument to `long int' from `double'
/var/tmp/portage/openoffice-1.1.1/work/oo_1.1.1_src/padmin/source/padialog.cxx:548: warning: assignment to `long int' from `double'
/var/tmp/portage/openoffice-1.1.1/work/oo_1.1.1_src/padmin/source/padialog.cxx:548: warning: argument to `long int' from `double'
/var/tmp/portage/openoffice-1.1.1/work/oo_1.1.1_src/padmin/source/padialog.cxx:549: warning: assignment to `long int' from `double'
/var/tmp/portage/openoffice-1.1.1/work/oo_1.1.1_src/padmin/source/padialog.cxx:549: warning: argument to `long int' from `double'
/var/tmp/portage/openoffice-1.1.1/work/oo_1.1.1_src/padmin/source/padialog.cxx:557: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
The bug is not reproduceable, so it is likely a hardware or OS problem
dmake:  Error code 1, while making '../unxlngi4.pro/slo/padialog.obj'
---* TG_SLO.MK *---
 
ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-1.1.1/work/oo_1.1.1_src/padmin/source
 
!!! ERROR: app-office/openoffice-1.1.1 failed.
!!! Function src_compile, Line 359, Exitcode 1
!!! Build failed!
***
Comment 15 Paul de Vrieze (RETIRED) gentoo-dev 2004-04-16 01:54:20 UTC
LC_ALL never influences localization in building. The variable that normally influences this is LINGUAS. The OpenOffice ebuil uses LANGUAGE instead. Unsetting LC_ALL should do the trick
Comment 16 Xake 2004-04-16 08:36:56 UTC
This did the trick:
"unset LC_ALL LANGUAGE && LC_ALL="C" LANGUAGE="SWED" CFLAG="-O2 -march=pentium4" emerge openoffice"

@paul: maybe do something about it in the ebuild? And maybe set the ebuild to accept the things people use to set LANGUAGE (example:sv_SE)? Not fun to have to edit files everytime you want to emerge openoffice just becouse the enviroment likes the profile.env-file better than the things on the command-line.
Comment 17 Xake 2004-04-16 08:37:56 UTC
And one more note: it did get localized.
Comment 18 Paul de Vrieze (RETIRED) gentoo-dev 2004-04-16 12:10:44 UTC
I added an unset LC_ALL command to the ebuild that should fix this. I did not revise it though as it only effects people who were not able to compile openoffice before