Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

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

Open
javiervg opened this issue Oct 26, 2016 · 7 comments

Comments

@javiervg
Copy link

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.

  • packages with build errors remain installed in /Users/....julia/v0.4
  • build the package(s) and all dependencies with Pkg.build("CoinOptServices")
  • build a single package by running its deps/build.jl script

INFO: Package database updated

@tkelman
Copy link
Contributor

tkelman commented Oct 26, 2016

This is due to being on Sierra, and should be fixed as soon as staticfloat/homebrew-juliadeps#110 gets merged

@javiervg
Copy link
Author

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

@tkelman
Copy link
Contributor

tkelman commented Oct 27, 2016

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

@goedman
Copy link

goedman commented Oct 27, 2016

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 [email protected] 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 #24 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AADL6KVnPx-6vx6nLVGIvvIyPIFz8KJ-ks5q4RJ-gaJpZM4Khr7k.

@tkelman
Copy link
Contributor

tkelman commented Oct 27, 2016

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
Copy link

goedman commented Oct 27, 2016

Hopefully this helps @javiervg .

@javiervg
Copy link
Author

javiervg commented Oct 28, 2016

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))

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants