dev-qt/qtsql-5.15.2-r10 emerge fails with the following error. * ERROR: dev-qt/qtsql-5.15.2-r10::gentoo failed (configure phase): * configure failed * * Call stack: * ebuild.sh, line 127: Called src_configure * environment, line 2224: Called qt5-build_src_configure * environment, line 1792: Called qt5_base_configure * environment, line 1886: Called die * The specific snippet of code: * "${S}"/configure "${conf[@]}" || die "configure failed"; * * If you need support, post the output of `emerge --info '=dev-qt/qtsql-5.15.2-r10::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-qt/qtsql-5.15.2-r10::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-qt/qtsql-5.15.2-r10/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-qt/qtsql-5.15.2-r10/temp/environment'. * Working directory: '/var/tmp/portage/dev-qt/qtsql-5.15.2-r10/work/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619_build' * S: '/var/tmp/portage/dev-qt/qtsql-5.15.2-r10/work/qtbase-c2ea67ecefe049f6e9bb8f910d7f9c60319d8619' Reproducible: Always Portage 3.0.22 (python 3.9.6-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-10.3.0, glibc-2.33-r7, 5.13.8-gentoo x86_64) ================================================================= System uname: Linux-5.13.8-gentoo-x86_64-Intel-R-_Core-TM-_i7-5820K_CPU_@_3.30GHz-with-glibc2.33 KiB Mem: 65786780 total, 48063664 free KiB Swap: 101073916 total, 101073916 free Timestamp of repository gentoo: Sat, 28 Aug 2021 13:30:01 +0000 Head commit of repository gentoo: b37cf38b6051bd3148a7de55981ec84afd096ccb sh bash 5.1_p8 ld GNU ld (Gentoo 2.35.2 p1) 2.35.2 app-shells/bash: 5.1_p8::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.0-r2::gentoo dev-lang/python: 2.7.18_p11::gentoo, 3.7.10_p6::gentoo, 3.8.11::gentoo, 3.9.6_p1::gentoo, 3.10.0_rc1_p1::gentoo dev-lang/rust: 1.54.0::gentoo dev-lang/rust-bin: 1.48.0::gentoo dev-util/cmake: 3.21.1::gentoo sys-apps/baselayout: 2.7-r3::gentoo sys-apps/openrc: 0.43.4::gentoo sys-apps/sandbox: 2.24::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.15.1-r2::gentoo, 1.16.4::gentoo sys-devel/binutils: 2.32-r1::gentoo, 2.33.1-r1::gentoo, 2.34-r2::gentoo, 2.35.2::gentoo, 2.36.1-r2::gentoo sys-devel/gcc: 8.4.0-r1::gentoo, 9.3.0-r1::gentoo, 10.3.0-r2::gentoo, 11.2.0::gentoo sys-devel/gcc-config: 2.4::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.13::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r7::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-max-age: 24 sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes LocalOverlay location: /usr/local/portage masters: gentoo crossdev location: /usr/local/portage-crossdev masters: gentoo priority: 10 dlang location: /var/lib/layman/dlang masters: gentoo priority: 50 guru location: /var/lib/layman/guru masters: gentoo priority: 50 science location: /var/lib/layman/science masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64 ~x86" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb" 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.4/ext-active/ /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/cli-php8.0/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="-O2 -pipe -march=native" DISTDIR="/usr/portage/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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 -march=native" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nostrip parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -march=native" GENTOO_MIRRORS="http://gentoo.mirrors.ovh.net/gentoo-distfiles/ http://gentoo.mirrors.tds.net/gentoo http://mirror.leaseweb.com/gentoo/ http://gentoo.mirrors.tera-byte.com/ http://gentoo.gossamerhost.com" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en_US" MAKEOPTS="-j13" 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="X a52 aac acl acpi activities alsa amd64 bindist bluetooth bluray branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr elogind emboss encode exif ffmpeg flac fontconfig fortran fuse gdbm gif gpm gssapi gstreamer gtk gui iconv icu ieee1394 ipv6 javafx jpeg kde kerberos kipi kwallet latex lcms libglvnd libnotify libtirpc lto mad mediacenter mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf pgo plasma plotutils png policykit ppds pulseaudio python qml qt3support qt5 readline scanner sdk sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg taglib tcpd tiff truetype udev udisks unicode upower usb v4l vcd vorbis wallpapers widgets winbind wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64 32" ADA_TARGET="gnat_2018" 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 sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Created attachment 736453 [details] build.log
Not reproducible here. > /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libmysqlclient.so: undefined reference to `std::__throw_bad_array_new_length()@GLIBCXX_3.4.29' > collect2: error: ld returned 1 exit status Looks like a local problem to me. However, please try again with this user patch applied to dev-qt/qtsql: https://raw.githubusercontent.com/gentoo/qt/3303a4ece8e48a462cdfc6bdef70ddecf635c5fd/dev-qt/qtsql/files/qtsql-5.15.2-mysql-use-pkgconfig.patch
Still fails with the same error after patching. I am not sure what kind of "local problem" I should be looking for. Could this have something to do with the fact that mariadb is installed and mysql is a virtual package ? I have not had any issue in the past with this configuration.
Created attachment 736504 [details] bui Build log with suggested patch applied.
After switching to g++-11 emerge proceeds normally. I am not sure what the issue was but I recently had to switch to g++-10 to compile a package that failed with 11. So you were correct, this was some sort of local problem.
(In reply to Jean-Francois Ostiguy from comment #5) > After switching to g++-11 emerge proceeds normally. I am not sure what the > issue was but I recently had to switch to g++-10 to compile a package that > failed with 11. So you were correct, this was some sort of local problem. It's because some things (in C++) on your system were built with GCC 11, and then GCC 10 couldn't understand some symbols. See https://wiki.gentoo.org/wiki/Upgrading_GCC#libstdc.2B.2B.so.6:_version_.60GLIBCXX_3.4.15.27_not_found.