This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: disutils fails with GNU ld (GNU Binutils) 2.18.50.20080523
Type: compile error Stage:
Components: Versions:
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, jameinel
Priority: normal Keywords:

Created on 2008-05-30 21:33 by jameinel, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg67556 - (view) Author: John Arbash Meinel (jameinel) Date: 2008-05-30 21:33
I just upgraded my cygwin installation to the latest versions. Which
seems to include
GNU ld (GNU Binutils) 2.18.50.20080523
and
GNU dllwrap (GNU Binutils) 2.18.50.20080523

It seems that their version notation is now Major.Minor.Micro.Date
The problem is that in 'cygwincompiler.py' it does:

        result = re.search('(\d+\.\d+(\.\d+)*)',out_string)
        if result:
            ld_version = StrictVersion(result.group(1))

Which matches the full version string. However "StrictVersion" only
supports A.B.CdE formats. So the .Date breaks the parser.

My workaround was to change the regex to be:
        result = re.search('(\d+\.\d+(\.\d+)?)(\.\d+)*',out_string)

So it will still match an unlimited number of '.DDD' as it used to, but
now it only preserves the first 3 to pass to StrictVersion.

This may not be the correct fix, as a better fix might be to use
something else instead of StrictVersion (since these version numbers
explicitly *don't* match what StrictVersion expects.)
msg67558 - (view) Author: John Arbash Meinel (jameinel) Date: 2008-05-30 21:36
can you link the bug that this is a dupe of? I did a search and didn't
find anything.
msg67559 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-05-30 21:36
Your own: #3013. :)
History
Date User Action Args
2022-04-11 14:56:35adminsetgithub: 47262
2008-05-30 21:36:56benjamin.petersonsetnosy: + benjamin.peterson
messages: + msg67559
2008-05-30 21:36:07jameinelsetmessages: + msg67558
2008-05-30 21:35:10benjamin.petersonsetstatus: open -> closed
resolution: duplicate
2008-05-30 21:33:47jameinelcreate