The compile error is always the same - regardless of compiler flags and the used version of gcc. I've tried to compile with those flags: CFLAGS="-march=k8 -O2 -msse3 -pipe" - no positive results. And I also tried without LDFLAGS. There was the same error also when I used gcc 3.4.5 ___________________________________________________ Making all in ruby make[4]: Entering directory `/var/tmp/portage/koffice-libs-1.5_beta2/work/koffice-libs-1.5_beta2/lib/kross/ruby' /bin/sh ../../../libtool --silent --mode=compile --tag=CXX x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../lib/kross -I/usr/lib64/ruby/1.8/x86_64-linux -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -I/usr/kde/3.5/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=k8 -O2 -msse3 -fweb -frename-registers -ftracer -pipe -s -DNDEBUG -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fexceptions -c -o rubyinterpreter.lo `test -f 'rubyinterpreter.cpp' || echo './'`rubyinterpreter.cpp /bin/sh ../../../libtool --silent --mode=compile --tag=CXX x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../lib/kross -I/usr/lib64/ruby/1.8/x86_64-linux -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -I/usr/kde/3.5/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=k8 -O2 -msse3 -fweb -frename-registers -ftracer -pipe -s -DNDEBUG -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fexceptions -c -o rubyextension.lo `test -f 'rubyextension.cpp' || echo './'`rubyextension.cpp /usr/include/gentoo-multilib/amd64/unistd.h:266: error: declaration of 'int eaccess(const char*, int) throw ()' throws different exceptions /usr/lib64/ruby/1.8/x86_64-linux/missing.h:43: error: than previous declaration 'int eaccess(const char*, int)' make[4]: *** [rubyinterpreter.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: Leaving directory `/var/tmp/portage/koffice-libs-1.5_beta2/work/koffice-libs-1.5_beta2/lib/kross/ruby' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/koffice-libs-1.5_beta2/work/koffice-libs-1.5_beta2/lib/kross' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/koffice-libs-1.5_beta2/work/koffice-libs-1.5_beta2/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/koffice-libs-1.5_beta2/work/koffice-libs-1.5_beta2' make: *** [all] Error 2 !!! ERROR: app-office/koffice-libs-1.5_beta2 failed. Call stack: ebuild.sh, line 1557: Called dyn_compile ebuild.sh, line 966: Called src_compile koffice-libs-1.5_beta2.ebuild, line 53: Called kde-meta_src_compile kde-meta.eclass, line 406: Called kde_src_compile kde.eclass, line 111: Called kde_src_compile 'all' kde.eclass, line 228: Called kde_src_compile 'myconf' 'configure' 'make' !!! died running emake, kde_src_compile:make !!! If you need support, post the topmost build error, and the call stack if relevant. __________________________________ My emerge --info: Portage 2.1_pre6-r2 (default-linux/amd64/2005.1, gcc-4.0.2, glibc-2.4-r0, 2.6.14-gentoo-r5 x86_64) ================================================================= System uname: 2.6.14-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.12.0_pre16 dev-lang/python: 2.3.5, 2.4.2-r1 sys-apps/sandbox: 1.2.17 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-r1 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -msse3 -fweb -frename-registers -ftracer -pipe -s -DNDEBUG -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/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/env.d" CXXFLAGS="-march=k8 -O2 -msse3 -fweb -frename-registers -ftracer -pipe -s -DNDEBUG -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.prz.rzeszow.pl http://gentoo.zie.pg.gda.pl" LANG="pl_PL" LC_ALL="pl_PL.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,-Bdirect -Wl,-s" LINGUAS="pl" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="amd64 X aac acpi alsa asf audiofile avi berkdb bitmap-fonts bzip2 cairo cdr crypt cups curl dbus divx dri dts dvd dvdr eds emboss encode exif ffmpeg firefox flac foomaticdb fortran gdbm gif glut gpm gstreamer gtk gtk2 hal idn imagemagick imlib ipv6 java jpeg kde kdeenablefinal lcms lirc lzw lzw-tiff mad mp3 mpeg musepack ncurses nls nptl nptlonly nvidia ogg opengl pam pdflib perl png ppds python qt quicktime readline samba sdl spell sqlite ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb vorbis xcomposite xine xml2 xpm xv xvid xvmc zlib elibc_glibc kernel_linux linguas_pl userland_GNU video_cards_nvidia" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS
I've updated all system packages to the newest versions available in ~amd64 tree, and after that koffice-libs compiled without problems. I dont know which package caused this compile error.
i re-emerged ruby as ~amd64 and this fixed the probelm (for me).
du..
..pe *** This bug has been marked as a duplicate of 129769 ***