Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 938100 - dev-libs/thrift-0.20.0 - [ncurses-6.5] [icu-75.1] [gcc-15] /.../Mutex.h: error: int64_t has not been declared
Summary: dev-libs/thrift-0.20.0 - [ncurses-6.5] [icu-75.1] [gcc-15] /.../Mutex.h: erro...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-08-17 14:51 UTC by Toralf Förster
Modified: 2025-03-10 00:22 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.48 KB, text/plain)
2024-08-17 14:51 UTC, Toralf Förster
Details
dev-libs:thrift-0.18.1-r1:20240817-101443.log (dev-libs:thrift-0.18.1-r1:20240817-101443.log,47.75 KB, text/plain)
2024-08-17 14:51 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,122.59 KB, application/x-xz)
2024-08-17 14:51 UTC, Toralf Förster
Details
environment (environment,101.73 KB, text/plain)
2024-08-17 14:51 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.00 KB, application/x-xz)
2024-08-17 14:51 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,61.80 KB, application/x-xz)
2024-08-17 14:51 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,122.12 KB, application/x-xz)
2024-08-17 14:51 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,23.58 KB, application/x-xz)
2024-08-17 14:51 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 2024-08-17 14:51:35 UTC
too long lines were shrinked:

[39/109] /usr/bin/x86_64-pc-linux-gnu-g++ -DBOOST_ALL_DYN_LINK -DBOOST_TEST_DYN_LINK -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Dthrift_EXPORTS -I/var/tmp/portage/dev-libs/thrift-0.18.1-r1/work/thrift-0.18.1_build/lib/cpp -I/var/tmp/portage/dev-libs/thrift-0.18.1-r1/work/thrift-0.18.1/lib/cpp -I/
FAILED: lib/cpp/CMakeFiles/thrift.dir/src/thrift/transport/TSSLServerSocket.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DBOOST_ALL_DYN_LINK -DBOOST_TEST_DYN_LINK -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Dthrift_EXPORTS -I/var/tmp/portage/dev-libs/thrift-0.18.1-r1/work/thrift-0.18.1_build/lib/cpp -I/var/tmp/portage/dev-libs/thrift-0.18.1-r1/work/thrift-0.18.1/lib/cpp -I/var/tmp/p
In file included from /var/tmp/portage/dev-libs/thrift-0.18.1-r1/work/thrift-0.18.1/lib/cpp/src/thrift/transport/TServerSocket.h:25,
                 from /var/tmp/portage/dev-libs/thrift-0.18.1-r1/work/thrift-0.18.1/lib/cpp/src/thrift/transport/TSSLServerSocket.h:23,
                 from /var/tmp/portage/dev-libs/thrift-0.18.1-r1/work/thrift-0.18.1/lib/cpp/src/thrift/transport/TSSLServerSocket.cpp:21:
/var/tmp/portage/dev-libs/thrift-0.18.1-r1/work/thrift-0.18.1/lib/cpp/src/thrift/concurrency/Mutex.h:47:26: error: int64_t has not been declared
   47 |   virtual bool timedlock(int64_t milliseconds) const;
      |                          ^~~~~~~

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

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

  UNMASKED:
    Please re-assign to toolchain@ if you get a test failure in C, C++, or Fortran code which makes no sense.
  <sys-devel/gcc-15.0.9999:15
    Requested by sam
  ~dev-libs/icu-75.1
  ~dev-libs/icu-layoutex-75.1
    Requested by sam
  >=sys-libs/ncurses-6.5

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-15 *
clang/llvm (if any):
clang version 18.1.8
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.8
Python 3.12.5
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.80.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.24_p8 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.12_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.4_p7 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.422_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.23.0 linux/amd64

  HEAD of ::gentoo
commit 64e76d82d7cea32ecfce7fd5e0fa0a9bba703439
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Aug 17 09:04:38 2024 +0000

    2024-08-17 09:04:38 UTC

emerge -qpvO =dev-libs/thrift-0.18.1-r1
[ebuild  N    ] dev-libs/thrift-0.18.1-r1  USE="ssl -libevent -lua -test"
Comment 1 Toralf Förster gentoo-dev 2024-08-17 14:51:36 UTC
Created attachment 900428 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-08-17 14:51:37 UTC
Created attachment 900429 [details]
dev-libs:thrift-0.18.1-r1:20240817-101443.log
Comment 3 Toralf Förster gentoo-dev 2024-08-17 14:51:38 UTC
Created attachment 900430 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2024-08-17 14:51:39 UTC
Created attachment 900431 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-08-17 14:51:40 UTC
Created attachment 900432 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-08-17 14:51:41 UTC
Created attachment 900433 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-08-17 14:51:42 UTC
Created attachment 900434 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2024-08-17 14:51:43 UTC
Created attachment 900435 [details]
temp.tar.xz
Comment 9 Agostino Sarubbo gentoo-dev 2024-09-24 15:25:49 UTC
tinderbox_x86 has reproduced this issue with version 0.20.0 - Updating summary.
Comment 10 Petr Vaněk gentoo-dev 2025-02-12 11:36:39 UTC
Upstream fixed this issue in commit https://github.com/apache/thrift/commit/947ad66940cfbadd9b24ba31d892dfc1142dd330. All three dev-libs/thrift-0.{16,18,20}* versions available in ::gentoo build fine with GCC 15 with this patch.
Comment 11 Larry the Git Cow gentoo-dev 2025-03-10 00:22:56 UTC
The bug has been referenced in the following commit(s):

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

commit d9e15a75e6f60417f941868ae1761ab70a1116b2
Author:     Alfred Wingate <parona@protonmail.com>
AuthorDate: 2025-03-05 01:23:28 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-10 00:21:10 +0000

    dev-libs/thrift: add 0.21.0
    
    * Use github tarball over missing test files.
    * Drop test patches and use CMAKE_SKIP_TESTS instead.
    * Comprehensily set cmakeargs and use WITH_OPTION over BUILD_OPTION to
      stop cmake looking for the dependencies despite the feature being disabled.
    
    Bug: https://bugs.gentoo.org/943012
    Bug: https://bugs.gentoo.org/938100
    Bug: https://bugs.gentoo.org/949634
    Signed-off-by: Alfred Wingate <parona@protonmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/40903
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/thrift/Manifest                           |  1 +
 .../thrift/files/thrift-0.21.0-gcc15-cstdint.patch | 52 +++++++++++++++
 dev-libs/thrift/thrift-0.21.0.ebuild               | 73 ++++++++++++++++++++++
 3 files changed, 126 insertions(+)