Undefined method `uses_from_macos`

Hi there! I was just trying to build Cairo from the Julia REPL (using ]build Cairo) which (after also building LibCURL, WinRPM, and Homebrew) breaks with the following error:

WARNING: redefining constant DEBIAN_VERSION_REGEX
WARNING: redefining constant have_sonames
WARNING: redefining constant sonames
WARNING: redefining constant EXTENSIONS
Error: glib: undefined method `uses_from_macos' for Formulary::FormulaNamespace7a60e51cfe0a44f620eab18d55747edf::Glib:Class
Error: glib: undefined method `uses_from_macos' for Formulary::FormulaNamespace7a60e51cfe0a44f620eab18d55747edf::Glib:Class
Error: glib: undefined method `uses_from_macos' for Formulary::FormulaNamespace7a60e51cfe0a44f620eab18d55747edf::Glib:Class

signal (11): Segmentation fault: 11
in expression starting at /Users/jonas/.julia/packages/Cairo/p68X8/deps/build.jl:176
_platform_strcmp at /usr/lib/system/libsystem_platform.dylib (unknown line)
Allocations: 20057922 (Pool: 20055066; Big: 2856); GC: 44

The last block is Julia specific, but I suspect the error coming from Homebrew. When I do brew edit glib it indeed shows such a line:

uses_from_macos "util-linux" # for libmount.so

What can I do to fix this? Thanks in advance!

I am using macOS Mojave 10.14.5 and brew version

Homebrew 2.1.7-2-gab3664f
Homebrew/homebrew-core (git revision f31b8; last commit 2019-07-09)
Homebrew/homebrew-cask (git revision eed8a; last commit 2019-07-09)

That should be in an earlier brew release already. What does brew doctor say?

That might be it. I just noticed that Julia is using its own version of brew, that doesn’t put the files into /usr/local. brew doctor only shows related stuff of my systems brew. How do I make the others brew doctor report its issues?

That’s just terrible. I guess you can just invoke the julia brew (and I also guess it’s outdated)

This post was flagged by the community and is temporarily hidden.

Hi I’m sorry but I got exactly the same problem and I don’t find a solution.

Are you saying there is none ?

I tried update-reset…
But it didn’t solve the problem.

Thank you again.

You need to update-reset the version that Julia ships

The Julia version has been updated, thank you all for your help!