app-office/libreoffice-3.5.3.2 fails to build svtools module with the following output: ============= (87/103) Building module svtools ============= Entering /var/tmp/portage/app-office/libreoffice-3.5.3.2/work/libreoffice-core-3.5.3.2/svtools/prj cpp: line 33, Fatal error: Cannot open include file "svtools/svtools.hrc" #include <svtools/svtools.hrc> make[2]: *** [/var/tmp/portage/app-office/libreoffice-3.5.3.2/work/libreoffice-core-3.5.3.2/workdir/unxlngx6.pro/SrsPartTarget/svtools/source/brwbox/editbrowsebox.src] Error 1 dmake: Error code 2, while making 'all' ----------------------------------------------------------------------- Oh dear - something failed during the build - sorry ! For more help with debugging build errors, please see the section in: http://wiki.documentfoundation.org/Development internal build errors: ERROR: error 65280 occurred while making /var/tmp/portage/app-office/libreoffice-3.5.3.2/work/libreoffice-core-3.5.3.2/svtools/prj it seems that the error is inside 'svtools', please re-run build inside this module to isolate the error and/or test your fix: ----------------------------------------------------------------------- /bin/sh cd /var/tmp/portage/app-office/libreoffice-3.5.3.2/work/libreoffice-core-3.5.3.2 source ./Env.Host.sh cd svtools make clean # optional make -r when the problem is isolated and fixed exit and re-run 'make' from the top-level make[1]: *** [build] Ошибка 1 make[1]: Выход из каталога `/var/tmp/portage/app-office/libreoffice-3.5.3.2/work/libreoffice-core-3.5.3.2' make: *** [source-env-and-recurse] Ошибка 2 * ERROR: app-office/libreoffice-3.5.3.2 failed (compile phase): Reproducible: Always Steps to Reproduce: 1. Try to build libreoffice-3.5.3.2 Actual Results: Build failed. Expected Results: libreoffice successfully built and installed.
Created attachment 310293 [details] `emerge --info` output
USE flags app-office/libreoffice-3.5.3.2 [3.5.2.2] USE="cups dbus gstreamer gtk jemalloc kde opengl svg (-aqua) -binfilter -branding -eds -gnome -graphite -java -mysql -nlpsolver -nsplugin -odk -pdfimport -postgres -test -vba -webdav -xmlsec"
Doing make -r according to the instructions gives: cpp: line 33, Fatal error: Cannot open include file "svtools/svtools.hrc" #include <svtools/svtools.hrc> if I add -Iinc to the command line compilation goes throu, fast make still fails - it is missing right include path.
(In reply to comment #3) > Doing make -r according to the instructions gives: > > cpp: line 33, Fatal error: Cannot open include file "svtools/svtools.hrc" > #include <svtools/svtools.hrc> > > if I add -Iinc to the command line compilation goes throu, fast make still > fails - it is missing right include path. Same results here.
Very similar issue here as well. ---------------------------------------------------------------------- Oh dear - something failed during the build - sorry ! For more help with debugging build errors, please see the section in: http://wiki.documentfoundation.org/Development internal build errors: ERROR: error 65280 occurred while making /var/tmp/portage/app-office/libreoffice-3.5.3.2/work/libreoffice-core-3.5.3.2/svtools/prj ERROR: error 65280 occurred while making /var/tmp/portage/app-office/libreoffice-3.5.3.2/work/libreoffice-core-3.5.3.2/ucb/source/ucp/cmis it seems you are using a threaded build, which means that the actual compile error is probably hidden far above, and could be inside any of these other modules: svtools please re-run build inside each one to isolate the problem. ---------------------------------------------------------------------
Same problem here: ============= (91/107) Building module svtools ============= Entering /tmp/portage/app-office/libreoffice-3.5.3.2/work/libreoffice-core-3.5.3.2/svtools/prj cpp: line 33, Fatal error: Cannot open include file "svtools/svtools.hrc" #include <svtools/svtools.hrc> make[2]: *** [/tmp/portage/app-office/libreoffice-3.5.3.2/work/libreoffice-core-3.5.3.2/workdir/unxlngx6.pro/SrsPartTarget/svtools/source/brwbox/editbrowsebox.src] Error 1 dmake: Error code 2, while making 'all' ----------------------------------------------------------------------- Oh dear - something failed during the build - sorry ! For more help with debugging build errors, please see the section in: http://wiki.documentfoundation.org/Development internal build errors: ERROR: error 65280 occurred while making /tmp/portage/app-office/libreoffice-3.5.3.2/work/libreoffice-core-3.5.3.2/svtools/prj it seems that the error is inside 'svtools', please re-run build inside this module to isolate the error and/or test your fix: ----------------------------------------------------------------------- /bin/sh cd /tmp/portage/app-office/libreoffice-3.5.3.2/work/libreoffice-core-3.5.3.2 source ./Env.Host.sh cd svtools make clean # optional make -r when the problem is isolated and fixed exit and re-run 'make' from the top-level emerge --info app-office/libreoffice Portage 2.1.10.57 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.3, glibc-2.15-r1, 3.3.2-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.3.2-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.1 Timestamp of tree: Sat, 28 Apr 2012 17:15:01 +0000 app-shells/bash: 4.2_p24-r1 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.3-r1, 3.2.3 dev-util/cmake: 2.8.7-r5 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1 sys-apps/openrc: 0.9.9.3 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.10.3, 1.11.5 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.5.3-r2 sys-devel/gcc-config: 1.7 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.3 (virtual/os-headers) sys-libs/glibc: 2.15-r1 Repositories: gentoo local ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=native" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--autounmask=n --with-bdeps=y --quiet-build=n --jobs=1" FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://mirrors.linuxant.fr/distfiles.gentoo.org" LANG="fr_FR.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="fr en" MAKEOPTS="-j9" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync1.fr.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cdr cli colord consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gdu gif gimp gnome gnome-keyring gnome-online-accounts gphoto2 gpm gstreamer gtk iconv ipv6 jpeg lcms libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses networkmanager nls nptl nptlonly ogg opengl openmp pam pango pcre pdf png policykit ppds pppd pulseaudio qt3support raw readline sdl session smp socialweb spell sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb vala vim-syntax vorbis wxwidgets x264 xcb xinerama xml xmp xorg xulrunner xv xvid zeitgeist zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2 canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON ================================================================= Package Settings ================================================================= app-office/libreoffice-3.5.2.2 was built with the following: USE="branding cups dbus eds gnome graphite gstreamer gtk java (multilib) nsplugin opengl pdfimport svg vba webdav xmlsec (-aqua) -binfilter -jemalloc -kde -mysql -nlpsolver -odk -postgres -test"
Complete command line: make -r R=/tmp/portage/app-office/libreoffice-3.5.3.2/work && S=$R/libreoffice-core-3.5.3.2 && O=$S/solver/unxlngx6.pro && W=$S/workdir/unxlngx6.pro && mkdir -p $W/Dep/SrsPartTarget/svtools/source/brwbox/ && x86_64-pc-linux-gnu-gcc -MM -MT $W/SrsPartTarget/svtools/source/brwbox/editbrowsebox.src -I. -I$O/inc/stl -I$O/inc/external -I$O/inc -I$S/solenv/inc/unxlngx6 -I$S/solenv/inc -I$S/res -I/opt/sun-jdk-1.6.0.31/include -I/opt/sun-jdk-1.6.0.31/include/linux -I/opt/sun-jdk-1.6.0.31/include/native_threads/include -I$W/inc -I$S/svtools/source/inc -DCPPU_ENV=gcc3 -DENABLE_GRAPHITE -DENABLE_GTK -DGCC -DGXX_INCLUDE_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4 -DHAVE_GCC_VISIBILITY_FEATURE -DHAVE_THREADSAFE_STATICS -DLINUX -DNDEBUG -DOPTIMIZE -DOSL_DEBUG_LEVEL=0 -DPRODUCT -DSOLAR_JAVA -DSUPD=350 -DUNIX -DUNX -DVCL -DX86_64 -D_PTHREADS -D_REENTRANT -c -x c++-header $S/svtools/source/brwbox/editbrowsebox.src -o $W/Dep/SrsPartTarget/svtools/source/brwbox/editbrowsebox.src.d R=/tmp/portage/app-office/libreoffice-3.5.3.2/work && S=$R/libreoffice-core-3.5.3.2 && O=$S/solver/unxlngx6.pro && W=$S/workdir/unxlngx6.pro && mkdir -p $W/SrsPartTarget/svtools/source/brwbox/ && RESPONSEFILE=`mktemp -t gbuild.XXXXXX` && echo "-s -I. -I$O/inc/stl -I$O/inc/external -I$O/inc -I$S/solenv/inc/unxlngx6 -I$S/solenv/inc -I$S/res -I/opt/sun-jdk-1.6.0.31/include -I/opt/sun-jdk-1.6.0.31/include/linux -I/opt/sun-jdk-1.6.0.31/include/native_threads/include -I$W/inc -I$S/svtools/source/inc -I$S/svtools/source/brwbox -DCPPU_ENV=gcc3 -DENABLE_GRAPHITE -DENABLE_GTK -DGCC -DGXX_INCLUDE_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4 -DHAVE_GCC_VISIBILITY_FEATURE -DHAVE_THREADSAFE_STATICS -DLINUX -DNDEBUG -DOPTIMIZE -DOSL_DEBUG_LEVEL=0 -DPRODUCT -DSOLAR_JAVA -DSUPD=350 -DUNIX -DUNX -DVCL -DX86_64 -D_PTHREADS -D_REENTRANT -fp=$W/SrsPartTarget/svtools/source/brwbox/editbrowsebox.src $S/svtools/source/brwbox/editbrowsebox.src" > ${RESPONSEFILE} && LD_LIBRARY_PATH="$O/lib" SOLARBINDIR=$O/bin $O/bin/rsc -presponse @${RESPONSEFILE} && rm -rf ${RESPONSEFILE} cpp: line 33, Fatal error: Cannot open include file "svtools/svtools.hrc" #include <svtools/svtools.hrc> make: *** [/tmp/portage/app-office/libreoffice-3.5.3.2/work/libreoffice-core-3.5.3.2/workdir/unxlngx6.pro/SrsPartTarget/svtools/source/brwbox/editbrowsebox.src] Erreur 1
Created attachment 310377 [details, diff] patch to fix include in svtools
Created attachment 310379 [details] ebuild that uses the patch
Using the tips in http://forums.gentoo.org/viewtopic-t-921662-start-0-postdays-0-postorder-asc-highlight-.html?sid=4f1e5c4449480763539c937cc4cd8f52, I created a new patch and ebuild that works (at least for me) for 3.5.3.2.
Thanks for the report. I commited the patch to main git repository now I wait for review so there is no better solution before commiting to main tree.
Fixed in cvs, thanks for patch and report.
Why was applying libreoffice-3.5.3-svtools-includes.patch removed from the ebuild again? I just wasted hours building libreoffice because it was not applied. :-(
(In reply to comment #13) > Why was applying libreoffice-3.5.3-svtools-includes.patch removed from the > ebuild again? I just wasted hours building libreoffice because it was not > applied. :-( Overlook.
Thank you for the quick response!