[Ipopt] Rép : Ipopt compilation on mac OS X 10.6

Sylvain Auliac auliac at ann.jussieu.fr
Tue Jan 31 08:18:33 EST 2012


Many thanks for the link, sadly it did not solve my problem :
I actually first tried to compile with gfortran, but doing so, I wasn't even able to run the configurations script to its end :

  checking for Fortran 77 compiler default output file name... configure: error: Fortran 77 compiler cannot create executables

There was this in one of the config.log file (int the ThirdParty/HSL/ directory)

  Undefined symbols:
    "__gfortran_set_std", referenced from:
        _MAIN__ in ccDMKdOw.o
  ld: symbol(s) not found
  collect2: ld returned 1 exit status
  configure:1903: $? = 1
  configure: failed program was:
  |       program main
  | 
  |       end
  configure:1942: error: Fortran 77 compiler cannot create executables

Very strange since I have already compiled many softwares or library with gfortran. I have tried with the gfortran from your link and it did not change anything. Using g95 and following your method lead me to the same result as before at runtime :

  dyld: Symbol not found: __g95_filename
    Referenced from: /Users/auliac/Desktop/Ipopt-3.2.1/lib/libipopt.0.dylib
    Expected in: flat namespace
   in /Users/auliac/Desktop/Ipopt-3.2.1/lib/libipopt.0.dylib






Le 30 janv. 2012 à 21:07, Ray Zimmerman a écrit :

> You may find some help at ...
> 
>    https://projects.coin-or.org/Ipopt/wiki/Ipopt_on_Mac_OS_X
> 
> ... though I am using gfortran, not g95.
> 
> -- 
> Ray Zimmerman
> Senior Research Associate
> 419A Warren Hall, Cornell University, Ithaca, NY 14853
> phone: (607) 255-9645
> 
> 
> 
> 
> On Jan 30, 2012, at 10:49 AM, Sylvain Auliac wrote:
> 
>> Hello,
>> i'm trying to have ipopt working on my laptop (OS X 10.6), but i have configuration problems. I can compile and create the library files, but I always get some messages like that at runtime :
>> 
>> dyld: Symbol not found: __g95_filename
>>   Referenced from: /Users/auliac/Desktop/Ipopt-3.2.1/lib/libipopt.0.dylib
>>   Expected in: flat namespace
>> 
>> As suggested in the "current issues" section of the site, I have added ADD_FFLAGS="-mmacosx-version-min=10.4" while configuring. If I only do that, I get this error when I type "make test" when tests are run. I have then tried several flags combination from this troubleshooting page, I only have better results when I also add LDFLAGS="-flat_namespace" . With that, the console displays a succes message when I run the test. But still the executable from the exemples folder send this "_g95_filename" error (not to speak about code of my own). This is somewhat weird... I use gcc for c/c++ compilation and g95 for the fortran.
>> 
>> I'd greatly appreciate any help.
>> 
>> 
>> 
>> 
>> Sylvain Auliac
>> Laboratoire Jacques-Louis Lions
>> Université Pierre et Marie Curie
>> mail: auliac at ann.jussieu.fr
>> tel : 01 44 27 71 70
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Ipopt mailing list
>> Ipopt at list.coin-or.org
>> http://list.coin-or.org/mailman/listinfo/ipopt
> 
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt

Sylvain Auliac
Laboratoire Jacques-Louis Lions
Université Pierre et Marie Curie
mail: auliac at ann.jussieu.fr
tel : 01 44 27 71 70



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20120131/8ce6055e/attachment.html>


More information about the Ipopt mailing list