<div dir="ltr"><div><div>Dear Stefan,<br><br></div>Thank you very much for your help. <br></div><div>For gcc 4.8.0, The option "#define SCIPisFinite finite" worked correctly. <br><br></div><div>I will get back to you if the patch for gcc 4.1 works<br>
<br></div><div>Thanks,<br></div><div>Abde Ali<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 11, 2014 at 1:46 AM, Stefan Vigerske <span dir="ltr"><<a href="mailto:stefan@math.hu-berlin.de" target="_blank">stefan@math.hu-berlin.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
in src/scip/pub_misc.h, line 4976, try to replace<br>
#define SCIPisFinite isfinite<br>
by<br>
#define SCIPisFinite(x) isfinite(x)<br>
<br>
If that works, please let me know.<br>
If that does not work, try replacing the same line by<br>
#define SCIPisFinite finite<br>
<br>
If that does not work, replace the same line by<br>
#define SCIPisFinite(x) ((x) == (x))<span class="HOEnZb"><font color="#888888"><br>
<br>
Stefan</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On 04/11/2014 12:30 AM, Abde Ali Kagalwalla wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear Ambros,<br>
<br>
Thank you very much for your quick response. Could you please let me know<br>
how I should use this patch file ?<br>
<br>
Secondly, I have also been trying to port my SCIP based code to a server<br>
with gcc 4.8.0. Here I seem to get a different error during linking.<br>
I compiled using "make LPS=cpx GMP=false ZLIB=false READLINE=false" and<br>
this is the error I got:<br>
******************************<u></u>******************************<u></u>******************************<u></u>*<br>
-> compiling obj/O.linux.x86_64.gnu.opt/<u></u>bin/cppmain.o<br>
-> linking bin/scip-3.1.0.linux.x86_64.<u></u>gnu.opt.cpx<br>
obj/O.linux.x86_64.gnu.opt/<u></u>lib/scip/cons_bivariate.o: In function<br>
`generateLinearizationCut':<br>
cons_bivariate.c:(.text+0x2fc)<u></u>: undefined reference to `isfinite'<br>
cons_bivariate.c:(.text+0x47c)<u></u>: undefined reference to `isfinite'<br>
cons_bivariate.c:(.text+0x4ac)<u></u>: undefined reference to `isfinite'<br>
cons_bivariate.c:(.text+0x4c4)<u></u>: undefined reference to `isfinite'<br>
cons_bivariate.c:(.text+0x5ac)<u></u>: undefined reference to `isfinite'<br>
obj/O.linux.x86_64.gnu.opt/<u></u>lib/scip/cons_bivariate.o:<u></u>cons_bivariate.c:(.text+0x5c4)<u></u>:<br>
more undefined references to `isfinite' follow<br>
collect2: error: ld returned 1 exit status<br>
gmake[3]: Leaving directory<br>
`/home/projects/Ebeam/ILP_BP/<u></u>tools/scipoptsuite-3.1.0/scip-<u></u>3.1.0'<br>
gmake[2]: Leaving directory<br>
`/home/projects/Ebeam/ILP_BP/<u></u>tools/scipoptsuite-3.1.0/scip-<u></u>3.1.0'<br>
<br>
** Build complete.<br>
** Find your SCIP binary in<br>
"/home/projects/Ebeam/ILP_BP/<u></u>tools/scipoptsuite-3.1.0/scip-<u></u>3.1.0/bin".<br>
** Enter "make test" to solve a number of easy instances in order to verify<br>
that SCIP runs correctly.<br>
<br>
gmake[1]: Leaving directory<br>
`/home/projects/Ebeam/ILP_BP/<u></u>tools/scipoptsuite-3.1.0'<br>
******************************<u></u>******************************<u></u>******************************<u></u>******************************<u></u>*******<br>
Any suggestions on how I could fix this ?<br>
<br>
Thank you very much,<br>
<br>
Abde Ali<br>
<br>
<br>
On Thu, Apr 10, 2014 at 3:20 PM, Ambros Gleixner <<a href="mailto:gleixner@zib.de" target="_blank">gleixner@zib.de</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear Abde Ali Kagalwalla,<br>
<br>
when we added these compiler flags, we were not aware that they would<br>
create trouble with such old GCC versions, sorry for that.  For now the<br>
attached patch should fix your problem.  (Hopefully: I have no way to test<br>
it quickly.)  Please let us know, whether it works.<br>
<br>
Kind regards,<br>
<br>
ambros<br>
<br>
<br>
<br>
Am 10.04.2014 22:06, schrieb Abde Ali Kagalwalla:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hi All,<br>
<br>
I am trying to compile SCIP on a server with gcc version 4.1.2<br>
Based on the instructions specified on the website and the INSTALL text<br>
file, I tried compiling SCIP using CPLEX as the LP solver with the<br>
following (most compatible) set of flags:<br>
<br>
make ZLIB=false GMP=false READLINE=false LPS=cpx LPSOPT=opt-gccold<br>
OPT=opt-gccold<br>
<br>
When I tried compiling, this is the error which terminates the<br>
compilation:<br>
<br>
******************************<u></u>******************************<br>
******************************<u></u>***********************<br>
-> compiling obj/O.linux.x86_64.gnu.opt-<u></u>gccold/lib/objscip/<br>
objbranchrule.o<br>
cc1plus: error: unrecognized command line option "-Wno-strict-overflow"<br>
cc1plus: error: unrecognized command line option "-std=c++0x"<br>
gmake[3]: ***<br>
[obj/O.linux.x86_64.gnu.opt-<u></u>gccold/lib/objscip/<u></u>objbranchrule.o] Error 1<br>
gmake[3]: Leaving directory<br>
`/home/projects/Ebeam/ILP_BP/<u></u>tools/scipoptsuite-3.1.0/scip-<u></u>3.1.0'<br>
gmake[2]: *** [libs] Error 2<br>
gmake[2]: Leaving directory<br>
`/home/projects/Ebeam/ILP_BP/<u></u>tools/scipoptsuite-3.1.0/scip-<u></u>3.1.0'<br>
gmake[1]: *** [scipbinary] Error 2<br>
gmake[1]: Leaving directory<br>
`/home/projects/Ebeam/ILP_BP/<u></u>tools/scipoptsuite-3.1.0'<br>
gmake: *** [scipbinary] Error 2<br>
******************************<u></u>******************************<br>
******************************<u></u>*************************<br>
<br>
Could you please help me figure out how I can compile SCIP on this<br>
machine ? I was able to successfully compile and implement some code on<br>
a different machine with gcc version 4.4.7, but now I need to compile my<br>
code on this machine with an older version of gcc.<br>
<br>
Thank you very much,<br>
<br>
Abde Ali Kagalwalla,<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Scip mailing list<br>
<a href="mailto:Scip@zib.de" target="_blank">Scip@zib.de</a><br>
<a href="http://listserv.zib.de/mailman/listinfo/scip" target="_blank">http://listserv.zib.de/<u></u>mailman/listinfo/scip</a><br>
<br>
<br>
</blockquote>
--<br>
______________________________<u></u>______________________________<br>
Ambros M. Gleixner<br>
Zuse Institute Berlin - Matheon - Berlin Mathematical School<br>
<a href="http://www.zib.de/gleixner" target="_blank">http://www.zib.de/gleixner</a><br>
<br>
______________________________<u></u>_________________<br>
Scip mailing list<br>
<a href="mailto:Scip@zib.de" target="_blank">Scip@zib.de</a><br>
<a href="http://listserv.zib.de/mailman/listinfo/scip" target="_blank">http://listserv.zib.de/<u></u>mailman/listinfo/scip</a><br>
<br>
<br>
</blockquote>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Scip mailing list<br>
<a href="mailto:Scip@zib.de" target="_blank">Scip@zib.de</a><br>
<a href="http://listserv.zib.de/mailman/listinfo/scip" target="_blank">http://listserv.zib.de/<u></u>mailman/listinfo/scip</a><br>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br></div>