[Ipopt] F77_FUNC cannot be used ...

Rodrigo Lopez-Negrete r.lopez.negrete at gmail.com
Tue Jan 25 11:13:30 EST 2011


Hi,

I've been using Ipopt on my Macbook for some time now, and I've been able to
compile using the following configure setup


$../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"


Note also that I'm using the compilers from http://hpc.sourceforge.net/. 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.

Best,
 Rodrigo

On Tue, Jan 25, 2011 at 11:05 AM, Stefan Vigerske
<stefan at math.hu-berlin.de>wrote:

> Hi,
>
> >> it seems as if the Fortran name-mangling scheme is not recognized by
> >> configure, otherwise F77_FUNC should be defined.
> >> There should be a line like
> >>
> >> checking for Fortran name-mangling scheme... lower case, underscore, no
> >> extra underscore
> >>
> >> in the output of configure.
> >> Which Fortran compiler do you use?
> >
> > yzzy: gfortran --version
> > GNU Fortran (GCC) 4.2.3
>
> And you also use Gnu C and C++ compiler of the same version?
>
> >> Is it recognized correctly by configure?
> >
> > Yes, seems to be....
> >
> >> What is the output of configure in the Ipopt directory?
> >
> > Ah, yes, this is a problem -- I wasn't looking in the right place for the
> config.log
> > in Ipopt it says:
> >
> > configure:5733: result: unknown
> > configure:5828: WARNING: unknown Fortran name-mangling scheme
>
> Then you should look into Ipopt/config.log where it tries out different
> name-mangling schemes and check why they are all failing, one of them
> should work. There may be an error message that gives some hint.
>
> >
> > I tried again with:
> >
> >        ../configure ADD_FFLAGS="-mmacosx-version-min=10.4"
> FFLAGS="-arch=x86_64"
> >
> > but got...
> >
> >
> > configure:4904: gfortran -o conftest -arch=x86_64
> -mmacosx-version-min=10.4  conftest.f  >&5
> > f951: error: unrecognized command line option "-arch=x86_64"
> > configure:4910: $? = 1
> > configure: failed program was:
> > |       program main
> > |       integer i
> > |       end
> > configure:4935: WARNING: The flags FFLAGS="" do not work.  I will now
> just try '-O', but you might want to set FFLAGS manually.
> >
> > Where and how might this manual setting be done?
>
> This is what you did with FFLAGS above.
>
> Stefan
>
> > Many thanks for the responses
> >
> >>
> >> Stefan
> >>
> >>
> >> Am 25.01.2011 15:35, schrieb Roger Koenker:
> >>> I'm new to Ipopt, and trying to install 3.9.2 on a macpro 10.6.6.
>  Using the recommended
> >>>
> >>>      ../configure ADD_FFLAGS="-mmacosx-version-min=10.4"
> >>>
> >>> configuration ends normally, but make produces lots of messages like
> this:
> >>>
> >>> ../../../../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)':
> >>> ../../../../Ipopt/src/LinAlg/IpBlas.cpp:211: error: 'dtrsm' was not
> declared in this scope
> >>> ../../../../Ipopt/src/LinAlg/IpBlas.cpp:211: error: 'DTRSM' was not
> declared in this scope
> >>> ../../../../Ipopt/src/LinAlg/IpBlas.cpp:211: error: 'F77_FUNC' cannot
> be used as a function
> >>>
> >>> I don't see any WARNINGS in the config.log file as reported in:
> >>>
> >>>     http://negfeedback.blogspot.com/2009_12_01_archive.html
> >>>
> >>> Any suggestions would be much appreciated.
> >>>
> >>>
> >>> Roger Koenker
> >>> rkoenker at illinois.edu
> >>>
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> Ipopt mailing list
> >>> Ipopt at list.coin-or.org
> >>> http://list.coin-or.org/mailman/listinfo/ipopt
> >>>
> >>
> >>
> >> --
> >> Stefan Vigerske
> >> Humboldt University Berlin, Numerical Mathematics
> >> http://www.math.hu-berlin.de/~stefan
> >>
> >> _______________________________________________
> >> Ipopt mailing list
> >> Ipopt at list.coin-or.org
> >> http://list.coin-or.org/mailman/listinfo/ipopt
> >
>
>
> --
> Stefan Vigerske
> Humboldt University Berlin, Numerical Mathematics
> http://www.math.hu-berlin.de/~stefan
>
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt
>



-- 

*Rodrigo López-Negrete de la Fuente*
Doctoral Candidate
Email: rln at cmu.edu
WWW: http://rodrigo.lopez-negrete.org

Department of Chemical Engineering
Carnegie Mellon University
5000 Forbes Ave.
Pittsburgh, PA 15213-3890
USA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/ipopt/attachments/20110125/dc02eefa/attachment-0001.html 


More information about the Ipopt mailing list