Bug 2341433 - thrift-0.20.0-4.fc42 FTBFS: ./src/thrift/concurrency/Mutex.h:47:26: error: 'int64_t' has not been declared
Summary: thrift-0.20.0-4.fc42 FTBFS: ./src/thrift/concurrency/Mutex.h:47:26: error: 'i...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: thrift
Version: 42
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Christopher Tubbs
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F42FTBFS
TreeView+ depends on / blocked
 
Reported: 2025-01-22 22:07 UTC by Fedora Release Engineering
Modified: 2025-09-11 10:18 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
build.log (32.00 KB, text/plain)
2025-01-22 22:07 UTC, Fedora Release Engineering
no flags Details
root.log (32.00 KB, text/plain)
2025-01-22 22:07 UTC, Fedora Release Engineering
no flags Details
state.log (1.63 KB, text/plain)
2025-01-22 22:07 UTC, Fedora Release Engineering
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources thrift pull-request 6 0 None None None 2025-03-19 03:31:03 UTC

Description Fedora Release Engineering 2025-01-22 22:07:10 UTC
thrift failed to build from source in Fedora rawhide/f42

https://koji.fedoraproject.org/koji/taskinfo?taskID=128153818


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
Please fix thrift at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
thrift will be orphaned. Before branching of Fedora 43,
thrift will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/

Comment 1 Fedora Release Engineering 2025-01-22 22:07:12 UTC
Created attachment 2072817 [details]
build.log

file build.log too big, will only attach last 32768 bytes

Comment 2 Fedora Release Engineering 2025-01-22 22:07:14 UTC
Created attachment 2072818 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2025-01-22 22:07:16 UTC
Created attachment 2072819 [details]
state.log

Comment 4 Aoife Moloney 2025-02-26 13:46:32 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.

Comment 5 Petr Pisar 2025-03-24 17:05:44 UTC
From build.log:

libtool: compile:  g++ -std=c++11 -DHAVE_CONFIG_H -I/usr/include -I./src -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Wall -Wextra -pedantic -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c src/thrift/concurrency/Mutex.cpp  -fPIC -DPIC -o src/thrift/concurrency/.libs/Mutex.o
[...]
In file included from src/thrift/concurrency/Mutex.cpp:20:
./src/thrift/concurrency/Mutex.h:47:26: error: 'int64_t' has not been declared
   47 |   virtual bool timedlock(int64_t milliseconds) const;
      |                          ^~~~~~~
./src/thrift/concurrency/Mutex.h:25:1: note: 'int64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
   24 | #include <thrift/TNonCopyable.h>
  +++ |+#include <cstdint>
   25 | 
./src/thrift/concurrency/Mutex.h:60:29: error: 'int64_t' has not been declared
   60 |   Guard(const Mutex& value, int64_t timeout = 0) : mutex_(&value) {
      |                             ^~~~~~~
./src/thrift/concurrency/Mutex.h:60:29: note: 'int64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
src/thrift/concurrency/Mutex.cpp:53:6: error: no declaration matches 'bool apache::thrift::concurrency::Mutex::timedlock(int64_t) const'
   53 | bool Mutex::timedlock(int64_t ms) const {
      |      ^~~~~
./src/thrift/concurrency/Mutex.h:47:16: note: candidate is: 'virtual bool apache::thrift::concurrency::Mutex::timedlock(int) const'
   47 |   virtual bool timedlock(int64_t milliseconds) const;
      |                ^~~~~~~~~
./src/thrift/concurrency/Mutex.h:40:7: note: 'class apache::thrift::concurrency::Mutex' defined here
   40 | class Mutex {
      |       ^~~~~

A difference between passing and failing build root is at <https://koschei.fedoraproject.org/build/19466323>. This failure seems to be triggered by upgrading GCC from version 14 to 15.

Comment 6 Sandro Bonazzola 2025-09-11 10:18:47 UTC
You may want to take the chance and rebase on the new release 0.22


Note You need to log in before you can comment on or make changes to this bug.