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

Cannot install glade on OSX Mavericks and glib0.13... #1

Open
djogon opened this issue Aug 5, 2014 · 1 comment
Open

Cannot install glade on OSX Mavericks and glib0.13... #1

djogon opened this issue Aug 5, 2014 · 1 comment

Comments

@djogon
Copy link

djogon commented Aug 5, 2014

Installed gtk2hs , have a working glade 3.8 working.
Doing cabal install glade gives the following

cabal install glade
Resolving dependencies...
Configuring glib-0.12.5.4...
Building glib-0.12.5.4...
Failed to install glib-0.12.5.4
Build log ( /Users/djogon/.cabal/logs/glib-0.12.5.4.log ):
[1 of 2] Compiling SetupWrapper ( /var/folders/3f/dll7k37j7yl41z0tgkfxn4lh0000gn/T/glib-0.12.5.4-12929/glib-0.12.5.4/SetupWrapper.hs, /var/folders/3f/dll7k37j7yl41z0tgkfxn4lh0000gn/T/glib-0.12.5.4-12929/glib-0.12.5.4/dist/setup/SetupWrapper.o )
[2 of 2] Compiling Main ( /var/folders/3f/dll7k37j7yl41z0tgkfxn4lh0000gn/T/glib-0.12.5.4-12929/glib-0.12.5.4/dist/setup/setup.hs, /var/folders/3f/dll7k37j7yl41z0tgkfxn4lh0000gn/T/glib-0.12.5.4-12929/glib-0.12.5.4/dist/setup/Main.o )
Linking /var/folders/3f/dll7k37j7yl41z0tgkfxn4lh0000gn/T/glib-0.12.5.4-12929/glib-0.12.5.4/dist/setup/setup ...
[1 of 2] Compiling Gtk2HsSetup ( Gtk2HsSetup.hs, dist/setup-wrapper/Gtk2HsSetup.o )
[2 of 2] Compiling Main ( SetupMain.hs, dist/setup-wrapper/Main.o )
Linking dist/setup-wrapper/setup ...
Configuring glib-0.12.5.4...
Building glib-0.12.5.4...
Preprocessing library glib-0.12.5.4...
gtk2hsC2hs: Error in C header file.

/usr/include/dirent.h:147: (column 10) [FATAL]

Syntax error!
The symbol `^' does not fit here.

cabal: Error: some packages failed to install:
gio-0.12.5.3 depends on glib-0.12.5.4 which failed to install.
glade-0.12.5.0 depends on glib-0.12.5.4 which failed to install.
glib-0.12.5.4 failed during the building phase. The exception was:
ExitFailure 1
gtk-0.12.5.7 depends on glib-0.12.5.4 which failed to install.
pango-0.12.5.3 depends on glib-0.12.5.4 which failed to install.


Here is the information about glib installed on my system

  • glib
    Synopsis: Binding to the GLIB library for Gtk2Hs.
    Default available version: 0.13.0.0
    Installed versions: 0.13.0.0
    Homepage: http://projects.haskell.org/gtk2hs/
    License: LGPL-2.1

I have XCode5, but I also have ghc 7.83

ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.8.3

The error obviously has something to do with the "blocks" syntax and clang compiler, but I though that was fixed in ghc 7.8

the real question is - is why is glade requiring glib < 0.13 ? If it is not a real requirement - please fix this so we can install glad. Otherwise - I would suggest to update the glade package to match the rest of the system.

As it is now - it is unusable.

@mpickering
Copy link
Contributor

A workaround for this is to specify --with-gcc=gcc-4.9 when installing the package.

hamishmack pushed a commit that referenced this issue Dec 13, 2016
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

2 participants