Emerging app-office/libreoffice-3.3.2 fails with a build error: ERROR: error 65280 occurred while making /var/tmp/portage/app-office/libreoffice-3.3.2/work/libreoffice-build-3.3.2.2/build/libreoffice-3.3.2.2/connectivity/source/parse Reproducible: Always Portage 2.1.9.49 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.2, glibc-2.12.2-r0, 2.6.38-gentoo-r5-ck3 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.38-gentoo-r5-ck3-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-2.0.2 Timestamp of tree: Wed, 18 May 2011 19:45:01 +0000 app-shells/bash: 4.2_p10 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.6.6-r2 dev-util/cmake: 2.8.4-r1 sys-apps/baselayout: 2.0.2 sys-apps/openrc: 0.8.2-r1 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1-r1 sys-devel/binutils: 2.21 sys-devel/gcc: 4.5.2, 4.6.0 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82 sys-kernel/linux-headers: 2.6.38 (virtual/os-headers) sys-libs/glibc: 2.12.2 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-pipe -mtune=native -march=native -O2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-pipe -mtune=native -march=native -O2" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="" GENTOO_MIRRORS="ftp://ftp.ntua.gr/pub/linux/gentoo ftp://mirror.ovh.net/gentoo-distfiles ftp://distfiles.gentoo.org/pub/gentoo" LANG="en_US.UTF-8" LDFLAGS="-Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common" LINGUAS="en en_US" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/nx /var/lib/layman/vmware /var/lib/layman/pro-audio /var/lib/layman/interactive-fiction /var/lib/layman/kde /usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac acpi alsa amd64 audiofile bash-completion branding bzip2 cairo cdr cli consolekit cracklib crypt cxx dbus dri dts dvd dvdr emboss encode exif fam fbcondecor flac gallium gdbm gdu gif glitz gpm iconv imlib jpeg kde lcdfilter lcms libsamplerate lm_sensors mad mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nptl nptlonly offensive ogg opengl openmp pango pcre pdf plasma png policykit ppds pppd qt qt4 readline session spell sse sse2 sse3 sse4 ssl ssse3 startup-notification svg sysfs tcpd tiff truetype udev unicode usb vorbis webkit x264 xcb xcomposite xml xorg xulrunner xv xvid 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="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="plymouth" 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" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="nothing" USERLAND="GNU" VIDEO_CARDS="radeon r600" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= app-office/libreoffice-3.3.2 was built with the following: USE="bash-completion dbus kde (multilib) nsplugin (-aqua) -binfilter -cups -custom-cflags -debug -eds -gnome -gstreamer -gtk -java (-kdeenablefinal) -ldap -odk -opengl -templates" LINGUAS="en en_US -af -ar -as -ast -be_BY -bg -bn -bo -br -brx -bs -ca -ca_XV -cs -cy -da -de -dgo -dz -el -en_GB -en_ZA -eo -es -et -eu -fa -fi -fr -ga -gd -gl -gu -he -hi -hr -hu -id -is -it -ja -ka -kk -km -kn -ko -kok -ks -ku -ky -lo -lt -lv -mai -mk -ml -mn -mni -mr -ms -my -nb -ne -nl -nn -nr -ns -oc -om -or -pa_IN -pap -pl -ps -pt -pt_BR -ro -ru -rw -sa_IN -sat -sd (-sh) -si -sk -sl -sq -sr -ss -st -sv -sw_TZ -ta -te -tg -th -ti -tn -tr -ts -ug -uk -uz -ve -vi -xh -zh_CN -zh_TW -zu" CFLAGS="-pipe -mtune=native -march=native" CXXFLAGS="-pipe -mtune=native -march=native"
Created attachment 273877 [details] build.log (bzip2 compressed because it's too big for bugzilla.)
Actual error: Compiling: connectivity/source/parse/wrap_sqlbison.cxx In file included from /var/tmp/portage/app-office/libreoffice-3.3.2/work/libreoffic e-build-3.3.2.2/build/libreoffice-3.3.2.2/connectivity/source/parse/wrap_sqlbison.c xx:32:0: ../../unxlngx6.pro/misc/sqlbison.cxx: In function 'int SQLyyparse()': ../../unxlngx6.pro/misc/sqlbison.cxx:7814:9: error: invalid conversion from 'const char*' to 'sal_Char*' ../../unxlngx6.pro/misc/sqlbison.cxx:7814:9: error: initializing argument 1 of 'void connectivity::OSQLParser::error(sal_Char*)' dmake: Error code 1, while making '../../unxlngx6.pro/slo/wrap_sqlbison.obj'
*** Bug 368011 has been marked as a duplicate of this bug. ***
Confirm this bug. With bison-2.5 it fails. With bison 2.4.3 it goes well.
*** Bug 368015 has been marked as a duplicate of this bug. ***
same error here.
Created attachment 274175 [details, diff] const char patch Added this line to the patch block in src_prepare() of the 3.3.2.ebuild: cp -f "${FILESDIR}/${PN}-3.3.2-bison-2.5.diff" "${S}/patches/hotfixes" I was able to compile after this. Haven't had any problems using it yet. ymmv
Tried, but not sure about what's going on here: seems that the patch is not applying correctly, don't know why. libreoffice-3.3.2-bison-2.5.diff: testing...< /var/tmp/portage/app-office/libreoffice-3.3.2/work/libreoffice-build-3.3.2.2/patches/dev300/../hotfixes/libreoffice-3.3.2-bison-2.5.diff patch --fuzz=0 -l -p0 -d /var/tmp/portage/app-office/libreoffice-3.3.2/work/libreoffice-build-3.3.2.2/build/libreoffice-3.3.2.2 --dry-run patching file connectivity/source/parse/sqlbison.y Hunk #1 succeeded at 4335 (offset -3 lines). Hunk #2 FAILED at 233. 1 out of 2 hunks FAILED -- saving rejects to file connectivity/source/parse/sqlbison.y.rej Testing patch libreoffice-3.3.2-bison-2.5.diff failed. at /var/tmp/portage/app-office/libreoffice-3.3.2/work/libreoffice-build-3.3.2.2/patches/apply.pl line 98. make: *** [stamp/patch.apply] Error 1 * ERROR: app-office/libreoffice-3.3.2 failed (compile phase): * Build failed * * Call stack: * ebuild.sh, line 56: Called src_compile * environment, line 8673: Called die * The specific snippet of code: * make || die "Build failed" * * If you need support, post the output of 'emerge --info =app-office/libreoffice-3.3.2', * the complete build log and the output of 'emerge -pqv =app-office/libreoffice-3.3.2'. * This ebuild is from an overlay named 'overlay': '/usr/overlay/' !!! When you file a bug report, please include the following information: GENTOO_VM=sun-jdk-1.6 CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.25" JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="" and of course, the output of emerge --info * The complete build log is located at '/var/tmp/portage/app-office/libreoffice-3.3.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-office/libreoffice-3.3.2/temp/environment'. * S: '/var/tmp/portage/app-office/libreoffice-3.3.2/work/libreoffice-build-3.3.2.2'
disregard previous comment. Don't know why, but xorg cut&paste didn't reported the second hunk header lines. Sorry for the noise, compiling right now.
Patch works for me, Thanks!
*** Bug 368241 has been marked as a duplicate of this bug. ***
Fix is in portage now, thanks @Shannon for the patch! Closing
*** Bug 368235 has been marked as a duplicate of this bug. ***
*** Bug 368577 has been marked as a duplicate of this bug. ***