[CXX] mysqlc/source/mysqlc_resultset.cxx In file included from /usr/include/cppconn/variant.h:38:0, from /usr/include/cppconn/connection.h:35, from /usr/include/cppconn/driver.h:30, from /chroot/largetmp/portage/app-office/libreoffice-6.1.4.2/work/libreoffice-6.1.4.2/mysqlc/source/mysqlc_connection.hxx:39, from /chroot/largetmp/portage/app-office/libreoffice-6.1.4.2/work/libreoffice-6.1.4.2/mysqlc/source/mysqlc_driver.hxx:32, from /chroot/largetmp/portage/app-office/libreoffice-6.1.4.2/work/libreoffice-6.1.4.2/mysqlc/source/mysqlc_driver.cxx:26: /usr/include/cppconn/exception.h:98:2: error: ISO C++1z does not allow dynamic exception specifications MEMORY_ALLOC_OPERATORS(SQLException) ^ /usr/include/cppconn/exception.h:98:2: error: ISO C++1z does not allow dynamic exception specifications MEMORY_ALLOC_OPERATORS(SQLException) ^ In file included from /usr/include/cppconn/variant.h:38:0, from /usr/include/cppconn/connection.h:35, from /usr/include/cppconn/driver.h:30, from /chroot/largetmp/portage/app-office/libreoffice-6.1.4.2/work/libreoffice-6.1.4.2/mysqlc/source/mysqlc_connection.hxx:39, from /chroot/largetmp/portage/app-office/libreoffice-6.1.4.2/work/libreoffice-6.1.4.2/mysqlc/source/mysqlc_connection.cxx:21: /usr/include/cppconn/exception.h:98:2: error: ISO C++1z does not allow dynamic exception specifications MEMORY_ALLOC_OPERATORS(SQLException) ^ /usr/include/cppconn/exception.h:98:2: error: ISO C++1z does not allow dynamic exception specifications MEMORY_ALLOC_OPERATORS(SQLException) ^ In file included from /usr/include/cppconn/variant.h:38:0, from /usr/include/cppconn/connection.h:35, from /usr/include/cppconn/driver.h:30, from /chroot/largetmp/portage/app-office/libreoffice-6.1.4.2/work/libreoffice-6.1.4.2/mysqlc/source/mysqlc_connection.hxx:39, from /chroot/largetmp/portage/app-office/libreoffice-6.1.4.2/work/libreoffice-6.1.4.2/mysqlc/source/mysqlc_driver.hxx:32, from /chroot/largetmp/portage/app-office/libreoffice-6.1.4.2/work/libreoffice-6.1.4.2/mysqlc/source/mysqlc_services.cxx:20: /usr/include/cppconn/exception.h:98:2: error: ISO C++1z does not allow dynamic exception specifications MEMORY_ALLOC_OPERATORS(SQLException) ^ /usr/include/cppconn/exception.h:98:2: error: ISO C++1z does not allow dynamic exception specifications MEMORY_ALLOC_OPERATORS(SQLException) ^ S=/chroot/largetmp/portage/app-office/libreoffice-6.1.4.2/work/libreoffice-6.1.4.2 && I=$S/instdir && W=$S/workdir && mkdir -p $W/CxxObject/mysqlc/source/ $W/Dep/CxxObject/mysqlc/source/ && cd /chroot/largetmp/portage/app-office/libreoffice-6.1.4.2/work/libreoffice-6.1.4.2 && x86_64-pc-linux-gnu-g++ -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DLINUX -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT -DSYSTEM_MYSQL_CPPCONN -DCPPDBC_EXPORTS -DCPPCONN_LIB_BUILD -DMARIADBC_VERSION_MAJOR=1 -DMARIADBC_VERSION_MINOR=0 -DMARIADBC_VERSION_MICRO=2 -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 -Wduplicated-cond -Wlogical-op -Wshift-overflow=2 -Wunused-const-variable=1 -fvisibility-inlines-hidden -fstack-protector-strong -fPIC -Wshadow -Woverloaded-virtual -std=gnu++17 -DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs -march=native -O2 -pipe -mno-avx -Wno-undef -c $S/mysqlc/source/mysqlc_resultset.cxx -o $W/CxxObject/mysqlc/source/mysqlc_resultset.o -I$S/include -I/opt/icedtea-bin-3.9.0/include -I/opt/icedtea-bin-3.9.0/include/linux -I$S/config_host -I/usr/include -I$W/UnoApiHeadersTarget/udkapi/normal -I$W/UnoApiHeadersTarget/offapi/normal [CXX] mysqlc/source/mysqlc_resultsetmetadata.cxx make[1]: *** [/chroot/largetmp/portage/app-office/libreoffice-6.1.4.2/work/libreoffice-6.1.4.2/solenv/gbuild/LinkTarget.mk:293: /chroot/largetmp/portage/app-office/libreoffice-6.1.4.2/work/libreoffice-6.1.4.2/workdir/CxxObject/mysqlc/source/mysqlc_driver.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: *** [/chroot/largetmp/portage/app-office/libreoffice-6.1.4.2/work/libreoffice-6.1.4.2/solenv/gbuild/LinkTarget.mk:293: /chroot/largetmp/portage/app-office/libreoffice-6.1.4.2/work/libreoffice-6.1.4.2/workdir/CxxObject/mysqlc/source/mysqlc_services.o] Error 1 make[1]: *** [/chroot/largetmp/portage/app-office/libreoffice-6.1.4.2/work/libreoffice-6.1.4.2/solenv/gbuild/LinkTarget.mk:293: /chroot/largetmp/portage/app-office/libreoffice-6.1.4.2/work/libreoffice-6.1.4.2/workdir/CxxObject/mysqlc/source/mysqlc_connection.o] Error 1 In file included from /chroot/largetmp/portage/app-office/libreoffice-6.1.4.2/work/libreoffice-6.1.4.2/mysqlc/source/mysqlc_general.hxx:32:0, from /chroot/largetmp/portage/app-office/libreoffice-6.1.4.2/work/libreoffice-6.1.4.2/mysqlc/source/mysqlc_resultset.cxx:21: /usr/include/cppconn/exception.h:98:2: error: ISO C++1z does not allow dynamic exception specifications MEMORY_ALLOC_OPERATORS(SQLException) ^ /usr/include/cppconn/exception.h:98:2: error: ISO C++1z does not allow dynamic exception specifications MEMORY_ALLOC_OPERATORS(SQLException) ^ make[1]: *** [/chroot/largetmp/portage/app-office/libreoffice-6.1.4.2/work/libreoffice-6.1.4.2/solenv/gbuild/LinkTarget.mk:293: /chroot/largetmp/portage/app-office/libreoffice-6.1.4.2/work/libreoffice-6.1.4.2/workdir/CxxObject/mysqlc/source/mysqlc_resultset.o] Error 1
Portage 2.3.53 (python 3.6.5-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-7.3.0, glibc-2.27-r6, 4.9.144-gentoo x86_64) ================================================================= System uname: Linux-4.9.144-gentoo-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.6 KiB Mem: 8055600 total, 5164588 free KiB Swap: 16000736 total, 14289320 free Timestamp of repository gentoo: Thu, 03 Jan 2019 08:30:01 +0000 Head commit of repository gentoo: 20d02b9496e7ac8a17bd533740c09b579c6a9405 Head commit of repository dilfridge: 1b6897fb8024ca5b9a7b1abdc45cc78fc7919d6a sh bash 4.4_p12 ld GNU ld (Gentoo 2.30 p5) 2.30.0 app-shells/bash: 4.4_p12::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.28.0::gentoo dev-lang/python: 2.7.15::gentoo, 3.6.5::gentoo dev-util/cmake: 3.9.6::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.38.3-r1::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.11.6-r3::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.30-r4::gentoo sys-devel/gcc: 7.3.0-r3::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.14-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.27-r6::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 sync-rsync-verify-jobs: 1 dilfridge location: /usr/local/portage/dilfridge sync-type: git sync-uri: git://git.gentoo.org/dev/dilfridge.git masters: gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -g" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe -g" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="" 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 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs compress-build-logs compressdebug config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="de_DE.UTF-8" LDFLAGS="-Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu" LINGUAS="de en fr" MAKEOPTS="-j5" PKGDIR="/usr/portage/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="64bit X a52 aac acpi activities alsa amd64 audiofile bash-completion berkdb binfilter bluetooth branding bzip2 cairo cdda cdparanoia cdr cli clucene compat crypt css cups curl cvs cxx dbus declarative dri dts dvd dvdr dvipdfm ebook elogind encode exif extra fam ffmpeg flac fontconfig fortran gcj gd gdbm gif git glamor google gpm graphics gstreamer gtk hdaps hybrid iconv ipv6 java javascript jpeg kde kdepim kipi kpathsea kwallet lame latex3 lcms ldap libnotify libtirpc mad marble mmx mng mp3 mp4 mpeg multilib mysql ncurses nls nptl nsplugin odk ogg openexr opengl openmp opus pam pango pcre pdf perl phonon pkcs11 plasma png policykit ppds publishers python qml qt5 raw readline resolvconf romio science sdk sdl seccomp semantic-desktop smartcard spell sql sqlite sse sse2 sse3 sse4 sse4a ssl startup-notification svg tcpd theora tiff truetype udev udisks unicode upower usb v4l v4l2 vdpau vmware-tools vorbis webdav webkit widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvfb xvid zlib" ABI_X86="64" 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" 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 plan sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics wacom" KERNEL="linux" L10N="de en fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="aarch64 arm i386 ppc ppc64 riscv32 riscv64 x86_64" QEMU_USER_TARGETS="aarch64 arm i386 ppc ppc64 riscv32 riscv64 x86_64" RUBY_TARGETS="ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="intel vesa" 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, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
porto ~ # equery belongs /usr/include/cppconn/exception.h * Searching for /usr/include/cppconn/exception.h ... dev-db/mysql-connector-c++-1.1.9 (/usr/include/cppconn/exception.h)
Created attachment 559722 [details] build log
This problem in exception.h looks to be fixed in at least dev-db/mysql-connector-c++-8.0.11. USE="legacy" might be needed.
The relevant difference is: --- mysql-connector-c++-1.1.9/cppconn/exception.h +++ mysql-connector-c++-8.0.11-src/jdbc/cppconn/exception.h @@ -35,15 +41,26 @@ namespace sql { +#if (__cplusplus < 201103L) +#define MEMORY_ALLOC_OPERATORS(Class) \ + void* operator new(size_t size) throw (std::bad_alloc) { return ::operator new(size); } \ + void* operator new(size_t, void*) throw(); \ + void* operator new(size_t, const std::nothrow_t&) throw(); \ + void* operator new[](size_t) throw (std::bad_alloc); \ + void* operator new[](size_t, void*) throw(); \ + void* operator new[](size_t, const std::nothrow_t&) throw(); \ + void* operator new(size_t N, std::allocator<Class>&); +#else #define MEMORY_ALLOC_OPERATORS(Class) \ - void* operator new(size_t size) throw (std::bad_alloc) { return ::operator new(size); } \ - void* operator new(size_t, void*) throw(); \ - void* operator new(size_t, const std::nothrow_t&) throw(); \ - void* operator new[](size_t) throw (std::bad_alloc); \ - void* operator new[](size_t, void*) throw(); \ - void* operator new[](size_t, const std::nothrow_t&) throw(); \ - void* operator new(size_t N, std::allocator<Class>&); + void* operator new(size_t size){ return ::operator new(size); } \ + void* operator new(size_t, void*) noexcept; \ + void* operator new(size_t, const std::nothrow_t&) noexcept; \ + void* operator new[](size_t); \ + void* operator new[](size_t, void*) noexcept; \ + void* operator new[](size_t, const std::nothrow_t&) noexcept; \ + void* operator new(size_t N, std::allocator<Class>&); +#endif #ifdef _WIN32 #pragma warning (disable : 4290) //warning C4290: C++ exception specification ignored except to indicate a function is not __declspec(nothrow) Backporting of this change might be faster solution than unmasking dev-db/mysql-connector-c++-8...
This change is also included in dev-db/mysql-connector-c++-1.1.11.
*** Bug 674574 has been marked as a duplicate of this bug. ***
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98a62031a548747cb66a8f6a5b24dc065aa8d8ac commit 98a62031a548747cb66a8f6a5b24dc065aa8d8ac Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2019-01-06 19:49:20 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2019-01-06 19:50:24 +0000 dev-db/mysql-connector-c++: bump to v1.1.11 & v8.0.13 Bug: https://bugs.gentoo.org/674450 Package-Manager: Portage-2.3.53, Repoman-2.3.12 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> dev-db/mysql-connector-c++/Manifest | 2 + ...ysql-connector-c++-1.1.11-fix-cpp-linking.patch | 15 + .../mysql-connector-c++-1.1.11-fix-mariadb.patch | 43 +++ .../mysql-connector-c++-8.0.13-fix-build.patch | 329 +++++++++++++++++++++ .../mysql-connector-c++-1.1.11.ebuild | 63 ++++ .../mysql-connector-c++-8.0.13.ebuild | 40 +++ 6 files changed, 492 insertions(+)
Do we know which USE flag is triggering this? I am unable to reproduce this on x86 at the moment (thought USE=mysql would trigger this because this will pull in dev-db/mysql-connector-c++ but with =dev-db/mysql-connector-c++-1.1.9 installed, =app-office/libreoffice-6.1.4.2 didn't fail compilation). I'll add stable USE flag for now... thought we have to fast stabilize =dev-db/mysql-connector-c++-1.1.11...
Apparently version of GCC is also relevant. (GCC >=7 prints warning in C++ 2014 mode and error in C++ 2017 mode.) (Clang 7 prints nothing in C++ 2014 mode and error in C++ 2017 mode.) $ g++-6.5.0 -c -x c++ -std=gnu++14 - <<< '#include "mysql-connector-c++-1.1.9/cppconn/exception.h"' $ g++-6.5.0 -c -x c++ -std=gnu++17 - <<< '#include "mysql-connector-c++-1.1.9/cppconn/exception.h"' $ g++-7.4.0 -c -x c++ -std=gnu++14 - <<< '#include "mysql-connector-c++-1.1.9/cppconn/exception.h"' In file included from <stdin>:1:0: mysql-connector-c++-1.1.9/cppconn/exception.h:39:34: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] void* operator new(size_t size) throw (std::bad_alloc) { return ::operator new(size); } \ ^ mysql-connector-c++-1.1.9/cppconn/exception.h:98:2: note: in expansion of macro ‘MEMORY_ALLOC_OPERATORS’ MEMORY_ALLOC_OPERATORS(SQLException) ^~~~~~~~~~~~~~~~~~~~~~ mysql-connector-c++-1.1.9/cppconn/exception.h:42:31: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] void* operator new[](size_t) throw (std::bad_alloc); \ ^ mysql-connector-c++-1.1.9/cppconn/exception.h:98:2: note: in expansion of macro ‘MEMORY_ALLOC_OPERATORS’ MEMORY_ALLOC_OPERATORS(SQLException) ^~~~~~~~~~~~~~~~~~~~~~ $ g++-7.4.0 -c -x c++ -std=gnu++17 - <<< '#include "mysql-connector-c++-1.1.9/cppconn/exception.h"' In file included from <stdin>:1:0: mysql-connector-c++-1.1.9/cppconn/exception.h:39:34: error: ISO C++1z does not allow dynamic exception specifications void* operator new(size_t size) throw (std::bad_alloc) { return ::operator new(size); } \ ^ mysql-connector-c++-1.1.9/cppconn/exception.h:98:2: note: in expansion of macro ‘MEMORY_ALLOC_OPERATORS’ MEMORY_ALLOC_OPERATORS(SQLException) ^~~~~~~~~~~~~~~~~~~~~~ mysql-connector-c++-1.1.9/cppconn/exception.h:42:31: error: ISO C++1z does not allow dynamic exception specifications void* operator new[](size_t) throw (std::bad_alloc); \ ^ mysql-connector-c++-1.1.9/cppconn/exception.h:98:2: note: in expansion of macro ‘MEMORY_ALLOC_OPERATORS’ MEMORY_ALLOC_OPERATORS(SQLException) ^~~~~~~~~~~~~~~~~~~~~~ $ g++-8.2.0 -c -x c++ -std=gnu++14 - <<< '#include "mysql-connector-c++-1.1.9/cppconn/exception.h"' In file included from <stdin>:1: mysql-connector-c++-1.1.9/cppconn/exception.h:39:34: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] void* operator new(size_t size) throw (std::bad_alloc) { return ::operator new(size); } \ ^~~~~ mysql-connector-c++-1.1.9/cppconn/exception.h:98:2: note: in expansion of macro ‘MEMORY_ALLOC_OPERATORS’ MEMORY_ALLOC_OPERATORS(SQLException) ^~~~~~~~~~~~~~~~~~~~~~ mysql-connector-c++-1.1.9/cppconn/exception.h:42:31: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] void* operator new[](size_t) throw (std::bad_alloc); \ ^~~~~ mysql-connector-c++-1.1.9/cppconn/exception.h:98:2: note: in expansion of macro ‘MEMORY_ALLOC_OPERATORS’ MEMORY_ALLOC_OPERATORS(SQLException) ^~~~~~~~~~~~~~~~~~~~~~ $ g++-8.2.0 -c -x c++ -std=gnu++17 - <<< '#include "mysql-connector-c++-1.1.9/cppconn/exception.h"' In file included from <stdin>:1: mysql-connector-c++-1.1.9/cppconn/exception.h:39:34: error: ISO C++17 does not allow dynamic exception specifications void* operator new(size_t size) throw (std::bad_alloc) { return ::operator new(size); } \ ^~~~~ mysql-connector-c++-1.1.9/cppconn/exception.h:98:2: note: in expansion of macro ‘MEMORY_ALLOC_OPERATORS’ MEMORY_ALLOC_OPERATORS(SQLException) ^~~~~~~~~~~~~~~~~~~~~~ mysql-connector-c++-1.1.9/cppconn/exception.h:42:31: error: ISO C++17 does not allow dynamic exception specifications void* operator new[](size_t) throw (std::bad_alloc); \ ^~~~~ mysql-connector-c++-1.1.9/cppconn/exception.h:98:2: note: in expansion of macro ‘MEMORY_ALLOC_OPERATORS’ MEMORY_ALLOC_OPERATORS(SQLException) ^~~~~~~~~~~~~~~~~~~~~~ $ g++-6.5.0 -c -x c++ -std=gnu++14 - <<< '#include "mysql-connector-c++-1.1.11/cppconn/exception.h"' $ g++-6.5.0 -c -x c++ -std=gnu++17 - <<< '#include "mysql-connector-c++-1.1.11/cppconn/exception.h"' $ g++-7.4.0 -c -x c++ -std=gnu++14 - <<< '#include "mysql-connector-c++-1.1.11/cppconn/exception.h"' $ g++-7.4.0 -c -x c++ -std=gnu++17 - <<< '#include "mysql-connector-c++-1.1.11/cppconn/exception.h"' $ g++-8.2.0 -c -x c++ -std=gnu++14 - <<< '#include "mysql-connector-c++-1.1.11/cppconn/exception.h"' $ g++-8.2.0 -c -x c++ -std=gnu++17 - <<< '#include "mysql-connector-c++-1.1.11/cppconn/exception.h"' $ clang++-7 -c -x c++ -std=gnu++14 - <<< '#include "mysql-connector-c++-1.1.9/cppconn/exception.h"' $ clang++-7 -c -x c++ -std=gnu++17 - <<< '#include "mysql-connector-c++-1.1.9/cppconn/exception.h"' In file included from <stdin>:1: ./mysql-connector-c++-1.1.9/cppconn/exception.h:98:2: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec] MEMORY_ALLOC_OPERATORS(SQLException) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mysql-connector-c++-1.1.9/cppconn/exception.h:39:34: note: expanded from macro 'MEMORY_ALLOC_OPERATORS' void* operator new(size_t size) throw (std::bad_alloc) { return ::operator new(size); } \ ^~~~~~~~~~~~~~~~~~~~~~ ./mysql-connector-c++-1.1.9/cppconn/exception.h:98:2: note: use 'noexcept(false)' instead ./mysql-connector-c++-1.1.9/cppconn/exception.h:39:34: note: expanded from macro 'MEMORY_ALLOC_OPERATORS' void* operator new(size_t size) throw (std::bad_alloc) { return ::operator new(size); } \ ^ ./mysql-connector-c++-1.1.9/cppconn/exception.h:98:2: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec] MEMORY_ALLOC_OPERATORS(SQLException) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./mysql-connector-c++-1.1.9/cppconn/exception.h:42:31: note: expanded from macro 'MEMORY_ALLOC_OPERATORS' void* operator new[](size_t) throw (std::bad_alloc); \ ^~~~~~~~~~~~~~~~~~~~~~ ./mysql-connector-c++-1.1.9/cppconn/exception.h:98:2: note: use 'noexcept(false)' instead ./mysql-connector-c++-1.1.9/cppconn/exception.h:42:31: note: expanded from macro 'MEMORY_ALLOC_OPERATORS' void* operator new[](size_t) throw (std::bad_alloc); \ ^ 2 errors generated. $ clang++-7 -c -x c++ -std=gnu++14 - <<< '#include "mysql-connector-c++-1.1.11/cppconn/exception.h"' $ clang++-7 -c -x c++ -std=gnu++17 - <<< '#include "mysql-connector-c++-1.1.11/cppconn/exception.h"' $
*** Bug 678282 has been marked as a duplicate of this bug. ***
*** Bug 678290 has been marked as a duplicate of this bug. ***
This problem is also visible for app-office/libreoffice-6.1.5.2 with stable dev-db/mysql-connector-c++-1.1.9 which is ATM after https://bugs.gentoo.org/676956
with =dev-db/mysql-connector-c++-1.1.12 ~amd64 libreoffice compiles without failure
That is what this bug is about.
yes, I know. Just thought perhaps the info helps to decide to stabilize dev-db/mysql-connector-c++-1.1.1?
See bug 678172 that this depends on.
ok, my fault, should have read more. Sorry for spaming
*** Bug 678356 has been marked as a duplicate of this bug. ***
*** Bug 678368 has been marked as a duplicate of this bug. ***
1.1.11 was stabilised, so we can declare this fixed now.