Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 949720 - dev-db/mariadb-11.4.5 -- error: ‘mutex_owner’ was not declared in this scope
Summary: dev-db/mariadb-11.4.5 -- error: ‘mutex_owner’ was not declared in this scope
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-13 21:32 UTC by Gary E. Miller
Modified: 2025-03-05 21:49 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (dev-db:mariadb-11.4.5:20250213-211218.log,336.38 KB, text/plain)
2025-02-13 21:33 UTC, Gary E. Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gary E. Miller 2025-02-13 21:32:33 UTC
Fails to emerge.

FAILED: storage/innobase/CMakeFiles/innobase.dir/btr/btr0btr.cc.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DBTR_CUR_ADAPT -DBTR_CUR_HASH_ADAPT -DHAVE_CONFIG_H -DHAVE_FALLOC_PUNCH_HOLE_AND_KEEP_SIZE=1 -DHAVE_PMEM -DHAVE_URING -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE=1 -I/var/tmp/portage/dev-db/mariadb-11.4.5/work/mysql_build/include -I/var/tmp/portage/dev-db/mariadb-11.4.5/work/mysql/include/providers -I/var/tmp/portage/dev-db/mariadb-11.4.5/work/mysql/storage/innobase/include -I/var/tmp/portage/dev-db/mariadb-11.4.5/work/mysql/storage/innobase/handler -I/var/tmp/portage/dev-db/mariadb-11.4.5/work/mysql/libbinlogevents/include -I/var/tmp/portage/dev-db/mariadb-11.4.5/work/mysql/tpool -I/var/tmp/portage/dev-db/mariadb-11.4.5/work/mysql/include -I/var/tmp/portage/dev-db/mariadb-11.4.5/work/mysql/sql  -O2 -pipe -mtune=core-avx2 -felide-constructors -fno-strict-aliasing -pie -fPIC -fstack-protector --param=ssp-buffer-size=4 -Wconversion -Wno-sign-conversion  -fno-omit-frame-pointer -D_FORTIFY_SOURCE=2 -DDBUG_OFF -Wall -Wenum-compare -Wenum-conversion -Wextra -Wformat-security -Wmissing-braces -Wno-format-truncation -Wno-init-self -Wno-nonnull-compare -Wno-unused-parameter -Wnon-virtual-dtor -Woverloaded-virtual -Wvla -Wwrite-strings -std=gnu++11   -DHAVE_OPENSSL -DOPENSSL_API_COMPAT=0x10100000L  -fvisibility=hidden -MD -MT storage/innobase/CMakeFiles/innobase.dir/btr/btr0btr.cc.o -MF storage/innobase/CMakeFiles/innobase.dir/btr/btr0btr.cc.o.d -o storage/innobase/CMakeFiles/innobase.dir/btr/btr0btr.cc.o -c /var/tmp/portage/dev-db/mariadb-11.4.5/work/mysql/storage/innobase/btr/btr0btr.cc
In file included from /var/tmp/portage/dev-db/mariadb-11.4.5/work/mysql/tpool/tpool_structs.h:21,
                 from /var/tmp/portage/dev-db/mariadb-11.4.5/work/mysql/tpool/tpool.h:21,
                 from /var/tmp/portage/dev-db/mariadb-11.4.5/work/mysql/storage/innobase/include/os0file.h:40,
                 from /var/tmp/portage/dev-db/mariadb-11.4.5/work/mysql/storage/innobase/include/buf0dblwr.h:29,
                 from /var/tmp/portage/dev-db/mariadb-11.4.5/work/mysql/storage/innobase/include/fil0fil.h:36,
                 from /var/tmp/portage/dev-db/mariadb-11.4.5/work/mysql/storage/innobase/include/buf0buf.h:32,
                 from /var/tmp/portage/dev-db/mariadb-11.4.5/work/mysql/storage/innobase/include/dict0mem.h:45,
                 from /var/tmp/portage/dev-db/mariadb-11.4.5/work/mysql/storage/innobase/include/dict0dict.h:32,
                 from /var/tmp/portage/dev-db/mariadb-11.4.5/work/mysql/storage/innobase/include/btr0btr.h:30,
                 from /var/tmp/portage/dev-db/mariadb-11.4.5/work/mysql/storage/innobase/btr/btr0btr.cc:28:
/var/tmp/portage/dev-db/mariadb-11.4.5/work/mysql/storage/innobase/include/trx0trx.h: In member function ‘void trx_t::mutex_lock()’:
/var/tmp/portage/dev-db/mariadb-11.4.5/work/mysql/storage/innobase/include/trx0trx.h:674:13: error: ‘mutex_owner’ was not declared in this scope
  674 |     assert(!mutex_owner.exchange(pthread_self(),
      |             ^~~~~~~~~~~
/var/tmp/portage/dev-db/mariadb-11.4.5/work/mysql/storage/innobase/include/trx0trx.h: In member function ‘void trx_t::mutex_unlock()’:
/var/tmp/portage/dev-db/mariadb-11.4.5/work/mysql/storage/innobase/include/trx0trx.h:680:12: error: ‘mutex_owner’ was not declared in this scope
  680 |     assert(mutex_owner.exchange(0, std::memory_order_relaxed) ==
      |            ^~~~~~~~~~~


Reproducible: Always

Steps to Reproduce:
1. emerge -uDNa world
2.
3.
Actual Results:  
see above.

Expected Results:  
Success emerging.

backup ~ # emerge -pqv =dev-db/mariadb-11.4.5::gentoo
[ebuild  NS   ] dev-db/mariadb-11.4.5 [10.11.10] USE="backup debug extraengine oqgraph pam server xml -bindist -columnstore -cracklib -galera -innodb-lz4 -innodb-lzo -innodb-snappy -jdbc -jemalloc -kerberos -latin1 -mroonga -numa -odbc -perl -profiling -rocksdb -s3 (-selinux) -sphinx -sst-mariabackup -sst-rsync -static -systemd -systemtap -tcmalloc -test -yassl" 
[uninstall    ] dev-db/mariadb-10.11.10  USE="backup debug extraengine oqgraph pam server xml -bindist -columnstore -cracklib -galera -innodb-lz4 -innodb-lzo -innodb-snappy -jdbc -jemalloc -kerberos -latin1 -mroonga -numa -odbc -perl -profiling -rocksdb -s3 (-selinux) -sphinx -sst-mariabackup -sst-rsync -static -systemd -systemtap -tcmalloc -test -yassl" 
[blocks b     ] dev-db/mariadb:11.4 ("dev-db/mariadb:11.4" is soft blocking dev-db/mariadb-10.11.10)
[blocks b     ] dev-db/mariadb:10.11 ("dev-db/mariadb:10.11" is soft blocking dev-db/mariadb-11.4.5)


backup ~ # emerge --info '=dev-db/mariadb-11.4.5::gentoo'
Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/amd64/23.0/split-usr, gcc-14, glibc-2.40-r8, 6.13.1-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.13.1-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E3-1241_v3_@_3.50GHz-with-glibc2.40
KiB Mem:    16294548 total,   1712932 free
KiB Swap:   33554428 total,  33445360 free
Timestamp of repository gentoo: Thu, 13 Feb 2025 20:34:06 +0000
Head commit of repository gentoo: 3ac472a2230b8b88962463c91ba50075616fed67

Timestamp of repository brother-overlay: Tue, 17 Dec 2024 22:21:09 +0000
Head commit of repository brother-overlay: bea1e02298146559c0c3bde06de4d0f2528442f3

Timestamp of repository guru: Thu, 13 Feb 2025 10:03:28 +0000
Head commit of repository guru: 65f5c5753093fe4b5d275119a4d9f5649bd0d942

sh bash 5.2_p37
ld GNU ld (Gentoo 2.42 p6) 2.42.0
distcc[29517] (dcc_trace_version) distcc 3.4 x86_64-pc-linux-gnu; built Jun  2 2024 18:08:46 [disabled]
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.71-r7::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.30.6::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.6.1::gentoo
dev-lang/perl:             5.40.0-r1::gentoo
dev-lang/python:           2.7.18_p16-r2::gentoo, 3.11.11_p1::gentoo, 3.12.8_p1::gentoo, 3.13.1_p1::gentoo
dev-lang/rust-bin:         1.81.0-r100::gentoo, 1.82.0-r101::gentoo, 1.83.0-r1::gentoo
llvm-core/clang:           16.0.6::gentoo, 17.0.6::gentoo, 18.1.8-r6::gentoo, 19.1.7::gentoo
llvm-core/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo, 18.1.8-r6::gentoo, 19.1.7::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.55.1::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-devel/binutils:        2.42-r2::gentoo, 2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             14.2.1_p20241221::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False

brother-overlay
    location: /var/db/repos/brother-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/brother-overlay.git
    masters: gentoo
    volatile: False

example_repository
    location: /var/db/repos/example_repository
    masters: gentoo
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -mtune=core-avx2 "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.2/ext-active/ /etc/php/apache2-php8.3/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cgi-php8.3/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/cli-php8.3/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/fpm-php8.3/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/php/phpdbg-php8.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -mtune=core-avx2 "
DISTDIR="/var/cache/distfiles/"
EMERGE_DEFAULT_OPTS="--keep-going y --with-bdeps y --backtrack 100"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirror.reenigne.net/gentoo/ http://mirrors.mit.edu/gentoo-distfiles/ https://172.83.105.10/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="en en_US"
MAKEOPTS="-j2 -l4"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog* "
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"
PYTHONPATH="/usr/local/lib/python3.12/site-packages"
SHELL="/bin/bash"
USE="10bit PHP_TARGETS="php8-1" X aac acl adns aio alsa amd64 asyncdns avahi bash-completion bcmath blake2 bzip2 cairo caps cdp cet cgi clang conntrack cron crypt curl dbus declarative dvb edp egl elogind enca examples faac fdp fingerprints flac flashrom fontconfig fpm fpx frontend gbm gcrypt gd gdbm git glamor glut gmp gnutls gpg gs gsm gtk harfbuzz hddtemp hdri http http2 http3 iconv infinality ipmi ipv6 jack jbig jpeg lame lcms legacy-ciphers libnl libtirpc libvisual lto lz4 lzma minizip mp3 mp4 multilib multimedia ncurses netlink network nfs nfsdcld nfsidmap nfsv4 nfsv41 nginx nls nvme offensive openexr opengl openmp openssl opus pam pcap pcre pcre32 pgo png python q32 q8 qt3support qt4 qt5 qt6 quic rar raw readline rpc scrypt seccomp sharedmem snmp sonmp split-usr sqlite ssh ssl svg system-llvm taglib test-rust text threads tiff tk tools truetype udev unbound unicode update_drivedb urandom usb vaapi vim-syntax vorbis vpx vulkan wg-quick widgets wma wmf wxwidgets x264 x265 xattr xml zlib zstd" ABI_X86="64" ADA_TARGET="gcc_13" APACHE2_MODULES="proxy actions alias auth_basic authn_alias authn_anon authn_core authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias access_compat auth_digest http2 ident imagemap log_forensic macro proxy_fcgi ratelimit remoteip reqtimeout slotmem_shm" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="apache conntrack cpu csv df disk exec filecount interface iptables irq load logfile match_empty_counter match_regex match_value memcached memory mysql network rrdtool sensors swap syslog table tail target_notification target_replace target_scale target_set tcpconns unixsock uptime users vmem write_http" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="emu efi-64 pc" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="nv nouveau vesa radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LANG, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Gary E. Miller 2025-02-13 21:33:20 UTC
Created attachment 918898 [details]
build log

build log
Comment 2 Greg Kubaryk 2025-02-13 22:35:04 UTC
To me, this is quite concerning (whether or not it's related to your current issue):

PYTHONPATH="/usr/local/lib/python3.12/site-packages"
Comment 3 Gary E. Miller 2025-02-13 23:13:07 UTC
(In reply to Greg Kubaryk from comment #2)
> To me, this is quite concerning (whether or not it's related to your current
> issue):
> 
> PYTHONPATH="/usr/local/lib/python3.12/site-packages"

Why?  That is exactly what the PEP wants, and FHS compliant.

There are two modules in there: gpsd from source, and ntpd from source.
Nothing at all to do with any build tool chain, mariadb, etc.
Comment 4 Gary E. Miller 2025-03-05 21:49:57 UTC
I can emerge by doing this:

USE=-debug emerge -1a =dev-db/mariadb-11.4.5