Hi, <div><br></div><div>I've been using Ipopt on my Macbook for some time now, and I've been able to compile using the following configure setup</div><div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: Verdana, Arial, 'Bitstream Vera Sans', Helvetica, sans-serif; font-size: 13px; "><pre class="wiki" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(247, 247, 247); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(215, 215, 215); border-right-color: rgb(215, 215, 215); border-bottom-color: rgb(215, 215, 215); border-left-color: rgb(215, 215, 215); margin-top: 1em; margin-right: 1.75em; margin-bottom: 1em; margin-left: 1.75em; padding-top: 0.25em; padding-right: 0.25em; padding-bottom: 0.25em; padding-left: 0.25em; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial; ">
$../configure -C CC="gcc -m32" CXX="g++ -m32" F77="gfortran -m32" \
ADD_CXXFLAGS="-mmacosx-version-min=10.5 -fno-common -fexceptions -fPIC" \
ADD_CFLAGS="-mmacosx-version-min=10.5 -fno-common -fexceptions -fPIC" \
ADD_FFLAGS="-mmacosx-version-min=10.5 -fPIC -fno-common" \
LDFLAGS="-flat_namespace"</pre></span><div><br></div><div>Note also that I'm using the compilers from <a href="http://hpc.sourceforge.net/">http://hpc.sourceforge.net/</a>. I use 32 bit architecture since I remember having some problems using 64 bits a long time ago. Hopefully, this will work on your system too.</div>
<div><br></div><div>Best,</div><div> Rodrigo</div><br><div class="gmail_quote">On Tue, Jan 25, 2011 at 11:05 AM, Stefan Vigerske <span dir="ltr"><<a href="mailto:stefan@math.hu-berlin.de">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>
>> it seems as if the Fortran name-mangling scheme is not recognized by<br>
>> configure, otherwise F77_FUNC should be defined.<br>
>> There should be a line like<br>
>><br>
>> checking for Fortran name-mangling scheme... lower case, underscore, no<br>
>> extra underscore<br>
>><br>
>> in the output of configure.<br>
>> Which Fortran compiler do you use?<br>
><br>
> yzzy: gfortran --version<br>
> GNU Fortran (GCC) 4.2.3<br>
<br>
And you also use Gnu C and C++ compiler of the same version?<br>
<br>
>> Is it recognized correctly by configure?<br>
><br>
> Yes, seems to be....<br>
><br>
>> What is the output of configure in the Ipopt directory?<br>
><br>
> Ah, yes, this is a problem -- I wasn't looking in the right place for the config.log<br>
> in Ipopt it says:<br>
><br>
> configure:5733: result: unknown<br>
> configure:5828: WARNING: unknown Fortran name-mangling scheme<br>
<br>
Then you should look into Ipopt/config.log where it tries out different<br>
name-mangling schemes and check why they are all failing, one of them<br>
should work. There may be an error message that gives some hint.<br>
<br>
><br>
> I tried again with:<br>
><br>
> ../configure ADD_FFLAGS="-mmacosx-version-min=10.4" FFLAGS="-arch=x86_64"<br>
><br>
> but got...<br>
><br>
><br>
> configure:4904: gfortran -o conftest -arch=x86_64 -mmacosx-version-min=10.4 conftest.f >&5<br>
> f951: error: unrecognized command line option "-arch=x86_64"<br>
> configure:4910: $? = 1<br>
> configure: failed program was:<br>
> | program main<br>
> | integer i<br>
> | end<br>
> configure:4935: WARNING: The flags FFLAGS="" do not work. I will now just try '-O', but you might want to set FFLAGS manually.<br>
><br>
> Where and how might this manual setting be done?<br>
<br>
This is what you did with FFLAGS above.<br>
<br>
Stefan<br>
<br>
> Many thanks for the responses<br>
><br>
>><br>
>> Stefan<br>
>><br>
>><br>
>> Am 25.01.2011 15:35, schrieb Roger Koenker:<br>
<div class="im">>>> I'm new to Ipopt, and trying to install 3.9.2 on a macpro 10.6.6. Using the recommended<br>
>>><br>
>>> ../configure ADD_FFLAGS="-mmacosx-version-min=10.4"<br>
>>><br>
>>> configuration ends normally, but make produces lots of messages like this:<br>
>>><br>
>>> ../../../../Ipopt/src/LinAlg/IpBlas.cpp: In function 'void Ipopt::IpBlasDtrsm(bool, Ipopt::Index, Ipopt::Index, Ipopt::Number, const Ipopt::Number*, Ipopt::Index, Ipopt::Number*, Ipopt::Index)':<br>
>>> ../../../../Ipopt/src/LinAlg/IpBlas.cpp:211: error: 'dtrsm' was not declared in this scope<br>
>>> ../../../../Ipopt/src/LinAlg/IpBlas.cpp:211: error: 'DTRSM' was not declared in this scope<br>
>>> ../../../../Ipopt/src/LinAlg/IpBlas.cpp:211: error: 'F77_FUNC' cannot be used as a function<br>
>>><br>
>>> I don't see any WARNINGS in the config.log file as reported in:<br>
>>><br>
>>> <a href="http://negfeedback.blogspot.com/2009_12_01_archive.html" target="_blank">http://negfeedback.blogspot.com/2009_12_01_archive.html</a><br>
>>><br>
>>> Any suggestions would be much appreciated.<br>
>>><br>
>>><br>
>>> Roger Koenker<br>
>>> <a href="mailto:rkoenker@illinois.edu">rkoenker@illinois.edu</a><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> Ipopt mailing list<br>
>>> <a href="mailto:Ipopt@list.coin-or.org">Ipopt@list.coin-or.org</a><br>
>>> <a href="http://list.coin-or.org/mailman/listinfo/ipopt" target="_blank">http://list.coin-or.org/mailman/listinfo/ipopt</a><br>
>>><br>
>><br>
>><br>
</div>>> --<br>
>> Stefan Vigerske<br>
>> Humboldt University Berlin, Numerical Mathematics<br>
>> <a href="http://www.math.hu-berlin.de/~stefan" target="_blank">http://www.math.hu-berlin.de/~stefan</a><br>
<div class="im">>><br>
>> _______________________________________________<br>
>> Ipopt mailing list<br>
>> <a href="mailto:Ipopt@list.coin-or.org">Ipopt@list.coin-or.org</a><br>
>> <a href="http://list.coin-or.org/mailman/listinfo/ipopt" target="_blank">http://list.coin-or.org/mailman/listinfo/ipopt</a><br>
><br>
<br>
<br>
</div><font color="#888888">--<br>
Stefan Vigerske<br>
Humboldt University Berlin, Numerical Mathematics<br>
<a href="http://www.math.hu-berlin.de/~stefan" target="_blank">http://www.math.hu-berlin.de/~stefan</a><br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Ipopt mailing list<br>
<a href="mailto:Ipopt@list.coin-or.org">Ipopt@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/ipopt" target="_blank">http://list.coin-or.org/mailman/listinfo/ipopt</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><span style="font-family:Arial, Helvetica, sans-serif;font-size:14.1667px;border-collapse:collapse;color:rgb(51, 51, 51)"><img src="http://www.cs.cmu.edu/~aml/logos/wordmark.jpg" width="200" height="24"><br>
<strong><span><font color="#000000"><span style="background-color:rgb(255, 255, 255)">Rodrigo</span></font></span><font color="#000000"><span style="background-color:rgb(255, 255, 255)"> López-</span></font><span><font color="#000000"><span style="background-color:rgb(255, 255, 255)">Negrete</span></font></span><font color="#000000"><span style="background-color:rgb(255, 255, 255)"> de la Fuente</span></font></strong><font color="#000000"><span style="background-color:rgb(255, 255, 255)"><br>
</span></font>Doctoral Candidate <br>Email: <a href="mailto:rln@cmu.edu" style="color:rgb(7, 77, 143)" target="_blank"><span>rln@cmu.edu</span></a><div><span style="color:rgb(34, 34, 34)"><span style="background-color:rgb(255, 255, 255)">WWW</span></span><span style="background-color:rgb(255, 255, 255)">: <a href="http://rodrigo.lopez-negrete.org" target="_blank">http://rodrigo.lopez-negrete.org</a></span><span style="background-color:rgb(255, 255, 255)"><br>
</span><br>Department of Chemical Engineering<br>Carnegie Mellon University <br>5000 Forbes Ave. <br>Pittsburgh, PA 15213-3890<br>USA</div></span><br>
</div>