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

cygwinccompiler.get_versions fails on ld -v output #39960

Closed
pearu mannequin opened this issue Feb 20, 2004 · 4 comments
Closed

cygwinccompiler.get_versions fails on ld -v output #39960

pearu mannequin opened this issue Feb 20, 2004 · 4 comments
Labels
stdlib Python modules in the Lib dir

Comments

@pearu
Copy link
Mannequin

pearu mannequin commented Feb 20, 2004

BPO 900977
Nosy @amauryfa
Superseder
  • bpo-2234: cygwinccompiler.py fails for latest MinGW releases.
  • 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 2008-10-22.16:48:27.600>
    created_at = <Date 2004-02-20.09:52:35.000>
    labels = ['library']
    title = 'cygwinccompiler.get_versions fails on `ld -v` output'
    updated_at = <Date 2008-10-22.16:48:27.588>
    user = 'https://bugs.python.org/pearu'

    bugs.python.org fields:

    activity = <Date 2008-10-22.16:48:27.588>
    actor = 'amaury.forgeotdarc'
    assignee = 'none'
    closed = True
    closed_date = <Date 2008-10-22.16:48:27.600>
    closer = 'amaury.forgeotdarc'
    components = ['Distutils']
    creation = <Date 2004-02-20.09:52:35.000>
    creator = 'pearu'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 900977
    keywords = []
    message_count = 4.0
    messages = ['20074', '20075', '20076', '75089']
    nosy_count = 4.0
    nosy_names = ['nnorwitz', 'jlt63', 'pearu', 'amaury.forgeotdarc']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = None
    status = 'closed'
    superseder = '2234'
    type = None
    url = 'https://bugs.python.org/issue900977'
    versions = ['Python 2.3']

    @pearu
    Copy link
    Mannequin Author

    pearu mannequin commented Feb 20, 2004

    Under linux ld -v returns
    GNU ld version 2.14.90.0.7 20031029 Debian GNU/Linux
    for instance, and get_versions() function uses
    StrictVersion
    on '2.14.90.0.7'. This situation triggers an error:
    ValueError: invalid version number '2.14.90.0.7'

    As a fix, either use LooseVersion or the following re
    pattern
    result = re.search('(\d+.\d+(.\d+)?)',out_string)
    in if ld_exe block.

    Pearu

    @pearu pearu mannequin added the stdlib Python modules in the Lib dir label Feb 20, 2004
    @nnorwitz
    Copy link
    Mannequin

    nnorwitz mannequin commented Jun 13, 2004

    Logged In: YES
    user_id=33168

    Is this still a problem? Jason, do you have any comments?

    @jlt63
    Copy link
    Mannequin

    jlt63 mannequin commented Jun 14, 2004

    Logged In: YES
    user_id=86216

    Hmm... I botch a Cygwin Python release and I get
    assigned a 4 month old Distutils bug. Coincidence
    or punishment? :,)

    Is this still a problem?

    I don't know.

    Jason, do you have any comments?

    This problem seems more like a Distutils issue
    than a Cygwin one. Please assign to a Distutils
    developer (e.g., Rene). Since I'm not familiar
    with the issues, I'm afraid that if I try to fix
    this problem I may cause another one...

    Additionally, I cannot reproduce the problem on my
    Linux box unless I write a shell script to
    simulate the behavior of Pearu's ld -v...

    @amauryfa
    Copy link
    Member

    Fixed by bpo-2234.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant