Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 949573 - dev-db/mariadb-10.6.21 - [glibc] [gcc-15] [ffmpeg] trx0purge.cc: internal compiler error: in pop, at vec.h:1056
Summary: dev-db/mariadb-10.6.21 - [glibc] [gcc-15] [ffmpeg] trx0purge.cc: internal com...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2025-02-10 17:28 UTC by Toralf Förster
Modified: 2025-02-15 04:01 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,20.05 KB, text/plain)
2025-02-10 17:28 UTC, Toralf Förster
Details
dev-db:mariadb-10.6.21:20250210-155005.log.xz (dev-db:mariadb-10.6.21:20250210-155005.log.xz,18.57 KB, application/x-xz)
2025-02-10 17:28 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,173.38 KB, text/plain)
2025-02-10 17:28 UTC, Toralf Förster
Details
environment (environment,195.08 KB, text/plain)
2025-02-10 17:28 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1016 bytes, application/x-xz)
2025-02-10 17:28 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,22.84 KB, application/x-xz)
2025-02-10 17:28 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,610.83 KB, application/x-xz)
2025-02-10 17:28 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,47.70 KB, application/x-xz)
2025-02-10 17:28 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,41.62 KB, application/x-xz)
2025-02-10 17:28 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2025-02-10 17:28:22 UTC
too long lines were shrinked:

[380/1189] /usr/bin/x86_64-pc-linux-gnu-g++ -DBTR_CUR_ADAPT -DBTR_CUR_HASH_ADAPT -DHAVE_BZIP2=1 -DHAVE_CONFIG_H -DHAVE_FALLOC_PUNCH_HOLE_AND_KEEP_SIZE=1 -DHAVE_LZMA=1 -DHAVE_URING -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE=1 -I/var/tmp/portage/dev-db/mariadb-10.6.21/work/mysql_build/include -I/var/tmp/por
[381/1189] /usr/bin/x86_64-pc-linux-gnu-g++ -DBTR_CUR_ADAPT -DBTR_CUR_HASH_ADAPT -DHAVE_BZIP2=1 -DHAVE_CONFIG_H -DHAVE_FALLOC_PUNCH_HOLE_AND_KEEP_SIZE=1 -DHAVE_LZMA=1 -DHAVE_URING -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE=1 -I/var/tmp/portage/dev-db/mariadb-10.6.21/work/mysql_build/include -I/var/tmp/por
[382/1189] /usr/bin/x86_64-pc-linux-gnu-g++ -DBTR_CUR_ADAPT -DBTR_CUR_HASH_ADAPT -DHAVE_BZIP2=1 -DHAVE_CONFIG_H -DHAVE_FALLOC_PUNCH_HOLE_AND_KEEP_SIZE=1 -DHAVE_LZMA=1 -DHAVE_URING -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE=1 -I/var/tmp/portage/dev-db/mariadb-10.6.21/work/mysql_build/include -I/var/tmp/por
FAILED: storage/innobase/CMakeFiles/innobase.dir/trx/trx0purge.cc.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DBTR_CUR_ADAPT -DBTR_CUR_HASH_ADAPT -DHAVE_BZIP2=1 -DHAVE_CONFIG_H -DHAVE_FALLOC_PUNCH_HOLE_AND_KEEP_SIZE=1 -DHAVE_LZMA=1 -DHAVE_URING -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE=1 -I/var/tmp/portage/dev-db/mariadb-10.6.21/work/mysql_build/include -I/var/tmp/portage/dev-db
/var/tmp/portage/dev-db/mariadb-10.6.21/work/mysql/storage/innobase/trx/trx0purge.cc: In function void trx_purge_truncate_history():
/var/tmp/portage/dev-db/mariadb-10.6.21/work/mysql/storage/innobase/trx/trx0purge.cc:777:3: internal compiler error: in pop, at vec.h:1056
  777 |   }
      |   ^

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_no_multilib-20250207-105001

  UNMASKED:

    Requested by sam
  =media-video/ffmpeg-7*

    
  <sys-devel/gcc-15.0.9999:15

    Requested by dilfridge
  ~sys-libs/glibc-2.41

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang version 19.1.7
llvm-config: 19.1.7
Python 3.12.9
go version go1.23.6 linux/amd64
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.77.1
  [2]   rust-bin-1.84.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.26_p4 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.14_p7 [openjdk-bin-17]
3)	Eclipse Temurin JDK 21.0.6_p7 [openjdk-bin-21]
*)	Eclipse Temurin JDK 8.442_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21 


  HEAD of ::gentoo
commit 24fa86b21f133a40842a4823b23e1266c6a899ed
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Feb 10 13:48:35 2025 +0000

    2025-02-10 13:48:35 UTC

emerge -qpvO =dev-db/mariadb-10.6.21
[ebuild  N    ] dev-db/mariadb-10.6.21  USE="backup cracklib pam perl server -bindist -columnstore -debug -extraengine -galera -innodb-lz4 -innodb-lzo -innodb-snappy -jdbc -jemalloc -kerberos -latin1 -mroonga -numa -odbc -oqgraph -profiling -rocksdb -s3 (-selinux) -sphinx -sst-mariabackup -sst-rsync -static -systemd -systemtap -tcmalloc -test -xml -yassl"
Comment 1 Toralf Förster gentoo-dev 2025-02-10 17:28:23 UTC
Created attachment 918600 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2025-02-10 17:28:24 UTC
Created attachment 918601 [details]
dev-db:mariadb-10.6.21:20250210-155005.log.xz
Comment 3 Toralf Förster gentoo-dev 2025-02-10 17:28:25 UTC
Created attachment 918602 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2025-02-10 17:28:27 UTC
Created attachment 918603 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2025-02-10 17:28:27 UTC
Created attachment 918604 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2025-02-10 17:28:28 UTC
Created attachment 918605 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2025-02-10 17:28:30 UTC
Created attachment 918606 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2025-02-10 17:28:31 UTC
Created attachment 918607 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2025-02-10 17:28:32 UTC
Created attachment 918608 [details]
temp.tar.xz
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-02-10 22:10:25 UTC
Thanks, I've reported upstream at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118822.
Comment 11 Larry the Git Cow gentoo-dev 2025-02-12 15:12:25 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=2f8447a89b5426413f54aa0153448c0e1c45a4c8

commit 2f8447a89b5426413f54aa0153448c0e1c45a4c8
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-02-12 15:11:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-12 15:11:48 +0000

    15.0.0: add C++ patch
    
    Fixes MariaDB build. I'll likely backport this to the last snapshot
    along with the coro fixes once it gets merged upstream.
    
    Bug: https://gcc.gnu.org/PR118822
    Bug: https://bugs.gentoo.org/949573
    Signed-off-by: Sam James <sam@gentoo.org>

 ...gressions-caused-by-for-while-loops-with-.patch | 562 +++++++++++++++++++++
 15.0.0/gentoo/README.history                       |   1 +
 2 files changed, 563 insertions(+)
Comment 12 Larry the Git Cow gentoo-dev 2025-02-15 04:01:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef046b47103e5ed2936c4050465416a93b84d232

commit ef046b47103e5ed2936c4050465416a93b84d232
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-02-15 03:58:52 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-15 04:01:14 +0000

    sys-devel/gcc: backport two fixes to 15.0.1_pre20250209
    
    * Backport the -fno-range-for-ext-temps default change which fixes/works around
      miscompilation of coroutines including in KDE Plasma.
    
      There's more fixes for making it work but they had some followups so
      better to wait for the next snapshot for that. So we pick the conservative
      option here with the best bang-for-buck.
    
    * Fix MariaDB compilation.
    
    Closes: https://bugs.gentoo.org/949573
    Signed-off-by: Sam James <sam@gentoo.org>

 .../gcc/files/gcc-15.0.1_pre20250209-coro.patch    | 124 +++++
 .../gcc-15.0.1_pre20250209-range-for-mariadb.patch | 530 +++++++++++++++++++++
 ...209.ebuild => gcc-15.0.1_pre20250209-r1.ebuild} |   2 +
 3 files changed, 656 insertions(+)