Skip to content

Cannot build Cairo.jl on macOS Mojave #271

@ronisbr

Description

@ronisbr

Hi guys!

I am trying to build Cairo.jl on macOS Mojave (clean Julia installation) and I am getting the following error:

┌ Error: Error building `Cairo`:
│ ==> Installing graphite2 from staticfloat/juliatranslated
│ ==> Downloading https://homebrew.bintray.com/bottles/graphite2-1.3.13.mojave.bottle.tar.gz
│ Already downloaded: /Users/ronan.arraes/Library/Caches/Homebrew.jl/downloads/36f9054572b26853c4726b48a48041476190c6e2069d088be488bd9489445ade--graphite2-1.3.13.mojave.bottle.tar.gz
│ ==> Pouring graphite2-1.3.13.mojave.bottle.tar.gz
│ 🍺  /Users/ronan.arraes/.julia/packages/Homebrew/s09IX/deps/usr/Cellar/graphite2/1.3.13: 18 files, 232.2KB
│ Warning: Already linked: /Users/ronan.arraes/.julia/packages/Homebrew/s09IX/deps/usr/Cellar/graphite2/1.3.13
│ ==> Installing gettext from staticfloat/juliatranslated
│ ==> Downloading https://homebrew.bintray.com/bottles/gettext-0.19.8.1.mojave.bottle.tar.gz
│ Already downloaded: /Users/ronan.arraes/Library/Caches/Homebrew.jl/downloads/20fb183d8882abab5874937646456a6d73fcd3510ec65a0b2a54fdfeb0174519--gettext-0.19.8.1.mojave.bottle.tar.gz
│ ==> Pouring gettext-0.19.8.1.mojave.bottle.tar.gz
│ ==> Caveats
│ gettext is keg-only, which means it was not symlinked into /Users/ronan.arraes/.julia/packages/Homebrew/s09IX/deps/usr,
│ because macOS provides the BSD gettext library & some software gets confused if both are in the library path.
│
│ If you need to have gettext first in your PATH run:
│   echo 'export PATH="/Users/ronan.arraes/.julia/packages/Homebrew/s09IX/deps/usr/opt/gettext/bin:$PATH"' >> ~/.zshrc
│
│ For compilers to find gettext you may need to set:
│   export LDFLAGS="-L/Users/ronan.arraes/.julia/packages/Homebrew/s09IX/deps/usr/opt/gettext/lib"
│   export CPPFLAGS="-I/Users/ronan.arraes/.julia/packages/Homebrew/s09IX/deps/usr/opt/gettext/include"
│
│ ==> Summary
│ 🍺  /Users/ronan.arraes/.julia/packages/Homebrew/s09IX/deps/usr/Cellar/gettext/0.19.8.1: 1,935 files, 16.9MB
│
│ signal (11): Segmentation fault: 11
│ in expression starting at /Users/ronan.arraes/.julia/packages/Cairo/CXPG1/deps/build.jl:165
│ _platform_strcmp at /usr/lib/system/libsystem_platform.dylib (unknown line)
│ Allocations: 20714313 (Pool: 20711314; Big: 2999); GC: 46
└ @ Pkg.Operations /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Operations.jl:1075

Trying to build manually Cairo leads to:

julia> Pkg.build("Cairo")
  Building LibCURL ─→ `~/.julia/packages/LibCURL/OoXMv/deps/build.log`
  Building WinRPM ──→ `~/.julia/packages/WinRPM/Y9QdZ/deps/build.log`
  Building Homebrew → `~/.julia/packages/Homebrew/s09IX/deps/build.log`
  Building Cairo ───→ `~/.julia/packages/Cairo/CXPG1/deps/build.log`
┌ Error: Error building `Cairo`:
│
│ signal (11): Segmentation fault: 11
│ in expression starting at /Users/ronan.arraes/.julia/packages/Cairo/CXPG1/deps/build.jl:165
│ _platform_strcmp at /usr/lib/system/libsystem_platform.dylib (unknown line)
│ Allocations: 19803997 (Pool: 19801167; Big: 2830); GC: 44
└ @ Pkg.Operations /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Operations.jl:1075

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions