Skip to content

Potential build error with GCC 15 #297

Open
@mingxwa

Description

@mingxwa
          On my local system, building the module with GCC 15 fails:
[build] In file included from ./proxy/build/installed/install/include/proxy/proxy.ixx:3:
[build] ./proxy/build/installed/install/include/proxy/proxy.h:1527:16: error: ‘consteval auto pro::details::normalize(pro::proxiable_ptr_constraints)’ exposes TU-local entity ‘pro::details::invalid_size’
[build]  1527 | consteval auto normalize(proxiable_ptr_constraints value) {
[build]       |                ^~~~~~~~~
[build] ./proxy/build/installed/install/include/proxy/proxy.h:1524:23: note: ‘pro::details::invalid_size’ declared with internal linkage
[build]  1524 | constexpr std::size_t invalid_size = std::numeric_limits<std::size_t>::max();
[build]       |                       ^~~~~~~~~~~~
[build] ninja: build stopped: subcommand failed.
[proc] The command: /home/ubuntu/.local/bin/cmake --build ./build/vscode --config Debug --target all  -- exited with code: 1
[driver] Build completed: 00:00:01.560
[build] Build finished with exit code 1
> g++-15 --version
g++-15 (Ubuntu 15-20250404-0ubuntu1) 15.0.1 20250404 (experimental) [master r15-9193-g08e803aa9be]
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

> g++-14 --version
g++-14 (Ubuntu 14.2.0-19ubuntu2) 14.2.0
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This issue doesn't show up with GCC 14 (the version CI is using). I'm investigating.

Originally posted by @SidneyCogdill in #293 (comment)

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