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

Can't build X11 due to ld linking error on OSX 10.9.2 #24

Open
codygman opened this issue Apr 21, 2014 · 31 comments
Open

Can't build X11 due to ld linking error on OSX 10.9.2 #24

codygman opened this issue Apr 21, 2014 · 31 comments

Comments

@codygman
Copy link

error:

ld: library not found for -lXss

full log below

[codygman@work-mbp xmonad]$ cabal install -v X11==1.6.1.1
Using a sandbox located at
/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox
Reading available packages...
Reading available packages...
Reading installed packages...
'/usr/local/bin/ghc-pkg' 'dump' '--package-db=/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/x86_64-osx-ghc-7.8.1-packages.conf.d' '-v0'
'/usr/local/bin/ghc' '--print-libdir'
Reading available packages...
Choosing modular solver.
Resolving dependencies...
Ready to install X11-1.6.1.1
Waiting for install task to finish...
Extracting
/Users/codygman/.cabal/packages/hackage.haskell.org/X11/1.6.1.1/X11-1.6.1.1.tar.gz
to /var/folders/s2/t36y3y9x1ks1lq5vn3q35tgm0000gn/T/X11-1.6.1.1-12190...
Updating X11.cabal with the latest revision from the index.
Configuring X11-1.6.1.1...
Dependency base ==4.7.0.0: using base-4.7.0.0
Dependency data-default ==0.5.3: using data-default-0.5.3
'/usr/local/bin/ghc' '--info'
Using Cabal-1.18.1.3 compiled by ghc-7.6
Using compiler: ghc-7.8.1
Using install prefix: /Users/codygman/osxmonad-install/xmonad/.cabal-sandbox
Binaries installed in:
/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/bin
Libraries installed in:
/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/X11-1.6.1.1
Private binaries installed in:
/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/libexec
Data files installed in:
/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/share/x86_64-osx-ghc-7.8.1/X11-1.6.1.1
Documentation installed in:
/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/share/doc/x86_64-osx-ghc-7.8.1/X11-1.6.1.1
Configuration files installed in:
/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/etc
Using alex version 3.0.5 found on system at: /usr/local/bin/alex
Using ar found on system at: /usr/bin/ar
No c2hs found
Using cpphs version 1.18.4 found on system at:
/Users/codygman/.cabal/bin/cpphs
No ffihugs found
Using gcc version 4.2.1 found on system at: /usr/bin/gcc
Using ghc version 7.8.1 found on system at: /usr/local/bin/ghc
Using ghc-pkg version 7.8.1 found on system at: /usr/local/bin/ghc-pkg
No greencard found
Using haddock version 2.14.2 found on system at: /usr/local/bin/haddock
Using happy version 1.18.10 found on system at: /usr/local/bin/happy
No hmake found
Using hpc version 0.67 found on system at: /usr/local/bin/hpc
Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs
Using hscolour version 1.20 found on system at:
/Users/codygman/.cabal/bin/HsColour
No hugs found
No jhc found
Using ld found on system at: /usr/bin/ld
No lhc found
No lhc-pkg found
No nhc98 found
Using pkg-config version 0.28 found on system at: /usr/local/bin/pkg-config
Using ranlib found on system at: /usr/bin/ranlib
Using strip found on system at: /usr/bin/strip
Using tar found on system at: /usr/bin/tar
No uhc found
sh ./configure --with-compiler=ghc --prefix=/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox --bindir=/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/bin --libdir=/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib --libexecdir=/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/libexec --datadir=/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/share --sysconfdir=/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/etc --with-gcc=/usr/bin/gcc
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11/lib, headers /usr/X11/include
checking whether -R must be followed by a space... neither works
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking whether to build Xinerama... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking X11/extensions/Xinerama.h usability... yes
checking X11/extensions/Xinerama.h presence... yes
checking for X11/extensions/Xinerama.h... yes
checking X11/extensions/Xrandr.h usability... yes
checking X11/extensions/Xrandr.h presence... yes
checking for X11/extensions/Xrandr.h... yes
checking whether to build XScreenSaver... yes
checking X11/extensions/scrnsaver.h usability... yes
checking X11/extensions/scrnsaver.h presence... yes
checking for X11/extensions/scrnsaver.h... yes
checking whether to include X.org keysyms... yes
checking X11/keysym.h usability... yes
checking X11/keysym.h presence... yes
checking for X11/keysym.h... yes
checking X11/DECkeysym.h usability... yes
checking X11/DECkeysym.h presence... yes
checking for X11/DECkeysym.h... yes
checking X11/Sunkeysym.h usability... yes
checking X11/Sunkeysym.h presence... yes
checking for X11/Sunkeysym.h... yes
checking X11/ap_keysym.h usability... yes
checking X11/ap_keysym.h presence... yes
checking for X11/ap_keysym.h... yes
checking X11/HPkeysym.h usability... yes
checking X11/HPkeysym.h presence... yes
checking for X11/HPkeysym.h... yes
checking X11/XF86keysym.h usability... yes
checking X11/XF86keysym.h presence... yes
checking for X11/XF86keysym.h... yes
checking X11/keysymdef.h usability... yes
checking X11/keysymdef.h presence... yes
checking for X11/keysymdef.h... yes
checking X11/cursorfont.h usability... yes
checking X11/cursorfont.h presence... yes
checking for X11/cursorfont.h... yes
configure: creating ./config.status
config.status: creating config.mk
config.status: creating X11.buildinfo
config.status: creating include/HsX11Config.h
config.status: creating include/X11_extras_config.h
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
Reading parameters from ./X11.buildinfo
Reading parameters from ./X11.buildinfo
Component build order: library
creating dist/dist-sandbox-801471b6/build
creating dist/dist-sandbox-801471b6/build/autogen
Building X11-1.6.1.1...
Preprocessing library X11-1.6.1.1...
creating dist/dist-sandbox-801471b6/build/Graphics/X11
creating dist/dist-sandbox-801471b6/build/Graphics
creating dist/dist-sandbox-801471b6/build/Graphics/X11
/usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=708 --cflag=-Ddarwin_BUILD_OS=1 --cflag=-Dx86_64_BUILD_ARCH=1 --cflag=-Ddarwin_HOST_OS=1 --cflag=-Dx86_64_HOST_ARCH=1 --cflag=-Iinclude --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --lflag=-lXss --lflag=-lXinerama --lflag=-lXext --lflag=-lX11 --lflag=-lXrandr --lflag=-lXext --lflag=-L/usr/X11/lib --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/base-4.7.0.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-0.5.3 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-old-locale-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/old-locale-1.0.0.6 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-dlist-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/dlist-0.7.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-containers-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-base-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-class-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/containers-0.5.5.1 --lflag=-L/usr/local/lib/ghc-7.8.1/deepseq-1.3.0.2 --lflag=-L/usr/local/lib/ghc-7.8.1/array-0.5.0.0 --lflag=-L/usr/local/lib/ghc-7.8.1/base-4.7.0.0 --lflag=-liconv --lflag=-L/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/ghc-prim-0.3.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/rts-1.0 --lflag=-lm --lflag=-ldl -o dist/dist-sandbox-801471b6/build/Graphics/X11/Types.hs Graphics/X11/Types.hsc
creating dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib
/usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=708 --cflag=-Ddarwin_BUILD_OS=1 --cflag=-Dx86_64_BUILD_ARCH=1 --cflag=-Ddarwin_HOST_OS=1 --cflag=-Dx86_64_HOST_ARCH=1 --cflag=-Iinclude --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --lflag=-lXss --lflag=-lXinerama --lflag=-lXext --lflag=-lX11 --lflag=-lXrandr --lflag=-lXext --lflag=-L/usr/X11/lib --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/base-4.7.0.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-0.5.3 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-old-locale-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/old-locale-1.0.0.6 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-dlist-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/dlist-0.7.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-containers-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-base-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-class-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/containers-0.5.5.1 --lflag=-L/usr/local/lib/ghc-7.8.1/deepseq-1.3.0.2 --lflag=-L/usr/local/lib/ghc-7.8.1/array-0.5.0.0 --lflag=-L/usr/local/lib/ghc-7.8.1/base-4.7.0.0 --lflag=-liconv --lflag=-L/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/ghc-prim-0.3.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/rts-1.0 --lflag=-lm --lflag=-ldl -o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Atom.hs Graphics/X11/Xlib/Atom.hsc
creating dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib
/usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=708 --cflag=-Ddarwin_BUILD_OS=1 --cflag=-Dx86_64_BUILD_ARCH=1 --cflag=-Ddarwin_HOST_OS=1 --cflag=-Dx86_64_HOST_ARCH=1 --cflag=-Iinclude --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --lflag=-lXss --lflag=-lXinerama --lflag=-lXext --lflag=-lX11 --lflag=-lXrandr --lflag=-lXext --lflag=-L/usr/X11/lib --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/base-4.7.0.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-0.5.3 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-old-locale-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/old-locale-1.0.0.6 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-dlist-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/dlist-0.7.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-containers-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-base-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-class-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/containers-0.5.5.1 --lflag=-L/usr/local/lib/ghc-7.8.1/deepseq-1.3.0.2 --lflag=-L/usr/local/lib/ghc-7.8.1/array-0.5.0.0 --lflag=-L/usr/local/lib/ghc-7.8.1/base-4.7.0.0 --lflag=-liconv --lflag=-L/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/ghc-prim-0.3.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/rts-1.0 --lflag=-lm --lflag=-ldl -o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Cursor.hs Graphics/X11/Xlib/Cursor.hsc
creating dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib
/usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=708 --cflag=-Ddarwin_BUILD_OS=1 --cflag=-Dx86_64_BUILD_ARCH=1 --cflag=-Ddarwin_HOST_OS=1 --cflag=-Dx86_64_HOST_ARCH=1 --cflag=-Iinclude --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --lflag=-lXss --lflag=-lXinerama --lflag=-lXext --lflag=-lX11 --lflag=-lXrandr --lflag=-lXext --lflag=-L/usr/X11/lib --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/base-4.7.0.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-0.5.3 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-old-locale-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/old-locale-1.0.0.6 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-dlist-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/dlist-0.7.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-containers-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-base-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-class-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/containers-0.5.5.1 --lflag=-L/usr/local/lib/ghc-7.8.1/deepseq-1.3.0.2 --lflag=-L/usr/local/lib/ghc-7.8.1/array-0.5.0.0 --lflag=-L/usr/local/lib/ghc-7.8.1/base-4.7.0.0 --lflag=-liconv --lflag=-L/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/ghc-prim-0.3.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/rts-1.0 --lflag=-lm --lflag=-ldl -o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Event.hs Graphics/X11/Xlib/Event.hsc
creating dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib
/usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=708 --cflag=-Ddarwin_BUILD_OS=1 --cflag=-Dx86_64_BUILD_ARCH=1 --cflag=-Ddarwin_HOST_OS=1 --cflag=-Dx86_64_HOST_ARCH=1 --cflag=-Iinclude --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --lflag=-lXss --lflag=-lXinerama --lflag=-lXext --lflag=-lX11 --lflag=-lXrandr --lflag=-lXext --lflag=-L/usr/X11/lib --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/base-4.7.0.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-0.5.3 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-old-locale-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/old-locale-1.0.0.6 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-dlist-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/dlist-0.7.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-containers-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-base-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-class-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/containers-0.5.5.1 --lflag=-L/usr/local/lib/ghc-7.8.1/deepseq-1.3.0.2 --lflag=-L/usr/local/lib/ghc-7.8.1/array-0.5.0.0 --lflag=-L/usr/local/lib/ghc-7.8.1/base-4.7.0.0 --lflag=-liconv --lflag=-L/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/ghc-prim-0.3.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/rts-1.0 --lflag=-lm --lflag=-ldl -o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Font.hs Graphics/X11/Xlib/Font.hsc
creating dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib
/usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=708 --cflag=-Ddarwin_BUILD_OS=1 --cflag=-Dx86_64_BUILD_ARCH=1 --cflag=-Ddarwin_HOST_OS=1 --cflag=-Dx86_64_HOST_ARCH=1 --cflag=-Iinclude --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --lflag=-lXss --lflag=-lXinerama --lflag=-lXext --lflag=-lX11 --lflag=-lXrandr --lflag=-lXext --lflag=-L/usr/X11/lib --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/base-4.7.0.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-0.5.3 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-old-locale-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/old-locale-1.0.0.6 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-dlist-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/dlist-0.7.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-containers-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-base-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-class-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/containers-0.5.5.1 --lflag=-L/usr/local/lib/ghc-7.8.1/deepseq-1.3.0.2 --lflag=-L/usr/local/lib/ghc-7.8.1/array-0.5.0.0 --lflag=-L/usr/local/lib/ghc-7.8.1/base-4.7.0.0 --lflag=-liconv --lflag=-L/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/ghc-prim-0.3.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/rts-1.0 --lflag=-lm --lflag=-ldl -o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Misc.hs Graphics/X11/Xlib/Misc.hsc
creating dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib
/usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=708 --cflag=-Ddarwin_BUILD_OS=1 --cflag=-Dx86_64_BUILD_ARCH=1 --cflag=-Ddarwin_HOST_OS=1 --cflag=-Dx86_64_HOST_ARCH=1 --cflag=-Iinclude --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --lflag=-lXss --lflag=-lXinerama --lflag=-lXext --lflag=-lX11 --lflag=-lXrandr --lflag=-lXext --lflag=-L/usr/X11/lib --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/base-4.7.0.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-0.5.3 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-old-locale-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/old-locale-1.0.0.6 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-dlist-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/dlist-0.7.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-containers-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-base-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-class-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/containers-0.5.5.1 --lflag=-L/usr/local/lib/ghc-7.8.1/deepseq-1.3.0.2 --lflag=-L/usr/local/lib/ghc-7.8.1/array-0.5.0.0 --lflag=-L/usr/local/lib/ghc-7.8.1/base-4.7.0.0 --lflag=-liconv --lflag=-L/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/ghc-prim-0.3.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/rts-1.0 --lflag=-lm --lflag=-ldl -o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Types.hs Graphics/X11/Xlib/Types.hsc
creating dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib
/usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=708 --cflag=-Ddarwin_BUILD_OS=1 --cflag=-Dx86_64_BUILD_ARCH=1 --cflag=-Ddarwin_HOST_OS=1 --cflag=-Dx86_64_HOST_ARCH=1 --cflag=-Iinclude --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --lflag=-lXss --lflag=-lXinerama --lflag=-lXext --lflag=-lX11 --lflag=-lXrandr --lflag=-lXext --lflag=-L/usr/X11/lib --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/base-4.7.0.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-0.5.3 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-old-locale-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/old-locale-1.0.0.6 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-dlist-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/dlist-0.7.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-containers-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-base-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-class-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/containers-0.5.5.1 --lflag=-L/usr/local/lib/ghc-7.8.1/deepseq-1.3.0.2 --lflag=-L/usr/local/lib/ghc-7.8.1/array-0.5.0.0 --lflag=-L/usr/local/lib/ghc-7.8.1/base-4.7.0.0 --lflag=-liconv --lflag=-L/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/ghc-prim-0.3.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/rts-1.0 --lflag=-lm --lflag=-ldl -o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Extras.hs Graphics/X11/Xlib/Extras.hsc
creating dist/dist-sandbox-801471b6/build/Graphics/X11
/usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=708 --cflag=-Ddarwin_BUILD_OS=1 --cflag=-Dx86_64_BUILD_ARCH=1 --cflag=-Ddarwin_HOST_OS=1 --cflag=-Dx86_64_HOST_ARCH=1 --cflag=-Iinclude --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --lflag=-lXss --lflag=-lXinerama --lflag=-lXext --lflag=-lX11 --lflag=-lXrandr --lflag=-lXext --lflag=-L/usr/X11/lib --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/base-4.7.0.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-0.5.3 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-old-locale-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/old-locale-1.0.0.6 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-dlist-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/dlist-0.7.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-containers-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-base-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-class-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/containers-0.5.5.1 --lflag=-L/usr/local/lib/ghc-7.8.1/deepseq-1.3.0.2 --lflag=-L/usr/local/lib/ghc-7.8.1/array-0.5.0.0 --lflag=-L/usr/local/lib/ghc-7.8.1/base-4.7.0.0 --lflag=-liconv --lflag=-L/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/ghc-prim-0.3.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/rts-1.0 --lflag=-lm --lflag=-ldl -o dist/dist-sandbox-801471b6/build/Graphics/X11/Xinerama.hs Graphics/X11/Xinerama.hsc
creating dist/dist-sandbox-801471b6/build/Graphics/X11
/usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=708 --cflag=-Ddarwin_BUILD_OS=1 --cflag=-Dx86_64_BUILD_ARCH=1 --cflag=-Ddarwin_HOST_OS=1 --cflag=-Dx86_64_HOST_ARCH=1 --cflag=-Iinclude --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --lflag=-lXss --lflag=-lXinerama --lflag=-lXext --lflag=-lX11 --lflag=-lXrandr --lflag=-lXext --lflag=-L/usr/X11/lib --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/base-4.7.0.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-0.5.3 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-old-locale-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/old-locale-1.0.0.6 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-dlist-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/dlist-0.7.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-containers-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-base-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-class-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/containers-0.5.5.1 --lflag=-L/usr/local/lib/ghc-7.8.1/deepseq-1.3.0.2 --lflag=-L/usr/local/lib/ghc-7.8.1/array-0.5.0.0 --lflag=-L/usr/local/lib/ghc-7.8.1/base-4.7.0.0 --lflag=-liconv --lflag=-L/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/ghc-prim-0.3.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/rts-1.0 --lflag=-lm --lflag=-ldl -o dist/dist-sandbox-801471b6/build/Graphics/X11/Xrandr.hs Graphics/X11/Xrandr.hsc
creating dist/dist-sandbox-801471b6/build/Graphics/X11
/usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=708 --cflag=-Ddarwin_BUILD_OS=1 --cflag=-Dx86_64_BUILD_ARCH=1 --cflag=-Ddarwin_HOST_OS=1 --cflag=-Dx86_64_HOST_ARCH=1 --cflag=-Iinclude --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --lflag=-lXss --lflag=-lXinerama --lflag=-lXext --lflag=-lX11 --lflag=-lXrandr --lflag=-lXext --lflag=-L/usr/X11/lib --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/base-4.7.0.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-0.5.3 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-old-locale-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/old-locale-1.0.0.6 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-dlist-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/dlist-0.7.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-containers-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-base-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-class-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/containers-0.5.5.1 --lflag=-L/usr/local/lib/ghc-7.8.1/deepseq-1.3.0.2 --lflag=-L/usr/local/lib/ghc-7.8.1/array-0.5.0.0 --lflag=-L/usr/local/lib/ghc-7.8.1/base-4.7.0.0 --lflag=-liconv --lflag=-L/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/ghc-prim-0.3.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/rts-1.0 --lflag=-lm --lflag=-ldl -o dist/dist-sandbox-801471b6/build/Graphics/X11/XScreenSaver.hs Graphics/X11/XScreenSaver.hsc
creating dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes
/usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=708 --cflag=-Ddarwin_BUILD_OS=1 --cflag=-Dx86_64_BUILD_ARCH=1 --cflag=-Ddarwin_HOST_OS=1 --cflag=-Dx86_64_HOST_ARCH=1 --cflag=-Iinclude --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --lflag=-lXss --lflag=-lXinerama --lflag=-lXext --lflag=-lX11 --lflag=-lXrandr --lflag=-lXext --lflag=-L/usr/X11/lib --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/base-4.7.0.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-0.5.3 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-old-locale-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/old-locale-1.0.0.6 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-dlist-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/dlist-0.7.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-containers-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-base-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-class-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/containers-0.5.5.1 --lflag=-L/usr/local/lib/ghc-7.8.1/deepseq-1.3.0.2 --lflag=-L/usr/local/lib/ghc-7.8.1/array-0.5.0.0 --lflag=-L/usr/local/lib/ghc-7.8.1/base-4.7.0.0 --lflag=-liconv --lflag=-L/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/ghc-prim-0.3.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/rts-1.0 --lflag=-lm --lflag=-ldl -o dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/AP.hs Graphics/X11/ExtraTypes/AP.hsc
In file included from AP.hsc:166:
In file included from include/HsAllKeysyms.h:48:
/usr/X11/include/X11/HPkeysym.h:58:9: warning: '_HPKEYSYM_H' is used as a header guard here, followed by #define of a different
      macro [-Wheader-guard]
