Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951997 - dev-db/mysql-connector-c++-9.2.0 - [gcc-15] generated_message_tctable_lite.cc: error: cannot tail-call: call may throw exception that does not propagate
Summary: dev-db/mysql-connector-c++-9.2.0 - [gcc-15] generated_message_tctable_lite.cc...
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 951999 952059 952085
  Show dependency tree
 
Reported: 2025-03-24 19:13 UTC by Toralf Förster
Modified: 2025-04-02 18:49 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,17.80 KB, text/plain)
2025-03-24 19:13 UTC, Toralf Förster
Details
dev-db:mysql-connector-c++-9.2.0:20250324-151601.log (dev-db:mysql-connector-c++-9.2.0:20250324-151601.log,91.18 KB, text/plain)
2025-03-24 19:13 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,54.34 KB, text/plain)
2025-03-24 19:13 UTC, Toralf Förster
Details
environment (environment,92.85 KB, text/plain)
2025-03-24 19:13 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.21 KB, application/x-xz)
2025-03-24 19:13 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,22.28 KB, application/x-xz)
2025-03-24 19:13 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,158.84 KB, application/x-xz)
2025-03-24 19:13 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,140.09 KB, text/plain)
2025-03-24 19:13 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,21.61 KB, application/x-xz)
2025-03-24 19:13 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-03-24 19:13:01 UTC
too long lines were shrinked:

[10/206] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/structurally_valid.cc.o
[11/206] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/stringprintf.cc.o
[12/206] Building CXX object protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_message_tctable_lite.cc.o
FAILED: protobuf-3.19.6/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_message_tctable_lite.cc.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DGOOGLE_PROTOBUF_CMAKE_BUILD -I/var/tmp/portage/dev-db/mysql-connector-c++-9.2.0/work/mysql-connector-c++-9.2.0-src_build/cdk/protocol/mysqlx/protobuf/protobuf-3.19.6/cmake -I/var/tmp/portage/dev-db/mysql-connector-c++-9.2.0/work/mysql-connector-c++-9.2.0-src/cdk/ex
/var/tmp/portage/dev-db/mysql-connector-c++-9.2.0/work/mysql-connector-c++-9.2.0-src/cdk/extra/protobuf/protobuf-3.19.6/src/google/protobuf/generated_message_tctable_lite.cc: In static member function static const char* google::protobuf::internal::TcParser::SingularVarint(google::protobuf::MessageLi
/var/tmp/portage/dev-db/mysql-connector-c++-9.2.0/work/mysql-connector-c++-9.2.0-src/cdk/extra/protobuf/protobuf-3.19.6/src/google/protobuf/generated_message_tctable_lite.cc:313:41: error: cannot tail-call: call may throw exception that does not propagate
  313 |   PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_PASS);
      |                            ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_no_multilib_systemd-20250323-150506

  KEYWORDED/UNMASKED

  [gcc-15] Requested by sam
  <sys-devel/gcc-15.0.9999:15

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang version 20.1.1
llvm-config: 20.1.1
Python 3.12.9
go version go1.24.1 linux/amd64
Available Ruby profiles:
  [1]   ruby32 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.85.1 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 21.0.6_p7 [openjdk-bin-21]
2)	Eclipse Temurin JDK 8.442_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit c721ab80007b7e19b756a7c80dedd251dff5b4d9
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Mar 24 13:50:21 2025 +0000

    2025-03-24 13:50:20 UTC

emerge -qpvO =dev-db/mysql-connector-c++-9.2.0
[ebuild  N    ] dev-db/mysql-connector-c++-9.2.0  USE="legacy -test"
Comment 1 Toralf Förster gentoo-dev 2025-03-24 19:13:02 UTC
Created attachment 922492 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2025-03-24 19:13:03 UTC
Created attachment 922493 [details]
dev-db:mysql-connector-c++-9.2.0:20250324-151601.log
Comment 3 Toralf Förster gentoo-dev 2025-03-24 19:13:04 UTC
Created attachment 922494 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2025-03-24 19:13:05 UTC
Created attachment 922495 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2025-03-24 19:13:06 UTC
Created attachment 922496 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2025-03-24 19:13:07 UTC
Created attachment 922497 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2025-03-24 19:13:08 UTC
Created attachment 922498 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2025-03-24 19:13:09 UTC
Created attachment 922499 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2025-03-24 19:13:10 UTC
Created attachment 922500 [details]
temp.tar.xz
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-25 03:52:06 UTC
For now, I've pulled andi's patch back in to disable musttail.
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-26 08:17:22 UTC
Summary at https://bugs.gentoo.org/952059#c4.
Comment 12 Larry the Git Cow gentoo-dev 2025-03-26 12:39:32 UTC
The bug has been closed via the following commit(s):

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

commit 251f3a203f46d414fc28559b43614e0506291536
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-03-26 12:36:39 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-26 12:39:03 +0000

    sys-devel/gcc: backport two fixes to 15.0.1_pre20250323
    
    See https://bugs.gentoo.org/952059#c4, quoting that:
    > The story here is that GCC 15 will support [[clang::musttail]], but it
    > turns out that [[clang::musttail]] in Clang (and as it's a Clang-namespaced
    > extension, they get to decide the semantics) takes a "UB on invalid input"
    > approach rather than diagnosing.
    >
    > The plan is to make [[clang::musttail]] relaxed (matching Clang) and to
    > have [[gnu::musttail]] with diagnostics.
    >
    > This shows up now in qtwebengine because __has_attribute sees musttail is
    > available, so it automagically uses it (which is fine), just a GCC bug
    > then gets in the way.
    >
    > I'm probably going to backport a patch to just temporarily disable musttail
    > again until next week, as various fixes are landing.
    
    I've also backported a fix to fix an e2fsprogs/sqlite miscompilation
    on x86.
    
    Closes: https://bugs.gentoo.org/951997
    Closes: https://bugs.gentoo.org/951999
    Closes: https://bugs.gentoo.org/952059
    Closes: https://bugs.gentoo.org/952085
    Signed-off-by: Sam James <sam@gentoo.org>

 .../gcc-15.0.1_pre20250323-disable-musttail.patch  | 199 +++++++++++++++++++++
 .../files/gcc-15.0.1_pre20250323-e2fsprogs.patch   | 112 ++++++++++++
 sys-devel/gcc/gcc-15.0.1_pre20250323-r1.ebuild     |  54 ++++++
 3 files changed, 365 insertions(+)
Comment 13 Larry the Git Cow gentoo-dev 2025-04-02 18:49:46 UTC
The bug has been referenced in the following commit(s):

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

commit 09232d43ccdc1474038e151892cbc970cb403059
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-04-02 18:46:35 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-02 18:48:37 +0000

    sys-devel/gcc: add 15.0.1_pre20250330-r2 (up to today)
    
    Patch tarball generated w/ `git format-patch f7085e23148d415e8fefb4444cbea72cef607aa1..HEAD`
    where HEAD is a2e03736fc932ef613ad01a9499126cbaa538bf8. This brings us up
    to date with trunk, with various musttail fixes. Given we're pretty close
    to branching, this seems like a better idea than cherry-picking various
    bits and then finding we're missing something later.
    
    All known musttail issues should be fixed now.
    
    Bug: https://bugs.gentoo.org/951997
    Bug: https://bugs.gentoo.org/951999
    Bug: https://bugs.gentoo.org/952085
    Bug: https://bugs.gentoo.org/952059
    Bug: https://bugs.gentoo.org/952964
    Bug: https://bugs.gentoo.org/953024
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/Manifest                         |  2 +
 sys-devel/gcc/gcc-15.0.1_pre20250330-r2.ebuild | 58 ++++++++++++++++++++++++++
 2 files changed, 60 insertions(+)