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 error #126

Closed
hrhill opened this issue May 14, 2020 · 6 comments
Closed

Build error #126

hrhill opened this issue May 14, 2020 · 6 comments

Comments

@hrhill
Copy link

hrhill commented May 14, 2020

Hi, I'm getting a build error when trying to install DecFP, however going into the .julia/packages/DecFP/quvcm directory and running the julia --project=. deps/build.jl works. Looks like its connected to this JuliaPackaging/BinaryProvider.jl#194?

(tmp) pkg> add DecFP
   Updating registry at `~/.julia/registries/General`
   Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Resolving package versions...
  Installed DecFP ─ v0.4.10
   Updating `~/tmp/Project.toml`
  [55939f99] + DecFP v0.4.10
   Updating `~/tmp/Manifest.toml`
  [b99e7846] + BinaryProvider v0.5.9
...<snip>...
  [4ec0a83e] + Unicode 
   Building DecFP → `~/.julia/packages/DecFP/quvcm/deps/build.log`

   Building DecFP → `~/.julia/packages/DecFP/quvcm/deps/build.log`
┌ Error: Error building `DecFP`, showing the last 100 of log: 
...

The log shows,

hell> more /home/harry/.julia/packages/DecFP/quvcm/deps/build.log
┌ Warning: platform_key() is deprecated, use platform_key_abi() from now on
│   caller = ip:0x0
└ @ Core :-1
┌ Warning: Could not extract the platform key of https://github.com/quinnj/DecFPBuilder/releases/download/v0.4/DecF
P.x86_64-linux-gnu.tar.gz; continuing...
└ @ BinaryProvider ~/.julia/packages/BinaryProvider/GeAtj/src/Prefix.jl:185
[ Info: Downloading https://github.com/quinnj/DecFPBuilder/releases/download/v0.4/DecFP.x86_64-linux-gnu.tar.gz to 
/home/harry/.julia/packages/DecFP/quvcm/deps/usr/downloads/DecFP.x86_64-linux-gnu.tar.gz...
ERROR: LoadError: LibraryProduct(nothing, ["libbid"], :libbid, "Prefix(/home/harry/.julia/packages/DecFP/quvcm/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/harry/.julia/packages/Bin
aryProvider/GeAtj/src/Products.jl:419
 [3] write_deps_file(::String, ::Array{Product,1}) at /home/harry/.julia/packages/BinaryProvider/GeAtj/src/Products
.jl:400
 [4] top-level scope at /home/harry/.julia/packages/DecFP/quvcm/deps/build.jl:37
 [5] include(::String) at ./client.jl:439
 [6] top-level scope at none:5
julia> versioninfo()
Julia Version 1.4.1
Commit 381693d3df* (2020-04-14 17:20 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
Environment:
  JULIA_EDITOR = vim
@jmkuhn
Copy link
Contributor

jmkuhn commented May 14, 2020

I am unable to reproduce this on my Mac. Could you try:

pkd> add [email protected]
pkg> add DecFP

@hrhill
Copy link
Author

hrhill commented May 14, 2020

yes, that works, thank you.

@hrhill hrhill closed this as completed May 14, 2020
@giordano
Copy link
Member

@hrhill can I ask you what's the content of your Julia init file (.julia/config/startup.jl)? In JuliaPackaging/BinaryProvider.jl#194 (comment) it was reported that that file might be the culprit.

@hrhill
Copy link
Author

hrhill commented May 23, 2020

@giordano my startup.jl

ENV["JULIA_EDITOR"] = "vim"
using OhMyREPL
using Revise

HTH

@giordano
Copy link
Member

Thanks for information, it looks plausible that that's the culprit. Can you please try again with v0.5.10 of BinaryProvider that should have fixed the issue?

Note that this is the recommended way to load Revise: https://timholy.github.io/Revise.jl/stable/config/#Earlier-versions-of-Revise-and/or-Julia-1 and similarly for OhMyRepl: https://kristofferc.github.io/OhMyREPL.jl/latest/installation/#Automatically-start-with-Julia.-1. The use of atreplinit is exactly to avoid running these packages when running julia non-interactively

@hrhill
Copy link
Author

hrhill commented May 23, 2020

Yes, all works now - and thanks for the tip on the startup.jl 👍

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

No branches or pull requests

3 participants