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: cygwinccompiler.get_versions fails on `ld -v` output
Type: Stage:
Components: Distutils Versions: Python 2.3
process
Status: closed Resolution: out of date
Dependencies: Superseder: cygwinccompiler.py fails for latest MinGW releases.
View: 2234
Assigned To: Nosy List: amaury.forgeotdarc, jlt63, nnorwitz, pearu
Priority: normal Keywords:

Created on 2004-02-20 09:52 by pearu, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg20074 - (view) Author: Pearu Peterson (pearu) Date: 2004-02-20 09:52
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
msg20075 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2004-06-13 21:33
Logged In: YES 
user_id=33168

Is this still a problem?  Jason, do you have any comments?
msg20076 - (view) Author: Jason Tishler (jlt63) * (Python triager) Date: 2004-06-14 11:33
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...
msg75089 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2008-10-22 16:48
Fixed by #2234.
History
Date User Action Args
2022-04-11 14:56:02adminsetgithub: 39960
2008-10-22 16:48:27amaury.forgeotdarcsetstatus: open -> closed
resolution: out of date
superseder: cygwinccompiler.py fails for latest MinGW releases.
messages: + msg75089
nosy: + amaury.forgeotdarc
2004-02-20 09:52:35pearucreate