I'm upgrading OpenOffice 1.0.3 to 1.1 via an 'emerge -u world'. I've tried this 4 times, and each time the compilation has died with the error message reproduced below. Originally, I had distcc and ccache enabled, I've tried disabling distcc, then disabling both and it seems to make no difference - the build crashes in exactly the same place. Lines leading up to the error: ============= Building project tools ============= /data/portage/portage/openoffice-1.1.0/work/oo_1.1_src/tools/source/solar mkout -- version: 1.3 ------------------------------ Making: ../../unxlngi4.pro/misc/mksvconf.dpc Making : Dependencies touch ../../unxlngi4.pro/misc/mksvconf.dpc ------------------------------ Making: ../../unxlngi4.pro/obj/solar.obj gcc -fmessage-length=0 -c -I. -I. -I../inc -I../../inc -I../../unx/inc -I../../unxlngi4.pro/inc -I. -I/data/portage/portage/openoffice-1.1.0/work/oo_1.1_src/solver/645/unxlngi4.pro/inc/dont_use_stl -I/data/portage/portage/openoffice-1.1.0/work/oo_1.1_src/solver/645/unxlngi4.pro/inc/external -I/data/portage/portage/openoffice-1.1.0/work/oo_1.1_src/solver/645/unxlngi4.pro/inc -I/data/portage/portage/openoffice-1.1.0/work/oo_1.1_src/solenv/unxlngi4/inc -I/data/portage/portage/openoffice-1.1.0/work/oo_1.1_src/solenv/inc -I/data/portage/portage/openoffice-1.1.0/work/oo_1.1_src/res -I/data/portage/portage/openoffice-1.1.0/work/oo_1.1_src/solver/645/unxlngi4.pro/inc/dont_use_stl -I/data/portage/portage/openoffice-1.1.0/work/oo_1.1_src/solenv/inc/Xp31 -I/opt/blackdown-jdk-1.4.1/include -I/opt/blackdown-jdk-1.4.1/include/linux -I/opt/blackdown-jdk-1.4.1/include/native_threads/include -I/usr/X11R6/include -I. -I../../res -I. -march=athlon -O2 -pipe -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER -pipe -mcpu=pentiumpro -DLINUX -DUNX -DVCL -DGCC -DC300 -DINTEL -DCVER=C300 -D_USE_NAMESPACE -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=645 -DBUILD=8693 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_OFF -DCUI -DSOLAR_JAVA -DSRX645 -DMULTITHREAD -o ../../unxlngi4.pro/obj/solar.o solar.c if ( -e ../../unxlngi4.pro/obj/solar.o) touch ../../unxlngi4.pro/obj/solar.obj ------------------------------ Making: ../../unxlngi4.pro/lib/mksvconf.lib echo unxlngi4.pro/obj/solar.o | xargs -n1 > ../../unxlngi4.pro/lib/mksvconf.lib ------------------------------ Making: ../../unxlngi4.pro/bin/mksvconf unx cat ../../unxlngi4.pro/misc/mksvconf.cmd gcc -z combreloc -z defs -Wl,-rpath,'$ORIGIN' -Wl,-export-dynamic -Wl,--noinhibit-exec -L../../unxlngi4.pro/lib -L../lib -L/data/portage/portage/openoffice-1.1.0/work/oo_1.1_src/solenv/unxlngi4/lib -L/data/portage/portage/openoffice-1.1.0/work/oo_1.1_src/solver/645/unxlngi4.pro/lib -L/data/portage/portage/openoffice-1.1.0/work/oo_1.1_src/solenv/unxlngi4/lib -L/opt/blackdown-jdk-1.4.1/lib -L/opt/blackdown-jdk-1.4.1/jre/lib/i386 -L/opt/blackdown-jdk-1.4.1/jre/lib/i386/client -L/opt/blackdown-jdk-1.4.1/jre/lib/i386/native_threads -L/usr/X11R6/lib -o ../../unxlngi4.pro/bin/mksvconf ../../unxlngi4.pro/obj/solar.o \ -ldl -lpthread -lm -Wl,-Bdynamic -lstlport_gcc -lstdc++ -rwxr-xr-x 1 root root 13307 Oct 18 20:25 ../../unxlngi4.pro/bin/mksvconf ------------- ../../unxlngi4.pro/bin/mksvconf ../../unxlngi4.pro/inc/svconf.h char = signed char short = signed short int = signed int long = signed long sizeof(char) = 1 sizeof(short) = 2 sizeof(int) = 4 sizeof(long) = 4 sizeof(float) = 4 sizeof(double) = 8 sizeof(void *) = 4 LITTLEENDIAN (Intel, VAX, PowerPC) Stack waechst nach unten STACKALIGNMENT : 1 can not read address (nil) Segmentation fault dmake: Error code 139, while making '../../unxlngi4.pro/inc/svconf.h' dmake: '../../unxlngi4.pro/inc/svconf.h' removed. ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /data/portage/portage/openoffice-1.1.0/work/oo_1.1_src/tools/source/solar !!! ERROR: app-office/openoffice-1.1.0 failed. !!! Function src_compile, Line 450, Exitcode 1 !!! Build failed! Reproducible: Always Steps to Reproduce: 1. 'emerge -u blackdown-jdk' (upgrades to 1.4.1 - recall seeing a couple of errors but it seemed to install fine so maybe they were expected) 2. 'emerge -u world' (OpenOffice is the only thing to be built) Actual Results: Result is the error message shown above. Expected Results: Should have built and installed OpenOffice 1.1. I'm doing the compilation in a terminal in KDE (i.e. X is running) and I always have seti@home processing things. I don't think it's a random hardware glitch, because it occurs in the same place every time. Portage 2.0.49-r13-2 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.6.0-test6) ================================================================= System uname: 2.6.0-test6 i686 AMD Athlon(tm) processor Gentoo Base System version 1.4.3.10p1 distcc 2.9 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.2 [disabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox autoaddcvs -ccache" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/data/portage" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mpeg ncurses pdflib png quicktime spell truetype xml2 xmms zlib alsa readline arts tetex svga guile X gpm tcpd pam libwww ssl perl python esd oggvorbis qt kde opengl mozilla gphoto2 cdr scanner dga ladcca rage128 samba tiff -java -gnome -mikmod -motif -nls -xv -gdbm -berkdb -slang -sdl -imlib -gtk"
Hi, i found a patch, which should fix that behaviour. Seems to be an OO-Kernel 2.6 Problem. http://lfs.netservice-neuss.de/patches/downloads/openoffice/openoffice-1.1.0-linux-2.6-fix.patch
Yup, same problem with linux-2.6.0-test4 (guess I'll check the patch): gcc -z combreloc -z defs -Wl,-rpath,'$ORIGIN' -Wl,-export-dynamic -Wl,--noinhibit-exec -L../../unxlngi4.pro/lib -L../lib -L/var/tmp/portage/openoffice-1.1.0/work/oo_1.1_src/solenv/unxlngi4/lib -L/var/tmp/portage/openoffice-1.1.0/work/oo_1.1_src/solver/645/unxlngi4.pro/lib -L/var/tmp/portage/openoffice-1.1.0/work/oo_1.1_src/solenv/unxlngi4/lib -L/opt/blackdown-jdk-1.3.1/lib -L/opt/blackdown-jdk-1.3.1/jre/lib/i386 -L/opt/blackdown-jdk-1.3.1/jre/lib/i386/client -L/opt/blackdown-jdk-1.3.1/jre/lib/i386/native_threads -L/usr/X11R6/lib -o ../../unxlngi4.pro/bin/mksvconf ../../unxlngi4.pro/obj/solar.o \ -ldl -lpthread -lm -Wl,-Bdynamic -lstlport_gcc -lstdc++ -rwxr-xr-x 1 root root 13254 Oct 19 23:12 ../../unxlngi4.pro/bin/mksvconf ------------- ../../unxlngi4.pro/bin/mksvconf ../../unxlngi4.pro/inc/svconf.h char = signed char short = signed short int = signed int long = signed long sizeof(char) = 1 sizeof(short) = 2 sizeof(int) = 4 sizeof(long) = 4 sizeof(float) = 4 sizeof(double) = 8 sizeof(void *) = 4 LITTLEENDIAN (Intel, VAX, PowerPC) Stack waechst nach unten STACKALIGNMENT : 1 can not read address (nil) Segmentation fault dmake: Error code 139, while making '../../unxlngi4.pro/inc/svconf.h' dmake: '../../unxlngi4.pro/inc/svconf.h' removed. ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-1.1.0/work/oo_1.1_src/tools/source/solar !!! ERROR: app-office/openoffice-1.1.0 failed. !!! Function src_compile, Line 450, Exitcode 1 !!! Build failed!
Okay, the patch mentioned above fixed my Problem. http://lfs.netservice-neuss.de/patches/downloads/openoffice/openoffice-1.1.0-linux-2.6-fix.patch This is the patch: Submitted By: Mark Hymers <markh AT linuxfromscratch DOT org> Date: 2003-10-05 Initial Package Version: 1.1.0 Origin: http://archive.linuxfromscratch.org/mail-archives/blfs-dev/2003-September/003771.html Description: Fixes critical segmentation fault on linux-2.6.0 based systems --- oo_1.1_src/tools/source/solar/solar.c 2003-04-15 12:55:43.000000000 -0500 +++ oo_1.1_src/tools/source/solar/solar.c.new 2003-10-05 12:31:58.000000000 -0500 @@ -76,7 +76,7 @@ #include <varargs.h> #endif -#define NO_USE_FORK_TO_CHECK +#define USE_FORK_TO_CHECK #ifdef USE_FORK_TO_CHECK #include <sys/wait.h> #else
The patch is included in 1.1.0-r1