Skip to content

build fails with -DWITH_PYMALLOC_RADIX_TREE=0 #112867

Closed

Description

@doko42

Bug report

Bug description:

bpo-37448 added a radix tree based memory map, also allowing to disable it:

To disable the radix tree map, set a preprocessor flag as follows:
-DWITH_PYMALLOC_RADIX_TREE=0.

However building with that fails:

In file included from ../Include/internal/pycore_interp.h:31,
                 from ../Include/internal/pycore_runtime.h:18,
                 from ../Include/internal/pycore_pystate.h:11,
                 from ../Modules/_asynciomodule.c:7:
../Include/internal/pycore_obmalloc.h:668:28: error: field 'usage' has incomplete type
  668 |     struct _obmalloc_usage usage;
      |                            ^~~~~

CPython versions tested on:

3.12

Operating systems tested on:

Linux

Linked PRs

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    on Dec 8, 2023
  2. doko42 commented on Dec 8, 2023

    @doko42
    MemberAuthor

    @ericsnowcurrently, this is probably not working since issue gh-81057

  3. doko42 commented on Dec 8, 2023

    @doko42
    MemberAuthor

    looks like guarding the usage struct member with the same preprocessor define allows the build to succeed and also pass tests

  4. added 2 commits that reference this issue on Dec 8, 2023
  5. hugovk commented on Dec 11, 2023

    @hugovk
    Member

    The PR has been merged 👍

    Can we close this issue, or is there more to do? Do we need backports to 3.12 or 3.11?

  6. nascheme commented on Dec 11, 2023

    @nascheme
    Member

    It does not need a backport.

  7. nascheme commented on Dec 13, 2023

    @nascheme
    Member

    I'm wrong, needs backport to 3.12.

  8. added a commit that references this issue on Dec 13, 2023
  9. added 2 commits that reference this issue on Dec 13, 2023
  10. added a commit that references this issue on Feb 11, 2024
  11. added a commit that references this issue on Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions