JuliaOpt / CoinOptServices.jl

Julia interface to COIN-OR Optimization Services https://projects.coin-or.org/OS
Other
16 stars 4 forks source link

Pkg.add("CoinOptServices") and Pkg.build("CoinOptServices") MAC OS Sierra #24

Open javiervg opened 7 years ago

javiervg commented 7 years ago

OSX 10.12.1 Can't seem to add or build. Might be part of the MAC OS X recent update. Not sure if others are having the same issue, but was not able to find a solution. Thanks,


julia> Pkg.add("CoinOptServices") INFO: Installing CoinOptServices v0.1.2 INFO: Installing LightXML v0.4.0 INFO: Building Homebrew Already up-to-date. INFO: Building Cbc INFO: Building Ipopt INFO: Building LightXML INFO: Building CoinOptServices WARNING: The following packages do not have relocatable bottles, installation may fail! Please report these packages to https://github.com/JuliaLang/Homebrew.jl: staticfloat/juliadeps/Optimizationservices ==> Installing optimizationservices from staticfloat/juliadeps ==> Installing dependencies for staticfloat/juliadeps/optimizationservices: staticfloat/juliadeps/couenne, cmake, homebrew/science/cppad ==> Installing staticfloat/juliadeps/optimizationservices dependency: staticfloat/juliadeps/couenne ==> Downloading http://www.coin-or.org/download/pkgsource/Couenne/Couenne-0.5.6.tgz Already downloaded: /Users/...Library/Caches/Homebrew.jl/couenne-0.5.6.tgz ==> ./configure --prefix=/Users/..../.julia/v0.4/Homebrew/deps/usr/Cellar/couenne/0.5.6 Last 15 lines from /Users/..../Library/Logs/Homebrew/couenne/01.configure: checking for f77... no checking for g77... no checking for pgf90... no checking for pgf77... no checking for ifc... no checking for frt... no checking for af77... no configure: WARNING: Failed to find a Fortran compiler! configure: Fortran compiler options are:
checking how to get verbose linking output from unavailable... configure: WARNING: compilation failed

checking for Fortran libraries of unavailable... checking for dummy main to link with Fortran libraries... none checking for Fortran name-mangling scheme... configure: error: cannot compile a simple Fortran program See `config.log' for more details.

READ THIS: https://git.io/brew-troubleshooting If reporting this issue please do so at (not Homebrew/brew): https://github.com/staticfloat/homebrew-juliadeps/issues

===========================[ ERROR: CoinOptServices ]===========================

LoadError: failed process: Process(/Users/.../.julia/v0.4/Homebrew/deps/usr/bin/brew install staticfloat/juliadeps/Optimizationservices, ProcessExited(1)) [1] while loading /Users/.../.julia/v0.4/CoinOptServices/deps/build.jl, in expression starting on line 69

====================================================[ BUILD ERRORS ]====================================================

WARNING: CoinOptServices had build errors.

INFO: Package database updated

tkelman commented 7 years ago

This is due to being on Sierra, and should be fixed as soon as https://github.com/staticfloat/homebrew-juliadeps/pull/110 gets merged

javiervg commented 7 years ago

Great thanks for the prompt response. Will keep an eye on those developments

tkelman commented 7 years ago

@goedman can you recall what workaround you used for the fortran issue? might work for @javiervg too while we're waiting

goedman commented 7 years ago

I’m pretty sure at that time I followed your :-) advice:

"As a temporary fallback, you can try commenting out this line: https://github.com/JuliaOpt/Ipopt.jl/blob/911d68150970c17277296654e3a806431642a070/deps/build.jl#L71 https://github.com/JuliaOpt/Ipopt.jl/blob/911d68150970c17277296654e3a806431642a070/deps/build.jl#L71 "

I just now tried the same trick (line 20 in build.jl of CoinOptServices) and it seems to build ok but in Pkg.test(“CoinOptServices”):

Out of 6 total facts: Verified: 4 Failed: 2 [nonlinear] Test mixed integer nonlinear problems

With solver CoinOptServices.OsilSolver

With solver CoinOptServices.OsilSolver

and now seems stuck at:

2 facts verified. [nonlinear] Test unboundedness detection

With solver Ipopt.IpoptSolver With solver CoinOptServices.OsilSolver

2 facts verified. [nonlinear] Test entropy maximization

With solver Ipopt.IpoptSolver With solver NLopt.NLoptSolver With solver CoinOptServices.OsilSolver

6 facts verified. [nonlinear] Test entropy maximization (reformulation)

With solver Ipopt.IpoptSolver With solver NLopt.NLoptSolver

On Oct 27, 2016, at 14:07, Tony Kelman notifications@github.com wrote:

@goedman https://github.com/goedman can you recall what workaround you used for the fortran issue? might work for @javiervg https://github.com/javiervg too while we're waiting

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JuliaOpt/CoinOptServices.jl/issues/24#issuecomment-256769994, or mute the thread https://github.com/notifications/unsubscribe-auth/AADL6KVnPx-6vx6nLVGIvvIyPIFz8KJ-ks5q4RJ-gaJpZM4Khr7k.

tkelman commented 7 years ago

Oh hah thanks. I don't use a mac so I forget these things. It's expected that OS fails a few of JuMP's tests, those are upstream bugs that might take a long time to get fixed, if ever. I haven't looked in enough detail at how to run only a subset of JuMP's tests with OS to make things green.

goedman commented 7 years ago

Hopefully this helps @javiervg .

javiervg commented 7 years ago

Thanks a lot guys for your help and prompt resolution, you deserve a homebrew.

Commenting out line 20 in build.jl in CoinOptServices/deps/ as goedman recommended did the trick. Tried a couple of tests with Bonmin and Couenne and worked like a charm.

(#provides(Homebrew.HB, "Optimizationservices", [libOS], os = :Darwin))