#ifndef _HPKEYSYM_H
        ^~~~~~~~~~~
/usr/X11/include/X11/HPkeysym.h:60:9: note: '_HPKEYSYM' is defined here; did you mean '_HPKEYSYM_H'?
#define _HPKEYSYM
        ^~~~~~~~~
        _HPKEYSYM_H
1 warning generated.
creating dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes
/usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=708 --cflag=-Ddarwin_BUILD_OS=1 --cflag=-Dx86_64_BUILD_ARCH=1 --cflag=-Ddarwin_HOST_OS=1 --cflag=-Dx86_64_HOST_ARCH=1 --cflag=-Iinclude --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --lflag=-lXss --lflag=-lXinerama --lflag=-lXext --lflag=-lX11 --lflag=-lXrandr --lflag=-lXext --lflag=-L/usr/X11/lib --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/base-4.7.0.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-0.5.3 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-old-locale-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/old-locale-1.0.0.6 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-dlist-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/dlist-0.7.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-containers-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-base-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-class-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/containers-0.5.5.1 --lflag=-L/usr/local/lib/ghc-7.8.1/deepseq-1.3.0.2 --lflag=-L/usr/local/lib/ghc-7.8.1/array-0.5.0.0 --lflag=-L/usr/local/lib/ghc-7.8.1/base-4.7.0.0 --lflag=-liconv --lflag=-L/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/ghc-prim-0.3.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/rts-1.0 --lflag=-lm --lflag=-ldl -o dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/DEC.hs Graphics/X11/ExtraTypes/DEC.hsc
In file included from DEC.hsc:111:
In file included from include/HsAllKeysyms.h:48:
/usr/X11/include/X11/HPkeysym.h:58:9: warning: '_HPKEYSYM_H' is used as a header guard here, followed by #define of a different
      macro [-Wheader-guard]
#ifndef _HPKEYSYM_H
        ^~~~~~~~~~~
/usr/X11/include/X11/HPkeysym.h:60:9: note: '_HPKEYSYM' is defined here; did you mean '_HPKEYSYM_H'?
#define _HPKEYSYM
        ^~~~~~~~~
        _HPKEYSYM_H
1 warning generated.
creating dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes
/usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=708 --cflag=-Ddarwin_BUILD_OS=1 --cflag=-Dx86_64_BUILD_ARCH=1 --cflag=-Ddarwin_HOST_OS=1 --cflag=-Dx86_64_HOST_ARCH=1 --cflag=-Iinclude --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --lflag=-lXss --lflag=-lXinerama --lflag=-lXext --lflag=-lX11 --lflag=-lXrandr --lflag=-lXext --lflag=-L/usr/X11/lib --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/base-4.7.0.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-0.5.3 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-old-locale-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/old-locale-1.0.0.6 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-dlist-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/dlist-0.7.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-containers-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-base-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-class-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/containers-0.5.5.1 --lflag=-L/usr/local/lib/ghc-7.8.1/deepseq-1.3.0.2 --lflag=-L/usr/local/lib/ghc-7.8.1/array-0.5.0.0 --lflag=-L/usr/local/lib/ghc-7.8.1/base-4.7.0.0 --lflag=-liconv --lflag=-L/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/ghc-prim-0.3.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/rts-1.0 --lflag=-lm --lflag=-ldl -o dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/HP.hs Graphics/X11/ExtraTypes/HP.hsc
In file included from HP.hsc:504:
In file included from include/HsAllKeysyms.h:48:
/usr/X11/include/X11/HPkeysym.h:58:9: warning: '_HPKEYSYM_H' is used as a header guard here, followed by #define of a different
      macro [-Wheader-guard]
#ifndef _HPKEYSYM_H
        ^~~~~~~~~~~
/usr/X11/include/X11/HPkeysym.h:60:9: note: '_HPKEYSYM' is defined here; did you mean '_HPKEYSYM_H'?
#define _HPKEYSYM
        ^~~~~~~~~
        _HPKEYSYM_H
1 warning generated.
creating dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes
/usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=708 --cflag=-Ddarwin_BUILD_OS=1 --cflag=-Dx86_64_BUILD_ARCH=1 --cflag=-Ddarwin_HOST_OS=1 --cflag=-Dx86_64_HOST_ARCH=1 --cflag=-Iinclude --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --lflag=-lXss --lflag=-lXinerama --lflag=-lXext --lflag=-lX11 --lflag=-lXrandr --lflag=-lXext --lflag=-L/usr/X11/lib --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/base-4.7.0.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-0.5.3 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-old-locale-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/old-locale-1.0.0.6 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-dlist-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/dlist-0.7.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-containers-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-base-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-class-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/containers-0.5.5.1 --lflag=-L/usr/local/lib/ghc-7.8.1/deepseq-1.3.0.2 --lflag=-L/usr/local/lib/ghc-7.8.1/array-0.5.0.0 --lflag=-L/usr/local/lib/ghc-7.8.1/base-4.7.0.0 --lflag=-liconv --lflag=-L/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/ghc-prim-0.3.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/rts-1.0 --lflag=-lm --lflag=-ldl -o dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/Sun.hs Graphics/X11/ExtraTypes/Sun.hsc
In file included from Sun.hsc:236:
In file included from include/HsAllKeysyms.h:48:
/usr/X11/include/X11/HPkeysym.h:58:9: warning: '_HPKEYSYM_H' is used as a header guard here, followed by #define of a different
      macro [-Wheader-guard]
#ifndef _HPKEYSYM_H
        ^~~~~~~~~~~
/usr/X11/include/X11/HPkeysym.h:60:9: note: '_HPKEYSYM' is defined here; did you mean '_HPKEYSYM_H'?
#define _HPKEYSYM
        ^~~~~~~~~
        _HPKEYSYM_H
1 warning generated.
creating dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes
/usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=708 --cflag=-Ddarwin_BUILD_OS=1 --cflag=-Dx86_64_BUILD_ARCH=1 --cflag=-Ddarwin_HOST_OS=1 --cflag=-Dx86_64_HOST_ARCH=1 --cflag=-Iinclude --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --lflag=-lXss --lflag=-lXinerama --lflag=-lXext --lflag=-lX11 --lflag=-lXrandr --lflag=-lXext --lflag=-L/usr/X11/lib --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/base-4.7.0.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-0.5.3 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-old-locale-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/old-locale-1.0.0.6 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-dlist-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/dlist-0.7.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-containers-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-base-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-class-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/containers-0.5.5.1 --lflag=-L/usr/local/lib/ghc-7.8.1/deepseq-1.3.0.2 --lflag=-L/usr/local/lib/ghc-7.8.1/array-0.5.0.0 --lflag=-L/usr/local/lib/ghc-7.8.1/base-4.7.0.0 --lflag=-liconv --lflag=-L/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/ghc-prim-0.3.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/rts-1.0 --lflag=-lm --lflag=-ldl -o dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/XF86.hs Graphics/X11/ExtraTypes/XF86.hsc
In file included from XF86.hsc:775:
In file included from include/HsAllKeysyms.h:48:
/usr/X11/include/X11/HPkeysym.h:58:9: warning: '_HPKEYSYM_H' is used as a header guard here, followed by #define of a different
      macro [-Wheader-guard]
#ifndef _HPKEYSYM_H
        ^~~~~~~~~~~
/usr/X11/include/X11/HPkeysym.h:60:9: note: '_HPKEYSYM' is defined here; did you mean '_HPKEYSYM_H'?
#define _HPKEYSYM
        ^~~~~~~~~
        _HPKEYSYM_H
1 warning generated.
creating dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes
/usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=708 --cflag=-Ddarwin_BUILD_OS=1 --cflag=-Dx86_64_BUILD_ARCH=1 --cflag=-Ddarwin_HOST_OS=1 --cflag=-Dx86_64_HOST_ARCH=1 --cflag=-Iinclude --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --lflag=-lXss --lflag=-lXinerama --lflag=-lXext --lflag=-lX11 --lflag=-lXrandr --lflag=-lXext --lflag=-L/usr/X11/lib --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/base-4.7.0.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-0.5.3 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-old-locale-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/old-locale-1.0.0.6 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-dlist-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/dlist-0.7.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-containers-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-base-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-class-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/containers-0.5.5.1 --lflag=-L/usr/local/lib/ghc-7.8.1/deepseq-1.3.0.2 --lflag=-L/usr/local/lib/ghc-7.8.1/array-0.5.0.0 --lflag=-L/usr/local/lib/ghc-7.8.1/base-4.7.0.0 --lflag=-liconv --lflag=-L/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/ghc-prim-0.3.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/rts-1.0 --lflag=-lm --lflag=-ldl -o dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/XorgDefault.hs Graphics/X11/ExtraTypes/XorgDefault.hsc
In file included from XorgDefault.hsc:10047:
In file included from include/HsAllKeysyms.h:48:
/usr/X11/include/X11/HPkeysym.h:58:9: warning: '_HPKEYSYM_H' is used as a header guard here, followed by #define of a different
      macro [-Wheader-guard]
#ifndef _HPKEYSYM_H
        ^~~~~~~~~~~
/usr/X11/include/X11/HPkeysym.h:60:9: note: '_HPKEYSYM' is defined here; did you mean '_HPKEYSYM_H'?
#define _HPKEYSYM
        ^~~~~~~~~
        _HPKEYSYM_H
