[issue16472] Distutils+mingw links agains msvcr90, while python27.dll is linked agains msvcrt

2021-02-03 Thread Steve Dower


Steve Dower  added the comment:

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

--
nosy: +steve.dower
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16472] Distutils+mingw links agains msvcr90, while python27.dll is linked agains msvcrt

2013-11-02 Thread Nicolas Frattaroli

Nicolas Frattaroli added the comment:

I had the same issue. It wouldn't just crash, it would crash sometimes, and not 
other times. About 50% of the time.

The solution to remove msvcr as suggested by Marek did work. I didn't apply his 
patch, however, because I'm using a MinGW64Compiler definition instead of the 
standard mingw32 one, which I got from a different distutils bug with a 
submitted patch that hasn't been reviewed yet.

Great work, gents.

--
nosy: +fratti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16472
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16472] Distutils+mingw links agains msvcr90, while python27.dll is linked agains msvcrt

2013-10-24 Thread Tim Golden

Changes by Tim Golden m...@timgolden.me.uk:


--
nosy:  -tim.golden

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16472
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16472] Distutils+mingw links agains msvcr90, while python27.dll is linked agains msvcrt

2013-07-30 Thread Marek Marczykowski-Górecki

Marek Marczykowski-Górecki added the comment:

I can confirm that when a module is linked against msvcr90, it crashes with 
invalid access to memory. When removed that library from the linker options 
(that is - no explicit msvcr, in any version) - module worked perfectly.

Note that comment on 
http://hg.python.org/cpython/file/6e1dd1ce95b8/Lib/distutils/cygwinccompiler.py#l333
 (Minge32CComiler class) already says no additional libraries needed, but 3 
lines later it sets dll_libraries to msvcr90 (via get_msvcr). So just removing 
lines 336:338 works great. Patch attached. Any chances to get this fixed in the 
next python 2.7.x release?

My system is Windows 7 64bit, Python 2.7.5 64bit (from official msi installer)

--
keywords: +patch
nosy: +marmarek
Added file: http://bugs.python.org/file31094/python-distutils-mingw32.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16472
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16472] Distutils+mingw links agains msvcr90, while python27.dll is linked agains msvcrt

2012-11-30 Thread Václav Šmilauer

Václav Šmilauer added the comment:

I was having a compiled module consistently crash at import time when linking 
against msvcr90, and being imported fine when linked against msvcrt. I will try 
to investigate further with mingw folks.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16472
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16472] Distutils+mingw links agains msvcr90, while python27.dll is linked agains msvcrt

2012-11-29 Thread Václav Šmilauer

Václav Šmilauer added the comment:

I am sorry for the initial confusion. python27.dll is really linked against 
MSVCR90. Its path, though, is 
c:\windows\winsxs\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4940_none_08e4299fa83d7e3c\MSVCR90.DLL,
 and perhaps is a different one found at runtime?

Dependency walker also reveals, that python27.dll links against SHELL32, which 
itself links to MSVCRT.

PS I am using the offical build of 2.7.3 on Windows7 64bit.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16472
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16472] Distutils+mingw links agains msvcr90, while python27.dll is linked agains msvcrt

2012-11-29 Thread Martin v . Löwis

Martin v. Löwis added the comment:

I think further investigation should require analysing the crash in a debugger. 
It may well be that the crash is completely unrelated to msvcrt.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16472
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16472] Distutils+mingw links agains msvcr90, while python27.dll is linked agains msvcrt

2012-11-25 Thread Catalin Iacob

Catalin Iacob added the comment:

Václav, are you sure about the official python27.dll being linked against 
msvcrt.dll? Maybe this is your own python27.dll compiled with MinGW?

I see the opposite: for both C:\windows\system32\python27.dll (64 bit) and 
c:\windows\SysWOW64\python27.dll (32 bit) from the Windows 2.7.3 installer, 
Dependency Walker shows they are linked against msvcr90.dll. This is probably 
also the reason why distutils links extensions against msvcr90.dll, exactly to 
avoid linking against 2 different CRTs.

--
nosy: +catalin.iacob

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16472
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16472] Distutils+mingw links agains msvcr90, while python27.dll is linked agains msvcrt

2012-11-14 Thread Václav Šmilauer

New submission from Václav Šmilauer:

Compiling an extension with --compiler=mingw32 with official python 2.7.3 
distribution on Windows (64bit) leads to unusable result - crash on module load 
(invalid access to memory).

The reasons is that Lib/distutils/cygwincompiler.py#l62 links the resulting 
.pyd file against msvcr90.dll (version is determined by version of MSVC used to 
build python itself), while python27.dll is linked against msvcrt.dll (shows 
the Dependency Walker). 

Based on my own experience (above) and MSDN docs 
http://msdn.microsoft.com/en-us/library/abx4dbyh.aspx,  
http://msdn.microsoft.com/en-us/library/ms235460.aspx), loading 2 different 
runtimes is asking for trouble.

I raised this topic on distutils-sig, hoping for an explanation. Judging by the 
reaction, it is quite possibly historical relict which is no longer needed. 
This is also hinted at by comments at the beginning of 
Lib/distutils/cygwincompiler.py

   if you use a msvc compiled python version (1.5.2)
   mingw gcc 3.2/ld 2.13 works

I am aware of distutils being frozen for new features (unless you want to call 
bugfix a new feature).

--
assignee: eric.araujo
components: Distutils
messages: 175569
nosy: eric.araujo, eudoxos, tarek
priority: normal
severity: normal
status: open
title: Distutils+mingw links agains msvcr90, while python27.dll is linked 
agains msvcrt
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16472
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16472] Distutils+mingw links agains msvcr90, while python27.dll is linked agains msvcrt

2012-11-14 Thread Ralf Schmitt

Changes by Ralf Schmitt python-b...@systemexit.de:


--
nosy: +schmir

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16472
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16472] Distutils+mingw links agains msvcr90, while python27.dll is linked agains msvcrt

2012-11-14 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +brian.curtin, loewis, mhammond, tim.golden

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16472
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com