user@root ~/IHaskell (master)> stack install cairo glib
cairo> configure
cairo> [1 of 2] Compiling Main ( /tmp/stack-488567593cb9844f/cairo-0.13.8.1/Setup.hs, /tmp/stack-488567593cb9844f/cairo-0.13.8.1/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/setup/Main.o )
cairo> [2 of 2] Compiling StackSetupShim ( /home/user/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs, /tmp/stack-488567593cb9844f/cairo-0.13.8.1/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/setup/StackSetupShim.o )
cairo> Linking /tmp/stack-488567593cb9844f/cairo-0.13.8.1/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/setup/setup ...
cairo> Configuring cairo-0.13.8.1...
cairo> build
glib > configure
cairo> Preprocessing library for cairo-0.13.8.1..
cairo> setup: Error in C header file.
cairo>
cairo> cairo-gtk2hs.i:1: (column 1) [FATAL]
cairo> >>> Lexical error!
cairo> The character '#' does not fit here.
cairo>
glib > [1 of 2] Compiling Main ( /tmp/stack-488567593cb9844f/glib-0.13.8.1/Setup.hs, /tmp/stack-488567593cb9844f/glib-0.13.8.1/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/setup/Main.o )
glib > [2 of 2] Compiling StackSetupShim ( /home/user/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs, /tmp/stack-488567593cb9844f/glib-0.13.8.1/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/setup/StackSetupShim.o )
glib > Linking /tmp/stack-488567593cb9844f/glib-0.13.8.1/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/setup/setup ...
glib > Configuring glib-0.13.8.1...
glib > build
glib > Preprocessing library for glib-0.13.8.1..
glib > setup: Error in C header file.
glib >
glib > glib-object.i:1: (column 1) [FATAL]
glib > >>> Lexical error!
glib > The character '#' does not fit here.
glib >
Completed 2 action(s).
-- While building package glib-0.13.8.1 (scroll up to its section to see the error) using:
/tmp/stack-488567593cb9844f/glib-0.13.8.1/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/setup/setup --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0 build --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
-- While building package cairo-0.13.8.1 (scroll up to its section to see the error) using:
/tmp/stack-488567593cb9844f/cairo-0.13.8.1/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/setup/setup --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0 build --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
stack version 2.7.5
I am on Fedora 35, will provide any other information needed
stack version 2.7.5 I am on Fedora 35, will provide any other information needed