[Haskell-cafe] cabal problem?

Don Stewart dons at galois.com
Wed Nov 14 11:33:27 EST 2007


jens.blanck:
>    I have problems building X11. I just installed ghc 6.8 but I got the same
>    behaviour when asking it to use the old compiler.
> 
>    Jens
> 
>    > runghc Setup.hs configure
>    Configuring X11-1.3.0.20071111...
>    checking for gcc... gcc
>    checking for C compiler default output file name... a.out
>    checking whether the C compiler works... yes
>    checking whether we are cross compiling... no
>    checking for suffix of executables...
>    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 ANSI C... none needed
>    checking how to run the C preprocessor... gcc -E
>    checking for X... libraries /usr/X11R6/lib64, headers /usr/X11R6/include
>    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 egrep... 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
>    configure: creating ./config.status
>    config.status: creating [1]config.mk
>    config.status: creating X11.buildinfo
>    config.status: creating include/HsX11Config.h
>    config.status: include/HsX11Config.h is unchanged
>    config.status: creating include/X11_extras_config.h
>    config.status: include/X11_extras_config.h is unchanged
>    > runghc Setup.hs build
>    Preprocessing library X11-1.3.0.20071111...
>    Building X11-1.3.0.20071111...
>    [ 1 of 17] Compiling Graphics.X11.Xlib.Types (
>    dist/build/Graphics/X11/Xlib/Types.hs,
>    dist/build/Graphics/X11/Xlib/Types.o )
>    [ 2 of 17] Compiling Graphics.X11.Types (
>    dist/build/Graphics/X11/Types.hs, dist/build/Graphics/X11/Types.o )
>    [ 3 of 17] Compiling Graphics.X11.Xlib.Atom (
>    dist/build/Graphics/X11/Xlib/Atom.hs, dist/build/Graphics/X11/Xlib/Atom.o
>    )
>    [ 4 of 17] Compiling Graphics.X11.Xlib.Color ( Graphics/X11/Xlib/Color.hs,
>    dist/build/Graphics/X11/Xlib/Color.o )
>    [ 5 of 17] Compiling Graphics.X11.Xlib.Context (
>    Graphics/X11/Xlib/Context.hs, dist/build/Graphics/X11/Xlib/Context.o )
>    [ 6 of 17] Compiling Graphics.X11.Xlib.Display (
>    Graphics/X11/Xlib/Display.hs, dist/build/Graphics/X11/Xlib/Display.o )
>    [ 7 of 17] Compiling Graphics.X11.Xlib.Event (
>    dist/build/Graphics/X11/Xlib/Event.hs,
>    dist/build/Graphics/X11/Xlib/Event.o )
>    [ 8 of 17] Compiling Graphics.X11.Xlib.Font (
>    dist/build/Graphics/X11/Xlib/Font.hs, dist/build/Graphics/X11/Xlib/Font.o
>    )
>    [ 9 of 17] Compiling Graphics.X11.Xlib.Misc (
>    dist/build/Graphics/X11/Xlib/Misc.hs, dist/build/Graphics/X11/Xlib/Misc.o
>    )
>    [10 of 17] Compiling Graphics.X11.Xlib.Region (
>    Graphics/X11/Xlib/Region.hs, dist/build/Graphics/X11/Xlib/Region.o )
>    [11 of 17] Compiling Graphics.X11.Xlib.Screen (
>    Graphics/X11/Xlib/Screen.hs, dist/build/Graphics/X11/Xlib/Screen.o )
>    [12 of 17] Compiling Graphics.X11.Xlib.Window (
>    Graphics/X11/Xlib/Window.hs, dist/build/Graphics/X11/Xlib/Window.o )
>    [13 of 17] Compiling Graphics.X11.Xlib.Image ( Graphics/X11/Xlib/Image.hs,
>    dist/build/Graphics/X11/Xlib/Image.o )
>    [14 of 17] Compiling Graphics.X11.Xlib ( Graphics/X11/Xlib.hs,
>    dist/build/Graphics/X11/Xlib.o )
>    [15 of 17] Compiling Graphics.X11.Xlib.Extras (
>    dist/build/Graphics/X11/Xlib/Extras.hs,
>    dist/build/Graphics/X11/Xlib/Extras.o )
>    Warning: orphan instances:
>      instance base:GHC.Read.Read
>    [X11-1.3.0.20071111:Graphics.X11.Xlib.Types.Rectangle]
>        = $f1
> 
>    [16 of 17] Compiling Graphics.X11.Xinerama (
>    dist/build/Graphics/X11/Xinerama.hs, dist/build/Graphics/X11/Xinerama.o )
>    [17 of 17] Compiling Graphics.X11     ( Graphics/X11.hs,
>    dist/build/Graphics/X11.o )
>    /usr/bin/ar: creating dist/build/libHSX11-1.3.0.20071111.a
>    > sudo runghc Setup.hs install
>    root's password:
>    Setup.hs : Warning: Unknown field 'build-type'
>    Setup.hs: error reading ./.setup-config; run "setup configure" command?
> 


I'm not sure what's going on here: I just ran runhaskell Setup.hs
install myself and got the same error:

    $ runhaskell Setup.hs install
    Setup.hs: error reading dist/setup-config; run "setup configure" command?

Rerunning the configure/build/install process fixed it.

-- Don


More information about the Haskell-Cafe mailing list