From magnusmorton at gmail.com Mon Oct 4 09:00:23 2010 From: magnusmorton at gmail.com (Magnus Morton) Date: Mon, 4 Oct 2010 14:00:23 +0100 Subject: [gecoder-users] compilation of native extensions failed Message-ID: HI, I've tried to install the gecoder-with-gecode gem on two ubuntu systems running ruby-1.9.2, and each time it fails with the following message: c -o gecode/int/count.o gecode/int/count.cc In file included from gecode/int/count.cc:38: ./gecode/int/count.hh:294: error: declaration of ?bool shr? ./gecode/int/count.hh:282: error: shadows template parm ?bool shr? ./gecode/int/count.hh:337: error: declaration of ?bool shr? ./gecode/int/count.hh:325: error: shadows template parm ?bool shr? ./gecode/int/count.hh:342: error: declaration of ?bool shr? ./gecode/int/count.hh:325: error: shadows template parm ?bool shr? ./gecode/int/count.hh:378: error: declaration of ?bool shr? ./gecode/int/count.hh:366: error: shadows template parm ?bool shr? ./gecode/int/count.hh:383: error: declaration of ?bool shr? ./gecode/int/count.hh:366: error: shadows template parm ?bool shr? ./gecode/int/count.hh:419: error: declaration of ?bool shr? ./gecode/int/count.hh:407: error: shadows template parm ?bool shr? ./gecode/int/count.hh:424: error: declaration of ?bool shr? ./gecode/int/count.hh:407: error: shadows template parm ?bool shr? ./gecode/int/count.hh:460: error: declaration of ?bool shr? ./gecode/int/count.hh:448: error: shadows template parm ?bool shr? make[1]: *** [gecode/int/count.o] Error 1 make[1]: Leaving directory `/usr/local/lib/ruby/gems/1.9.1/gems/gecoder-with-gecode-1.0.0/ext/gecode-2.2.0' make: *** [compilelib] Error 2 Any help would be appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: From zayenz at gmail.com Mon Oct 4 09:58:47 2010 From: zayenz at gmail.com (Mikael Zayenz Lagerkvist) Date: Mon, 4 Oct 2010 15:58:47 +0200 Subject: [gecoder-users] compilation of native extensions failed In-Reply-To: References: Message-ID: Hi, This was an issue with Gecode 2.2.0 and newish versions of gcc. It was patched in later versions of Gecode, but I don't think Gecode/R works with any later version. The patch itself is easy (change all the indicated positions to shar instead of shr). /Mikael On Mon, Oct 4, 2010 at 3:00 PM, Magnus Morton wrote: > HI, > I've tried to install the gecoder-with-gecode gem on two ubuntu systems > running ruby-1.9.2, and each time it fails with the following message: > c -o gecode/int/count.o gecode/int/count.cc > In file included from gecode/int/count.cc:38: > ./gecode/int/count.hh:294: error: declaration of ?bool shr? > ./gecode/int/count.hh:282: error: shadows template parm ?bool shr? > ./gecode/int/count.hh:337: error: declaration of ?bool shr? > ./gecode/int/count.hh:325: error: shadows template parm ?bool shr? > ./gecode/int/count.hh:342: error: declaration of ?bool shr? > ./gecode/int/count.hh:325: error: shadows template parm ?bool shr? > ./gecode/int/count.hh:378: error: declaration of ?bool shr? > ./gecode/int/count.hh:366: error: shadows template parm ?bool shr? > ./gecode/int/count.hh:383: error: declaration of ?bool shr? > ./gecode/int/count.hh:366: error: shadows template parm ?bool shr? > ./gecode/int/count.hh:419: error: declaration of ?bool shr? > ./gecode/int/count.hh:407: error: shadows template parm ?bool shr? > ./gecode/int/count.hh:424: error: declaration of ?bool shr? > ./gecode/int/count.hh:407: error: shadows template parm ?bool shr? > ./gecode/int/count.hh:460: error: declaration of ?bool shr? > ./gecode/int/count.hh:448: error: shadows template parm ?bool shr? > make[1]: *** [gecode/int/count.o] Error 1 > make[1]: Leaving directory > `/usr/local/lib/ruby/gems/1.9.1/gems/gecoder-with-gecode-1.0.0/ext/gecode-2.2.0' > make: *** [compilelib] Error 2 > > Any help would be appreciated. > > -- Mikael Zayenz Lagerkvist, http://www.ict.kth.se/~zayenz/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From magnusmorton at gmail.com Mon Oct 4 14:08:23 2010 From: magnusmorton at gmail.com (Magnus Morton) Date: Mon, 4 Oct 2010 19:08:23 +0100 Subject: [gecoder-users] compilation of native extensions failed In-Reply-To: References: Message-ID: Thanks, I fixed the problems in gecode and successfully compiled and installed it. Now when I try and install the gecoder gem, it says something about missing rust_conversions.hh. Is there another dependency I'm missing somewhere? Cheers, Magnus On 4 October 2010 14:58, Mikael Zayenz Lagerkvist wrote: > Hi, > > This was an issue with Gecode 2.2.0 and newish versions of gcc. It was > patched in later versions of Gecode, but I don't think Gecode/R works with > any later version. The patch itself is easy (change all the indicated > positions to shar instead of shr). > > /Mikael > > > On Mon, Oct 4, 2010 at 3:00 PM, Magnus Morton wrote: > >> HI, >> I've tried to install the gecoder-with-gecode gem on two ubuntu systems >> running ruby-1.9.2, and each time it fails with the following message: >> c -o gecode/int/count.o gecode/int/count.cc >> In file included from gecode/int/count.cc:38: >> ./gecode/int/count.hh:294: error: declaration of ?bool shr? >> ./gecode/int/count.hh:282: error: shadows template parm ?bool shr? >> ./gecode/int/count.hh:337: error: declaration of ?bool shr? >> ./gecode/int/count.hh:325: error: shadows template parm ?bool shr? >> ./gecode/int/count.hh:342: error: declaration of ?bool shr? >> ./gecode/int/count.hh:325: error: shadows template parm ?bool shr? >> ./gecode/int/count.hh:378: error: declaration of ?bool shr? >> ./gecode/int/count.hh:366: error: shadows template parm ?bool shr? >> ./gecode/int/count.hh:383: error: declaration of ?bool shr? >> ./gecode/int/count.hh:366: error: shadows template parm ?bool shr? >> ./gecode/int/count.hh:419: error: declaration of ?bool shr? >> ./gecode/int/count.hh:407: error: shadows template parm ?bool shr? >> ./gecode/int/count.hh:424: error: declaration of ?bool shr? >> ./gecode/int/count.hh:407: error: shadows template parm ?bool shr? >> ./gecode/int/count.hh:460: error: declaration of ?bool shr? >> ./gecode/int/count.hh:448: error: shadows template parm ?bool shr? >> make[1]: *** [gecode/int/count.o] Error 1 >> make[1]: Leaving directory >> `/usr/local/lib/ruby/gems/1.9.1/gems/gecoder-with-gecode-1.0.0/ext/gecode-2.2.0' >> make: *** [compilelib] Error 2 >> >> Any help would be appreciated. >> >> > > > -- > Mikael Zayenz Lagerkvist, http://www.ict.kth.se/~zayenz/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rubyforge at lokorin.org Mon Oct 4 16:31:37 2010 From: rubyforge at lokorin.org (Andreas Launila) Date: Mon, 04 Oct 2010 22:31:37 +0200 Subject: [gecoder-users] compilation of native extensions failed In-Reply-To: References: Message-ID: <4CAA39A9.9010604@lokorin.org> rust_conversions.hh is located in vendor/rust/include and should be included upon compiling. What does it say if you go into the gem directory, into the ext directory and then run $ sudo ruby extconf.rb ? -- Andreas On 10/04/2010 08:08 PM, Magnus Morton wrote: > Thanks, I fixed the problems in gecode and successfully compiled and > installed it. Now when I try and install the gecoder gem, it says > something about missing rust_conversions.hh. Is there another > dependency I'm missing somewhere? > > Cheers, > Magnus > > On 4 October 2010 14:58, Mikael Zayenz Lagerkvist > wrote: > > Hi, > > This was an issue with Gecode 2.2.0 and newish versions of gcc. It > was patched in later versions of Gecode, but I don't think Gecode/R > works with any later version. The patch itself is easy (change all > the indicated positions to shar instead of shr). > > /Mikael > > > On Mon, Oct 4, 2010 at 3:00 PM, Magnus Morton > > wrote: > > HI, > I've tried to install the gecoder-with-gecode gem on two ubuntu > systems running ruby-1.9.2, and each time it fails with the > following message: > c -o gecode/int/count.o gecode/int/count.cc > In file included from gecode/int/count.cc:38: > ./gecode/int/count.hh:294: error: declaration of ?bool shr? > ./gecode/int/count.hh:282: error: shadows template parm ?bool shr? > ./gecode/int/count.hh:337: error: declaration of ?bool shr? > ./gecode/int/count.hh:325: error: shadows template parm ?bool shr? > ./gecode/int/count.hh:342: error: declaration of ?bool shr? > ./gecode/int/count.hh:325: error: shadows template parm ?bool shr? > ./gecode/int/count.hh:378: error: declaration of ?bool shr? > ./gecode/int/count.hh:366: error: shadows template parm ?bool shr? > ./gecode/int/count.hh:383: error: declaration of ?bool shr? > ./gecode/int/count.hh:366: error: shadows template parm ?bool shr? > ./gecode/int/count.hh:419: error: declaration of ?bool shr? > ./gecode/int/count.hh:407: error: shadows template parm ?bool shr? > ./gecode/int/count.hh:424: error: declaration of ?bool shr? > ./gecode/int/count.hh:407: error: shadows template parm ?bool shr? > ./gecode/int/count.hh:460: error: declaration of ?bool shr? > ./gecode/int/count.hh:448: error: shadows template parm ?bool shr? > make[1]: *** [gecode/int/count.o] Error 1 > make[1]: Leaving directory > `/usr/local/lib/ruby/gems/1.9.1/gems/gecoder-with-gecode-1.0.0/ext/gecode-2.2.0' > make: *** [compilelib] Error 2 > > Any help would be appreciated. > > > > > -- > Mikael Zayenz Lagerkvist, http://www.ict.kth.se/~zayenz/ > > From magnusmorton at gmail.com Mon Oct 4 17:07:30 2010 From: magnusmorton at gmail.com (Magnus Morton) Date: Mon, 4 Oct 2010 22:07:30 +0100 Subject: [gecoder-users] compilation of native extensions failed In-Reply-To: <4CAA39A9.9010604@lokorin.org> References: <4CAA39A9.9010604@lokorin.org> Message-ID: when I run extconf.rb I get the following errors: *checking for rust_checks.hh in /usr/local/lib/ruby/gems/1.9.1/gems/gecoder-1.0.0/vendor/rust/include... yes * */usr/local/lib/ruby/gems/1.9.1/gems/gecoder-1.0.0/vendor/rust/rust/class.rb:292: warning: else without rescue is useless* */usr/local/lib/ruby/gems/1.9.1/gems/gecoder-1.0.0/vendor/rust/rust/class.rb:311: warning: else without rescue is useless* **** extconf.rb failed **** *Could not create Makefile due to some reason, probably lack of* *necessary libraries and/or headers. Check the mkmf.log file for more* *details. You may need configuration options.* * * *Provided configuration options:* *...* *...* * * followed by many errors like: *:29:in `require': /usr/local/lib/ruby/gems/1.9.1/gems/gecoder-1.0.0/vendor/rust/rust/class.rb:278: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n' (SyntaxError)* * when "+": (nparam.zero? ? 1 : 3)* I have attached the mkmf.log too. I'll have a look in the rust/class.rb too and see if there's anything obvious On 4 October 2010 21:31, Andreas Launila wrote: > rust_conversions.hh is located in vendor/rust/include and should be > included upon compiling. What does it say if you go into the gem > directory, into the ext directory and then run > $ sudo ruby extconf.rb > ? > > -- > Andreas > > > > On 10/04/2010 08:08 PM, Magnus Morton wrote: > > Thanks, I fixed the problems in gecode and successfully compiled and > > installed it. Now when I try and install the gecoder gem, it says > > something about missing rust_conversions.hh. Is there another > > dependency I'm missing somewhere? > > > > Cheers, > > Magnus > > > > On 4 October 2010 14:58, Mikael Zayenz Lagerkvist > > wrote: > > > > Hi, > > > > This was an issue with Gecode 2.2.0 and newish versions of gcc. It > > was patched in later versions of Gecode, but I don't think Gecode/R > > works with any later version. The patch itself is easy (change all > > the indicated positions to shar instead of shr). > > > > /Mikael > > > > > > On Mon, Oct 4, 2010 at 3:00 PM, Magnus Morton > > > wrote: > > > > HI, > > I've tried to install the gecoder-with-gecode gem on two ubuntu > > systems running ruby-1.9.2, and each time it fails with the > > following message: > > c -o gecode/int/count.o gecode/int/count.cc > > In file included from gecode/int/count.cc:38: > > ./gecode/int/count.hh:294: error: declaration of ?bool shr? > > ./gecode/int/count.hh:282: error: shadows template parm ?bool > shr? > > ./gecode/int/count.hh:337: error: declaration of ?bool shr? > > ./gecode/int/count.hh:325: error: shadows template parm ?bool > shr? > > ./gecode/int/count.hh:342: error: declaration of ?bool shr? > > ./gecode/int/count.hh:325: error: shadows template parm ?bool > shr? > > ./gecode/int/count.hh:378: error: declaration of ?bool shr? > > ./gecode/int/count.hh:366: error: shadows template parm ?bool > shr? > > ./gecode/int/count.hh:383: error: declaration of ?bool shr? > > ./gecode/int/count.hh:366: error: shadows template parm ?bool > shr? > > ./gecode/int/count.hh:419: error: declaration of ?bool shr? > > ./gecode/int/count.hh:407: error: shadows template parm ?bool > shr? > > ./gecode/int/count.hh:424: error: declaration of ?bool shr? > > ./gecode/int/count.hh:407: error: shadows template parm ?bool > shr? > > ./gecode/int/count.hh:460: error: declaration of ?bool shr? > > ./gecode/int/count.hh:448: error: shadows template parm ?bool > shr? > > make[1]: *** [gecode/int/count.o] Error 1 > > make[1]: Leaving directory > > > `/usr/local/lib/ruby/gems/1.9.1/gems/gecoder-with-gecode-1.0.0/ext/gecode-2.2.0' > > make: *** [compilelib] Error 2 > > > > Any help would be appreciated. > > > > > > > > > > -- > > Mikael Zayenz Lagerkvist, http://www.ict.kth.se/~zayenz/ > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mkmf.log Type: text/x-log Size: 7010 bytes Desc: not available URL: From campbelldgunn at gmail.com Mon Oct 4 22:14:40 2010 From: campbelldgunn at gmail.com (Campbell Gunn) Date: Mon, 4 Oct 2010 19:14:40 -0700 Subject: [gecoder-users] gecoder-users Digest, Vol 7, Issue 2 In-Reply-To: References: Message-ID: <0C46FD5E-6734-4BC5-AF16-C54CEC15CF14@gmail.com> Greetings, Has anyone had success in implementing crew example in decoder? Any examples and or assistance would be greatly appreciated. Cheers, Campbell Sent from my iPad On Oct 4, 2010, at 2:15 PM, gecoder-users-request at rubyforge.org wrote: > Send gecoder-users mailing list submissions to > gecoder-users at rubyforge.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://rubyforge.org/mailman/listinfo/gecoder-users > or, via email, send a message with subject or body 'help' to > gecoder-users-request at rubyforge.org > > You can reach the person managing the list at > gecoder-users-owner at rubyforge.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of gecoder-users digest..." > > > Today's Topics: > > 1. Re: compilation of native extensions failed > (Mikael Zayenz Lagerkvist) > 2. Re: compilation of native extensions failed (Magnus Morton) > 3. Re: compilation of native extensions failed (Andreas Launila) > 4. Re: compilation of native extensions failed (Magnus Morton) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 4 Oct 2010 15:58:47 +0200 > From: Mikael Zayenz Lagerkvist > To: Magnus Morton > Cc: gecoder-users at rubyforge.org > Subject: Re: [gecoder-users] compilation of native extensions failed > Message-ID: > > Content-Type: text/plain; charset="windows-1252" > > Hi, > > This was an issue with Gecode 2.2.0 and newish versions of gcc. It was > patched in later versions of Gecode, but I don't think Gecode/R works with > any later version. The patch itself is easy (change all the indicated > positions to shar instead of shr). > > /Mikael > > On Mon, Oct 4, 2010 at 3:00 PM, Magnus Morton wrote: > >> HI, >> I've tried to install the gecoder-with-gecode gem on two ubuntu systems >> running ruby-1.9.2, and each time it fails with the following message: >> c -o gecode/int/count.o gecode/int/count.cc >> In file included from gecode/int/count.cc:38: >> ./gecode/int/count.hh:294: error: declaration of ?bool shr? >> ./gecode/int/count.hh:282: error: shadows template parm ?bool shr? >> ./gecode/int/count.hh:337: error: declaration of ?bool shr? >> ./gecode/int/count.hh:325: error: shadows template parm ?bool shr? >> ./gecode/int/count.hh:342: error: declaration of ?bool shr? >> ./gecode/int/count.hh:325: error: shadows template parm ?bool shr? >> ./gecode/int/count.hh:378: error: declaration of ?bool shr? >> ./gecode/int/count.hh:366: error: shadows template parm ?bool shr? >> ./gecode/int/count.hh:383: error: declaration of ?bool shr? >> ./gecode/int/count.hh:366: error: shadows template parm ?bool shr? >> ./gecode/int/count.hh:419: error: declaration of ?bool shr? >> ./gecode/int/count.hh:407: error: shadows template parm ?bool shr? >> ./gecode/int/count.hh:424: error: declaration of ?bool shr? >> ./gecode/int/count.hh:407: error: shadows template parm ?bool shr? >> ./gecode/int/count.hh:460: error: declaration of ?bool shr? >> ./gecode/int/count.hh:448: error: shadows template parm ?bool shr? >> make[1]: *** [gecode/int/count.o] Error 1 >> make[1]: Leaving directory >> `/usr/local/lib/ruby/gems/1.9.1/gems/gecoder-with-gecode-1.0.0/ext/gecode-2.2.0' >> make: *** [compilelib] Error 2 >> >> Any help would be appreciated. >> >> > > > -- > Mikael Zayenz Lagerkvist, http://www.ict.kth.se/~zayenz/ > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > > ------------------------------ > > Message: 2 > Date: Mon, 4 Oct 2010 19:08:23 +0100 > From: Magnus Morton > To: Mikael Zayenz Lagerkvist > Cc: gecoder-users at rubyforge.org > Subject: Re: [gecoder-users] compilation of native extensions failed > Message-ID: > > Content-Type: text/plain; charset="windows-1252" > > Thanks, I fixed the problems in gecode and successfully compiled and > installed it. Now when I try and install the gecoder gem, it says something > about missing rust_conversions.hh. Is there another dependency I'm missing > somewhere? > > Cheers, > Magnus > > On 4 October 2010 14:58, Mikael Zayenz Lagerkvist wrote: > >> Hi, >> >> This was an issue with Gecode 2.2.0 and newish versions of gcc. It was >> patched in later versions of Gecode, but I don't think Gecode/R works with >> any later version. The patch itself is easy (change all the indicated >> positions to shar instead of shr). >> >> /Mikael >> >> >> On Mon, Oct 4, 2010 at 3:00 PM, Magnus Morton wrote: >> >>> HI, >>> I've tried to install the gecoder-with-gecode gem on two ubuntu systems >>> running ruby-1.9.2, and each time it fails with the following message: >>> c -o gecode/int/count.o gecode/int/count.cc >>> In file included from gecode/int/count.cc:38: >>> ./gecode/int/count.hh:294: error: declaration of ?bool shr? >>> ./gecode/int/count.hh:282: error: shadows template parm ?bool shr? >>> ./gecode/int/count.hh:337: error: declaration of ?bool shr? >>> ./gecode/int/count.hh:325: error: shadows template parm ?bool shr? >>> ./gecode/int/count.hh:342: error: declaration of ?bool shr? >>> ./gecode/int/count.hh:325: error: shadows template parm ?bool shr? >>> ./gecode/int/count.hh:378: error: declaration of ?bool shr? >>> ./gecode/int/count.hh:366: error: shadows template parm ?bool shr? >>> ./gecode/int/count.hh:383: error: declaration of ?bool shr? >>> ./gecode/int/count.hh:366: error: shadows template parm ?bool shr? >>> ./gecode/int/count.hh:419: error: declaration of ?bool shr? >>> ./gecode/int/count.hh:407: error: shadows template parm ?bool shr? >>> ./gecode/int/count.hh:424: error: declaration of ?bool shr? >>> ./gecode/int/count.hh:407: error: shadows template parm ?bool shr? >>> ./gecode/int/count.hh:460: error: declaration of ?bool shr? >>> ./gecode/int/count.hh:448: error: shadows template parm ?bool shr? >>> make[1]: *** [gecode/int/count.o] Error 1 >>> make[1]: Leaving directory >>> `/usr/local/lib/ruby/gems/1.9.1/gems/gecoder-with-gecode-1.0.0/ext/gecode-2.2.0' >>> make: *** [compilelib] Error 2 >>> >>> Any help would be appreciated. >>> >>> >> >> >> -- >> Mikael Zayenz Lagerkvist, http://www.ict.kth.se/~zayenz/ >> > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > > ------------------------------ > > Message: 3 > Date: Mon, 04 Oct 2010 22:31:37 +0200 > From: Andreas Launila > To: Magnus Morton > Cc: gecoder-users at rubyforge.org > Subject: Re: [gecoder-users] compilation of native extensions failed > Message-ID: <4CAA39A9.9010604 at lokorin.org> > Content-Type: text/plain; charset=windows-1252 > > rust_conversions.hh is located in vendor/rust/include and should be > included upon compiling. What does it say if you go into the gem > directory, into the ext directory and then run > $ sudo ruby extconf.rb > ? > > -- > Andreas > > > > On 10/04/2010 08:08 PM, Magnus Morton wrote: >> Thanks, I fixed the problems in gecode and successfully compiled and >> installed it. Now when I try and install the gecoder gem, it says >> something about missing rust_conversions.hh. Is there another >> dependency I'm missing somewhere? >> >> Cheers, >> Magnus >> >> On 4 October 2010 14:58, Mikael Zayenz Lagerkvist > > wrote: >> >> Hi, >> >> This was an issue with Gecode 2.2.0 and newish versions of gcc. It >> was patched in later versions of Gecode, but I don't think Gecode/R >> works with any later version. The patch itself is easy (change all >> the indicated positions to shar instead of shr). >> >> /Mikael >> >> >> On Mon, Oct 4, 2010 at 3:00 PM, Magnus Morton >> > wrote: >> >> HI, >> I've tried to install the gecoder-with-gecode gem on two ubuntu >> systems running ruby-1.9.2, and each time it fails with the >> following message: >> c -o gecode/int/count.o gecode/int/count.cc >> In file included from gecode/int/count.cc:38: >> ./gecode/int/count.hh:294: error: declaration of ?bool shr? >> ./gecode/int/count.hh:282: error: shadows template parm ?bool shr? >> ./gecode/int/count.hh:337: error: declaration of ?bool shr? >> ./gecode/int/count.hh:325: error: shadows template parm ?bool shr? >> ./gecode/int/count.hh:342: error: declaration of ?bool shr? >> ./gecode/int/count.hh:325: error: shadows template parm ?bool shr? >> ./gecode/int/count.hh:378: error: declaration of ?bool shr? >> ./gecode/int/count.hh:366: error: shadows template parm ?bool shr? >> ./gecode/int/count.hh:383: error: declaration of ?bool shr? >> ./gecode/int/count.hh:366: error: shadows template parm ?bool shr? >> ./gecode/int/count.hh:419: error: declaration of ?bool shr? >> ./gecode/int/count.hh:407: error: shadows template parm ?bool shr? >> ./gecode/int/count.hh:424: error: declaration of ?bool shr? >> ./gecode/int/count.hh:407: error: shadows template parm ?bool shr? >> ./gecode/int/count.hh:460: error: declaration of ?bool shr? >> ./gecode/int/count.hh:448: error: shadows template parm ?bool shr? >> make[1]: *** [gecode/int/count.o] Error 1 >> make[1]: Leaving directory >> `/usr/local/lib/ruby/gems/1.9.1/gems/gecoder-with-gecode-1.0.0/ext/gecode-2.2.0' >> make: *** [compilelib] Error 2 >> >> Any help would be appreciated. >> >> >> >> >> -- >> Mikael Zayenz Lagerkvist, http://www.ict.kth.se/~zayenz/ >> >> > > > > ------------------------------ > > Message: 4 > Date: Mon, 4 Oct 2010 22:07:30 +0100 > From: Magnus Morton > To: Andreas Launila > Cc: gecoder-users at rubyforge.org > Subject: Re: [gecoder-users] compilation of native extensions failed > Message-ID: > > Content-Type: text/plain; charset="windows-1252" > > when I run extconf.rb I get the following errors: > > *checking for rust_checks.hh in > /usr/local/lib/ruby/gems/1.9.1/gems/gecoder-1.0.0/vendor/rust/include... yes > * > */usr/local/lib/ruby/gems/1.9.1/gems/gecoder-1.0.0/vendor/rust/rust/class.rb:292: > warning: else without rescue is useless* > */usr/local/lib/ruby/gems/1.9.1/gems/gecoder-1.0.0/vendor/rust/rust/class.rb:311: > warning: else without rescue is useless* > **** extconf.rb failed **** > *Could not create Makefile due to some reason, probably lack of* > *necessary libraries and/or headers. Check the mkmf.log file for more* > *details. You may need configuration options.* > * > * > *Provided configuration options:* > *...* > *...* > * > * > followed by many errors like: > *:29:in `require': > /usr/local/lib/ruby/gems/1.9.1/gems/gecoder-1.0.0/vendor/rust/rust/class.rb:278: > syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n' > (SyntaxError)* > * when "+": (nparam.zero? ? 1 : 3)* > > I have attached the mkmf.log too. I'll have a look in the rust/class.rb too > and see if there's anything obvious > > On 4 October 2010 21:31, Andreas Launila wrote: > >> rust_conversions.hh is located in vendor/rust/include and should be >> included upon compiling. What does it say if you go into the gem >> directory, into the ext directory and then run >> $ sudo ruby extconf.rb >> ? >> >> -- >> Andreas >> >> >> >> On 10/04/2010 08:08 PM, Magnus Morton wrote: >>> Thanks, I fixed the problems in gecode and successfully compiled and >>> installed it. Now when I try and install the gecoder gem, it says >>> something about missing rust_conversions.hh. Is there another >>> dependency I'm missing somewhere? >>> >>> Cheers, >>> Magnus >>> >>> On 4 October 2010 14:58, Mikael Zayenz Lagerkvist >> > wrote: >>> >>> Hi, >>> >>> This was an issue with Gecode 2.2.0 and newish versions of gcc. It >>> was patched in later versions of Gecode, but I don't think Gecode/R >>> works with any later version. The patch itself is easy (change all >>> the indicated positions to shar instead of shr). >>> >>> /Mikael >>> >>> >>> On Mon, Oct 4, 2010 at 3:00 PM, Magnus Morton >>> > wrote: >>> >>> HI, >>> I've tried to install the gecoder-with-gecode gem on two ubuntu >>> systems running ruby-1.9.2, and each time it fails with the >>> following message: >>> c -o gecode/int/count.o gecode/int/count.cc >>> In file included from gecode/int/count.cc:38: >>> ./gecode/int/count.hh:294: error: declaration of ?bool shr? >>> ./gecode/int/count.hh:282: error: shadows template parm ?bool >> shr? >>> ./gecode/int/count.hh:337: error: declaration of ?bool shr? >>> ./gecode/int/count.hh:325: error: shadows template parm ?bool >> shr? >>> ./gecode/int/count.hh:342: error: declaration of ?bool shr? >>> ./gecode/int/count.hh:325: error: shadows template parm ?bool >> shr? >>> ./gecode/int/count.hh:378: error: declaration of ?bool shr? >>> ./gecode/int/count.hh:366: error: shadows template parm ?bool >> shr? >>> ./gecode/int/count.hh:383: error: declaration of ?bool shr? >>> ./gecode/int/count.hh:366: error: shadows template parm ?bool >> shr? >>> ./gecode/int/count.hh:419: error: declaration of ?bool shr? >>> ./gecode/int/count.hh:407: error: shadows template parm ?bool >> shr? >>> ./gecode/int/count.hh:424: error: declaration of ?bool shr? >>> ./gecode/int/count.hh:407: error: shadows template parm ?bool >> shr? >>> ./gecode/int/count.hh:460: error: declaration of ?bool shr? >>> ./gecode/int/count.hh:448: error: shadows template parm ?bool >> shr? >>> make[1]: *** [gecode/int/count.o] Error 1 >>> make[1]: Leaving directory >>> >> `/usr/local/lib/ruby/gems/1.9.1/gems/gecoder-with-gecode-1.0.0/ext/gecode-2.2.0' >>> make: *** [compilelib] Error 2 >>> >>> Any help would be appreciated. >>> >>> >>> >>> >>> -- >>> Mikael Zayenz Lagerkvist, http://www.ict.kth.se/~zayenz/ >>> >>> >> >> > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: mkmf.log > Type: text/x-log > Size: 7010 bytes > Desc: not available > URL: > > ------------------------------ > > _______________________________________________ > gecoder-users mailing list > gecoder-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/gecoder-users > > > End of gecoder-users Digest, Vol 7, Issue 2 > ******************************************* From rubyforge at lokorin.org Wed Oct 6 16:59:03 2010 From: rubyforge at lokorin.org (Andreas Launila) Date: Wed, 06 Oct 2010 22:59:03 +0200 Subject: [gecoder-users] compilation of native extensions failed In-Reply-To: References: <4CAA39A9.9010604@lokorin.org> Message-ID: <4CACE317.8050009@lokorin.org> Sounds like some of the code isn't compatible with Ruby 1.9 . I can fire up a test environment and play around with 1.9 during the weekend. Hopefully, the code can be made compatible without too much effort. -- Andreas On 10/04/2010 11:07 PM, Magnus Morton wrote: > when I run extconf.rb I get the following errors: > > /checking for rust_checks.hh in > /usr/local/lib/ruby/gems/1.9.1/gems/gecoder-1.0.0/vendor/rust/include... > yes/ > //usr/local/lib/ruby/gems/1.9.1/gems/gecoder-1.0.0/vendor/rust/rust/class.rb:292: > warning: else without rescue is useless/ > //usr/local/lib/ruby/gems/1.9.1/gems/gecoder-1.0.0/vendor/rust/rust/class.rb:311: > warning: else without rescue is useless/ > /*** extconf.rb failed ***/ > /Could not create Makefile due to some reason, probably lack of/ > /necessary libraries and/or headers. Check the mkmf.log file for more/ > /details. You may need configuration options./ > / > / > /Provided configuration options:/ > /.../ > /.../ > / > / > followed by many errors like: > /:29:in `require': > /usr/local/lib/ruby/gems/1.9.1/gems/gecoder-1.0.0/vendor/rust/rust/class.rb:278: > syntax error, unexpected ':', expecting keyword_then or ',' or ';' or > '\n' (SyntaxError)/ > / when "+": (nparam.zero? ? 1 : 3)/ > > I have attached the mkmf.log too. I'll have a look in the rust/class.rb > too and see if there's anything obvious > > On 4 October 2010 21:31, Andreas Launila > wrote: > > rust_conversions.hh is located in vendor/rust/include and should be > included upon compiling. What does it say if you go into the gem > directory, into the ext directory and then run > $ sudo ruby extconf.rb > ? > > -- > Andreas > > > > On 10/04/2010 08:08 PM, Magnus Morton wrote: > > Thanks, I fixed the problems in gecode and successfully compiled and > > installed it. Now when I try and install the gecoder gem, it says > > something about missing rust_conversions.hh. Is there another > > dependency I'm missing somewhere? > > > > Cheers, > > Magnus > > > > On 4 October 2010 14:58, Mikael Zayenz Lagerkvist > > > >> wrote: > > > > Hi, > > > > This was an issue with Gecode 2.2.0 and newish versions of gcc. It > > was patched in later versions of Gecode, but I don't think > Gecode/R > > works with any later version. The patch itself is easy (change all > > the indicated positions to shar instead of shr). > > > > /Mikael > > > > > > On Mon, Oct 4, 2010 at 3:00 PM, Magnus Morton > > > >> wrote: > > > > HI, > > I've tried to install the gecoder-with-gecode gem on two > ubuntu > > systems running ruby-1.9.2, and each time it fails with the > > following message: > > c -o gecode/int/count.o gecode/int/count.cc > > In file included from gecode/int/count.cc:38: > > ./gecode/int/count.hh:294: error: declaration of ?bool shr? > > ./gecode/int/count.hh:282: error: shadows template parm > ?bool shr? > > ./gecode/int/count.hh:337: error: declaration of ?bool shr? > > ./gecode/int/count.hh:325: error: shadows template parm > ?bool shr? > > ./gecode/int/count.hh:342: error: declaration of ?bool shr? > > ./gecode/int/count.hh:325: error: shadows template parm > ?bool shr? > > ./gecode/int/count.hh:378: error: declaration of ?bool shr? > > ./gecode/int/count.hh:366: error: shadows template parm > ?bool shr? > > ./gecode/int/count.hh:383: error: declaration of ?bool shr? > > ./gecode/int/count.hh:366: error: shadows template parm > ?bool shr? > > ./gecode/int/count.hh:419: error: declaration of ?bool shr? > > ./gecode/int/count.hh:407: error: shadows template parm > ?bool shr? > > ./gecode/int/count.hh:424: error: declaration of ?bool shr? > > ./gecode/int/count.hh:407: error: shadows template parm > ?bool shr? > > ./gecode/int/count.hh:460: error: declaration of ?bool shr? > > ./gecode/int/count.hh:448: error: shadows template parm > ?bool shr? > > make[1]: *** [gecode/int/count.o] Error 1 > > make[1]: Leaving directory > > > `/usr/local/lib/ruby/gems/1.9.1/gems/gecoder-with-gecode-1.0.0/ext/gecode-2.2.0' > > make: *** [compilelib] Error 2 > > > > Any help would be appreciated. > > > > > > > > > > -- > > Mikael Zayenz Lagerkvist, http://www.ict.kth.se/~zayenz/ > > > > > > From rubyforge at lokorin.org Sun Oct 10 11:29:48 2010 From: rubyforge at lokorin.org (Andreas Launila) Date: Sun, 10 Oct 2010 17:29:48 +0200 Subject: [gecoder-users] compilation of native extensions failed In-Reply-To: <4CACE317.8050009@lokorin.org> References: <4CAA39A9.9010604@lokorin.org> <4CACE317.8050009@lokorin.org> Message-ID: <4CB1DBEC.4030603@lokorin.org> On 10/06/2010 10:59 PM, Andreas Launila wrote: > Sounds like some of the code isn't compatible with Ruby 1.9 . I can fire > up a test environment and play around with 1.9 during the weekend. > Hopefully, the code can be made compatible without too much effort. > There is now a branch called ruby-1.9.1 where fixes are applied to make Gecode/R compatible with Ruby 1.9.1 while preferably maintaining compatibility with Ruby 1.8.x . It can be checked out using $ svn checkout svn://rubyforge.org/var/svn/gecoder/branches/ruby-1.9.1 gecoder Gecode is patched, the bindings are compiling (the Ruby headers were apparently changed in 1.9), the gem is loading and the simpler example are running. The code is however currently failing 557 out of 2216 specs under Ruby 1.9.1 - so many parts of the interface are currently not usable. I suspect that the number of real problems is small though. Many of the current errors also seem to stem from incompatibilities in the specs rather than the interface. I will continue to read up on the changes in Ruby 1.9.1 and apply fixes (I have so far only fixed some case statements and removed some usage of Symbol#to_i). If there are some particular parts of the interface that you would like to use, then please tell me and I will prioritize them. -- Andreas