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

Frank Kampas fkampas at msn.com
Tue Jan 31 10:30:44 EST 2012


gfortran and g95 can conflict with each other.  

From: Ray Zimmerman 
Sent: Tuesday, January 31, 2012 10:17 AM
To: ipopt at list.coin-or.org 
Subject: Re: [Ipopt] Rép : Ipopt compilation on mac OS X 10.6

It may be that, at this point, you have multiple conflicting fortran compilers and libraries installed and it's getting confused. Also, are you using the current version of Ipopt? My instructions were only tested with 3.10.1. From your errors, it looks like you may be using a much older version.

-- 
Ray Zimmerman
Senior Research Associate
419A Warren Hall, Cornell University, Ithaca, NY 14853
phone: (607) 255-9645






On Jan 31, 2012, at 8:18 AM, Sylvain Auliac wrote:



  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




  _______________________________________________
  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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20120131/b29d2e09/attachment.html>


More information about the Ipopt mailing list