Compiling libreoffice fails with error message: [CXX] connectivity/source/drivers/mork/MPreparedStatement.cxx S=/var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2 && I=$S/instdir && W=$S/workdir && mkdir -p $W/CxxObject/connectivity/source/drivers/mork/ $W/Dep/CxxObject/connectivity/source/drivers/mork/ && cd /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2 && aarch64-unknown-linux-gnu-g++ -DAARCH64 -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DLINUX -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -D_PTHREADS -D_REENTRANT -DLO_DLLIMPLEMENTATION_MORK -fvisibility=hidden -Wall -Wno-missing-braces -Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunreachable-code -Wunused-macros -finput-charset=UTF-8 -fmessage-length=0 -fno-common -pipe -Wno-maybe-uninitialized -Wduplicated-cond -Wlogical-op -Wshift-overflow=2 -Wunused-const-variable=1 -fvisibility-inlines-hidden -fstack-protector-strong -fPIC -Wshadow -Woverloaded-virtual -std=gnu++17 -pthread -DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs -march=armv8-a+crypto+crc+simd -mlittle-endian -mabi=lp64 -mtune=cortex-a57 -Os -pipe -DLIBO_INTERNAL_ONLY -c $S/connectivity/source/drivers/mork/MPreparedStatement.cxx -o $W/CxxObject/connectivity/source/drivers/mork/MPreparedStatement.o -I$S/connectivity/inc -I$S/connectivity/source/inc -I$S/include -I$S/config_host -I$W/YaccTarget/connectivity/source/parse -I$W/CustomTarget/officecfg/registry -I/usr/include -I$W/UnoApiHeadersTarget/udkapi/normal -I$W/UnoApiHeadersTarget/offapi/normal [CXX] connectivity/source/drivers/mork/MQueryHelper.cxx /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx: In constructor ‘connectivity::mysqlc::OPreparedStatement::OPreparedStatement(connectivity::mysqlc::OConnection*, MYSQL_STMT*)’: /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx:74:54: error: cannot convert ‘connectivity::mysqlc::my_bool* {aka bool*}’ to ‘my_bool* {aka char*}’ in assignment m_binds.back().is_null = &m_bindMetas.back().is_null; ^~~~~~~ distcc[4507] ERROR: compile /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx on 127.0.0.1:3632 failed distcc[4507] (dcc_build_somewhere) Warning: remote compilation of '/var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx' failed, retrying locally distcc[4507] Warning: failed to distribute /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx to 127.0.0.1:3632, running locally instead distcc[4555] ERROR: compile /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx on localhost failed make[1]: *** [/var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/solenv/gbuild/LinkTarget.mk:293: /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CxxObject/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.o] Error 1 make[1]: *** Waiting for unfinished jobs.... /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx: In member function ‘bool connectivity::mysqlc::OPreparedResultSet::fetchResult()’: /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx:118:46: error: cannot convert ‘connectivity::mysqlc::my_bool* {aka bool*}’ to ‘my_bool* {aka char*}’ in assignment m_aData[i].is_null = &m_aMetaData[i].is_null; ^~~~~~~ /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx:121:44: error: cannot convert ‘connectivity::mysqlc::my_bool* {aka bool*}’ to ‘my_bool* {aka char*}’ in assignment m_aData[i].error = &m_aMetaData[i].error; ^~~~~ distcc[4507] ERROR: compile /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx on localhost failed make[1]: *** [/var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/solenv/gbuild/LinkTarget.mk:291: /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CxxObject/connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.o] Error 1 rm /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/sent.brk /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_nodash.brk /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/count_word.txt /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_he.brk /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_hu.brk /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/edit_word.txt /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/dict_word.txt /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/edit_word_hu.brk /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_nodash.txt /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/char_in.txt /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/char.brk /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_hu.txt /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/char.txt /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/edit_word_he.txt /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/sent.txt /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/line.brk /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_he.txt /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/edit_word_hu.txt /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/dict_word.brk /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/count_word.brk /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/edit_word.brk /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_prepostdash.brk /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/char_in.brk /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_prepostdash.txt /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/edit_word_he.brk /var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2/workdir/CustomTarget/i18npool/breakiterator/line.txt make[1]: Leaving directory '/var/tmp/portage/app-office/libreoffice-6.3.2.2/work/libreoffice-6.3.2.2' make: *** [Makefile:282: build] Error 2 * ERROR: app-office/libreoffice-6.3.2.2::gentoo failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 125: Called src_compile * environment, line 5450: Called die * The specific snippet of code: * make ${target} || die * * If you need support, post the output of `emerge --info '=app-office/libreoffice-6.3.2.2::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-office/libreoffice-6.3.2.2::gentoo'`. Reproducible: Always Steps to Reproduce: 1. Use up-to-date arm64 installation fully compiled with gcc-7.3.0-r6 2. Try to emerge libreoffice Actual Results: Compiling fails with errors above GENTOO_VM= CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm" JAVACFLAGS="" COMPILER="" emerge --info =libreoffice-6.3.2.2 fatal: not a git repository: /var/db/repos/switch_overlay/../../.git/modules/overlays/switch_overlay fatal: not a git repository: /var/db/repos/switch_binhost_overlay/../../.git/modules/overlays/switch_binhost_overlay Portage 2.3.76 (python 3.6.5-final-0, !../../var/db/repos/switch_binhost_overlay/profiles/nintendo_switch_binhost/17.0_desktop, gcc-7.3.0, glibc-2.29-r2, 4.14.143-gentoo-vmware aarch64) ================================================================= System Settings ================================================================= System uname: Linux-4.14.143-gentoo-vmware-aarch64-with-gentoo-2.6 KiB Mem: 4028480 total, 1639632 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Fri, 25 Oct 2019 05:00:01 +0000 Head commit of repository gentoo: 344c27966c29d0a51f62b319fb525f05a9f4a439 sh bash 4.4_p23-r1 ld GNU ld (Gentoo 2.32 p2) 2.32.0 distcc 3.3.3 aarch64-unknown-linux-gnu [enabled] app-shells/bash: 4.4_p23-r1::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.28.2-r1::gentoo dev-lang/python: 2.7.15::gentoo, 3.6.5::gentoo dev-util/cmake: 3.14.6::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.41.2::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.15.1-r2::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.32-r1::gentoo sys-devel/gcc: 7.3.0-r6::gentoo sys-devel/gcc-config: 2.0::gentoo sys-devel/libtool: 2.4.6-r3::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers) sys-libs/glibc: 2.29-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes switch location: /var/db/repos/switch_overlay sync-type: git sync-uri: https://gitlab.com/bell07/gentoo-switch_overlay masters: gentoo switch_binhost location: /var/db/repos/switch_binhost_overlay sync-type: git sync-uri: https://gitlab.com/bell07/gentoo-switch_binhost_overlay masters: gentoo ACCEPT_KEYWORDS="arm64" ACCEPT_LICENSE="@FREE linux-firmware linux-fw-redistributable no-source-code bh-luxi" CBUILD="aarch64-unknown-linux-gnu" CFLAGS="-march=armv8-a+crypto+crc+simd -mlittle-endian -mabi=lp64 -mtune=cortex-a57 -Os -pipe" CHOST="aarch64-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=armv8-a+crypto+crc+simd -mlittle-endian -mabi=lp64 -mtune=cortex-a57 -Os -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="de_DE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j6" PKGDIR="/usr/portage/packages" PORTAGE_BINHOST="http://bell.7u.org/pub/gentoo-switch/packages/" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi alsa arm64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx dbus dri dts dvdr emboss encode exif fam flac fortran gdbm gif glamor gtk hid-joycon iconv icu ipv6 jpeg lcms ldap libnotify libtirpc mad mng mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline seccomp spell split-usr ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ADA_TARGET="gnat_2018" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 aes sha1 sha2 crc32 v4 v5 v6 v7 v8 thumb2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="fbdev dummy v4l" 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: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
*** This bug has been marked as a duplicate of bug 692422 ***
The issue appears with libreoffice-6.3.2.2-mysql-connector-c-8.patch is already applied. Either the #692422 is not fully solved or this is an other issue. dev-db/mysql-connector-c or dev-db/mysql-connector-c++ is not installed on my setup.
Confirming. Also tried patch from bug #692422, but as Alexander already pointed out; patch is already applied when looking at source so this is evidently not a duplicate. Don't forget to vote if you've been hit by this :)
Same problem just now. amd64
Same, but it's odd that this only cropped up when doing a rebuild (changing my PYTHON_TARGETS). Probably I'll just replace mariadb with postgres.
I have exactly the same problem. Can be solved using USE="-mariadb". Architecture - ~x86
https://gerrit.libreoffice.org/plugins/gitiles/core/+/d8f11761d89b3279e547f789d43d47c85a3ddba1 https://gerrit.libreoffice.org/plugins/gitiles/core/+/d8f11761d89b3279e547f789d43d47c85a3ddba1%5E%21/
The patch suggested in comment 7 works. Compilation of app-office/libreoffice-6.3.2.2[mariadb] was successful
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #7) > https://gerrit.libreoffice.org/plugins/gitiles/core/+/ > d8f11761d89b3279e547f789d43d47c85a3ddba1 > https://gerrit.libreoffice.org/plugins/gitiles/core/+/ > d8f11761d89b3279e547f789d43d47c85a3ddba1%5E%21/ Thanks, works like a charm :)
*** Bug 698574 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=421194839bf05e5af9c02f1a6ec343ba1f575374 commit 421194839bf05e5af9c02f1a6ec343ba1f575374 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2019-10-29 17:29:17 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2019-10-29 17:36:49 +0000 app-office/libreoffice: 6.3.3.2 version bump Closes: https://bugs.gentoo.org/698504 Package-Manager: Portage-2.3.76, Repoman-2.3.16 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> app-office/libreoffice/Manifest | 2 + .../libreoffice-6.3.3.2-mysql-connector-c-8.patch | 45 ++ app-office/libreoffice/libreoffice-6.3.3.2.ebuild | 553 +++++++++++++++++++++ 3 files changed, 600 insertions(+)