1 warning generated.
creating dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib
/usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=708 --cflag=-Ddarwin_BUILD_OS=1 --cflag=-Dx86_64_BUILD_ARCH=1 --cflag=-Ddarwin_HOST_OS=1 --cflag=-Dx86_64_HOST_ARCH=1 --cflag=-Iinclude --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --cflag=-I/usr/X11/include --lflag=-lXss --lflag=-lXinerama --lflag=-lXext --lflag=-lX11 --lflag=-lXrandr --lflag=-lXext --lflag=-L/usr/X11/lib --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/base-4.7.0.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --cflag=-I/usr/local/lib/ghc-7.8.1/include --cflag=-Idist/dist-sandbox-801471b6/build/autogen --cflag=-include --cflag=dist/dist-sandbox-801471b6/build/autogen/cabal_macros.h --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-0.5.3 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-old-locale-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/old-locale-1.0.0.6 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-dlist-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/dlist-0.7.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-containers-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-instances-base-0.0.1 --lflag=-L/Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.1/data-default-class-0.0.1 --lflag=-L/usr/local/lib/ghc-7.8.1/containers-0.5.5.1 --lflag=-L/usr/local/lib/ghc-7.8.1/deepseq-1.3.0.2 --lflag=-L/usr/local/lib/ghc-7.8.1/array-0.5.0.0 --lflag=-L/usr/local/lib/ghc-7.8.1/base-4.7.0.0 --lflag=-liconv --lflag=-L/usr/local/lib/ghc-7.8.1/integer-gmp-0.5.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/ghc-prim-0.3.1.0 --lflag=-L/usr/local/lib/ghc-7.8.1/rts-1.0 --lflag=-lm --lflag=-ldl -o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Internal.hs Graphics/X11/Xlib/Internal.hsc
Building library...
'/usr/local/bin/ghc' '--info'
'/usr/local/bin/ghc' '--info'
creating dist/dist-sandbox-801471b6/build
/usr/local/bin/ghc --make -fbuilding-cabal-package -O -static -dynamic-too -dynosuf dyn_o -dynhisuf dyn_hi -outputdir dist/dist-sandbox-801471b6/build -odir dist/dist-sandbox-801471b6/build -hidir dist/dist-sandbox-801471b6/build -stubdir dist/dist-sandbox-801471b6/build -i -idist/dist-sandbox-801471b6/build -i. -idist/dist-sandbox-801471b6/build/autogen -Idist/dist-sandbox-801471b6/build/autogen -Idist/dist-sandbox-801471b6/build -Iinclude -optP-include -optPdist/dist-sandbox-801471b6/build/autogen/cabal_macros.h -package-name X11-1.6.1.1 -hide-all-packages -no-user-package-db -package-db /Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/x86_64-osx-ghc-7.8.1-packages.conf.d -package-db dist/dist-sandbox-801471b6/package.conf.inplace -package-id base-4.7.0.0-0e17cca653cb6df26dc9552b6ec8cc4d -package-id data-default-0.5.3-905e991bfad3ba5799fbb59cd1d789cb -XHaskell98 -XForeignFunctionInterface -XCPP Graphics.X11 Graphics.X11.Types Graphics.X11.Xlib Graphics.X11.Xlib.Atom Graphics.X11.Xlib.Color Graphics.X11.Xlib.Context Graphics.X11.Xlib.Cursor Graphics.X11.Xlib.Display Graphics.X11.Xlib.Event Graphics.X11.Xlib.Font Graphics.X11.Xlib.Misc Graphics.X11.Xlib.Region Graphics.X11.Xlib.Screen Graphics.X11.Xlib.Types Graphics.X11.Xlib.Window Graphics.X11.Xlib.Image Graphics.X11.Xlib.Extras Graphics.X11.Xinerama Graphics.X11.Xrandr Graphics.X11.XScreenSaver Graphics.X11.ExtraTypes Graphics.X11.ExtraTypes.AP Graphics.X11.ExtraTypes.DEC Graphics.X11.ExtraTypes.HP Graphics.X11.ExtraTypes.Sun Graphics.X11.ExtraTypes.XF86 Graphics.X11.ExtraTypes.XorgDefault Graphics.X11.Xlib.Internal -funbox-strict-fields -Wall -fno-warn-unused-binds
[ 1 of 28] Compiling Graphics.X11.Xlib.Internal ( dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Internal.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Internal.o )
[ 2 of 28] Compiling Graphics.X11.Types ( dist/dist-sandbox-801471b6/build/Graphics/X11/Types.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/Types.o )
[ 3 of 28] Compiling Graphics.X11.Xlib.Types ( dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Types.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Types.o )
[ 4 of 28] Compiling Graphics.X11.Xlib.Display ( Graphics/X11/Xlib/Display.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Display.o )
[ 5 of 28] Compiling Graphics.X11.Xlib.Event ( dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Event.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Event.o )
[ 6 of 28] Compiling Graphics.X11.Xlib.Screen ( Graphics/X11/Xlib/Screen.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Screen.o )
[ 7 of 28] Compiling Graphics.X11.Xlib.Window ( Graphics/X11/Xlib/Window.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Window.o )
[ 8 of 28] Compiling Graphics.X11.Xlib.Context ( Graphics/X11/Xlib/Context.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Context.o )
[ 9 of 28] Compiling Graphics.X11.Xlib.Color ( Graphics/X11/Xlib/Color.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Color.o )
[10 of 28] Compiling Graphics.X11.Xlib.Font ( dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Font.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Font.o )
[11 of 28] Compiling Graphics.X11.Xlib.Cursor ( dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Cursor.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Cursor.o )
[12 of 28] Compiling Graphics.X11.Xlib.Atom ( dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Atom.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Atom.o )
[13 of 28] Compiling Graphics.X11.Xlib.Region ( Graphics/X11/Xlib/Region.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Region.o )
[14 of 28] Compiling Graphics.X11.Xlib.Image ( Graphics/X11/Xlib/Image.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Image.o )
[15 of 28] Compiling Graphics.X11.Xlib.Misc ( dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Misc.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Misc.o )

Graphics/X11/Xlib/Misc.hsc:698:10: Warning:
    Orphan instance: instance Default VisualInfo
