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

Problem building SDPA #22

Closed
tweisser opened this issue May 13, 2020 · 3 comments
Closed

Problem building SDPA #22

tweisser opened this issue May 13, 2020 · 3 comments

Comments

@tweisser
Copy link

Trying to install SDPA on Ubuntu 18.04.4 LTS with Julia 1.4.1

              _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.4.1 (2020-04-14)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(sdpa-test) pkg> st
Status `~/julia/sdpa-test/Project.toml`
  (empty environment)

(sdpa-test) pkg> add SDPA

(sdpa-test) pkg> build SDPA
   Building CxxWrap → `~/.julia/packages/CxxWrap/KcmSi/deps/build.log`
   Building SDPA ───→ `~/.julia/packages/SDPA/d3tZm/deps/build.log`
┌ Error: Error building `SDPA`: 
│ ERROR: LoadError: LibraryProduct(nothing, ["libsdpawrap"], :libsdpawrap, "Prefix(/home/tweisser/.julia/packages/SDPA/d3tZm/deps/usr)") is not satisfied, cannot generate deps.jl!
│ Stacktrace:
│  [1] error(::String) at ./error.jl:33
│  [2] write_deps_file(::String, ::Array{Product,1}; verbose::Bool, isolate::Bool) at /home/tweisser/.julia/packages/BinaryProvider/GeAtj/src/Products.jl:419
│  [3] top-level scope at /home/tweisser/.julia/packages/SDPA/d3tZm/deps/build.jl:61
│  [4] include(::String) at ./client.jl:439
│  [5] top-level scope at none:5
│ in expression starting at /home/tweisser/.julia/packages/SDPA/d3tZm/deps/build.jl:61
└ @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:892

So I installed SDPA via apt-get

> apt-get install sdpa
> which sdpa
/usr/bin/sdpa

and set the environmental variable

   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.4.1 (2020-04-14)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(sdpa-test) pkg> st
Status `~/julia/sdpa-test/Project.toml`
  (empty environment)
(sdpa-test) pkg> add SDPA

julia> ENV["JULIA_SDPA_LIBRARY_PATH"] = "/usr/bin"
"/usr/bin"

(sdpa-test) pkg> build SDPA
   Building CxxWrap → `~/.julia/packages/CxxWrap/KcmSi/deps/build.log`
   Building SDPA ───→ `~/.julia/packages/SDPA/d3tZm/deps/build.log`
┌ Error: Error building `SDPA`: 
│ ERROR: LoadError: type ExecutableProduct has no field libnames
│ Stacktrace:
│  [1] getproperty(::ExecutableProduct, ::Symbol) at ./Base.jl:33
│  [2] (::var"#5#7")(::ExecutableProduct) at ./none:0
│  [3] iterate at ./generator.jl:47 [inlined]
│  [4] collect(::Base.Generator{Array{Product,1},var"#5#7"}) at ./array.jl:665
│  [5] top-level scope at /home/tweisser/.julia/packages/SDPA/d3tZm/deps/build.jl:26
│  [6] include(::String) at ./client.jl:439
│  [7] top-level scope at none:5
│ in expression starting at /home/tweisser/.julia/packages/SDPA/d3tZm/deps/build.jl:25
└ @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:892

Any ideas where the problem could be?
Thanks,
Tillmann

@blegat
Copy link
Member

blegat commented May 13, 2020

Can you give the verbose output with

$ julia ~/.julia/packages/SDPA/d3tZm/deps/build.jl --verbose

Make sure you have the latest version of BinaryProvider, it is more verbose

@tweisser
Copy link
Author

I added BinaryProvider and CXXWrap:

(sdpa-test) pkg> add BinaryProvider CxxWrap
   Updating registry at `~/.julia/registries/General`
   Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Resolving package versions...
   Updating `~/julia/sdpa-test/Project.toml`
  [b99e7846] + BinaryProvider v0.5.9
  [1f15a43c] + CxxWrap v0.8.1
   Updating `~/julia/sdpa-test/Manifest.toml`
 [no changes]
(sdpa-test) pkg> st
Status `~/julia/sdpa-test/Project.toml`
  [b99e7846] BinaryProvider v0.5.9
  [1f15a43c] CxxWrap v0.8.1
  [b9a10b5b] SDPA v0.2.1

and then ran the command from above in the local environment

~/julia/sdpa-test$ julia --project=. ~/.julia/packages/SDPA/d3tZm/deps/build.jl --verbose
[ Info: Found a valid dl path libsdpa.so while looking for libsdpa
[ Info: /home/tweisser/.julia/packages/SDPA/d3tZm/deps/usr/lib/libsdpa.so matches our search criteria of libsdpa
[ Info: Found a valid dl path libsdpa.so while looking for libsdpawrap
[ Info: Found a valid dl path libsdpa.so.0 while looking for libsdpawrap
[ Info: Found a valid dl path libsdpa.so.0.0.0 while looking for libsdpawrap
[ Info: Found a valid dl path libsdpawrap.so while looking for libsdpawrap
[ Info: /home/tweisser/.julia/packages/SDPA/d3tZm/deps/usr/lib/libsdpawrap.so matches our search criteria of libsdpawrap
[ Info: Found a valid dl path libsdpa.so while looking for libsdpa
[ Info: /home/tweisser/.julia/packages/SDPA/d3tZm/deps/usr/lib/libsdpa.so matches our search criteria of libsdpa
[ Info: Found a valid dl path libsdpa.so while looking for libsdpawrap
[ Info: Found a valid dl path libsdpa.so.0 while looking for libsdpawrap
[ Info: Found a valid dl path libsdpa.so.0.0.0 while looking for libsdpawrap
[ Info: Found a valid dl path libsdpawrap.so while looking for libsdpawrap
[ Info: /home/tweisser/.julia/packages/SDPA/d3tZm/deps/usr/lib/libsdpawrap.so matches our search criteria of libsdpawrap
[ Info: Could not locate libsdpawrap inside /home/tweisser/.julia/packages/SDPA/d3tZm/deps/usr/lib
ERROR: LoadError: LibraryProduct(nothing, ["libsdpawrap"], :libsdpawrap, "Prefix(/home/tweisser/.julia/packages/SDPA/d3tZm/deps/usr)") is not satisfied, cannot generate deps.jl!
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] write_deps_file(::String, ::Array{Product,1}; verbose::Bool, isolate::Bool) at /home/tweisser/.julia/packages/BinaryProvider/GeAtj/src/Products.jl:419
 [3] top-level scope at /home/tweisser/.julia/packages/SDPA/d3tZm/deps/build.jl:61
 [4] include(::Module, ::String) at ./Base.jl:377
 [5] exec_options(::Base.JLOptions) at ./client.jl:288
 [6] _start() at ./client.jl:484
in expression starting at /home/tweisser/.julia/packages/SDPA/d3tZm/deps/build.jl:61

@tweisser
Copy link
Author

I tired to do exactly the same thing again and it's working now.

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