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

Cairo build fails on OS X El Capitan #121

Closed
datafig opened this issue Oct 1, 2015 · 7 comments · Fixed by #292
Closed

Cairo build fails on OS X El Capitan #121

datafig opened this issue Oct 1, 2015 · 7 comments · Fixed by #292

Comments

@datafig
Copy link

datafig commented Oct 1, 2015

Cairo.jl encounters build errors during Pkg.add("Cairo") on julia 0.3.11 as well as 0.4.0-rc3.

==> ./configure --disable-silent-rules --prefix=/Users/datafig/.julia/v0.4/Homebrew/deps/usr/Cellar/pixman/0.32.6 --disable-gtk
==> make install
Last 15 lines from /Users/datafig/Library/Logs/Homebrew/pixman/02.make:
/bin/sh ../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I..    -mmmx -Winline -g -O2 -Wall -Wdeclaration-after-statement -fno-strict-aliasing -fvisibility=hidden -c -o libpixman_mmx_la-pixman-mmx.lo `test -f 'pixman-mmx.c' || echo './'`pixman-mmx.c
/bin/sh ../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I..    -msse2 -Winline -g -O2 -Wall -Wdeclaration-after-statement -fno-strict-aliasing -fvisibility=hidden -c -o libpixman_sse2_la-pixman-sse2.lo `test -f 'pixman-sse2.c' || echo './'`pixman-sse2.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -mmmx -Winline -g -O2 -Wall -Wdeclaration-after-statement -fno-strict-aliasing -fvisibility=hidden -c pixman-mmx.c  -fno-common -DPIC -o .libs/libpixman_mmx_la-pixman-mmx.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -msse2 -Winline -g -O2 -Wall -Wdeclaration-after-statement -fno-strict-aliasing -fvisibility=hidden -c pixman-sse2.c  -fno-common -DPIC -o .libs/libpixman_sse2_la-pixman-sse2.o
/bin/sh ../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I..    -mssse3 -Winline -g -O2 -Wall -Wdeclaration-after-statement -fno-strict-aliasing -fvisibility=hidden -c -o libpixman_ssse3_la-pixman-ssse3.lo `test -f 'pixman-ssse3.c' || echo './'`pixman-ssse3.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -mssse3 -Winline -g -O2 -Wall -Wdeclaration-after-statement -fno-strict-aliasing -fvisibility=hidden -c pixman-ssse3.c  -fno-common -DPIC -o .libs/libpixman_ssse3_la-pixman-ssse3.o
pixman-mmx.c:100:20: error: constraint 'K' expects an integer constant expression
        : "y" (__A), "K" (__N)
                          ^~~
