Skip to content

Build fails with gcc v15 - uint64_t undefined #56731

Closed
@tjuhaszrh

Description

@tjuhaszrh

Version

18, 20

Platform

Linux vm-10-0-186-232.hosted.upshift.rdu2.redhat.com 6.13.0-0.rc7.20250114gitc45323b7560e.56.fc42.x86_64

Subsystem

No response

What steps will reproduce the bug?

Following the build guide with gcc 15.
Running:

./configure
make -j4

How often does it reproduce? Is there a required condition?

Every build with gcc 15 fails

What is the expected behavior? Why is that the expected behavior?

Successful build

What do you see instead?

In file included from ../../src/inspector/worker_inspector.cc:1:

../../src/inspector/worker_inspector.h:56:33: error: expected ‘)’ before ‘id’
   56 |   ParentInspectorHandle(uint64_t id,
      |                        ~        ^~~
      |                                 )

../../src/inspector/worker_inspector.h:63:7: **error: ‘uint64_t’ has not been declared**
   63 |       uint64_t thread_id, const std::string& url, const std::string& name) {
      |       ^~~~~~~~

../../src/inspector/worker_inspector.h:12:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
   11 | #include <unordered_set>
  +++ |+#include <cstdint>

Additional information

Seems to be related to changes to libstdc++, which have removed transitive includes of <cstdint>.

Adding the include into worker_inspector.h allows for successful built

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions