Skip to content

Cairo build fails on OS X El Capitan #121

@datafig

Description

@datafig

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

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