[16 of 28] Compiling Graphics.X11.Xrandr ( dist/dist-sandbox-801471b6/build/Graphics/X11/Xrandr.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/Xrandr.o )
[17 of 28] Compiling Graphics.X11.ExtraTypes.AP ( dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/AP.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/AP.o )
[18 of 28] Compiling Graphics.X11.ExtraTypes.DEC ( dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/DEC.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/DEC.o )
[19 of 28] Compiling Graphics.X11.ExtraTypes.HP ( dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/HP.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/HP.o )
[20 of 28] Compiling Graphics.X11.ExtraTypes.Sun ( dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/Sun.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/Sun.o )
[21 of 28] Compiling Graphics.X11.ExtraTypes.XF86 ( dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/XF86.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/XF86.o )
[22 of 28] Compiling Graphics.X11.ExtraTypes.XorgDefault ( dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/XorgDefault.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/XorgDefault.o )
[23 of 28] Compiling Graphics.X11.ExtraTypes ( Graphics/X11/ExtraTypes.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes.o )
[24 of 28] Compiling Graphics.X11.Xlib ( Graphics/X11/Xlib.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib.o )
[25 of 28] Compiling Graphics.X11.Xlib.Extras ( dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Extras.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Extras.o )
[26 of 28] Compiling Graphics.X11.Xinerama ( dist/dist-sandbox-801471b6/build/Graphics/X11/Xinerama.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/Xinerama.o )
[27 of 28] Compiling Graphics.X11.XScreenSaver ( dist/dist-sandbox-801471b6/build/Graphics/X11/XScreenSaver.hs, dist/dist-sandbox-801471b6/build/Graphics/X11/XScreenSaver.o )
[28 of 28] Compiling Graphics.X11     ( Graphics/X11.hs, dist/dist-sandbox-801471b6/build/Graphics/X11.o )
Building C Sources...
creating dist/dist-sandbox-801471b6/build
/usr/local/bin/ghc -c -odir dist/dist-sandbox-801471b6/build -Idist/dist-sandbox-801471b6/build/autogen -Idist/dist-sandbox-801471b6/build -Iinclude -optc-I/usr/X11/include -optc-I/usr/X11/include -optc-I/usr/X11/include -optc-O2 -no-user-package-db -package-db /Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/x86_64-osx-ghc-7.8.1-packages.conf.d -package-db dist/dist-sandbox-801471b6/package.conf.inplace -package-id base-4.7.0.0-0e17cca653cb6df26dc9552b6ec8cc4d -package-id data-default-0.5.3-905e991bfad3ba5799fbb59cd1d789cb cbits/fdset.c
/usr/local/bin/ghc -c -dynamic -fPIC -osuf dyn_o -odir dist/dist-sandbox-801471b6/build -Idist/dist-sandbox-801471b6/build/autogen -Idist/dist-sandbox-801471b6/build -Iinclude -optc-I/usr/X11/include -optc-I/usr/X11/include -optc-I/usr/X11/include -optc-O2 -no-user-package-db -package-db /Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/x86_64-osx-ghc-7.8.1-packages.conf.d -package-db dist/dist-sandbox-801471b6/package.conf.inplace -package-id base-4.7.0.0-0e17cca653cb6df26dc9552b6ec8cc4d -package-id data-default-0.5.3-905e991bfad3ba5799fbb59cd1d789cb cbits/fdset.c
creating dist/dist-sandbox-801471b6/build
/usr/local/bin/ghc -c -odir dist/dist-sandbox-801471b6/build -Idist/dist-sandbox-801471b6/build/autogen -Idist/dist-sandbox-801471b6/build -Iinclude -optc-I/usr/X11/include -optc-I/usr/X11/include -optc-I/usr/X11/include -optc-O2 -no-user-package-db -package-db /Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/x86_64-osx-ghc-7.8.1-packages.conf.d -package-db dist/dist-sandbox-801471b6/package.conf.inplace -package-id base-4.7.0.0-0e17cca653cb6df26dc9552b6ec8cc4d -package-id data-default-0.5.3-905e991bfad3ba5799fbb59cd1d789cb cbits/auxiliaries.c
/usr/local/bin/ghc -c -dynamic -fPIC -osuf dyn_o -odir dist/dist-sandbox-801471b6/build -Idist/dist-sandbox-801471b6/build/autogen -Idist/dist-sandbox-801471b6/build -Iinclude -optc-I/usr/X11/include -optc-I/usr/X11/include -optc-I/usr/X11/include -optc-O2 -no-user-package-db -package-db /Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/x86_64-osx-ghc-7.8.1-packages.conf.d -package-db dist/dist-sandbox-801471b6/package.conf.inplace -package-id base-4.7.0.0-0e17cca653cb6df26dc9552b6ec8cc4d -package-id data-default-0.5.3-905e991bfad3ba5799fbb59cd1d789cb cbits/auxiliaries.c
creating dist/dist-sandbox-801471b6/build
/usr/local/bin/ghc -c -odir dist/dist-sandbox-801471b6/build -Idist/dist-sandbox-801471b6/build/autogen -Idist/dist-sandbox-801471b6/build -Iinclude -optc-I/usr/X11/include -optc-I/usr/X11/include -optc-I/usr/X11/include -optc-O2 -no-user-package-db -package-db /Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/x86_64-osx-ghc-7.8.1-packages.conf.d -package-db dist/dist-sandbox-801471b6/package.conf.inplace -package-id base-4.7.0.0-0e17cca653cb6df26dc9552b6ec8cc4d -package-id data-default-0.5.3-905e991bfad3ba5799fbb59cd1d789cb cbits/XUtils.c
/usr/local/bin/ghc -c -dynamic -fPIC -osuf dyn_o -odir dist/dist-sandbox-801471b6/build -Idist/dist-sandbox-801471b6/build/autogen -Idist/dist-sandbox-801471b6/build -Iinclude -optc-I/usr/X11/include -optc-I/usr/X11/include -optc-I/usr/X11/include -optc-O2 -no-user-package-db -package-db /Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/x86_64-osx-ghc-7.8.1-packages.conf.d -package-db dist/dist-sandbox-801471b6/package.conf.inplace -package-id base-4.7.0.0-0e17cca653cb6df26dc9552b6ec8cc4d -package-id data-default-0.5.3-905e991bfad3ba5799fbb59cd1d789cb cbits/XUtils.c
Linking...
/usr/bin/ar -r -s dist/dist-sandbox-801471b6/build/libHSX11-1.6.1.1.a dist/dist-sandbox-801471b6/build/Graphics/X11.o dist/dist-sandbox-801471b6/build/Graphics/X11/Types.o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib.o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Atom.o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Color.o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Context.o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Cursor.o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Display.o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Event.o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Font.o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Misc.o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Region.o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Screen.o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Types.o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Window.o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Image.o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Extras.o dist/dist-sandbox-801471b6/build/Graphics/X11/Xinerama.o dist/dist-sandbox-801471b6/build/Graphics/X11/Xrandr.o dist/dist-sandbox-801471b6/build/Graphics/X11/XScreenSaver.o dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes.o dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/AP.o dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/DEC.o dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/HP.o dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/Sun.o dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/XF86.o dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/XorgDefault.o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Internal.o dist/dist-sandbox-801471b6/build/cbits/fdset.o dist/dist-sandbox-801471b6/build/cbits/auxiliaries.o dist/dist-sandbox-801471b6/build/cbits/XUtils.o
ar: creating archive dist/dist-sandbox-801471b6/build/libHSX11-1.6.1.1.a
/usr/local/bin/ghc -shared -dynamic -lXss -lXinerama -lXext -lX11 -lXrandr -lXext -package-name X11-1.6.1.1 -no-auto-link-packages -no-user-package-db -package-db /Users/codygman/osxmonad-install/xmonad/.cabal-sandbox/x86_64-osx-ghc-7.8.1-packages.conf.d -package-db dist/dist-sandbox-801471b6/package.conf.inplace -package-id base-4.7.0.0-0e17cca653cb6df26dc9552b6ec8cc4d -package-id data-default-0.5.3-905e991bfad3ba5799fbb59cd1d789cb dist/dist-sandbox-801471b6/build/Graphics/X11.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/Types.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Atom.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Color.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Context.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Cursor.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Display.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Event.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Font.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Misc.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Region.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Screen.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Types.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Window.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Image.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Extras.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/Xinerama.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/Xrandr.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/XScreenSaver.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/AP.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/DEC.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/HP.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/Sun.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/XF86.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/ExtraTypes/XorgDefault.dyn_o dist/dist-sandbox-801471b6/build/Graphics/X11/Xlib/Internal.dyn_o dist/dist-sandbox-801471b6/build/cbits/fdset.dyn_o dist/dist-sandbox-801471b6/build/cbits/auxiliaries.dyn_o dist/dist-sandbox-801471b6/build/cbits/XUtils.dyn_o -o dist/dist-sandbox-801471b6/build/libHSX11-1.6.1.1-ghc7.8.1.dylib
ld: library not found for -lXss
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Failed to install X11-1.6.1.1
Updating world file...
cabal: Error: some packages failed to install:
X11-1.6.1.1 failed during the building phase. The exception was:
ExitFailure 1
@dmwit
Copy link
Contributor

dmwit commented Apr 22, 2014

That error typically means that you do not have some key libraries installed; in this case, Xss. I'm not sure what you need to do to get it (I've never really understood how package management works for Macs), so I can't give you much more help than that, sorry. I don't really think at the moment that this is a problem with the Haskell bindings.

@dmwit dmwit closed this as completed Apr 22, 2014
@simonmichael
Copy link

I hit the same issue here while trying out arbtt. Perhaps the X11 package description should state that it won't build on mac/windows.

@dmwit
Copy link
Contributor

dmwit commented May 1, 2014

Is there really no way to install the Xss library on OSX? (I believe this is the X screensaver library.) If not, I suppose we could try to support a cabal flag or similar that would rip the screensaver support out. But I'd really, really prefer not to do that: letting the API of a package depend on flags is very bad practice, not least because there's no way for downstream packages to depend on particular build flags.

@adamse
Copy link

adamse commented Jul 3, 2014

I have succeeded to install X11 on OS X:

@freizl
Copy link

freizl commented Jul 19, 2014

Thanks @adamse, it works for me!

@d12frosted
Copy link

The same, thank you @adamse !

@casidiablo
Copy link

@adamse thanks dude!

@simonmichael
Copy link

I can't see when this issue was closed [oh: 2014/4/21], but I respectfully disagree that it's resolved. The X11 package on hackage gives the impression of being cross-platform, so its description should include or point to any special steps required to install it.

@simonmichael simonmichael reopened this Oct 3, 2014
@FranklinChen
Copy link

I agree that instructions should be given on how to install on Mac OS. I had to do a bunch of Web searching to reach this page with the workaround someone contributed.

@adamse
Copy link

adamse commented Nov 22, 2014

What would be the best place to put installation instructions for OS X? In the readme? In a separate INSTALL file? Perhaps in the cabal-file description?

@geraldus
Copy link

I have succeeded to install X11 on OS X:

Using X11 from http://xquartz.macosforge.org/landing/
Running: LIBRARY_PATH=/opt/X11/lib:$LIBRARY_PATH cabal install X11

Worked for me on OS X Yosemite, thanks!

@nkpart
Copy link

nkpart commented Jan 8, 2015

Another data point, for me LIBRARY_PATH wasn't enough. This worked for me:

LIBRARY_PATH=/opt/X11/lib:$LIBRARY_PATH CPPFLAGS="-I/opt/X11/include" LDFLAGS="-L/opt/X11/lib" cabal install X11

@cdornan
Copy link

cdornan commented Jan 8, 2015

LIBRARY_PATH=/opt/X11/lib:$LIBRARY_PATH CPPFLAGS="-I/opt/X11/include" LDFLAGS="-L/opt/X11/lib" cabal install X11

I needed this too (building for Yosemite)

@enirx
Copy link

enirx commented Jun 24, 2015

I would also add that the above is correct when using bash, commands are different when using tcsh.

@benoahriz
Copy link

LIBRARY_PATH=/opt/X11/lib:$LIBRARY_PATH cabal install X11

that worked for me thanks!

