Skip to content
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

Build failed for julia 0.7.0 on Ubuntu 17.10 #159

Closed
aritrasep opened this issue Jan 16, 2018 · 3 comments
Closed

Build failed for julia 0.7.0 on Ubuntu 17.10 #159

aritrasep opened this issue Jan 16, 2018 · 3 comments

Comments

@aritrasep
Copy link

aritrasep commented Jan 16, 2018

julia> Pkg.add("CPLEX")
[ Info: Installing CPLEX v0.3.0
[ Info: Building CPLEX
┌ Warning: `is_apple` is deprecated, use `Sys.isapple` instead.
│   caller = top-level scope
└ @ Core :0
┌ Warning: `is_apple` is deprecated, use `Sys.isapple` instead.
│   caller = top-level scope at <missing>:24
└ @ Core <missing>:24
┌ Warning: `is_unix` is deprecated, use `Sys.isunix` instead.
│   caller = top-level scope at <missing>:26
└ @ Core <missing>:26
┌ Warning: `is_windows` is deprecated, use `Sys.iswindows` instead.
│   caller = top-level scope at <missing>:?
└ @ Core <missing>:-1
┌ Warning: Deprecated syntax `implicit assignment to global variable `found``.
│ Use `global found` instead.
└ @ nothing none:0
┌ Error: ------------------------------------------------------------
│ # Build failed for CPLEX
│   exception =
│    **LoadError: UndefVarError: Libdl not defined**
│    Stacktrace:
│     [1] top-level scope at ./<missing>:54
│     [2] include at ./boot.jl:292 [inlined]
│     [3] include_relative(::Module, ::String) at ./loading.jl:521
│     [4] include at ./sysimg.jl:26 [inlined]
│     [5] include(::String) at ./loading.jl:555
│     [6] top-level scope
│     [7] eval at ./boot.jl:295 [inlined]
│     [8] eval at ./sysimg.jl:71 [inlined]
│     [9] evalfile(::String, ::Array{String,1}) at ./loading.jl:550 (repeats 2 times)
│     [10] #2 at ./none:12 [inlined]
│     [11] cd(::getfield(, Symbol("##2#5")){String}, ::String) at ./file.jl:70
│     [12] (::getfield(, Symbol("##1#3")))(::IOStream) at ./none:11
│     [13] open(::getfield(, Symbol("##1#3")), ::String, ::String) at ./iostream.jl:310
│     [14] top-level scope
│     [15] eval at ./boot.jl:295 [inlined]
│     [16] eval(::Module, ::Expr) at ./sysimg.jl:71
│     [17] process_options(::Base.JLOptions) at ./client.jl:301
│     [18] _start() at ./client.jl:375
│    in expression starting at /home/aritra/.julia/v0.7/CPLEX/deps/build.jl:53
└ @ Main none:15
┌ Warning: ------------------------------------------------------------
│ # Build error summary
│ 
│ CPLEX had build errors.
│ 
│  - packages with build errors remain installed in /home/aritra/.julia/v0.7
│  - build the package(s) and all dependencies with `Pkg.build("CPLEX")`
│  - build a single package by running its `deps/build.jl` script
└ @ Base.Pkg.Entry entry.jl:650
[ Info: Package database updated
julia> versioninfo()
Julia Version 0.7.0-DEV.3413
Commit 5e2ff127f8 (2018-01-15 17:38 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, skylake)
@blegat
Copy link
Member

blegat commented Jan 16, 2018

Might be caused by JuliaLang/julia#25459

@blegat
Copy link
Member

blegat commented Jan 16, 2018

@aritrasep Let me know if #160 fixes the issue

@aritrasep
Copy link
Author

@blegat I was able to successfully build CPLEX.jl, however now I am getting the following error when using CPLEX:
ERROR: LoadError: LoadError: syntax: ccall argument types must be a tuple; try "(T,)" and check if you specified a correct return type
Stacktrace:
[1] include at ./boot.jl:292 [inlined]
[2] include_relative(::Module, ::String) at ./loading.jl:521
[3] include at ./sysimg.jl:26 [inlined]
[4] include(::String) at /home/aritra/.julia/v0.7/CPLEX/src/CPLEX.jl:3
[5] top-level scope
[6] include at ./boot.jl:292 [inlined]
[7] include_relative(::Module, ::String) at ./loading.jl:521
[8] include(::Module, ::String) at ./sysimg.jl:26
[9] top-level scope
[10] eval at ./boot.jl:295 [inlined]
[11] top-level scope at ./:2
in expression starting at /home/aritra/.julia/v0.7/CPLEX/src/cpx_solve.jl:1
in expression starting at /home/aritra/.julia/v0.7/CPLEX/src/CPLEX.jl:107
ERROR: Failed to precompile CPLEX to /home/aritra/.julia/lib/v0.7/CPLEX.ji.
Stacktrace:
[1] error at ./error.jl:33 [inlined]
[2] compilecache(::String) at ./loading.jl:648
[3] compilecache at ./loading.jl:605 [inlined]
[4] _require(::Symbol) at ./loading.jl:460
[5] require(::Symbol) at ./loading.jl:333

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

No branches or pull requests

2 participants