Skip to content

Python won't build with dtrace enabled on some systems. #79701

Description

@kulikjak
mannequin
BPO 35520
Nosy @ambv, @kulikjak
PRs
  • bpo-35520: Fix build with dtrace support on certain systems. #11194
  • 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 2020-09-07.08:42:14.232>
    created_at = <Date 2018-12-17.11:48:50.500>
    labels = ['build', '3.7']
    title = "Python won't build with dtrace enabled on some systems."
    updated_at = <Date 2020-09-07.08:42:14.231>
    user = 'https://github.com/kulikjak'

    bugs.python.org fields:

    activity = <Date 2020-09-07.08:42:14.231>
    actor = 'kulikjak'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-09-07.08:42:14.232>
    closer = 'kulikjak'
    components = ['Build']
    creation = <Date 2018-12-17.11:48:50.500>
    creator = 'kulikjak'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 35520
    keywords = ['patch']
    message_count = 4.0
    messages = ['331997', '334309', '340020', '376476']
    nosy_count = 2.0
    nosy_names = ['lukasz.langa', 'kulikjak']
    pr_nums = ['11194']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'compile error'
    url = 'https://bugs.python.org/issue35520'
    versions = ['Python 3.7']

    Activity

    1. kulikjak commented on Dec 17, 2018

      kulikjakmannequin
      MannequinAuthor

      Python won't build on Solaris with dtrace support enabled.

      Solaris is one of those systems where it is necessary to generate dtrace object files with dtrace -G. While this need is included in python configure and Makefiles, it doesn't work correctly.

      First, configure tests -G support on file with not completely valid content of just BEGIN inside. Valid should have BEGIN{}. This is not a problem for systems that don't require dtrace object files as this test should fail for them anyway, however it incorrectly detects those like Solaris.

      And second, Makefile is not ready for dtrace as the DTRACE_DEPS variable doesn't include all the necessary files.

    2. ambv commented on Jan 24, 2019

      @ambv
      Contributor

      New changeset 5c8f537 by Łukasz Langa (Jakub Kulík) in branch 'master':
      bpo-35520: Fix build with dtrace support on certain systems. (bpo-11194)
      5c8f537

    3. kulikjak commented on Apr 12, 2019

      kulikjakmannequin
      MannequinAuthor

      Can this also be backported to 3.7? I just installed 3.8a3 (where it already is) and it works as expected.

      Also we are using this patch ourselves in 3.7 and it works but I guess it would be nicer to have it in upstream as well.

    4. kulikjak commented on Sep 7, 2020

      kulikjakmannequin
      MannequinAuthor

      No more non-security related backports to 3.7 allowed.

    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

    No one assigned

      Labels

      3.7 (EOL)end of lifebuildThe build process and cross-build

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions