Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 895818

Summary: dev-db/mysql-8.0.32-r2 - /.../bgc_ticket.h: error: first_ticket_value was not declared in this scope
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Linux MySQL bugs team <mysql-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: parona, sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/mysql/mysql-server/pull/456
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 865117    
Attachments: emerge-info.txt
dev-db:mysql-8.0.32-r2:20230222-071451.log.bz2
emerge-history.txt
environment
etc.clang.tar.bz2
etc.portage.tar.bz2
logs.tar.bz2
temp.tar.bz2
Patch: Include cstdint

Description Toralf Förster gentoo-dev 2023-02-22 08:10:14 UTC
/var/tmp/portage/dev-db/mysql-8.0.32-r2/work/mysql/sql/binlog/group_commit/bgc_ticket.h:151:20: error: ValueType does not name a type
  151 |   static constexpr ValueType first_ticket_value = 1;
      |                    ^~~~~~~~~
/var/tmp/portage/dev-db/mysql-8.0.32-r2/work/mysql/sql/binlog/group_commit/bgc_ticket.h:154:3: error: ValueType does not name a type
  154 |   ValueType m_ticket;  ///< 1 bit for synchronization, 63 bits - ticket value
      |   ^~~~~~~~~
/var/tmp/portage/dev-db/mysql-8.0.32-r2/work/mysql/sql/binlog/group_commit/bgc_ticket.h:61:48: error: first_ticket_value was not declared in this scope
   61 |   explicit BgcTicket(const ValueType &ticket = first_ticket_value);
      |                                                ^~~~~~~~~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_systemd_merged_usr-j5-20230221-030056

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 15.0.7
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.7
Python 3.10.10
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.67.1 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.362_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php7.4
  [2]   php8.0
  [3]   php8.2 *

  HEAD of ::gentoo
commit c84353c988562dd998c247a035aa71d3654a982e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Feb 22 06:47:01 2023 +0000

    2023-02-22 06:47:00 UTC

emerge -qpvO dev-db/mysql
[ebuild  N    ] dev-db/mysql-8.0.32-r2  USE="cjk jemalloc perl server -cracklib -debug -latin1 -numa -profiling -router (-selinux) -tcmalloc -test"
Comment 1 Toralf Förster gentoo-dev 2023-02-22 08:10:15 UTC
Created attachment 853800 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-02-22 08:10:16 UTC
Created attachment 853802 [details]
dev-db:mysql-8.0.32-r2:20230222-071451.log.bz2
Comment 3 Toralf Förster gentoo-dev 2023-02-22 08:10:18 UTC
Created attachment 853804 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2023-02-22 08:10:19 UTC
Created attachment 853806 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-02-22 08:10:20 UTC
Created attachment 853808 [details]
etc.clang.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2023-02-22 08:10:21 UTC
Created attachment 853810 [details]
etc.portage.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2023-02-22 08:10:23 UTC
Created attachment 853812 [details]
logs.tar.bz2
Comment 8 Toralf Förster gentoo-dev 2023-02-22 08:10:24 UTC
Created attachment 853814 [details]
temp.tar.bz2
Comment 9 Alfred Wingate 2023-04-12 13:26:32 UTC
Created attachment 859937 [details, diff]
Patch: Include cstdint

Hit this issue, using gcc-13 as well.

/var/tmp/portage/dev-db/mysql-8.0.32-r2/work/mysql/sql/binlog/group_commit/bgc_ticket.h:54:26: error: ‘uint64_t’ in name
space ‘std’ does not name a type; did you mean ‘wint_t’?
   54 |   using ValueType = std::uint64_t;
      |                          ^~~~~~~~
      |                          wint_t

Issue is just GCC-13 header dependency changes.


Included cstdint and it built.

Upstream pull request:
https://github.com/mysql/mysql-server/pull/456
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-12 13:38:12 UTC
Thanks.

Forgot the bug tag..

commit 6e342407489fd0bf17768951c1391b81cde22465 (HEAD -> master, origin/master, origin/HEAD)
Author: Sam James <sam@gentoo.org>
Date:   Wed Apr 12 14:36:26 2023 +0100

    dev-db/mysql: fix build w/ gcc 13

    Thanks-to: Alfred Wingate <parona@protonmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>