-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ipopt.jl install problems on OSX #30
Comments
I dug in a little bit and found that the error is in the ThirdParty/Mumps config file. Here is the error from config.log:
|
Another follow-up. Setting
|
On OSX, it should just be downloading a homebrew binary automatically. You really shouldn't need to configure and build from source here... what does |
Also what version of OSX, where are you getting gfortran from, and what is your Julia |
Here is
I'm running OSX 10.10.2. |
Dunno. @staticfloat, little help? Try |
A
|
I have no idea what architecture libcoinblas.a is trying to build as. I do probably need some smarter way of dealing with not finding I don't know what the |
I should mention on this thread that I tried to answer staticfloat's questions and found that I had a few problems that were not related to this. In particular, Pkg.update() failed because curl couldn't find certificates and because a gfortran.dylib library was missing (I had deleted it at a friend's recommendation to try to fix this problem). These problems didn't seem related to Ipopt, so I wanted to fix them before posting. I only have intermittent access to the computer in question, so I apologize for being slow to respond. (I also have Ipopt working on my main work computer, so this issue became less urgent for me.) I'll be able to get to the computer in the next day or two and hopefully work some of those things out. |
Cool. Part of the context of me posting more junk was that someone else reported a problem with this package on the mailing list https://groups.google.com/forum/#!topic/julia-users/v7EUEnZUHSo and I linked to this issue because I have a sneaky feeling they might also be on OSX so should have just been able to download a Homebrew binary instead of compiling from source. |
I revisited this yesterday, and made some progress with the install, though Pkg.test("Ipopt") still fails. Here is the summary:
However, Pkg.test(“Ipopt”) fails with this error:
|
@rgiordan, |
I'm surprised adding the homebrew-science version of Ipopt would build all of gcc. Thought they had bottles of most dependencies by now. |
@rgiordan What happens if you run The reason homebrew-science installations aren't using bottles is because many of the formulae in homebrew-science are not |
|
Great; first things first; you shouldn't need to build |
Great! The
|
Hmm, following those steps still tries to pull from
|
I think I see what's going on; We're gonna need to do a little surgery. You need to run You may want to also untap |
All right, that did it! I've gotten Ipopt installed and the tests pass. Many thanks for the help! (NB in case someone else ever reads this, the tap is actually |
Ah, my bad. I'll edit my message up top. Glad it worked out for you! |
Ah, right. That's subtle and annoying. Is this a special non-default behavior of building bottles that they have to opt into, or does homebrew try to do this by default and it's just hitting some discrepancy that prevents it from working in many of the homebrew-science formulae? |
The latter. Homebrew will automatically enable |
As an example of how this works out in practice; the recent bottle I built for In this case, the strings found are in some documentation and |
Hi there, having a similar issue here. Is it better to discuss here or in julia> Pkg.add("Ipopt")
INFO: Installing Ipopt v0.1.16
INFO: Building Homebrew
HEAD is now at 8b71e0f rocksdb: update 3.13 bottle.
HEAD is now at c490b44 Merge pull request #61 from staticfloat/staging
INFO: Building Ipopt
WARNING: deprecated syntax "[a=>b, ...]" at /Users/zaccranko/.julia/v0.4/Ipopt/deps/build.jl:72.
Use "Dict(a=>b, ...)" instead.
Warning: You are using OS X 10.11.
We do not provide support for this pre-release version.
You may encounter build failures or other breakage.
==> Installing ipopt from staticfloat/homebrew-juliadeps
==> Installing dependencies for staticfloat/juliadeps/ipopt: gcc
==> Installing staticfloat/juliadeps/ipopt dependency: gcc
==> Downloading http://ftpmirror.gnu.org/gcc/gcc-5.2.0/gcc-5.2.0.tar.bz2
==> Downloading from http://gnu.uberglobalmirror.com/gcc/gcc-5.2.0/gcc-5.2.0.tar.
######################################################################## 100.0%
==> Patching
patching file gcc/jit/Make-lang.in
patching file gcc/jit/jit-playback.c
Hunk #1 succeeded at 2459 with fuzz 2 (offset 43 lines).
==> ../configure --build=x86_64-apple-darwin15.0.0 --prefix=/Users/zaccranko/.jul
==> make bootstrap
`==> make install
==> Caveats
GCC has been built with multilib support. Notably, OpenMP may not work:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60670
If you need OpenMP support you may want to
brew reinstall gcc --without-multilib
==> Summary
🍺 /Users/zaccranko/.julia/v0.4/Homebrew/deps/usr/Cellar/gcc/5.2.0: 1353 files, 248M, built in 84.0 minutes
==> Installing staticfloat/juliadeps/ipopt
==> Downloading http://www.coin-or.org/download/source/Ipopt/Ipopt-3.12.1.tgz
Already downloaded: /Users/zaccranko/Library/Caches/Homebrew.jl/ipopt-3.12.1.tgz
==> cd ThirdParty/Blas; ./get.Blas
==> cd ThirdParty/Blas; ./configure --prefix=/Users/zaccranko/.julia/v0.4/Homebre
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.
make: *** No rule to make target `install'. Stop.
READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
https://github.com/staticfloat/homebrew-juliadeps/issues
Warning: You are using OS X 10.11.
We do not provide support for this pre-release version.
You may encounter build failures or other breakage.
================================[ ERROR: Ipopt ]=================================
LoadError: failed process: Process(`/Users/zaccranko/.julia/v0.4/Homebrew/deps/usr/bin/brew install --force-bottle staticfloat/juliadeps/ipopt`, ProcessExited(1)) [1]
while loading /Users/zaccranko/.julia/v0.4/Ipopt/deps/build.jl, in expression starting on line 72
=================================================================================
================================[ BUILD ERRORS ]=================================
WARNING: Ipopt had build errors.
- packages with build errors remain installed in /Users/zaccranko/.julia/v0.4
- build the package(s) and all dependencies with `Pkg.build("Ipopt")`
- build a single package by running its `deps/build.jl` script
=================================================================================
INFO: Package database updated
INFO: METADATA is out-of-date — you may not have the latest version of Ipopt
INFO: Use `Pkg.update()` to get the latest versions of your packages
julia> Pkg.build("Ipopt")
INFO: Building Homebrew
HEAD is now at 8b71e0f rocksdb: update 3.13 bottle.
HEAD is now at c490b44 Merge pull request #61 from staticfloat/staging
INFO: Building Ipopt
WARNING: deprecated syntax "[a=>b, ...]" at /Users/zaccranko/.julia/v0.4/Ipopt/deps/build.jl:72.
Use "Dict(a=>b, ...)" instead.
Warning: You are using OS X 10.11.
We do not provide support for this pre-release version.
You may encounter build failures or other breakage.
==> Installing ipopt from staticfloat/homebrew-juliadeps
==> Downloading http://www.coin-or.org/download/source/Ipopt/Ipopt-3.12.1.tgz
Already downloaded: /Users/zaccranko/Library/Caches/Homebrew.jl/ipopt-3.12.1.tgz
==> cd ThirdParty/Blas; ./get.Blas
==> cd ThirdParty/Blas; ./configure --prefix=/Users/zaccranko/.julia/v0.4/Homebrew/dep
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.
make: *** No rule to make target `install'. Stop.
READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
https://github.com/staticfloat/homebrew-juliadeps/issues
Warning: You are using OS X 10.11.
We do not provide support for this pre-release version.
You may encounter build failures or other breakage.
===================================[ ERROR: Ipopt ]===================================
LoadError: failed process: Process(`/Users/zaccranko/.julia/v0.4/Homebrew/deps/usr/bin/brew install --force-bottle staticfloat/juliadeps/ipopt`, ProcessExited(1)) [1]
while loading /Users/zaccranko/.julia/v0.4/Ipopt/deps/build.jl, in expression starting on line 72
======================================================================================
===================================[ BUILD ERRORS ]===================================
WARNING: Ipopt had build errors.
- packages with build errors remain installed in /Users/zaccranko/.julia/v0.4
- build the package(s) and all dependencies with `Pkg.build("Ipopt")`
- build a single package by running its `deps/build.jl` script
====================================================================================== |
Unfortunately, this issue is pretty easy to diagnose:
Your OSX version is too new; there are no bottles available, and we are purposefully not installing a |
Hi @staticfloat, has there been any development with this? I'm still getting build failures for Ipopt. Cheers. |
Hey Zac, can you |
On v0.4... julia> Pkg.add("Ipopt")
INFO: Installing Ipopt v0.1.18
INFO: Building Homebrew
HEAD is now at b48f442 archey 1.5.1
HEAD is now at b178725 Merge pull request #83 from staticfloat/staging
INFO: Building Ipopt
==> Installing ipopt from staticfloat/homebrew-juliadeps
==> Downloading https://juliabottles.s3.amazonaws.com/ipopt-3.12.4.el_capitan.bot
######################################################################## 100.0%
==> Pouring ipopt-3.12.4.el_capitan.bottle.tar.gz
🍺 /Users/zaccranko/.julia/v0.4/Homebrew/deps/usr/Cellar/ipopt/3.12.4: 83 files, 6.0M
To relink: brew unlink ipopt && brew link ipopt
INFO: Package database updated
julia> Pkg.build("Ipopt")
INFO: Building Homebrew
HEAD is now at b48f442 archey 1.5.1
HEAD is now at b178725 Merge pull request #83 from staticfloat/staging
INFO: Building Ipopt Awesome, thanks Eliot! |
Thanks @staticfloat! |
BTW, still getting all kinds of errors on v0.5, but I assume this is still in the works |
Are you getting installation errors on v0.5? |
My bad, didn't check the log properly. Looks like the issue I'm having is with building Homebrew.jl on v0.5... so it's unrelated to this thread julia> Pkg.build("Homebrew")
WARNING: Error during initialization of module CHOLMOD:
ErrorException("could not load library "libsuitesparseconfig"
dlopen(libsuitesparseconfig.dylib, 1): image not found")
INFO: Building Homebrew
fatal: error thrown and no exception handler available.
Base.InitError(mod=:CHOLMOD, error=ErrorException("error compiling __init__: could not load library "libsuitesparseconfig"
dlopen(libsuitesparseconfig.dylib, 1): image not found"))
rec_backtrace at /private/tmp/julia20151104-70825-aqvc3v/src/task.c:662
_ZL19jl_rethrow_with_addPKcz at /private/tmp/julia20151104-70825-aqvc3v/src/codegen.cpp:837
_ZL11to_functionP17_jl_lambda_info_t at /private/tmp/julia20151104-70825-aqvc3v/src/codegen.cpp:966
jl_compile_linfo at /private/tmp/julia20151104-70825-aqvc3v/src/codegen.cpp:1137
jl_trampoline_compile_linfo at /private/tmp/julia20151104-70825-aqvc3v/src/builtins.c:1007
jl_trampoline at /private/tmp/julia20151104-70825-aqvc3v/src/builtins.c:1020
jl_apply at /private/tmp/julia20151104-70825-aqvc3v/src/./julia.h:1496
jl_init_restored_modules at /private/tmp/julia20151104-70825-aqvc3v/src/dump.c:1743
_julia_init at /private/tmp/julia20151104-70825-aqvc3v/src/init.c:628
julia_init at /private/tmp/julia20151104-70825-aqvc3v/src/task.c:281
main at /usr/local/Cellar/julia/HEAD/bin/julia (unknown line)
==============================[ ERROR: Homebrew ]===============================
LoadError: LoadError: Failed to precompile JSON to /Users/zaccranko/.julia/lib/v0.5/JSON.ji
while loading /Users/zaccranko/.julia/v0.5/Homebrew/src/Homebrew.jl, in expression starting on line 9
while loading /Users/zaccranko/.julia/v0.5/Homebrew/deps/build.jl, in expression starting on line 1
================================================================================ |
Please feel free to open a new issue, I'm assuming in the main Julia repository, and ping me. I think I can help you debug this. |
Okay following the resolution of #13867 this seems to be good to go julia> VERSION
v"0.5.0-dev+1137"
julia> Pkg.add("Ipopt")
INFO: Installing Ipopt v0.1.18
INFO: Building Homebrew
HEAD is now at eabf890 audit fixes: C 06: csup - cups-pdf
HEAD is now at b178725 Merge pull request #83 from staticfloat/staging
INFO: Building Ipopt
==> Installing ipopt from staticfloat/homebrew-juliadeps
==> Downloading https://juliabottles.s3.amazonaws.com/ipopt-3.12.4.el_capitan.bottle.tar.gz
Already downloaded: /Users/zaccranko/Library/Caches/Homebrew.jl/ipopt-3.12.4.el_capitan.bottle.tar.gz
==> Pouring ipopt-3.12.4.el_capitan.bottle.tar.gz
🍺 /Users/zaccranko/.julia/v0.5/Homebrew/deps/usr/Cellar/ipopt/3.12.4: 83 files, 6.0M
To relink: brew unlink ipopt && brew link ipopt
INFO: Package database updated
julia> Pkg.build("Ipopt")
INFO: Building Homebrew
HEAD is now at eabf890 audit fixes: C 06: csup - cups-pdf
HEAD is now at b178725 Merge pull request #83 from staticfloat/staging
INFO: Building Ipopt |
This looks like it was resolved? Open a new issue if not. |
I am unable to install Ipopt.jl on my mac. The configuration fails with the error shown below. I can run configure successfully without the --with-blas and --with-lapack flags, but then make fails to compile ThirdParty/Mumps with the error "ld: symbol(s) not found for architecture i386".
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: