svgcairo/ghc vis cabal install error..

Hi !, I tried installing svgcairo ( for installing ghc vis ). I am getting following error. Could you please help me out install ghc vis. Thanks in advance Madhu — environment details. I am on mac yosomite with gcc provided by OS X. Following is the gcc —version 22:54:34:~$ gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn) Target: x86_64-apple-darwin14.1.0 Thread model: posix export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig export LDFLAGS=-L/usr/local/lib export CFLAGS=-I/usr/local/include export LIBS=-L/usr/local/lib svgcairo error =============== Configuring svgcairo-0.13.0.1... Building svgcairo-0.13.0.1... Preprocessing library svgcairo-0.13.0.1... gtk2hsC2hs: Error in C header file. /usr/include/sys/qos.h:124: (column 34) [FATAL]
Syntax error! The symbol `__attribute__' does not fit here.
cabal: Error: some packages failed to install: svgcairo-0.13.0.1 failed during the building phase. The exception was: ExitFailure 1

On Tue, Feb 10, 2015 at 10:57 PM, madhub
Preprocessing library svgcairo-0.13.0.1... gtk2hsC2hs: Error in C header file.
/usr/include/sys/qos.h:124: (column 34) [FATAL]
Syntax error! The symbol `__attribute__' does not fit here.
What version of gtk2hs-buildtools / gtk2hsc2hs? They had to be upgraded recently (past several months) to deal with changes in Apple header files related to Yosemite and to Apple's migration from gcc to clang. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
participants (2)
-
Brandon Allbery
-
madhub