openoffice 1.1.5 fails during compilation because it cannot find some header files Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: Making: ../../../unxlngi4.pro/slo/fulinend.obj g++ -fmessage-length=0 -c -I. -I/var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/solver/645/unxlngi4.pro/inc/offuh -I../inc -I../../../inc -I../../../unx/ inc -I../../../unxlngi4.pro/inc -I. -I/var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/solver/645/unxlngi4.pro/inc/stl -I/var/tmp/portage/openoffice-1.1.5/ work/OOo_1.1.5/solver/645/unxlngi4.pro/inc/external -I/var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/solver/645/unxlngi4.pro/inc -I/var/tmp/portage/openo ffice-1.1.5/work/OOo_1.1.5/solenv/unxlngi4/inc -I/var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/solenv/inc -I/var/tmp/portage/openoffice-1.1.5/work/OOo_1 .1.5/res -I/var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/solver/645/unxlngi4.pro/inc/stl -I/var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/solenv/inc/X p31 -I/opt/blackdown-jdk-1.4.2.02/include -I/opt/blackdown-jdk-1.4.2.02/include/linux -I/opt/blackdown-jdk-1.4.2.02/include/native_threads/include -I/usr/i nclude -I. -I../../../res -I. -O2 -march=nocona -pipe -fno-strict-aliasing -O2 -march=nocona -pipe -fno-strict-aliasing -fno-for-scope -fpermissive - fno-rtti -include preinclude.h -fno-exceptions -fpic -DLINUX -DUNX -DVCL -DGCC -DC300 -DINTEL -DGXX_INCLUDE_PATH=/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/inc lude/g++-v3 -DCVER=C300 -D_USE_NAMESPACE -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -D__DMAKE -DUNIX -DC PPU_ENV=gcc3 -DSUPD=645 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_OFF -DCUI -DSOLAR_JAVA -DSRX645 -DSHAREDLIB -D_DLL_ -DMULTITHREAD -o ../../../unxlngi4.pro/slo/fulinend.o /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/sd/source/ui/func/fulinend.cxx In file included from /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/solver/645/unxlngi4.pro/inc/svx/svdotext.hxx:74, from /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/solver/645/unxlngi4.pro/inc/svx/svdopath.hxx:66, from /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/sd/source/ui/func/fulinend.cxx:75: /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/solver/645/unxlngi4.pro/inc/svx/svdtrans.hxx:90: warning: ISO C++ forbids declaration of `nWinkDiv' with n o type /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/sd/source/ui/func/fulinend.cxx:81:23: strings.hrc: No such file or directory /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/sd/source/ui/func/fulinend.cxx:84:24: viewshel.hxx: No such file or directory /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/sd/source/ui/func/fulinend.cxx:88:21: helpids.h: No such file or directory /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/sd/source/ui/func/fulinend.cxx:89:23: sdresid.hxx: No such file or directory /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/sd/source/ui/func/fulinend.cxx:90:23: drawdoc.hxx: No such file or directory /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/sd/source/ui/func/fulinend.cxx:91:22: sdview.hxx: No such file or directory /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/sd/source/ui/func/fulinend.cxx:92:24: sdwindow.hxx: No such file or directory /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/sd/source/ui/func/fulinend.cxx:93:24: fulinend.hxx: No such file or directory /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/sd/source/ui/func/fulinend.cxx:98: error: `FuLineEnd' has not been declared /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/sd/source/ui/func/fulinend.cxx:98: error: `FuLineEnd' has not been declared /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/sd/source/ui/func/fulinend.cxx:98: error: `FuLineEnd' has not been declared /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/sd/source/ui/func/fulinend.cxx:98: error: non-member function `void*(* Type())()' cannot have `const' meth od qualifier /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/sd/source/ui/func/fulinend.cxx:98: error: `FuLineEnd' has not been declared /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/sd/source/ui/func/fulinend.cxx: In function `BOOL IsOf(void*(*)())': /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/sd/source/ui/func/fulinend.cxx:98: error: `FuPoor' has not been declared /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/sd/source/ui/func/fulinend.cxx: At global scope: /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/sd/source/ui/func/fulinend.cxx:98: error: `FuLineEnd' has not been declared /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/sd/source/ui/func/fulinend.cxx:98: error: non-member function `BOOL IsA(void*(*)())' cannot have `const' m ethod qualifier /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/sd/source/ui/func/fulinend.cxx:106: error: `FuLineEnd' has not been declared /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/sd/source/ui/func/fulinend.cxx:106: error: expected constructor, destructor, or type conversion before '(' token /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/sd/source/ui/func/fulinend.cxx:106: error: expected `,' or `;' before '(' token dmake: Error code 1, while making '../../../unxlngi4.pro/slo/fulinend.obj' ---* TG_SLO.MK *--- Expected Results: It should have built cleanly emerge --info Portage 2.0.52-r1 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6.13-gentoo-r1 i686) ================================================================= System uname: 2.6.13-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz Gentoo Base System version 1.12.0_pre8 dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.13 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 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=nocona -pipe -fstack-protector -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=nocona -pipe -fstack-protector -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.du.se/pub/os/gentoo http://ftp.romnet.org/gentoo/ http://mirror.uni-c.dk/pub/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/" LANG="en_GB.UTF-8" LC_ALL="en_GB.UTF-8" LINGUAS="en_GB" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="x86 X a52 aac aalib acl acpi aim alsa apache2 apm arts audiofile avi bash-completion berkdb bitmap-fonts bonobo browserplugin bzip2 bzlib caps cdparanoia cdr cjk crypt cups curl doc dts dvd dvdr eds emacs emboss encode esd ethereal examples exif expat fam fbcon ffmpeg flac foomaticdb fortran gcj gd gdbm gif glut gmp gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile iconv icq ieee1394 imagemagick imlib ipv6 jabber jack java javascript jce jpeg junit kde lcms leim libg++ libwww lm_sensors logrotate mad mbox mikmod milter mime mmap mmx mng motif mozilla mp3 mpeg mpi msn ncurses nls nptl offensive ogg oggvorbis opengl oscar oss pam pcntl pcre pdflib perl png postgres profile python qt quicktime readline recode sdl sharedmem slang sndfile snmp sockets sox speex spell sse ssl svg sysvipc tcltk tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts unicode usb v4l vhosts vorbis win32codecs wmf xface xine xml xml2 xmms xv xvid yahoo zlib linguas_en_GB userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS
Could you try to lower your CFLAGS to something generic (like march=pentium4 and remove the -fstack-protector part), OOo is very sensitive to CFLAGS so this might be the cause
What probably happened is that some earlier project failed so those header files were not delivered to the solver tree. You might want to attach the full build log if Andreas' suggestion doesn't work.
(In reply to comment #1) > Could you try to lower your CFLAGS to something generic (like march=pentium4 and > remove the -fstack-protector part), OOo is very sensitive to CFLAGS so this > might be the cause I have the same issue (my compilation stops at this point too), and I have more generic CFLAGS... emerge --info Portage 2.0.52-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12-gentoo i686) ================================================================= System uname: 2.6.12-gentoo i686 Intel(R) Pentium(R) M processor 1.60GHz Gentoo Base System version 1.12.0_pre8 dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.13 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 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="" ARCH="x86" AUTOCLEAN="yes" BASH_ENV="/etc/spork/is/not/valid/profile.env" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O3 -pipe" CHOST="i686-pc-linux-gnu" CLEAN_DELAY="5" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CVS_RSH="ssh" CXXFLAGS="-march=pentium4 -O3 -pipe" DCCC_PATH="/usr/lib/distcc/bin" DISPLAY=":0.0" DISTCC_LOG="" DISTCC_VERBOSE="0" DISTDIR="/usr/portage/distfiles" EDITOR="/usr/bin/vim" ELIBC="glibc" EMERGE_WARNING_DELAY="10" FEATURES="autoconfig distlocks sandbox sfperms strict" FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp -P ${DISTDIR} ${URI}" FLTK_DOCDIR="/usr/share/doc/fltk-1.1.6/html" GCC_SPECS="" GDK_USE_XFT="1" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" G_BROKEN_FILENAMES="1" HOME="/root" HOSTNAME="acsev-052" INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4/info" KDEDIRS="/usr" KDE_MALLOC="1" KERNEL="linux" LC_ALL="es_ES.utf8" LESS="-R -M" LESSOPEN="|lesspipe.sh %s" LOGNAME="root" MAKEOPTS="-j2" MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4/man:/usr/qt/3/doc/man:/opt/vmware/man" OPENGL_PROFILE="xorg-x11" PAGER="/usr/bin/less" PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.4:/usr/qt/3/bin:/usr/kde/3.4/sbin:/usr/kde/3.4/bin:/opt/vmware/bin" PKGDIR="/usr/portage/packages" PORTAGE_ARCHLIST="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 ppc-macos ppc-od s390 sh sparc x86 x86-fbsd x86-od" PORTAGE_BINHOST_CHUNKSIZE="3000" PORTAGE_CALLER="emerge" PORTAGE_GID="250" PORTAGE_MASTER_PID="6347" PORTAGE_NICENESS="4" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PRELINK_PATH="" PRELINK_PATH_MASK="/usr/lib/gstreamer-0.8:/usr/lib/klibc" PWD="/root" PYTHONPATH="/usr/lib/portage/pym" 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" SGML_CATALOG_FILES="/etc/sgml/sgml-docbook.cat:/etc/sgml/openjade-1.3.2.cat:/etc/sgml/sgml-ent.cat:/etc/sgml/xml-simple-docbook-1.0.cat:/etc/sgml/xml-simple-docbook-4.1.2.4.cat:/etc/sgml/sgml-docbook-3.0.cat:/etc/sgml/sgml-docbook-3.1.cat:/etc/sgml/sgml-docbook-4.0.cat:/etc/sgml/sgml-docbook-4.1.cat:/etc/sgml/dsssl-docbook-stylesheets.cat" SHELL="/bin/bash" SHLVL="1" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" TERM="xterm" USE="x86 X acpi alsa apm arts artworkextra avi bash-completion berkdb bitmap-fonts cdr crypt cups curl dbus divx4linux dri dvd dvdr eds emboss encode fam firefox foomaticdb fortran gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 hal howl i8x0 ieee1394 imlib jpeg ldap libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses nls ogg oggvorbis opengl pam pcmcia pdflib perl png ppds python quicktime readline samba sasl sdl spell sse sse2 ssl svg tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts unicode userlocales vcd vorbis win32codecs wmf xine xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" USER="root" USERLAND="GNU" USE_EXPAND="FRITZCAPI_CARDS FCDSL_CARDS VIDEO_CARDS INPUT_DEVICES LINGUAS USERLAND KERNEL ELIBC" XARGS="xargs -r" XAUTHORITY="/root/.xauthxLnrr2" XINITRC="/etc/X11/xinit/xinitrc" _="/usr/bin/emerge"
After changing to CFLAGS="-march=pentium4 -O2 -pipe" and setting MAKEOPTS="-j1", openoffice-1.1.5 built sucessfully.
That's weird, the only difference I can see to Borjas settings seem to be -O2 instead of -O3 (and the ebuild already does filter that), and the use of MAKEOPTS="-j2" which is not used by OOo. Paul, any ideas? Also: Borja: Are you sure this is the EXACT same bug? Could you post the last part of your output just to make sure?
Graham: I would say that there is probably a bug in gcc nocona support (possibly in the sse3 code). The nocona is kindof new, so probably you've hit a bug in gcc. Borja: I can't really see the cause without a more complete build log. Are you sure that your pentium-m is actually pentium4 compatible? You might want to try -march=pentium-m instead, or if it is indeed a p4 compatible pentium 4 try -march=pentium4m
It exit's with errors, can't compile 1.1.5 c++ -pthread -fexceptions -I../stlport -Wall -W -Wno-sign-compare -Wno-unused -Wno-uninitialized -ftemplate-depth-32 -frtti -O -g -D_STLP_DEBUG locale.cpp -c -o ../lib/obj/GCCx86/DebugSTL/locale.o c++ -pthread -fexceptions -I../stlport -Wall -W -Wno-sign-compare -Wno-unused -Wno-uninitialized -ftemplate-depth-32 -frtti -O -g -D_STLP_DEBUG locale_catalog.cpp -c -o ../lib/obj/GCCx86/DebugSTL/locale_catalog.o make: *** [../lib/obj/GCCx86/DebugSTL/locale_catalog.o] Error 1 dmake: Error code 2, while making ''./unxlngi4.pro/misc/build/so_built_so_stlport'' ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-1.1.5/work/OOo_1.1.5/stlport emerge --info Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1, 2.6.11-gentoo-r9 i686) ================================================================= System uname: 2.6.11-gentoo-r9 i686 AMD Athlon(tm) XP 3000+ Gentoo Base System version 1.6.13 ccache version 2.3 [enabled] dev-lang/python: 2.3.5-r2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://darkstar.ist.utl.pt/gentoo ftp://ftp.rnl.ist.utl.pt/pub/gentoo/ http://gentoo.mirrors.pair.com/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://darkstar.ist.utl.pt/gentoo-portage" USE="x86 X alsa apm arts avi berkdb bidi bitmap-fonts cdr crypt cups curl dvd dvdr dvdread eds emboss encode esd faad fam flac foomaticdb fortran gd gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 imagemagick imlib ipv6 java jpeg kde ldap libg++ libwww mad matroska mikmod motif mp3 mpeg ncurses nls nvidia ogg oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline sdl slang speex spell ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts unicode usb vorbis wxwindows xine xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
@tiago silva: your build dies at a totally different point, so please open a seperate bug report. But first please check if you hard disc didn't fill up (OOo needs 4-6 Gigs to compile) and you had enough RAM (256 MB+).
maybe you are rigth! I think i low on space...i don't have 5-6G free :( sorry my post
We need more info here, Graham please see Comment #6 by Paul Until we get this, there is nothing we can do, so closing. Please reopen if you have more info