@larryhynes
Copy link

I just ran into this, and @nkpart's incantation worked for me - thanks. @adamse I think the best place to put OSX-specific instructions would be in all of the places that installation instructions relevant to any other platform go. I would probably start on the page on the xmonad site here where it references "Notes for Debian / Ubuntu", "Notes for Ubuntu", etc., like "Notes for OSX"?

@dmwit
Copy link
Contributor

dmwit commented Feb 20, 2016

I have just pushed a branch named osx-pkgconfig. In this branch, I've walked through the output of pkg-config --list-all on my system and added anything that looked relevant to the pkgconfig-depends field in the cabal file. I would appreciate some testing by somebody who has an OSX machine and for whom the master branch doesn't build as described in this issue:

  1. Does this make cabal install X11 work (obviously without additional LIBRARY_PATH hacks)?
  2. If so, what is the minimal set of packages in the pkgconfig-depends field that works?

Even having an answer to (1) without (2) would be a great help -- I can make a more careful pass at picking relevant packages if it looks like this idea has any chance of working at all.

@geraldus
Copy link

@dmwit if no one will give you a feedback, please ping me at the end of next week, I'll try to provide info you asked.

@larryhynes
Copy link

Hi Daniel

Thanks for this (and for yeganesh!).

I launched a fresh shell without any PKG_CONFIG_PATH environment set, and commented out extra-include-dirs and extra-lib-dirs in my ~/.cabal/config cloned this repo, checked out out your new branch, cabal sandbox init-ed, and...

Configuring X11-1.6.1.2...
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11/lib, headers /usr/X11/include
checking whether -R must be followed by a space... neither works
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking whether to build Xinerama... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking X11/extensions/Xinerama.h usability... yes
checking X11/extensions/Xinerama.h presence... yes
checking for X11/extensions/Xinerama.h... yes
checking X11/extensions/Xrandr.h usability... yes
checking X11/extensions/Xrandr.h presence... yes
checking for X11/extensions/Xrandr.h... yes
checking whether to build XScreenSaver... yes
checking X11/extensions/scrnsaver.h usability... yes
checking X11/extensions/scrnsaver.h presence... yes
checking for X11/extensions/scrnsaver.h... yes
checking whether to include X.org keysyms... yes
checking X11/keysym.h usability... yes
checking X11/keysym.h presence... yes
checking for X11/keysym.h... yes
checking X11/DECkeysym.h usability... yes
checking X11/DECkeysym.h presence... yes
checking for X11/DECkeysym.h... yes
checking X11/Sunkeysym.h usability... yes
checking X11/Sunkeysym.h presence... yes
checking for X11/Sunkeysym.h... yes
checking X11/ap_keysym.h usability... yes
checking X11/ap_keysym.h presence... yes
checking for X11/ap_keysym.h... yes
checking X11/HPkeysym.h usability... yes
checking X11/HPkeysym.h presence... yes
checking for X11/HPkeysym.h... yes
checking X11/XF86keysym.h usability... yes
checking X11/XF86keysym.h presence... yes
checking for X11/XF86keysym.h... yes
checking X11/keysymdef.h usability... yes
checking X11/keysymdef.h presence... yes
checking for X11/keysymdef.h... yes
checking X11/cursorfont.h usability... yes
checking X11/cursorfont.h presence... yes
checking for X11/cursorfont.h... yes
configure: creating ./config.status
config.status: creating config.mk
config.status: creating X11.buildinfo
config.status: creating include/HsX11Config.h
config.status: creating include/X11_extras_config.h
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
Building X11-1.6.1.2...
Preprocessing library X11-1.6.1.2...
In file included from AP.hsc:166:
In file included from include/HsAllKeysyms.h:48:
/usr/X11/include/X11/HPkeysym.h:58:9: warning: '_HPKEYSYM_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
#ifndef _HPKEYSYM_H
        ^~~~~~~~~~~
/usr/X11/include/X11/HPkeysym.h:60:9: note: '_HPKEYSYM' is defined here; did you mean '_HPKEYSYM_H'?
#define _HPKEYSYM
        ^~~~~~~~~
        _HPKEYSYM_H
1 warning generated.
In file included from DEC.hsc:111:
In file included from include/HsAllKeysyms.h:48:
/usr/X11/include/X11/HPkeysym.h:58:9: warning: '_HPKEYSYM_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
#ifndef _HPKEYSYM_H
        ^~~~~~~~~~~
/usr/X11/include/X11/HPkeysym.h:60:9: note: '_HPKEYSYM' is defined here; did you mean '_HPKEYSYM_H'?
#define _HPKEYSYM
        ^~~~~~~~~
        _HPKEYSYM_H
1 warning generated.
In file included from HP.hsc:504:
In file included from include/HsAllKeysyms.h:48:
/usr/X11/include/X11/HPkeysym.h:58:9: warning: '_HPKEYSYM_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
#ifndef _HPKEYSYM_H
        ^~~~~~~~~~~
/usr/X11/include/X11/HPkeysym.h:60:9: note: '_HPKEYSYM' is defined here; did you mean '_HPKEYSYM_H'?
#define _HPKEYSYM
        ^~~~~~~~~
        _HPKEYSYM_H
1 warning generated.
In file included from Sun.hsc:236:
In file included from include/HsAllKeysyms.h:48:
/usr/X11/include/X11/HPkeysym.h:58:9: warning: '_HPKEYSYM_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
#ifndef _HPKEYSYM_H
        ^~~~~~~~~~~
/usr/X11/include/X11/HPkeysym.h:60:9: note: '_HPKEYSYM' is defined here; did you mean '_HPKEYSYM_H'?
#define _HPKEYSYM
        ^~~~~~~~~
        _HPKEYSYM_H
1 warning generated.
In file included from XF86.hsc:775:
In file included from include/HsAllKeysyms.h:48:
/usr/X11/include/X11/HPkeysym.h:58:9: warning: '_HPKEYSYM_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
#ifndef _HPKEYSYM_H
        ^~~~~~~~~~~
/usr/X11/include/X11/HPkeysym.h:60:9: note: '_HPKEYSYM' is defined here; did you mean '_HPKEYSYM_H'?
#define _HPKEYSYM
        ^~~~~~~~~
        _HPKEYSYM_H
1 warning generated.
In file included from XorgDefault.hsc:10047:
In file included from include/HsAllKeysyms.h:48:
/usr/X11/include/X11/HPkeysym.h:58:9: warning: '_HPKEYSYM_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
#ifndef _HPKEYSYM_H
        ^~~~~~~~~~~
/usr/X11/include/X11/HPkeysym.h:60:9: note: '_HPKEYSYM' is defined here; did you mean '_HPKEYSYM_H'?
#define _HPKEYSYM
        ^~~~~~~~~
        _HPKEYSYM_H
1 warning generated.
[ 1 of 28] Compiling Graphics.X11.Xlib.Internal ( dist/dist-sandbox-c01c888e/build/Graphics/X11/Xlib/Internal.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/Xlib/Internal.o )
[ 2 of 28] Compiling Graphics.X11.Types ( dist/dist-sandbox-c01c888e/build/Graphics/X11/Types.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/Types.o )

Graphics/X11/Types.hsc:61:1: Warning: Tab character
[ 3 of 28] Compiling Graphics.X11.Xlib.Types ( dist/dist-sandbox-c01c888e/build/Graphics/X11/Xlib/Types.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/Xlib/Types.o )
[ 4 of 28] Compiling Graphics.X11.Xlib.Display ( Graphics/X11/Xlib/Display.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/Xlib/Display.o )
[ 5 of 28] Compiling Graphics.X11.Xlib.Event ( dist/dist-sandbox-c01c888e/build/Graphics/X11/Xlib/Event.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/Xlib/Event.o )
[ 6 of 28] Compiling Graphics.X11.Xlib.Screen ( Graphics/X11/Xlib/Screen.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/Xlib/Screen.o )
[ 7 of 28] Compiling Graphics.X11.Xlib.Window ( Graphics/X11/Xlib/Window.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/Xlib/Window.o )
[ 8 of 28] Compiling Graphics.X11.Xlib.Context ( Graphics/X11/Xlib/Context.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/Xlib/Context.o )
[ 9 of 28] Compiling Graphics.X11.Xlib.Color ( Graphics/X11/Xlib/Color.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/Xlib/Color.o )
[10 of 28] Compiling Graphics.X11.Xlib.Font ( dist/dist-sandbox-c01c888e/build/Graphics/X11/Xlib/Font.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/Xlib/Font.o )

