[Ipopt] F77_FUNC cannot be used ...

Stefan Vigerske stefan at math.hu-berlin.de
Tue Jan 25 11:05:51 EST 2011


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



More information about the Ipopt mailing list