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

Not all include paths properly specified? #12

Closed
edsko opened this Issue Mar 11, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@edsko

edsko commented Mar 11, 2015

Building poppler on OSX gives me

# cabal install poppler --with-gcc=gcc-4.9
Resolving dependencies...
Notice: installing into a sandbox located at /Users/e/opt/sandboxes/gtk
Configuring poppler-0.13...
Building poppler-0.13...
Failed to install poppler-0.13
Build log ( /Users/e/opt/sandboxes/gtk/logs/poppler-0.13.log ):
[1 of 2] Compiling SetupWrapper     ( /var/folders/94/vkm1c1l17cddyvzk2252hnp40000gs/T/poppler-0.13-65671/poppler-0.13/SetupWrapper.hs, /var/folders/94/vkm1c1l17cddyvzk2252hnp40000gs/T/poppler-0.13-65671/poppler-0.13/dist/dist-sandbox-d101ed22/setup/SetupWrapper.o )
[2 of 2] Compiling Main             ( /var/folders/94/vkm1c1l17cddyvzk2252hnp40000gs/T/poppler-0.13-65671/poppler-0.13/dist/dist-sandbox-d101ed22/setup/setup.hs, /var/folders/94/vkm1c1l17cddyvzk2252hnp40000gs/T/poppler-0.13-65671/poppler-0.13/dist/dist-sandbox-d101ed22/setup/Main.o )
Linking /var/folders/94/vkm1c1l17cddyvzk2252hnp40000gs/T/poppler-0.13-65671/poppler-0.13/dist/dist-sandbox-d101ed22/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 poppler-0.13...
Building poppler-0.13...
Preprocessing library poppler-0.13...
Structs.hsc:24:27: fatal error: glib-2.0/glib.h: No such file or directory
compilation terminated.
compiling dist/dist-sandbox-d101ed22/build/Graphics/UI/Gtk/Poppler/Structs_hsc_make.c failed (exit code 1)
command was: /Users/e/homebrew/bin/gcc-4.9 -c dist/dist-sandbox-d101ed22/build/Graphics/UI/Gtk/Poppler/Structs_hsc_make.c -o dist/dist-sandbox-d101ed22/build/Graphics/UI/Gtk/Poppler/Structs_hsc_make.o -D__GLASGOW_HASKELL__=708 -Ddarwin_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Ddarwin_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Idist/dist-sandbox-d101ed22/build/autogen -Idist/dist-sandbox-d101ed22/build -I. -I/opt/X11/include/cairo -I/opt/X11/include/pixman-1 -I/opt/X11/include -I/opt/X11/include/freetype2 -I/opt/X11/include/libpng15 -I/Users/e/homebrew/Cellar/poppler/0.29.0/include/poppler/glib -I/Users/e/homebrew/Cellar/poppler/0.29.0/include/poppler -I/Users/e/homebrew/Cellar/gtk+/2.24.25/include/gtk-2.0 -I/Users/e/homebrew/Cellar/gtk+/2.24.25/lib/gtk-2.0/include -I/Users/e/homebrew/Cellar/pango/1.36.8/include/pango-1.0 -I/Users/e/homebrew/Cellar/gdk-pixbuf/2.30.8/include/gdk-pixbuf-2.0 -I/Users/e/homebrew/Cellar/libpng/1.6.16/include/libpng16 -I/Users/e/homebrew/Cellar/glib/2.42.2/include/glib-2.0 -I/Users/e/homebrew/Cellar/glib/2.42.2/lib/glib-2.0/include -I/Users/e/homebrew/opt/gettext/include -D_REENTRANT -I/opt/X11/include/cairo -I/opt/X11/include/pixman-1 -I/opt/X11/include/libpng15 -I/opt/X11/include -I/opt/X11/include/freetype2 -I/Users/e/homebrew/Cellar/gtk+/2.24.25/include/gtk-2.0 -I/Users/e/homebrew/Cellar/gtk+/2.24.25/lib/gtk-2.0/include -I/Users/e/homebrew/Cellar/pango/1.36.8/include/pango-1.0 -I/Users/e/homebrew/Cellar/atk/2.14.0/include/atk-1.0 -I/Users/e/homebrew/Cellar/gdk-pixbuf/2.30.8/include/gdk-pixbuf-2.0 -I/Users/e/homebrew/Cellar/libpng/1.6.16/include/libpng16 -I/Users/e/homebrew/Cellar/harfbuzz/0.9.38/include/harfbuzz -I/Users/e/homebrew/Cellar/glib/2.42.2/include/glib-2.0 -I/Users/e/homebrew/Cellar/glib/2.42.2/lib/glib-2.0/include -I/Users/e/homebrew/opt/gettext/include -Idist/dist-sandbox-d101ed22/build/autogen -include dist/dist-sandbox-d101ed22/build/autogen/cabal_macros.h -I/opt/X11/include/cairo -I/opt/X11/include/pixman-1 -I/opt/X11/include -I/opt/X11/include/freetype2 -I/opt/X11/include/libpng15 -I/Users/e/homebrew/Cellar/pango/1.36.8/include/pango-1.0 -I/Users/e/homebrew/Cellar/glib/2.42.2/include/glib-2.0 -I/Users/e/homebrew/Cellar/glib/2.42.2/lib/glib-2.0/include -I/Users/e/homebrew/opt/gettext/include -Idist/dist-sandbox-d101ed22/build/autogen -include dist/dist-sandbox-d101ed22/build/autogen/cabal_macros.h -I/Users/e/wt/projects/fpco/ghc/7.8.4/libraries/process/include -Idist/dist-sandbox-d101ed22/build/autogen -include dist/dist-sandbox-d101ed22/build/autogen/cabal_macros.h -Idist/dist-sandbox-d101ed22/build/autogen -include dist/dist-sandbox-d101ed22/build/autogen/cabal_macros.h -I/Users/e/homebrew/Cellar/glib/2.42.2/include/glib-2.0 -I/Users/e/homebrew/Cellar/glib/2.42.2/lib/glib-2.0/include -I/Users/e/homebrew/opt/gettext/include -Idist/dist-sandbox-d101ed22/build/autogen -include dist/dist-sandbox-d101ed22/build/autogen/cabal_macros.h -I/Users/e/homebrew/Cellar/glib/2.42.2/include/glib-2.0 -I/Users/e/homebrew/Cellar/glib/2.42.2/lib/glib-2.0/include -I/Users/e/homebrew/opt/gettext/include -Idist/dist-sandbox-d101ed22/build/autogen -include dist/dist-sandbox-d101ed22/build/autogen/cabal_macros.h -I/Users/e/wt/projects/fpco/ghc/7.8.4/libraries/directory/include -Idist/dist-sandbox-d101ed22/build/autogen -include dist/dist-sandbox-d101ed22/build/autogen/cabal_macros.h -I/Users/e/wt/projects/fpco/ghc/7.8.4/libraries/unix/include -Idist/dist-sandbox-d101ed22/build/autogen -include dist/dist-sandbox-d101ed22/build/autogen/cabal_macros.h -I/Users/e/wt/projects/fpco/ghc/7.8.4/libraries/time/include -Idist/dist-sandbox-d101ed22/build/autogen -include dist/dist-sandbox-d101ed22/build/autogen/cabal_macros.h -Idist/dist-sandbox-d101ed22/build/autogen -include dist/dist-sandbox-d101ed22/build/autogen/cabal_macros.h -Idist/dist-sandbox-d101ed22/build/autogen -include dist/dist-sandbox-d101ed22/build/autogen/cabal_macros.h -I/Users/e/wt/projects/fpco/ghc/7.8.4/libraries/containers/include -Idist/dist-sandbox-d101ed22/build/autogen -include dist/dist-sandbox-d101ed22/build/autogen/cabal_macros.h -I/opt/X11/include/cairo -I/opt/X11/include/pixman-1 -I/opt/X11/include -I/opt/X11/include/freetype2 -I/opt/X11/include/libpng15 -Idist/dist-sandbox-d101ed22/build/autogen -include dist/dist-sandbox-d101ed22/build/autogen/cabal_macros.h -Idist/dist-sandbox-d101ed22/build/autogen -include dist/dist-sandbox-d101ed22/build/autogen/cabal_macros.h -Idist/dist-sandbox-d101ed22/build/autogen -include dist/dist-sandbox-d101ed22/build/autogen/cabal_macros.h -Idist/dist-sandbox-d101ed22/build/autogen -include dist/dist-sandbox-d101ed22/build/autogen/cabal_macros.h -Idist/dist-sandbox-d101ed22/build/autogen -include dist/dist-sandbox-d101ed22/build/autogen/cabal_macros.h -I/Users/e/wt/projects/fpco/ghc/7.8.4/libraries/bytestring/include -Idist/dist-sandbox-d101ed22/build/autogen -include dist/dist-sandbox-d101ed22/build/autogen/cabal_macros.h -Idist/dist-sandbox-d101ed22/build/autogen -include dist/dist-sandbox-d101ed22/build/autogen/cabal_macros.h -Idist/dist-sandbox-d101ed22/build/autogen -include dist/dist-sandbox-d101ed22/build/autogen/cabal_macros.h -I/Users/e/wt/projects/fpco/ghc/7.8.4/libraries/base/include -Idist/dist-sandbox-d101ed22/build/autogen -include dist/dist-sandbox-d101ed22/build/autogen/cabal_macros.h -I/Users/e/wt/projects/fpco/ghc/7.8.4/libraries/integer-gmp/include -Idist/dist-sandbox-d101ed22/build/autogen -include dist/dist-sandbox-d101ed22/build/autogen/cabal_macros.h -Idist/dist-sandbox-d101ed22/build/autogen -include dist/dist-sandbox-d101ed22/build/autogen/cabal_macros.h -I/Users/e/wt/projects/fpco/ghc/7.8.4/rts/dist/build -I/Users/e/wt/projects/fpco/ghc/7.8.4/includes -I/Users/e/wt/projects/fpco/ghc/7.8.4/includes/dist-derivedconstants/header -Idist/dist-sandbox-d101ed22/build/autogen -include dist/dist-sandbox-d101ed22/build/autogen/cabal_macros.h -I/Users/e/wt/projects/fpco/ghc/7.8.4/inplace/lib/include/
cabal: Error: some packages failed to install:
poppler-0.13 failed during the building phase. The exception was:
ExitFailure 1

If instead I run

# cabal install poppler --with-gcc=gcc-4.9 --extra-include-dirs=/Users/e/homebrew/include
Resolving dependencies...
Notice: installing into a sandbox located at /Users/e/opt/sandboxes/gtk
Configuring poppler-0.13...
Building poppler-0.13...
Installed poppler-0.13

I'm not sure where this is a bug, precisely; but specifying this include path is not necessary for installing the other gtk bindings.

@wavewave

This comment has been minimized.

Show comment
Hide comment
@wavewave

wavewave Mar 12, 2015

Owner

Thanks for the report. I will try to copy other package's Setup.* files and see what happens.

Owner

wavewave commented Mar 12, 2015

Thanks for the report. I will try to copy other package's Setup.* files and see what happens.

@wavewave wavewave closed this Apr 8, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment