When trying to install OpenOffice 1.0.3 from source, the configuration phase of the compilation fails. See below: =================== checking for mawk... no checking for gawk... gawk checking for gawk... /bin/gawk checking the operating system... checked (Linux) checking for sed... /bin/sed checking for unzip... /usr/bin/unzip checking for zip... /usr/bin/zip checking for sed... (cached) /bin/sed checking for unzip... (cached) /usr/bin/unzip checking for zip... (cached) /usr/bin/zip checking for gcc... /usr/bin/ccache gcc checking whether the C compiler (/usr/bin/ccache gcc -march=athlon-xp -O2 -pipe -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. !!! ERROR: app-office/openoffice-1.0.3 failed. !!! Function src_compile, Line 404, Exitcode 1 !!! (no error message) herman root # =========== This repeats after an "env-update && source /etc/profile". Same happens after unmerge of ccache. Reproducible: Always Steps to Reproduce: 1. env-update && source /etc/profile 2. emerge openoffice Expected Results: Compile correctly Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20-ck4 i686 AMD Athlon(tm) XP 1700+ GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo" 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" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss 3dnow avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline arts svga java guile X sdl tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde motif opengl aalib acpi alsa -apm cdr dga fbcon mozilla mysql pic sse tcltk tetex tiff usb wmf -gpm moznoirc moznomail moznocompose" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="no" SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage/" FEATURES="sandbox ccache"
seems to be a ccache problem turn it off, then try again
I had the same problem. After turning ccache _and_ distcc off, it passed the test.
*** Bug 19159 has been marked as a duplicate of this bug. ***
zwelch: how to disable distcc and ccache in ebuilds ?
This problem is a bug in the ebuild for 1.0.3 and how it detects whether ccache is there or not. Look at the code for this in the 1.0.2-r2 ebuild: # Enable ccache for this build (Az) if [ "${FEATURES/-ccache/}" = "${FEATURES}" -a \ "${FEATURES/ccache/}" != "${FEATURES}" -a \ -d /usr/bin/ccache -a -x /usr/bin/ccache/ccache ] Now look at the code for 1.0.3: # Enable ccache for this build (Az) if [ "${FEATURES/-ccache/}" = "${FEATURES}" -a \ "${FEATURES/ccache/}" != "${FEATURES}" -a \ -x /usr/bin/ccache ] I took that last line (beginning with -d) from the 1.0.2 ebuild and replaced the line beginning with -x in 1.0.3 and it seems to work.
I should note that I do not have ccache installed, so it isn't a matter of disabling anything. And no matter what I set FEATURES to in make.conf, emerge --info always shows ccache in there. That is somewhat disturbing.
the reason the -d line works is becuase it turns off ccache... if you check where ccache is its in /usr/bin/ccache.. there ain't no /usr/bin/ccache/ccache...so making it 'work' is turning off ccache...why don't you turn ccache off in your features FEATURES="-ccache -distcc" emerge openoffice
can i get the output of which ccache
this should be fixed... whether or not your build uses ccache or distcc depends on what version you have installed...i reccomend the latest version of both =) seth
What about not having ccache installed at all?
for it to break you obviously had a /usr/bin/ccache directory or file or it would never have gotten past the test...
Yes I do have a /usr/bin/ccache directory but I don't have ccache emerged.
well then your problem is solved... i added an extra check
Just to inform: It seems to work, it passes the ccache (hopefully it will compile all the way ;) )
Well....I'd say the bug is still present (not resolved) for I still get this error: checking whether the C compiler (distcc /usr/bin/ccache gcc -O2 -mcpu=pentium4 -march=pentium4 -pipe -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. Okay...so I do have distcc and ccache enabled...if this isn't good for OpenOffice...then why doesn't the ebuild disable the feature (now that would be very unfortunate....) Also, I noticed the following inconsistancy in the 1.0.3 ebuild : # Enable distcc for this build (Az) if [ "${FEATURES/-distcc/}" = "${FEATURES}" -a \ "${FEATURES/distcc/}" != "${FEATURES}" -a \ -f /usr/bin/ccache -a -x /usr/bin/distcc ] Notice that last line.... shouldn't that ccache be distcc?!... Oh...and I did change it for distcc...not much more success.... :(
Why is this closed as "RESOLVED/FIXED"? There's no apparent resolution/fix. I want to use ccache and/or distcc. If that doesn't work, then why is it enabled? Is there something that must be done to one's setup to make it work right? I'm getting the same problem: laptop root # emerge openoffice Calculating dependencies ...done! >>> emerge (1 of 1) app-office/openoffice-1.0.3 to / >>> md5 ;-) OOo_1.0.3_source.tar.bz2 >>> md5 ;-) STLport-4.5.3.tar.gz >>> md5 ;-) gpc231.tar.Z >>> md5 ;-) freetype-2.1.3.tar.bz2 >>> md5 ;-) helpcontent_01_unix.tgz * **************************************************************** * It is important to note that OpenOffice.org is a very fragile * build when it comes to CFLAGS. A number of flags have already * been filtered out. If you experience difficulty merging this * package and use agressive CFLAGS, lower the CFLAGS and try to * merge again. * **************************************************************** * **************************************************************** * Selected Lanuage: 01 * * To build Openoffice in your native language start emerge with * LANGUAGE=XX emerge openoffice * To see all supported languagess visit. (as well as for the * specific LANGUAGE=XX settings you might need * http://l10n.openoffice.org/all_supported_languages.html * * To install language specified dictionaries emerge ooodi * **************************************************************** >>> Unpacking source... >>> Unpacking OOo_1.0.3_source.tar.bz2 to /var/tmp/portage/openoffice-1.0.3/work >>> Unpacking gpc231.tar.Z to /var/tmp/portage/openoffice-1.0.3/work * Applying openoffice-1.0.1-compiler-flags.patch... [ ok ] * Applying openoffice-1.0.1-no-mozab.patch... [ ok ] * Applying openoffice-1.0.1-fix-asm.patch... [ ok ] * Applying openoffice-1.0.1-use-STLport-4.5.3-newgcc.patch... [ ok ] * Applying openoffice-1.0.1-fix-jdk-1.4.0.patch... [ ok ] * Applying openoffice-1.0.1-xinteraction-fix.patch... [ ok ] * Moving freetype-2.1.3.tar.bz2 in place ... * Applying openoffice-1.0.1-use-freetype-2.1.3.patch... [ ok ] * Fixing makefiles for multiprocess builds... * Applying openoffice-errno.patch... [ ok ] * Applying openoffice-1.0.2-ft-antialias-advice.patch... [ ok ]>>> Source unpacked. * We're using ccache for this build... * We're using distcc for this build... /usr/sbin/ebuild.sh: line 389: [: too many arguments * Configuring OpenOffice.org... creating cache ./config.cache ******************************************************************** * * * OpenOffice.org build configuration. * * * * The configure proces checks your platform to see whether * * you can build OpenOffice.org on it. * * This proces checks all pre-requisites and generates a file * * containing the necessary environment variables. * * Source this file after configure has ended succesfully. * * * * Any warning that is generated during the configure process * * must be taken into account, since it can be a reason for * * an unsuccessfull build of OpenOffice.org * * * ******************************************************************** ******************************************************************** * * * Checking the platform pre-requisites. * * * ******************************************************************** checking for mawk... no checking for gawk... gawk checking for gawk... /bin/gawk checking the operating system... checked (Linux) checking for sed... /bin/sed checking for unzip... /usr/bin/unzip checking for zip... /usr/bin/zip checking for sed... (cached) /bin/sed checking for unzip... (cached) /usr/bin/unzip checking for zip... (cached) /usr/bin/zip checking for gcc... distcc /usr/bin/ccache gcc checking whether the C compiler (distcc /usr/bin/ccache gcc -march=pentium3 -O2 -pipe -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. !!! ERROR: app-office/openoffice-1.0.3 failed. !!! Function src_compile, Line 404, Exitcode 1 !!! (no error message) laptop root # laptop root # emerge --info Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20-gentoo-r1 i686 Pentium III (Coppermine) GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/gentoo " CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline svga tcltk java guile X sdl gpm tcpd pam libwww ssl python esd imlib oggvorbis gnome gtk motif opengl alsa -arts bonobo dvd ethereal fbcon gd gtk2 gtkhtml jikes -kde maildir mozilla mysql pcmcia pda perl pnp -qt samba snmp sse tiff usb xml" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O3 -pipe" CXXFLAGS="-march=pentium3 -O3 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j8" AUTOCLEAN="yes" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" FEATURES="sandbox ccache distcc"
frankly i'm considering removing distcc support, b/c atm its unusable... if you DO use it, the build will (very likely) segfault)
OK, boy, in re-reading my posting, I seemed a bit hot under the collar. Sorry. No one has died because OpenOffice fails to build for someone. You guys are doing heroic work. But, I have fixed this issue with my own setup so that at least the compile can continue. How? Upgrading to the latest distcc on both client and server to 2.0.1. I did do an emerge -C distcc, first, as well, and also did an emerge -C ccache && emerge ccache for good measure. Now, I have the disappearing "program" directory issue, but that's another bug report...
Change in my report - actually, I didn't upgrade the distcc server, yet. It's still at 1.2.3-r3 - we'll see if my build has problems. If it does, I'll upgrade that, too.
i'm not gettin on you about bein annoyed...i'm simply stating a truth...distcc doesn't work with more than one process...the build WILL segfault =)
*** Bug 20945 has been marked as a duplicate of this bug. ***
I had essentially the same problem with openoffice-1.1.0. I don't have either distcc or ccache installed, and openoffice tried to use ccache (specifically, /usr/bin/ccache gcc, even though /usr/bin/ccache is a directory). The fix was to add "-ccache -distcc" to the FEATURES in my make.conf. However, I think the ebuild is broken; this shouldn't be necessary.