1 error generated.
make[1]: *** [libpixman_mmx_la-pixman-mmx.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -mssse3 -Winline -g -O2 -Wall -Wdeclaration-after-statement -fno-strict-aliasing -fvisibility=hidden -c pixman-ssse3.c -o libpixman_ssse3_la-pixman-ssse3.o >/dev/null 2>&1
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -msse2 -Winline -g -O2 -Wall -Wdeclaration-after-statement -fno-strict-aliasing -fvisibility=hidden -c pixman-sse2.c -o libpixman_sse2_la-pixman-sse2.o >/dev/null 2>&1
make: *** [install-recursive] Error 1

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
  https://github.com/staticfloat/homebrew-juliadeps/issues

Warning: 
==================================================================[ ERROR: Cairo ]===================================================================

LoadError: failed process: Process(`/Users/datafig/.julia/v0.4/Homebrew/deps/usr/bin/brew install --force-bottle staticfloat/juliadeps/cairo`, ProcessExited(1)) [1]
while loading /Users/datafig/.julia/v0.4/Cairo/deps/build.jl, in expression starting on line 144

=====================================================================================================================================================

==================================================================[ BUILD ERRORS ]===================================================================

WARNING: Cairo had build errors.

 - packages with build errors remain installed in /Users/datafig/.julia/v0.4
 - build the package(s) and all dependencies with `Pkg.build("Cairo")`
 - build a single package by running its `deps/build.jl` script

=====================================================================================================================================================
INFO: Package database updated
@datafig
Copy link
Author

datafig commented Oct 2, 2015

I was able to build Cairo successfully by using a hack. During installation the process creates a Homebrew formula named pixman.rb under $HOME/.julia/v0.4/Homebrew/deps/usr/Library/Taps/staticfloat/homebrew-juliadeps. I don't know what script is responsible for generating the formula. But if the parameter --disable-mmx is added to it right after the file is generated the compile concludes successfully.

A more reliable fix would be to have the modification made on the script that is responsible for generating the formula. But for now i was able to make it work.

@neronmoon
Copy link

+1

@robertfeldt
Copy link

I still have problems installing Cairo.jl on OS X 10.11.1. The build fails. The --disable.mmx flag is set in the pixman.rb file but doesn't seem to help.

julia> Pkg.build("Cairo")
INFO: Building Homebrew
HEAD is now at cd49526 wireshark 2.0.0rc3 (devel)
HEAD is now at b178725 Merge pull request #83 from staticfloat/staging
INFO: Building Cairo
==> Installing glib from staticfloat/homebrew-juliadeps
==> Downloading https://s3.amazonaws.com/juliacache/glib-2.44.1.tar.xz
Already downloaded: /Users/feldt/Library/Caches/Homebrew.jl/glib-2.44.1.tar.xz
==> Downloading https://gist.githubusercontent.com/jacknagel/af332f42fae80c570a77/raw/7b5fd0d2e6554e9b770729fddacaa2d648327644/glib

curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "glib--patch"
Download failed: https://gist.githubusercontent.com/jacknagel/af332f42fae80c570a77/raw/7b5fd0d2e6554e9b770729fddacaa2d648327644/glib-hardcoded-paths.diff
=========================================================[ ERROR: Cairo ]==========================================================

LoadError: failed process: Process(`/Users/feldt/.julia/v0.4/Homebrew/deps/usr/bin/brew install --force-bottle staticfloat/juliadeps/glib`, ProcessExited(1)) [1]
while loading /Users/feldt/.julia/v0.4/Cairo/deps/build.jl, in expression starting on line 144

===================================================================================================================================

=========================================================[ BUILD ERRORS ]==========================================================

WARNING: Cairo had build errors.

 - packages with build errors remain installed in /Users/feldt/.julia/v0.4
 - build the package(s) and all dependencies with `Pkg.build("Cairo")`
 - build a single package by running its `deps/build.jl` script

===================================================================================================================================

@pstaabp
Copy link

pstaabp commented Nov 13, 2015

I'm seeing a different build error:

INFO: Building Homebrew
HEAD is now at 2e6eec2 cmake: update 3.4.0 bottle.
HEAD is now at 5d226de Fix patch locations for glib
INFO: Building Cairo
==> Installing glib from staticfloat/homebrew-juliadeps
==> Downloading https://s3.amazonaws.com/juliacache/glib-2.44.1.tar.xz
Already downloaded: /Users/peter/Library/Caches/Homebrew.jl/glib-2.44.1.tar.xz
==> Downloading https://raw.githubusercontent.com/Homebrew/patches/59e4d32/glib/hardcoded-paths.diff
Already downloaded: /Users/peter/Library/Caches/Homebrew.jl/glib--patch-a4cb96b5861672ec0750cb30ecebe1d417d38052cac12fbb8a77dbf04a886fcb.diff
==> Downloading https://gist.githubusercontent.com/jacknagel/9835034/raw/282d36efc126272f3e73206c9865013f52d67cd8/gio.pa

curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "glib--patch"
Download failed: https://gist.githubusercontent.com/jacknagel/9835034/raw/282d36efc126272f3e73206c9865013f52d67cd8/gio.patch

this patch file doesn't seem to exist.

@ranma42
Copy link

ranma42 commented Nov 18, 2015

cc @ranma42

@cortner
Copy link

cortner commented Nov 14, 2016

Yet another Cairo build failure?

julia> Pkg.build("Cairo")
INFO: Building Homebrew
Already up-to-date.
INFO: Building Cairo
Warning: staticfloat/juliatranslated/pixman-0.34.0 already installed
Warning: Already linked: /Users/ortner/.julia/v0.5/Homebrew/deps/usr/Cellar/pixman/0.34.0
Warning: staticfloat/juliatranslated/libpng-1.6.26 already installed
Warning: Already linked: /Users/ortner/.julia/v0.5/Homebrew/deps/usr/Cellar/libpng/1.6.26
Warning: staticfloat/juliatranslated/freetype-2.7 already installed
Warning: Already linked: /Users/ortner/.julia/v0.5/Homebrew/deps/usr/Cellar/freetype/2.7
Warning: staticfloat/juliatranslated/icu4c-58.1 already installed
Warning: Already linked: /Users/ortner/.julia/v0.5/Homebrew/deps/usr/Cellar/icu4c/58.1
Warning: staticfloat/juliatranslated/libffi-3.0.13 already installed
Warning: Already linked: /Users/ortner/.julia/v0.5/Homebrew/deps/usr/Cellar/libffi/3.0.13
Warning: staticfloat/juliatranslated/pcre-8.39 already installed
Warning: Already linked: /Users/ortner/.julia/v0.5/Homebrew/deps/usr/Cellar/pcre/8.39
Warning: staticfloat/juliatranslated/gettext-0.19.8.1 already installed
Warning: Already linked: /Users/ortner/.julia/v0.5/Homebrew/deps/usr/Cellar/gettext/0.19.8.1
Warning: staticfloat/juliatranslated/glib-2.50.2 already installed
Warning: Already linked: /Users/ortner/.julia/v0.5/Homebrew/deps/usr/Cellar/glib/2.50.2
Warning: staticfloat/juliatranslated/gobject-introspection-1.50.0 already installed
Warning: Already linked: /Users/ortner/.julia/v0.5/Homebrew/deps/usr/Cellar/gobject-introspection/1.50.0
Warning: staticfloat/juliatranslated/pango-1.40.3 already installed
Warning: Already linked: /Users/ortner/.julia/v0.5/Homebrew/deps/usr/Cellar/pango/1.40.3
===================================[ ERROR: Cairo ]===================================

LoadError: Provider Homebrew.HB failed to satisfy dependency pangocairo
while loading /Users/ortner/.julia/v0.5/Cairo/deps/build.jl, in expression starting on line 154

======================================================================================

@cortner
Copy link

cortner commented Nov 14, 2016

btw Cairo.jl runs fine on my old 0.3 installation.

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

Successfully merging a pull request may close this issue.

6 participants