<div dir="ltr"><div>Thanks Ted,</div><div>I just solved this problem with one of my colleagues. The reason is : in configure file in CoinUtils, one of the parameters we pass when configuring gcc is --with-host-libstdcxx=&#39;-L/usr/lib/gcc/x86_64-redhat-linux/4.4.4 -lstdc++&#39;, that last single quote mark is the killer. </div><div>I revised the configure file in Coinutils, 5085 line, </div><div>-FLIBS=&quot;$ac_cv_f77_libs&quot;</div><div>+FLIBS=$(echo $ac_cv_f77_libs | sed &quot;s/&#39;//&quot;)</div><div>And now the build is successful. </div><div>Just wan to report this little typo and you guys may fix that. </div><div><br></div><div>Thanks again,</div><div>Emer</div>







<div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 12, 2015 at 8:07 AM, Ted Ralphs <span dir="ltr">&lt;<a href="mailto:ted@lehigh.edu" target="_blank">ted@lehigh.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I build the Optimization Suite on 64-bit Linux routinely. It should work out of the box with default options. It looks like you may be using the --host argument to configure, since configure is checking for the &quot;<span style="font-size:12.8000001907349px">x86_64-facebook-linux-</span><span style="font-size:12.8000001907349px">gfortran&quot; command rather than just plain &quot;gfortran&quot;. My first guess would be that this is the problem. The checks that are failing for you don&#39;t even happen when I configure on 64-bit Linux. </span>Could you send config.log to me?<div><br></div><div>Cheers,</div><div><br></div><div>Ted</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Fri, Jun 12, 2015 at 12:05 AM, Emerson <span dir="ltr">&lt;<a href="mailto:emersonxsu@gmail.com" target="_blank">emersonxsu@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<div>I am add a third-party project to the company&#39;s server, running 64bit Linux OS. I built successively on my MacOS and my local dev server, but failed in configuring when trying to build in company&#39;s server. The following is part of the log. </div><div>It seems using a fortran FLAG error. There are also  &quot;error: unrecognized command line option &#39;-V&#39; somewhere after that. </div><div>These happened when I was trying to build Clp, CoinUitls(need with Clp, right?), even CoinAll and OptimizationSuite. I think they are using some old configure methods and causing these errors.</div><div>How can I modify the configure file such that to avoid this error? </div><div><br></div><div><div>/home/engshare/third-party2/OptimizationSuite/1.7.5/src/OptimizationSuite-1.7.5/configure</div><div>/err</div><div>checking for x86_64-facebook-linux-gfortran... no</div><div>checking for x86_64-facebook-linux-ifort... no</div><div>checking for x86_64-facebook-linux-g95... no</div><div>checking for x86_64-facebook-linux-fort77... no</div><div>checking for x86_64-facebook-linux-f77... no</div><div>checking for x86_64-facebook-linux-g77... no</div><div>checking for x86_64-facebook-linux-pgf90... no</div><div>checking for x86_64-facebook-linux-pgf77... no</div><div>checking for x86_64-facebook-linux-ifc... no</div><div>checking for x86_64-facebook-linux-frt... no</div><div>checking for x86_64-facebook-linux-af77... no</div><div>checking for x86_64-facebook-linux-xlf_r... no</div><div>checking for gfortran... gfortran</div><div>checking for x86_64-facebook-linux-gfortran... gfortran</div><div>checking whether we are using the GNU Fortran 77 compiler... yes</div><div>checking whether gfortran accepts -g... yes</div><div>configure: Fortran compiler options are: -O3 -pipe</div><div>checking how to get verbose linking output from gfortran... -v</div><div>checking for Fortran libraries of gfortran...  -lstdc++&#39; -L/home/engshare/third-party2/glibc/2.17/gcc-4.8.1-glibc-2.17/99df8fc/lib -L/home/engshare/third-party2/libgcc/4.8.1/gcc-4.8.1-glibc-2.17/8aac7fc/lib -L/home/engshare/third-party2/glibc/2.17/gcc-4.8.1-glibc-2.17/99df8fc/lib/../lib64 -L/home/engshare/third-party2/gcc/4.8.1/centos6-native/cc6c9dc/lib/gcc/x86_64-redhat-linux-gnu/4.8.1 -L/lib/../lib64 -L/usr/lib/../lib64 -L/home/engshare/third-party2/gcc/4.8.1/centos6-native/cc6c9dc/lib/gcc/x86_64-redhat-linux-gnu/4.8.1/../../.. -lgfortran -lm -lgcc_s -lquadmath</div><div>configure: Corrected Fortran libraries:  -lstdc++&#39; -L/home/engshare/third-party2/glibc/2.17/gcc-4.8.1-glibc-2.17/99df8fc/lib -L/home/engshare/third-party2/libgcc/4.8.1/gcc-4.8.1-glibc-2.17/8aac7fc/lib -L/home/engshare/third-party2/glibc/2.17/gcc-4.8.1-glibc-2.17/99df8fc/lib/../lib64 -L/home/engshare/third-party2/gcc/4.8.1/centos6-native/cc6c9dc/lib/gcc/x86_64-redhat-linux-gnu/4.8.1 -L/lib/../lib64 -L/usr/lib/../lib64 -L/home/engshare/third-party2/gcc/4.8.1/centos6-native/cc6c9dc/lib/gcc/x86_64-redhat-linux-gnu/4.8.1/../../.. -lgfortran -lm -lquadmath</div><div>checking for dummy main to link with Fortran libraries... unknown</div><div>configure: error: linking to Fortran libraries from C fails</div><div>See `config.log&#39; for more details.</div><div>configure: error: /bin/sh &#39;/home/engshare/third-party2/OptimizationSuite/1.7.5/src/OptimizationSuite-1.7.5/CoinUtils/configure&#39; failed for CoinUtils</div></div><div><br></div><div>Best,</div><div>Emer</div></div>
<br></div></div>_______________________________________________<br>
Clp mailing list<br>
<a href="mailto:Clp@list.coin-or.org" target="_blank">Clp@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/clp" rel="noreferrer" target="_blank">http://list.coin-or.org/mailman/listinfo/clp</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Dr. Ted Ralphs<br>Professor, Lehigh University<br><a href="tel:%28610%29%20628-1280" value="+16106281280" target="_blank">(610) 628-1280</a><br>ted &#39;at&#39; lehigh &#39;dot&#39; edu<br><a href="http://coral.ie.lehigh.edu/~ted" target="_blank">coral.ie.lehigh.edu/~ted</a><br></div></div>
</font></span></div>
</blockquote></div><br></div>