Buildung in Ubuntu 17.10 fails (for me?)

Create issue
Issue #49 closed
amenthes created an issue

I currently can't build arbtt in ubuntu 17.10, I am not really familiar with haskell, so I can't make heads or tails out of this output. I think I caught all the required dependencies. I'm not even sure how to proceed looking for the underlying error. Here's the output from cabal install:

$ cabal clean
cleaning...
$ cabal install
Resolving dependencies...
Configuring arbtt-0.10.0.1...
Building arbtt-0.10.0.1...
Failed to install arbtt-0.10.0.1
Build log ( /home/---/.cabal/logs/arbtt-0.10.0.1.log ):
cabal: Entering directory '.'
Configuring arbtt-0.10.0.1...
Building arbtt-0.10.0.1...
Preprocessing executable 'arbtt-capture' for arbtt-0.10.0.1...

src/Data/Binary/StringRef.hs:1:77: warning:
    -XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS
[ 1 of 13] Compiling System.Locale.SetLocale ( dist/build/arbtt-capture/arbtt-capture-tmp/System/Locale/SetLocale.hs, dist/build/arbtt-capture/arbtt-capture-tmp/System/Locale/SetLocale.o )
[ 2 of 13] Compiling Paths_arbtt      ( dist/build/autogen/Paths_arbtt.hs, dist/build/arbtt-capture/arbtt-capture-tmp/Paths_arbtt.o )
[ 3 of 13] Compiling LockFile         ( src/LockFile.hs, dist/build/arbtt-capture/arbtt-capture-tmp/LockFile.o )
[ 4 of 13] Compiling Data.MyText      ( src/Data/MyText.hs, dist/build/arbtt-capture/arbtt-capture-tmp/Data/MyText.o )
[ 5 of 13] Compiling Data.Binary.StringRef ( src/Data/Binary/StringRef.hs, dist/build/arbtt-capture/arbtt-capture-tmp/Data/Binary/StringRef.o )
[ 6 of 13] Compiling Data             ( src/Data.hs, dist/build/arbtt-capture/arbtt-capture-tmp/Data.o )
[ 7 of 13] Compiling DumpFormat       ( src/DumpFormat.hs, dist/build/arbtt-capture/arbtt-capture-tmp/DumpFormat.o )
[ 8 of 13] Compiling TimeLog          ( src/TimeLog.hs, dist/build/arbtt-capture/arbtt-capture-tmp/TimeLog.o )

src/TimeLog.hs:75:48: warning: [-Wdeprecations]
    In the use of runGetState (imported from Data.Binary.Get):
    Deprecated: "Use runGetIncremental instead. This function will be removed."

src/TimeLog.hs:91:48: warning: [-Wdeprecations]
    In the use of runGetState (imported from Data.Binary.Get):
    Deprecated: "Use runGetIncremental instead. This function will be removed."

src/TimeLog.hs:120:32: warning: [-Wdeprecations]
    In the use of runGetState (imported from Data.Binary.Get):
    Deprecated: "Use runGetIncremental instead. This function will be removed."

src/TimeLog.hs:122:31: warning: [-Wdeprecations]
    In the use of runGetState (imported from Data.Binary.Get):
    Deprecated: "Use runGetIncremental instead. This function will be removed."
[ 9 of 13] Compiling UpgradeLog1      ( src/UpgradeLog1.hs, dist/build/arbtt-capture/arbtt-capture-tmp/UpgradeLog1.o )
[10 of 13] Compiling CommonStartup    ( src/CommonStartup.hs, dist/build/arbtt-capture/arbtt-capture-tmp/CommonStartup.o )
[11 of 13] Compiling Capture.X11      ( src/Capture/X11.hs, dist/build/arbtt-capture/arbtt-capture-tmp/Capture/X11.o )

src/Capture/X11.hs:16:35: error:
    Module Graphics.X11.XScreenSaver does not export getXIdleTime
cabal: Leaving directory '.'
cabal: Error: some packages failed to install:
arbtt-0.10.0.1 failed during the building phase. The exception was:
ExitFailure 1

(the mentioned logfile contains the exact same output as the terminal)

Comments (5)

  1. nomeata repo owner

    Yeah, an unfortunate problem with the Haskell X11 bindings. You should be able to fix it by something this

    sudo apt  install libxss-dev,
    cabal install --reinstall X11
    cabal install arbttt
    
  2. amenthes reporter

    interestingly, libxss-dev was already installed but after the --reinstall X11 the cabal install arbtt did work. (that is, it did not throw any errors and just printed the following)

    Resolving dependencies...
    Downloading arbtt-0.10.0.1...
    Configuring arbtt-0.10.0.1...
    Building arbtt-0.10.0.1...
    Installed arbtt-0.10.0.1
    

    From the readme, I'm now continuing with

    $ runhaskell Setup.hs configure
    Configuring arbtt-0.10.0.1...
    Setup.hs: Encountered missing dependencies:
    aeson >=0.10 && <1.3,
    attoparsec ==0.13.*,
    bytestring-progress -any,
    conduit >=1.2 && <1.4,
    exceptions ==0.8.*,
    mtl -any,
    parsec ==3.*,
    resourcet >=1.2,
    strict -any,
    terminal-progress-bar ==0.2.*,
    text -any,
    unliftio-core -any,
    utf8-string -any
    

    but it appears to still fail.

  3. nomeata repo owner

    After cabal install arbtt you should be done! You will find all the programs in ~/.cabal/bin.

  4. amenthes reporter

    Yes, looks like there's a bunch of binaries!

    On a sidenote, arbtt could use a --version flag or alternatively should output its version in --help. I had to verify by file creation date.

  5. Log in to comment