[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zeromq-dev
Subject:    Re: [zeromq-dev] Error While Building pyzmq
From:       MinRK <benjaminrk () gmail ! com>
Date:       2012-04-27 23:29:35
Message-ID: CAHNn8BXgsptjjGQPjZZA6BEeZQwKU-wpPLk_Wax_TUFkK0PSgg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Tue, Apr 24, 2012 at 21:16, Gargi Das <gargi.das@hotmail.com> wrote:

>  Hello all,
>
> I am still struggling with this issue. :-(
>
> and i think the linker flags are some where configured in the
> buildutils.py or setup.py, can anybody point me to that where its actually
> being configured ??
>
> I tried finding out that but was not successful :-(
>

Unfortunately, I have no information that can help here.  I would recommend
finding someone who actually knows about building Python extensions against
a debug build of Python on Windows (I have never met such a person, to my
knowledge).

-MinRK


>
> Regards,
> Gargi
>
> ------------------------------
> From: gargi.das@hotmail.com
> To: zeromq-dev@lists.zeromq.org
> Date: Tue, 24 Apr 2012 03:09:47 -0700
>
> Subject: Re: [zeromq-dev] Error While Building pyzmq
>
>  Hello All,
>
> can anybody help me in this.
>
> Or is there anyway i can tell python_d setup.py install to link against
> python31_d.lib instead of python31.lib ??
>
> Regards,
> Gargi
>
> ------------------------------
> From: gargi.das@hotmail.com
> To: zeromq-dev@lists.zeromq.org
> Date: Mon, 23 Apr 2012 23:58:00 -0700
> Subject: Re: [zeromq-dev] Error While Building pyzmq
>
>  Hello MinRK
>
> Just to add more information, i tried building it on debug python of win32
> version and there also it gives me same error ??
>
> The linker somehoe tries to link against python31.lib which is wrong it
> should link against python31_d.lib.
>
> Regards,
> Gargi
> ------------------------------
> CC: zeromq-dev@lists.zeromq.org
> From: benjaminrk@gmail.com
> Date: Mon, 23 Apr 2012 23:34:24 -0700
> To: zeromq-dev@lists.zeromq.org
> Subject: Re: [zeromq-dev] Error While Building pyzmq
>
> Wow, debug Python 3 on 64b Windows is *far* outside my home court.
>
> I guess my first question would have to be: can you build other extensions
> properly?
>
> -MinRK
>
> On Apr 23, 2012, at 23:04, Gargi Das <gargi.das@hotmail.com> wrote:
>
>  Hello All,
>
> I am facing a problem when i am trying to build pyzmq for a debug version
> of python.
>
> I do the following steps:
>
> 1. build libzmq using visual studio the configuration selected is Win64
> and debug.
> 2. cd into pyzmq directory and configure libzmq and pyzmq with command :
> python_d.exe setup.py configure --zmq="my zmq path"
> 3. now using the same python_d.exe i try to call: python_d.exe setup.py
> install
>
> Step three gives me an error :
>
> running install
>
> running build
>
> running build_py
>
> copying zmq\libzmq.dll -> build\lib.win-amd64-3.1-pydebug\zmq
>
> running build_ext
>
> building 'zmq.core.constants' extension
>
> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe /c
> /nologo /Ox /MD /W3 /GS- /DNDEBUG -Id:\Gargi\ZMQ\win64debug\zeromq
>
> -2.1.11\zeromq-2.1.11\include -Izmq\utils -Izmq\core -Izmq\devices
> -ID:\dev\GDas\install\products\dotrox\main\windows-amd64-vc_9_0_sp1-debug
>
> libs\bin\include
> -ID:\dev\GDas\install\products\dotrox\main\windows-amd64-vc_9_0_sp1-debuglibs\bin\PC
> /Tczmq\core\constants.c /Fobuild\temp.
>
> win-amd64-3.1-pydebug\Release\zmq\core\constants.obj
>
> constants.c
>
> zmq\utils\zmq_compat.h(130) : warning C4067: unexpected tokens following
> preprocessor directive - expected a newline
>
> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\link.exe
> /DLL /nologo /INCREMENTAL:NO /LIBPATH:d:\Gargi\ZMQ\win64debug\zerom
>
> q-2.1.11\zeromq-2.1.11\lib
> /LIBPATH:D:\dev\GDas\install\products\dotrox\main\windows-amd64-vc_9_0_sp1-debuglibs\bin\libs
> /LIBPATH:D:\dev\GDa
>
> s\install\products\dotrox\main\windows-amd64-vc_9_0_sp1-debuglibs\bin\PCbuild\amd64
> libzmq.lib /EXPORT:PyInit_constants build\temp.win-amd64
>
> -3.1-pydebug\Release\zmq\core\constants.obj
> /OUT:build\lib.win-amd64-3.1-pydebug\zmq\core\constants.pyd
> /IMPLIB:build\temp.win-amd64-3.1-pyd
>
> ebug\Release\zmq\core\constants.lib
> /MANIFESTFILE:build\temp.win-amd64-3.1-pydebug\Release\zmq\core\constants.pyd.manifest
>
> *LINK : fatal error LNK1104: cannot open file 'python31.lib'*
>
> error: command '"C:\Program Files (x86)\Microsoft Visual Studio
> 9.0\VC\BIN\amd64\link.exe"' failed with exit status 1104
>
> [74795 refs]
>
> Important line in above log is *LINK : fatal error LNK1104: cannot open
> file 'python31.lib'*
>
> * *
>
> Now my question is why setup.py is trying to open python31.lib it should
> try to open python31_d.lib.  Do i need to do some changes in any of the
> config files i tried to find that but was not able to find it.
>
>
> Just for saying i was able to build , libzmq and pyzmq for release version
> of python.
>
>
> I will be grateful if anyone can help me on this ??
>
>
> Regards,
>
> Gargi
>
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev@lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
> _______________________________________________ zeromq-dev mailing list
> zeromq-dev@lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
> _______________________________________________ zeromq-dev mailing list
> zeromq-dev@lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
> _______________________________________________ zeromq-dev mailing list
> zeromq-dev@lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev@lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>

[Attachment #5 (text/html)]

<br><br><div class="gmail_quote">On Tue, Apr 24, 2012 at 21:16, Gargi Das <span \
dir="ltr">&lt;<a href="mailto:gargi.das@hotmail.com" \
target="_blank">gargi.das@hotmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">




<div><div dir="ltr">
Hello all,<br><br>I am still struggling with this issue. :-(<br><br>and i think the \
linker flags are some where configured in the buildutils.py or setup.py, can anybody \
point me to that where its actually being configured ??<br>

<br>I tried finding out that but was not successful \
:-(<br></div></div></blockquote><div><br></div><div>Unfortunately, I have no \
information that can help here.   I would recommend finding someone who actually \
knows about building Python extensions against a debug build of Python on Windows (I \
have never met such a person, to my knowledge).</div>

<div><br></div><div>-MinRK</div><div>  </div><blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div \
dir="ltr"><br>Regards,<br>Gargi<br><br><div><div class="im"><div>

</div><hr>From: <a href="mailto:gargi.das@hotmail.com" \
target="_blank">gargi.das@hotmail.com</a><br>To: <a \
href="mailto:zeromq-dev@lists.zeromq.org" \
target="_blank">zeromq-dev@lists.zeromq.org</a><br></div>Date: Tue, 24 Apr 2012 \
03:09:47 -0700<div>

<div class="h5"><br>Subject: Re: [zeromq-dev] Error While Building pyzmq<br><br>


<div dir="ltr">
Hello All,<br><br>can anybody help me in this.<br><br>Or is there anyway i can tell \
python_d setup.py install to link against python31_d.lib instead of python31.lib \
??<br><br>Regards,<br>Gargi<br><br><div><div></div><hr>

From: <a href="mailto:gargi.das@hotmail.com" \
target="_blank">gargi.das@hotmail.com</a><br>To: <a \
href="mailto:zeromq-dev@lists.zeromq.org" \
target="_blank">zeromq-dev@lists.zeromq.org</a><br>Date: Mon, 23 Apr 2012 23:58:00 \
-0700<br>

Subject: Re: [zeromq-dev] Error While Building pyzmq<br><br>


<div dir="ltr">
Hello MinRK<br><br>Just to add more information, i tried building it on debug python \
of win32 version and there also it gives me same error ??<br><br>The linker somehoe \
tries to link against python31.lib which is wrong it should link against \
python31_d.lib.<br>

<br>Regards,<br>Gargi<br><div><div></div><hr>CC: <a \
href="mailto:zeromq-dev@lists.zeromq.org" \
target="_blank">zeromq-dev@lists.zeromq.org</a><br>From: <a \
href="mailto:benjaminrk@gmail.com" target="_blank">benjaminrk@gmail.com</a><br>

Date: Mon, 23 Apr 2012 23:34:24 -0700<br>To: <a \
href="mailto:zeromq-dev@lists.zeromq.org" \
target="_blank">zeromq-dev@lists.zeromq.org</a><br>Subject: Re: [zeromq-dev] Error \
While Building pyzmq<br><br><div>Wow, debug Python 3 on 64b Windows is *far* outside \
my home court.</div>

<div><br></div><div>I guess my first question would have to be: can you build other \
extensions properly?<br><br>-MinRK</div><div><br>On Apr 23, 2012, at 23:04, Gargi Das \
&lt;<a href="mailto:gargi.das@hotmail.com" \
target="_blank">gargi.das@hotmail.com</a>&gt; wrote:<br>

<br></div><div></div><blockquote><div>


<div dir="ltr">
Hello All,<br><br>I am facing a problem when i am trying to build pyzmq for a debug \
version of python.<br><br>I do the following steps:<br><br>1. build libzmq using \
visual studio the configuration selected is Win64 and debug.<br>

2. cd into pyzmq directory and configure libzmq and pyzmq with command : python_d.exe \
setup.py configure --zmq=&quot;my zmq path&quot;<br>3. now using the same \
python_d.exe i try to call: python_d.exe setup.py install<br>

<br>Step three gives me an error :<br><br>

<p>running install</p>

<p>running build</p>

<p>running build_py</p>

<p>copying zmq\libzmq.dll -&gt;
build\lib.win-amd64-3.1-pydebug\zmq</p>

<p>running build_ext</p>

<p>building &#39;zmq.core.constants&#39; extension</p>

<p>C:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG
-Id:\Gargi\ZMQ\win64debug\zeromq</p>

<p>-2.1.11\zeromq-2.1.11\include -Izmq\utils -Izmq\core
-Izmq\devices
-ID:\dev\GDas\install\products\dotrox\main\windows-amd64-vc_9_0_sp1-debug</p>

<p>libs\bin\include
-ID:\dev\GDas\install\products\dotrox\main\windows-amd64-vc_9_0_sp1-debuglibs\bin\PC
/Tczmq\core\constants.c /Fobuild\temp.</p>

<p>win-amd64-3.1-pydebug\Release\zmq\core\constants.obj</p>

<p>constants.c</p>

<p>zmq\utils\zmq_compat.h(130) : warning C4067: unexpected
tokens following preprocessor directive - expected a newline</p>

<p>C:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\BIN\amd64\link.exe /DLL /nologo /INCREMENTAL:NO
/LIBPATH:d:\Gargi\ZMQ\win64debug\zerom</p>

<p>q-2.1.11\zeromq-2.1.11\lib
/LIBPATH:D:\dev\GDas\install\products\dotrox\main\windows-amd64-vc_9_0_sp1-debuglibs\bin\libs
 /LIBPATH:D:\dev\GDa</p>

<p>s\install\products\dotrox\main\windows-amd64-vc_9_0_sp1-debuglibs\bin\PCbuild\amd64
 libzmq.lib /EXPORT:PyInit_constants build\temp.win-amd64</p>

<p>-3.1-pydebug\Release\zmq\core\constants.obj
/OUT:build\lib.win-amd64-3.1-pydebug\zmq\core\constants.pyd
/IMPLIB:build\temp.win-amd64-3.1-pyd</p>

<p>ebug\Release\zmq\core\constants.lib
/MANIFESTFILE:build\temp.win-amd64-3.1-pydebug\Release\zmq\core\constants.pyd.manifest</p>


<p><b>LINK : fatal error LNK1104: cannot open file &#39;python31.lib&#39;</b></p>

<p>error: command &#39;&quot;C:\Program Files (x86)\Microsoft
Visual Studio 9.0\VC\BIN\amd64\link.exe&quot;&#39; failed with exit status 1104</p>

<p>[74795 refs]</p>

<br>

<p>Important line in above log is <b>LINK : fatal error
LNK1104: cannot open file &#39;python31.lib&#39;</b></p>

<p><b>  </b></p>

<p>Now my question is why setup.py is trying to open
python31.lib it should try to open python31_d.lib.   Do i need to do some changes in \
any of the config files i tried to find that but was not able to find \
it.</p><p><br></p><p>Just for saying i was able to build , libzmq and pyzmq for \
release version of python.</p>

<p><br></p><p>I will be grateful if anyone can help me on this \
??</p><p><br></p><p>Regards,</p><p>Gargi<br></p>

<p>  </p> 		 	   		  </div>
</div></blockquote><blockquote><div><span>_______________________________________________</span><br><span>zeromq-dev \
mailing list</span><br><span><a href="mailto:zeromq-dev@lists.zeromq.org" \
target="_blank">zeromq-dev@lists.zeromq.org</a></span><br>

<span><a href="http://lists.zeromq.org/mailman/listinfo/zeromq-dev" \
target="_blank">http://lists.zeromq.org/mailman/listinfo/zeromq-dev</a></span><br></div></blockquote><br>_______________________________________________
 zeromq-dev mailing list
<a href="mailto:zeromq-dev@lists.zeromq.org" \
target="_blank">zeromq-dev@lists.zeromq.org</a> <a \
href="http://lists.zeromq.org/mailman/listinfo/zeromq-dev" \
target="_blank">http://lists.zeromq.org/mailman/listinfo/zeromq-dev</a></div> 		 	   \
</div> <br>_______________________________________________
zeromq-dev mailing list
<a href="mailto:zeromq-dev@lists.zeromq.org" \
target="_blank">zeromq-dev@lists.zeromq.org</a> <a \
href="http://lists.zeromq.org/mailman/listinfo/zeromq-dev" \
target="_blank">http://lists.zeromq.org/mailman/listinfo/zeromq-dev</a></div> 		 	   \
</div> <br>_______________________________________________
zeromq-dev mailing list
<a href="mailto:zeromq-dev@lists.zeromq.org" \
target="_blank">zeromq-dev@lists.zeromq.org</a> <a \
href="http://lists.zeromq.org/mailman/listinfo/zeromq-dev" \
target="_blank">http://lists.zeromq.org/mailman/listinfo/zeromq-dev</a></div></div></div> \
</div></div> <br>_______________________________________________<br>
zeromq-dev mailing list<br>
<a href="mailto:zeromq-dev@lists.zeromq.org">zeromq-dev@lists.zeromq.org</a><br>
<a href="http://lists.zeromq.org/mailman/listinfo/zeromq-dev" \
target="_blank">http://lists.zeromq.org/mailman/listinfo/zeromq-dev</a><br> \
<br></blockquote></div><br>



_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic