Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_datetimemodule.c:3328:16: error: initializer element is not constant #84954

Closed
manisandro mannequin opened this issue May 26, 2020 · 3 comments
Closed

_datetimemodule.c:3328:16: error: initializer element is not constant #84954

manisandro mannequin opened this issue May 26, 2020 · 3 comments
Labels
3.9 only security fixes build The build process and cross-build

Comments

@manisandro
Copy link
Mannequin

manisandro mannequin commented May 26, 2020

BPO 40777
Nosy @encukou, @manisandro, @pganssle, @miss-islington
PRs
  • bpo-40777: Initialize PyDateTime_IsoCalendarDateType.tp_base at run-time #20493
  • [3.9] bpo-40777: Initialize PyDateTime_IsoCalendarDateType.tp_base at run-time (GH-20493) #20495
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2021-10-20.14:36:49.752>
    created_at = <Date 2020-05-26.09:55:41.354>
    labels = ['build', '3.9']
    title = '_datetimemodule.c:3328:16: error: initializer element is not constant'
    updated_at = <Date 2021-10-20.14:36:49.752>
    user = 'https://github.com/manisandro'

    bugs.python.org fields:

    activity = <Date 2021-10-20.14:36:49.752>
    actor = 'petr.viktorin'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-10-20.14:36:49.752>
    closer = 'petr.viktorin'
    components = ['Build']
    creation = <Date 2020-05-26.09:55:41.354>
    creator = 'smani'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 40777
    keywords = ['patch']
    message_count = 3.0
    messages = ['369965', '370235', '370243']
    nosy_count = 4.0
    nosy_names = ['petr.viktorin', 'smani', 'p-ganssle', 'miss-islington']
    pr_nums = ['20493', '20495']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'compile error'
    url = 'https://bugs.python.org/issue40777'
    versions = ['Python 3.9']

    @manisandro
    Copy link
    Mannequin Author

    manisandro mannequin commented May 26, 2020

    Hitting this when attempting to cross-compile python-3.9 to mingw:

    /builddir/build/BUILD/Python-3.9.0b1/Modules/_datetimemodule.c:3328:16: error: initializer element is not constant
    3328 | .tp_base = &PyTuple_Type,

    Indeed PyTuple_Type does not have static storage, so I suppose this [1] applies.

    [1] https://stackoverflow.com/a/3025106/1338788

    @manisandro manisandro mannequin added 3.9 only security fixes build The build process and cross-build labels May 26, 2020
    @miss-islington
    Copy link
    Contributor

    New changeset 459acc5 by Petr Viktorin in branch 'master':
    bpo-40777: Initialize PyDateTime_IsoCalendarDateType.tp_base at run-time (GH-20493)
    459acc5

    @miss-islington
    Copy link
    Contributor

    New changeset eceee54 by Miss Islington (bot) in branch '3.9':
    [3.9] bpo-40777: Initialize PyDateTime_IsoCalendarDateType.tp_base at run-time (GH-20493) (GH-20495)
    eceee54

    @encukou encukou closed this as completed Oct 20, 2021
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.9 only security fixes build The build process and cross-build
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants