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

Error: Operation already in progress for gdbm.formula #262

Open
cmey opened this issue Jul 29, 2019 · 5 comments
Open

Error: Operation already in progress for gdbm.formula #262

cmey opened this issue Jul 29, 2019 · 5 comments

Comments

@cmey
Copy link

cmey commented Jul 29, 2019

Hi @staticfloat

On Homebrew#master, there seems to be a problem building your version of glib:

julia> Homebrew.brew(`install staticfloat/juliatranslated/glib`)
==> Installing glib from staticfloat/juliatranslated
Error: Operation already in progress for gdbm.formula
Another active Homebrew process is already using gdbm.formula.
Please wait for it to finish or terminate it to continue.
ERROR: failed process: Process(`/Users/cmeyer/.julia/packages/Homebrew/SvXTp/deps/usr/bin/brew install staticfloat/juliatranslated/glib`, ProcessExited(1)) [1]
Stacktrace:
 [1] error(::String, ::Base.Process, ::String, ::Int64, ::String) at ./error.jl:42
 [2] pipeline_error at ./process.jl:785 [inlined]
 [3] #run#515(::Bool, ::Function, ::Cmd) at ./process.jl:726
 [4] run at ./process.jl:724 [inlined]
 [5] #brew#4(::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Function, ::Cmd) at /Users/cmeyer/.julia/packages/Homebrew/SvXTp/src/API.jl:19
 [6] brew(::Cmd) at /Users/cmeyer/.julia/packages/Homebrew/SvXTp/src/API.jl:11
 [7] top-level scope at none:0
(WaveSim.jl) pkg> st
    Status `~/Code/julia/WaveSim.jl/Project.toml`
  [d9be37ee] + Homebrew v0.6.4 #master (https://github.com/JuliaPackaging/Homebrew.jl.git)

julia> versioninfo()
Julia Version 1.1.1
Commit 55e36cc (2019-05-16 04:10 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin15.6.0)
  CPU: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
Environment:
  JULIA_NUM_THREADS = 4

Even clearing my locks did not help (same error after repeating the first command):

rm -rf /Users/cmeyer/.julia/packages/Homebrew/SvXTp/deps/usr/var/homebrew/locks/*
@BeastyBlacksmith
Copy link

same for me

@darsnack
Copy link

darsnack commented Aug 9, 2019

Getting the same issue with Homebrew.jl#master

julia> versioninfo()
Julia Version 1.1.0
Commit 80516ca202 (2019-01-21 21:24 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin14.5.0)
  CPU: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)

@kraftpunk97-zz
Copy link

kraftpunk97-zz commented Aug 20, 2019

+1 pinging @staticfloat

@cjprybol
Copy link

I ended up here after following through JuliaGraphics/Cairo.jl#271 and JuliaGraphics/Cairo.jl#287.

switching to the default versions of homebrew packages instead of those in the staticfloat/juliatranslated package set and installing them from the command line seemed to be enough to work towards a successful Cairo build

first error

julia> Pkg.build("Cairo")
  Building LibCURL ─ `~/.julia/packages/LibCURL/lWJxD/deps/build.log`
  Building WinRPM ── `~/.julia/packages/WinRPM/Y9QdZ/deps/build.log`
  Building Homebrew  `~/.julia/packages/Homebrew/SvXTp/deps/build.log`
  Building Cairo ─── `~/.julia/dev/Cairo/deps/build.log`
 Resolving package versions...
┌ Error: Error building `Cairo`: 
│ WARNING: redefining constant DEBIAN_VERSION_REGEX
│ WARNING: redefining constant have_sonames
│ WARNING: redefining constant sonames
│ WARNING: redefining constant EXTENSIONS
│ Error: Operation already in progress for libpng.formula
│ Another active Homebrew process is already using libpng.formula.
│ Please wait for it to finish or terminate it to continue.
│ ==> Installing harfbuzz from staticfloat/juliatranslated
│ ERROR: LoadError: failed process: Process(`/Users/Cameron/.julia/packages/Homebrew/SvXTp/deps/usr/bin/brew install staticfloat/juliatranslated/harfbuzz`, ProcessExited(1)) [1]
[...]

first fix

shell> /Users/Cameron/.julia/packages/Homebrew/SvXTp/deps/usr/bin/brew install harfbuzz

second error

julia> Pkg.build("Cairo")
  Building LibCURL ─ `~/.julia/packages/LibCURL/lWJxD/deps/build.log`
  Building WinRPM ── `~/.julia/packages/WinRPM/Y9QdZ/deps/build.log`
  Building Homebrew  `~/.julia/packages/Homebrew/SvXTp/deps/build.log`
  Building Cairo ─── `~/.julia/dev/Cairo/deps/build.log`
 Resolving package versions...
┌ Error: Error building `Cairo`: 
│ WARNING: redefining constant DEBIAN_VERSION_REGEX
│ WARNING: redefining constant have_sonames
│ WARNING: redefining constant sonames
│ WARNING: redefining constant EXTENSIONS
│ Error: Operation already in progress for libpng.formula
│ Another active Homebrew process is already using libpng.formula.
│ Please wait for it to finish or terminate it to continue.
│ ==> Installing pango from staticfloat/juliatranslated
│ ERROR: LoadError: failed process: Process(`/Users/Cameron/.julia/packages/Homebrew/SvXTp/deps/usr/bin/brew install staticfloat/juliatranslated/pango`, ProcessExited(1)) [1]
[...]

second fix

shell> /Users/Cameron/.julia/packages/Homebrew/SvXTp/deps/usr/bin/brew install pango

successful build

julia> Pkg.build("Cairo")
  Building LibCURL ─ `~/.julia/packages/LibCURL/lWJxD/deps/build.log`
  Building WinRPM ── `~/.julia/packages/WinRPM/Y9QdZ/deps/build.log`
  Building Homebrew  `~/.julia/packages/Homebrew/SvXTp/deps/build.log`
  Building Cairo ─── `~/.julia/dev/Cairo/deps/build.log`
 Resolving package versions...
false

julia> using Cairo

julia>

This doesn't address the issue of why the package versions that are installing by default don't work, but hopefully others can work through this solution until a general solution is developed

@aramirezreyes
Copy link
Contributor

aramirezreyes commented Oct 22, 2019

Problem persists, had to manually install (using @cjprybol 's trick)

fontoconfig
pango
harfbuzz
cairo
glib

What can we do to help solving the "Another active Homebrew process..." thing, @staticfloat ?

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

6 participants