Graphics/X11/Xlib/Font.hsc:23:1: Warning: Tab character

(...warning repeats many times...)

Graphics/X11/Xlib/Font.hsc:189:1: Warning: Tab character
[11 of 28] Compiling Graphics.X11.Xlib.Cursor ( dist/dist-sandbox-c01c888e/build/Graphics/X11/Xlib/Cursor.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/Xlib/Cursor.o )
[12 of 28] Compiling Graphics.X11.Xlib.Atom ( dist/dist-sandbox-c01c888e/build/Graphics/X11/Xlib/Atom.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/Xlib/Atom.o )
[13 of 28] Compiling Graphics.X11.Xlib.Region ( Graphics/X11/Xlib/Region.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/Xlib/Region.o )
[14 of 28] Compiling Graphics.X11.Xlib.Image ( Graphics/X11/Xlib/Image.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/Xlib/Image.o )
[15 of 28] Compiling Graphics.X11.Xlib.Misc ( dist/dist-sandbox-c01c888e/build/Graphics/X11/Xlib/Misc.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/Xlib/Misc.o )

Graphics/X11/Xlib/Misc.hsc:698:10: Warning:
    Orphan instance: instance Default VisualInfo
    To avoid this
        move the instance declaration to the module of the class or of the type, or
        wrap the type with a newtype and declare the instance on the new type.
[16 of 28] Compiling Graphics.X11.Xrandr ( dist/dist-sandbox-c01c888e/build/Graphics/X11/Xrandr.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/Xrandr.o )
[17 of 28] Compiling Graphics.X11.ExtraTypes.AP ( dist/dist-sandbox-c01c888e/build/Graphics/X11/ExtraTypes/AP.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/ExtraTypes/AP.o )
[18 of 28] Compiling Graphics.X11.ExtraTypes.DEC ( dist/dist-sandbox-c01c888e/build/Graphics/X11/ExtraTypes/DEC.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/ExtraTypes/DEC.o )
[19 of 28] Compiling Graphics.X11.ExtraTypes.HP ( dist/dist-sandbox-c01c888e/build/Graphics/X11/ExtraTypes/HP.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/ExtraTypes/HP.o )
[20 of 28] Compiling Graphics.X11.ExtraTypes.Sun ( dist/dist-sandbox-c01c888e/build/Graphics/X11/ExtraTypes/Sun.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/ExtraTypes/Sun.o )
[21 of 28] Compiling Graphics.X11.ExtraTypes.XF86 ( dist/dist-sandbox-c01c888e/build/Graphics/X11/ExtraTypes/XF86.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/ExtraTypes/XF86.o )
[22 of 28] Compiling Graphics.X11.ExtraTypes.XorgDefault ( dist/dist-sandbox-c01c888e/build/Graphics/X11/ExtraTypes/XorgDefault.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/ExtraTypes/XorgDefault.o )
[23 of 28] Compiling Graphics.X11.ExtraTypes ( Graphics/X11/ExtraTypes.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/ExtraTypes.o )

Graphics/X11/ExtraTypes.hs:16:1: Warning: Tab character

 (...warning repeats many times...)

Graphics/X11/ExtraTypes.hs:25:1: Warning: Tab character
[24 of 28] Compiling Graphics.X11.Xlib ( Graphics/X11/Xlib.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/Xlib.o )

Graphics/X11/Xlib.hs:23:1: Warning: Tab character

(...warning repeats many times...)

Graphics/X11/Xlib.hs:47:1: Warning: Tab character
[25 of 28] Compiling Graphics.X11.Xlib.Extras ( dist/dist-sandbox-c01c888e/build/Graphics/X11/Xlib/Extras.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/Xlib/Extras.o )
[26 of 28] Compiling Graphics.X11.Xinerama ( dist/dist-sandbox-c01c888e/build/Graphics/X11/Xinerama.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/Xinerama.o )
[27 of 28] Compiling Graphics.X11.XScreenSaver ( dist/dist-sandbox-c01c888e/build/Graphics/X11/XScreenSaver.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11/XScreenSaver.o )
[28 of 28] Compiling Graphics.X11     ( Graphics/X11.hs, dist/dist-sandbox-c01c888e/build/Graphics/X11.o )
ld: library not found for -lXss
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Now, if I leave the following...

extra-include-dirs:/opt/X11/include
extra-include-dirs:/opt/X11/include/X11
extra-lib-dirs:/opt/X11/lib

in my ~/.cabal/config, it builds fine. So I'm inclined to think that a potentially 'canonical' way of resolving this is to tackle it from the cabal config file. (Yes, I have two extra-include-dirs; I'm sure there's a nicer way of doing it but ...dirs:/foo:/bar didn't work and I was tired!)

Lemme know if there's anything further that I can do...

@larryhynes
Copy link

Gehrddammit, it looks like my email reply mussed up the formatting.

@dmwit
Copy link
Contributor

dmwit commented Feb 20, 2016

Okay, so essentially no change, which sucks since it means this approach is almost certainly not going to work.

...but I'm not going to put a hard-coded path like /opt/X11 into the cabal file. That just ain't right. If you know of a command that reliably points at /opt/X11 I will look into doing some configure hacking.

Note to future self: it looks like one of the results of running configure is to instantiate X11.buildinfo.in to X11.buildinfo, which is in cabal format and is then used by later cabal phases. Should be pretty easy to extend that template to have the appropriate extra fields.

@larryhynes
Copy link

Just to clarify: I'm not suggesting that the relevant paths be added into the X11 cabal file, I'm suggesting that the project take every opportunity to tell those using OSX to add the paths to their ~/.cabal/config. I think, in the absence of a permanent fix, that this is about as good as it will get in the interim.

@geekosaur
Copy link
Contributor

The correct answer here is that, since configure found the libraries in /usr/X11/lib, it should be adding -L/usr/X11/lib to LDFLAGS.

@dmwit
Copy link
Contributor

dmwit commented Feb 21, 2016

@geekosaur I believe my comment about X11.buildinfo is actually the correct way to add -L flags, rather than LDFLAGS (as configure actually has no way to affect the environment of the build step). However, your suggestion that configure has already found the right location (and just hasn't passed it on properly) is an interesting one, and I'll look into it.

@larryhynes
Copy link

(Just be mindful that OSX, in its infinite wisdom, symlinks /usr/X11 to /opt/X11.)

@geekosaur
Copy link
Contributor

It's right in the configure log in the initial report:

checking for X... libraries /usr/X11/lib, headers /usr/X11/include

Since configure has determined that (and this is correct on OS X, at least from 10.7 on), configure should be telling the rest of the build.

@geekosaur
Copy link
Contributor

@larryhynes, while that is true, it's not really relevant; /usr/X11 works fine and configure is clearly finding it and successfully using it. It's just not bothering to tell the actual build.

@rags
Copy link

rags commented Mar 10, 2016

LIBRARY_PATH=/opt/X11/lib:$LIBRARY_PATH cabal install X11

Works on El Capitan. Thanks

@SnailTyan
Copy link

link add -L/opt/X11/lib -lX11

@chrisdone
Copy link

For building with stack on OS X, install XQuartz and put the following in your ~/.stack/config.yaml:

extra-lib-dirs:
- /opt/X11/lib
extra-include-dirs:
- /opt/X11/include

@scifisamurai
Copy link

Ran into this today trying to install xmonad on OS X for the 1st time (though I've used xmonad on other operating systems like Linux in the past but just used the package manager to install it rather than cabal-install).

Thanks to @adamse for the fix to the -lXss issue! That combined with https://wiki.haskell.org/Xmonad/Using_xmonad_on_Apple_OSX#Modern_installation_instructions helped me get xmonad working on OS X High Sierra.

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