stewart.welbourne at bt.com
2009-Jan-06 00:11 UTC
[Eventmachine-talk] EM0.12.2 on Win XP Build Failing
I raised a ticked on Trac for this...although I''m not sure if that was the correct thing to do? Apologies for duplication if people already get the tract ticket notification. When installing the eventmaching gem (0.12.2) under windows xp, I encounter a build failure when building native extensions. I''m running Windows XP SP3, Ruby 1.8.6 (2007-09-24 patch level 111) and my c-compiler is Visual C++ 6.0. The gem build fails on line 1186 of em.cpp, with the error message: em.cpp(1193) : error C2374: ''i'' : redefinition; multiple initialization em.cpp(1186) : see declaration of ''i'' NMAKE : fatal error U1077: ''cl'' : return code ''0x2'' If I locally modify the code on line 1186 to declare the size_t i in the line prior to the for loop the make completes successfully. Before (make failing): for (size_t i = 0; i < Descriptors.size(); i++) After (make succeeding): size_t i; for (i = 0; i < Descriptors.size(); i++) Not sure if this is down to my own complier settings or whether this is a bug... -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/eventmachine-talk/attachments/20090106/12fe6f51/attachment.html>
On 6 Jan 2009, at 12:11, <stewart.welbourne at bt.com> <stewart.welbourne at bt.com > wrote:> I raised a ticked on Trac for this...although I?m not sure if that > was the correct thing to do? Apologies for duplication if people > already get the tract ticket notification.That was the correct thing to do, thank you.> > When installing the eventmaching gem (0.12.2) under windows xp, I > encounter a build failure when building native extensions. I''m > running Windows XP SP3, Ruby 1.8.6 (2007-09-24 patch level 111) and > my c-compiler is Visual C++ 6.0. The gem build fails on line 1186 of > em.cpp, with the error message: > > em.cpp(1193) : error C2374: ''i'' : redefinition; multiple > initialization > em.cpp(1186) : see declaration of ''i'' > NMAKE : fatal error U1077: ''cl'' : return code ''0x2'' > > If I locally modify the code on line 1186 to declare the size_t i in > the line prior to the for loop the make completes successfully. > Before (make failing): for (size_t i = 0; i < Descriptors.size(); i++) > After (make succeeding): size_t i; for (i = 0; i < > Descriptors.size(); i++) > > Not sure if this is down to my own complier settings or whether this > is a bug...That looks wrong off the top of my head, although the build hasn''t been failing for me. I''ll check it out asap. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/eventmachine-talk/attachments/20090106/b25d4fe4/attachment-0001.html>
There were a few EM win32 build issues fixed recently: http://github.com/eventmachine/eventmachine/commit/f88772308e0ada51189afc5b295ebf00a0a1c739 http://github.com/eventmachine/eventmachine/commit/aada689341ffefb9fce9d4b784e70b8cdbafa5fc Building 0.12.3 from svn trunk or git master should yield better results. The hardest part of the win32 build is including static libssl, and afaik that is still a painful and undocumented process. Aman On Tue, Jan 6, 2009 at 7:48 AM, James Tucker <jftucker at gmail.com> wrote:> > On 6 Jan 2009, at 12:11, <stewart.welbourne at bt.com> > <stewart.welbourne at bt.com> wrote: > > I raised a ticked on Trac for this...although I''m not sure if that was the > correct thing to do? Apologies for duplication if people already get the > tract ticket notification. > > That was the correct thing to do, thank you. > > When installing the eventmaching gem (0.12.2) under windows xp, I encounter > a build failure when building native extensions. I''m running Windows XP SP3, > Ruby 1.8.6 (2007-09-24 patch level 111) and my c-compiler is Visual C++ 6.0. > The gem build fails on line 1186 of em.cpp, with the error message: > > em.cpp(1193) : error C2374: ''i'' : redefinition; multiple initialization > em.cpp(1186) : see declaration of ''i'' > NMAKE : fatal error U1077: ''cl'' : return code ''0x2'' > > If I locally modify the code on line 1186 to declare the size_t i in the > line prior to the for loop the make completes successfully. > Before (make failing): for (size_t i = 0; i < Descriptors.size(); i++) > After (make succeeding): size_t i; for (i = 0; i < Descriptors.size(); i++) > > Not sure if this is down to my own complier settings or whether this is a > bug... > > That looks wrong off the top of my head, although the build hasn''t been > failing for me. I''ll check it out asap. > > _______________________________________________ > Eventmachine-talk mailing list > Eventmachine-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/eventmachine-talk >
Stewart Welbourne
2009-Jan-06 07:29 UTC
[Eventmachine-talk] EM0.12.2 on Win XP Build Failing
Many thanks for the rapid response. Any idea when 0.12.3 will be gem''d ? Not sure of the process involved here. On 06/01/2009 18:40, "Aman Gupta" <themastermind1 at gmail.com> wrote:> There were a few EM win32 build issues fixed recently: > > http://github.com/eventmachine/eventmachine/commit/f88772308e0ada51189afc5b295 > ebf00a0a1c739 > http://github.com/eventmachine/eventmachine/commit/aada689341ffefb9fce9d4b784e > 70b8cdbafa5fc > > Building 0.12.3 from svn trunk or git master should yield better > results. The hardest part of the win32 build is including static > libssl, and afaik that is still a painful and undocumented process. > > Aman > > On Tue, Jan 6, 2009 at 7:48 AM, James Tucker <jftucker at gmail.com> wrote: >> >> On 6 Jan 2009, at 12:11, <stewart.welbourne at bt.com> >> <stewart.welbourne at bt.com> wrote: >> >> I raised a ticked on Trac for this...although I''m not sure if that was the >> correct thing to do? Apologies for duplication if people already get the >> tract ticket notification. >> >> That was the correct thing to do, thank you. >> >> When installing the eventmaching gem (0.12.2) under windows xp, I encounter >> a build failure when building native extensions. I''m running Windows XP SP3, >> Ruby 1.8.6 (2007-09-24 patch level 111) and my c-compiler is Visual C++ 6.0. >> The gem build fails on line 1186 of em.cpp, with the error message: >> >> em.cpp(1193) : error C2374: ''i'' : redefinition; multiple initialization >> em.cpp(1186) : see declaration of ''i'' >> NMAKE : fatal error U1077: ''cl'' : return code ''0x2'' >> >> If I locally modify the code on line 1186 to declare the size_t i in the >> line prior to the for loop the make completes successfully. >> Before (make failing): for (size_t i = 0; i < Descriptors.size(); i++) >> After (make succeeding): size_t i; for (i = 0; i < Descriptors.size(); i++) >> >> Not sure if this is down to my own complier settings or whether this is a >> bug... >> >> That looks wrong off the top of my head, although the build hasn''t been >> failing for me. I''ll check it out asap. >> >> _______________________________________________ >> Eventmachine-talk mailing list >> Eventmachine-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/eventmachine-talk >> > _______________________________________________ > Eventmachine-talk mailing list > Eventmachine-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/eventmachine-talk
I saw something similar to this in ruby-core once--something like a "known deficiency in msvc 6" so googling it might get you somewhere. -=r On Tue, Jan 6, 2009 at 5:11 AM, <stewart.welbourne at bt.com> wrote:> I raised a ticked on Trac for this...although I''m not sure if that was the > correct thing to do? Apologies for duplication if people already get the > tract ticket notification. > > > > When installing the eventmaching gem (0.12.2) under windows xp, I encounter > a build failure when building native extensions. I''m running Windows XP SP3, > Ruby 1.8.6 (2007-09-24 patch level 111) and my c-compiler is Visual C++ 6.0. > The gem build fails on line 1186 of em.cpp, with the error message: > > > > em.cpp(1193) : error C2374: ''i'' : redefinition; multiple initialization > > em.cpp(1186) : see declaration of ''i'' > > NMAKE : fatal error U1077: ''cl'' : return code ''0x2'' > > > > If I locally modify the code on line 1186 to declare the size_t i in the > line prior to the for loop the make completes successfully. > > Before (make failing): for (size_t i = 0; i < Descriptors.size(); i++) > > After (make succeeding): size_t i; for (i = 0; i < Descriptors.size(); i++) > > > > Not sure if this is down to my own complier settings or whether this is a > bug... > > > > _______________________________________________ > Eventmachine-talk mailing list > Eventmachine-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/eventmachine-talk >-- 2 Timothy 1:7
On Tue, Jan 6, 2009 at 11:40 AM, Aman Gupta <themastermind1 at gmail.com> wrote:> There were a few EM win32 build issues fixed recently: > > http://github.com/eventmachine/eventmachine/commit/f88772308e0ada51189afc5b295ebf00a0a1c739 > http://github.com/eventmachine/eventmachine/commit/aada689341ffefb9fce9d4b784e70b8cdbafa5fc > > Building 0.12.3 from svn trunk or git master should yield better > results. The hardest part of the win32 build is including static > libssl, and afaik that is still a painful and undocumented process.The latest svn builds fine for me using mingw [1]. -=r [1] http://www.akitaonrails.com/2008/7/26/still-playing-with-ruby-on-windows
On 6 Jan 2009, at 19:29, Stewart Welbourne wrote:> Many thanks for the rapid response. Any idea when 0.12.3 will be > gem''d ? Not > sure of the process involved here.That may not be for a while. Sorry for the long delay in a 12.2 windows binary release, I''ve not yet had success with openssl under vc6. I think my vc install is hosed due to platform sdk installs, and the openssl ML was less than helpful.