JuliaOpt / CoinOptServices.jl

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

failed process: Process(`patch -p1 -d ..`, ProcessExited(1)) #35

Open Wikunia opened 6 years ago

Wikunia commented 6 years ago

OS: 4.13.8-1-ARCH Julia v0.6

If I run Pkg.add("CoinOptServices") or Pkg.build("CoinOptServices") I get the following error:

INFO: Building Cbc
INFO: Building Ipopt
INFO: Building LightXML
INFO: Building CoinOptServices
WARNING: Method definition @checked_lib(ANY, ANY) in module __anon__ at /home/ole/.julia/v0.6/Cbc/deps/deps.jl:7 overwritten at /home/ole/.julia/v0.6/Ipopt/deps/deps.jl:7.
INFO: Attempting to Create directory /home/ole/.julia/v0.6/CoinOptServices/deps/downloads
INFO: Directory /home/ole/.julia/v0.6/CoinOptServices/deps/downloads already created
INFO: Downloading file http://www.coin-or.org/download/source/OS/OS-2.9.2.tgz
INFO: Done downloading file http://www.coin-or.org/download/source/OS/OS-2.9.2.tgz
INFO: Attempting to Create directory /home/ole/.julia/v0.6/CoinOptServices/deps/src
INFO: Directory /home/ole/.julia/v0.6/CoinOptServices/deps/src already created
INFO: Attempting to Create directory /home/ole/.julia/v0.6/CoinOptServices/deps
INFO: Directory /home/ole/.julia/v0.6/CoinOptServices/deps already created
INFO: Path /home/ole/.julia/v0.6/CoinOptServices/deps/src/OS-2.9.2 already created
INFO: Attempting to Create directory /home/ole/.julia/v0.6/CoinOptServices/deps/src/OS-2.9.2/build
INFO: Directory /home/ole/.julia/v0.6/CoinOptServices/deps/src/OS-2.9.2/build already created
INFO: Changing Directory to /home/ole/.julia/v0.6/CoinOptServices/deps/src/OS-2.9.2/build
=======================================================================[ ERROR: CoinOptServices ]========================================================================

LoadError: failed process: Process(`patch -p1 -d ..`, ProcessExited(1)) [1]
while loading /home/ole/.julia/v0.6/CoinOptServices/deps/build.jl, in expression starting on line 71

I have the following packages installed via my linux package manager:

community/coin-or-cbc 2.9.9-1 (coin-or) [installed]
    COIN-OR branch-and-cut mixed integer programming solver
community/coin-or-cgl 0.59.10-1 (coin-or) [installed]
    COIN-OR Cut Generation Library
community/coin-or-clp 1.16.11-1 (coin-or) [installed]
    COIN-OR linear programming solver
community/coin-or-coinutils 2.10.14-1 (coin-or) [installed]
    COIN-OR collection of utility classes
community/coin-or-csdp 6.2.0-1
    A C library for Semidefinite Programming
community/coin-or-mp 1.8.3-5 (coin-or) [installed]
    C-API library that supports most of the functionality of CLP (Coin LP), CBC (Coin Branch-and-Cut), and CGL (Cut Generation Library) projects
community/coin-or-osi 0.107.9-1 (coin-or) [installed]
    COIN-OR Open Solver Interface
mlubin commented 6 years ago

Please leave a link if you double post an issue: https://github.com/JuliaOpt/CoinOptServices.jl/issues/32#issuecomment-337883164. I expect you'll have to roll up your sleeves and see why the patch is failing to apply. See the build steps here: https://github.com/JuliaOpt/CoinOptServices.jl/blob/67181174cfeaad37637229c94a71b4668e436fe3/deps/build.jl#L48.

Wikunia commented 6 years ago

I'm not sure whether this helps: julia build.jl results in this error:

make[2]: *** [Makefile:503: readnl.lo] Error 1
make[2]: Leaving directory '/home/ole/.julia/v0.6/CoinOptServices/deps/src/OS-2.9.2/build/Couenne/src/problem'
make[1]: *** [Makefile:476: all-recursive] Error 1
make[1]: Leaving directory '/home/ole/.julia/v0.6/CoinOptServices/deps/src/OS-2.9.2/build/Couenne'
make: *** [Makefile:310: all-recursive] Error 1
ERROR: LoadError: failed process: Process(`make`, ProcessExited(2)) [2]
Stacktrace:
 [1] pipeline_error(::Base.Process) at ./process.jl:682
 [2] run(::Cmd) at ./process.jl:651
 [3] run(::BinDeps.SynchronousStepCollection) at /home/ole/.julia/v0.6/BinDeps/src/BinDeps.jl:519 (repeats 2 times)
 [4] satisfy!(::BinDeps.LibraryDependency, ::Array{DataType,1}) at /home/ole/.julia/v0.6/BinDeps/src/dependencies.jl:874
 [5] satisfy!(::BinDeps.LibraryDependency) at /home/ole/.julia/v0.6/BinDeps/src/dependencies.jl:852
 [6] macro expansion at /home/ole/.julia/v0.6/BinDeps/src/dependencies.jl:907 [inlined]
 [7] anonymous at ./<missing>:?
while loading /home/ole/.julia/v0.6/CoinOptServices/deps/build.jl, in expression starting on line 71
julia build.jl  97.83s user 23.65s system 91% cpu 2:12.21 total
mlubin commented 6 years ago

build.jl is not a file that you're supposed to run directly. Instead, manually follow the steps from the command line as if you were installing the package from source normally.