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.
Created on 2010年04月13日 01:15 by cmcqueen1975, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (9) | |||
|---|---|---|---|
| msg103000 - (view) | Author: Craig McQueen (cmcqueen1975) | Date: 2010年04月13日 01:15 | |
I tried to build a C extension in Python 3.1.2. \Python31\python.exe setup.py build --compiler=mingw32 I got a stack-trace: ... File "C:\Python31\lib\distutils\cygwinccompiler.py", line 280, in __init__ CygwinCCompiler.__init__ (self, verbose, dry_run, force) File "C:\Python31\lib\distutils\cygwinccompiler.py", line 124, in __init__ if self.ld_version >= "2.10.90": TypeError: unorderable types: NoneType() >= str() This is Windows 2000 SP4, with MinGW 5.1.6. |
|||
| msg103035 - (view) | Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) | Date: 2010年04月13日 11:19 | |
Can you run the following command: ld -v and paste the result? |
|||
| msg103094 - (view) | Author: Craig McQueen (cmcqueen1975) | Date: 2010年04月13日 23:29 | |
\MinGW\bin\ld.exe -v GNU ld (GNU Binutils) 2.20 |
|||
| msg103109 - (view) | Author: Craig McQueen (cmcqueen1975) | Date: 2010年04月14日 02:21 | |
I just realised--I didn't have c:\mingw\bin in my path. Once I added that to the path, then the build worked fine. So I guess the issue is only that the error message is somewhat cryptic. |
|||
| msg103112 - (view) | Author: Tarek Ziadé (tarek) * (Python committer) | Date: 2010年04月14日 07:47 | |
Ok thanks for you test. If it can't get the ld version I'll display this message: "could not detect the ld version. Make sure MinGW is installed and its bin directory is in the path" I'll do this for 2.7/3.2 |
|||
| msg103421 - (view) | Author: anatoly techtonik (techtonik) | Date: 2010年04月17日 18:21 | |
To me a better option would be an ability to specify a path to compiler from command line. --compiler-path=./mingw/bin/gcc.exe |
|||
| msg121402 - (view) | Author: Éric Araujo (eric.araujo) * (Python committer) | Date: 2010年11月18日 01:18 | |
Anatoly: Please open a feature request for distutils2. Thanks in advance. Craig: This seems to have fallen out of the radar, sorry. Someone may propose a patch during the upcoming bug week-end, or we’ll do it. |
|||
| msg221824 - (view) | Author: Mark Lawrence (BreamoreBoy) * | Date: 2014年06月29日 00:04 | |
@Éric can you put this on your todo list if it's not already there? |
|||
| msg386304 - (view) | Author: Steve Dower (steve.dower) * (Python committer) | Date: 2021年02月03日 18:16 | |
Distutils is now deprecated (see PEP 632) and all tagged issues are being closed. From now until removal, only release blocking issues will be considered for distutils. If this issue does not relate to distutils, please remove the component and reopen it. If you believe it still requires a fix, most likely the issue should be re-reported at https://github.com/pypa/setuptools |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:59 | admin | set | github: 52631 |
| 2021年02月03日 18:16:21 | steve.dower | set | status: open -> closed nosy: + steve.dower messages: + msg386304 resolution: out of date stage: resolved |
| 2019年03月16日 00:04:33 | BreamoreBoy | set | nosy:
- BreamoreBoy |
| 2014年06月29日 00:04:04 | BreamoreBoy | set | nosy:
+ BreamoreBoy messages: + msg221824 versions: + Python 3.4, Python 3.5, - Python 3.1, Python 3.2 |
| 2010年11月18日 01:18:07 | eric.araujo | set | nosy:
+ eric.araujo title: Distutils C extension build with MinGW on Windows fails -> Better error message for executables not found messages: + msg121402 versions: + Python 3.1 |
| 2010年04月17日 18:21:48 | techtonik | set | nosy:
+ techtonik messages: + msg103421 |
| 2010年04月14日 07:47:33 | tarek | set | priority: low type: crash -> behavior messages: + msg103112 versions: + Python 2.7, Python 3.2, - Python 3.1 |
| 2010年04月14日 07:44:23 | amaury.forgeotdarc | set | keywords: + easy |
| 2010年04月14日 02:21:36 | cmcqueen1975 | set | messages: + msg103109 |
| 2010年04月13日 23:29:46 | cmcqueen1975 | set | messages: + msg103094 |
| 2010年04月13日 17:15:53 | srid | set | components: + Windows |
| 2010年04月13日 11:19:01 | amaury.forgeotdarc | set | nosy:
+ amaury.forgeotdarc messages: + msg103035 |
| 2010年04月13日 01:15:37 | cmcqueen1975 | create | |