Skip to content

compilation of Modules/python.c fails on OpenBSD #48396

Closed

Description

@djmdjm
mannequin
BPO 4146
Nosy @warsaw, @tiran, @benjaminp
Files
  • patch-Modules_python_c: explicitly cast PyMem_Malloc return
  • 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 = 'https://github.com/warsaw'
    closed_at = <Date 2008-10-19.14:15:50.453>
    created_at = <Date 2008-10-19.12:10:32.091>
    labels = ['interpreter-core', 'build', 'release-blocker']
    title = 'compilation of Modules/python.c fails on OpenBSD'
    updated_at = <Date 2008-10-19.14:15:50.441>
    user = 'https://bugs.python.org/djmdjm'

    bugs.python.org fields:

    activity = <Date 2008-10-19.14:15:50.441>
    actor = 'benjamin.peterson'
    assignee = 'barry'
    closed = True
    closed_date = <Date 2008-10-19.14:15:50.453>
    closer = 'benjamin.peterson'
    components = ['Interpreter Core']
    creation = <Date 2008-10-19.12:10:32.091>
    creator = 'djmdjm'
    dependencies = []
    files = ['11830']
    hgrepos = []
    issue_num = 4146
    keywords = ['patch', 'needs review']
    message_count = 3.0
    messages = ['74973', '74974', '74975']
    nosy_count = 4.0
    nosy_names = ['barry', 'christian.heimes', 'djmdjm', 'benjamin.peterson']
    pr_nums = []
    priority = 'release blocker'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'compile error'
    url = 'https://bugs.python.org/issue4146'
    versions = ['Python 3.0']

    Activity

    1. djmdjm commented on Oct 19, 2008

      djmdjmmannequin
      MannequinAuthor

      Compilation of 3.0rc1 Modules/python.c fails on OpenBSD with the
      following error. The attached patch fixes things by explicitly casting
      PyMem_Malloc's return value

      c++ -pthread -c -fno-strict-aliasing -DNDEBUG -O2 -pipe
      -DTHREAD_STACK_SIZE=0x20000 -fPIC -I. -IInclude -I./Include
      -DPy_BUILD_CORE -o Modules/python.o ./Modules/python.c
      Modules/python.c: In function int main(int, char**)': [Modules/python.c:20](https://github.com/python/cpython/blob/main/Modules/python.c#L20): error: invalid conversion from void*' to wchar_t**' [Modules/python.c:22](https://github.com/python/cpython/blob/main/Modules/python.c#L22): error: invalid conversion from void*' to wchar_t**' [Modules/python.c:57](https://github.com/python/cpython/blob/main/Modules/python.c#L57): error: invalid conversion from void*' to `wchar_t*'

    2. added
      interpreter-core(Objects, Python, Grammar, and Parser dirs)
      buildThe build process and cross-build
      on Oct 19, 2008
    3. tiran commented on Oct 19, 2008

      @tiran
      Member

      Thanks! The patch looks good.

      Next time please use either the .diff or .patch extension. It makes it
      easier to review the patch.

    4. benjaminp commented on Oct 19, 2008

      @benjaminp
      Contributor

      Fixed in r66976.

    5. transferred this issue fromon Apr 10, 2022
    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-buildinterpreter-core(Objects, Python, Grammar, and Parser dirs)release-blocker

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions