[Haskell-cafe] Issue with building executables using Cabal on Travis

Geraldus heraldhoi at gmail.com
Fri Sep 16 14:13:27 UTC 2016

Hi Café!

Recently we added an executable section to our Transient-Universe package
and now Travis cabal builds always failing.  The error message is:

In-place registering transient-universe-0.3.4...
Preprocessing executable 'monitorService' for transient-universe-0.3.4...
[1 of 1] Compiling Main             (
dist/build/monitorService/monitorService-tmp/Main.o )
Linking dist/build/monitorService/monitorService ...
No errors or warnings could be found in the package.
Re-configuring with test suites enabled. If this fails, please run configure
Resolving dependencies...
Configuring transient-universe-0.3.4...
Package has no buildable test suites.
Building source dist for transient-universe-0.3.4...
Preprocessing library transient-universe-0.3.4...
Preprocessing executable 'monitorService' for transient-universe-0.3.4...
cabal: src/client/Transient/Move/Services/MonitorService.hs: does not exist
Installing library in
Installing executable(s) in /home/travis/.cabal/bin
Warning: The directory /home/travis/.cabal/bin is not in the system search
cabal: The file does not exist 'transient-universe-0.3.4.tar.gz'.

(Full log —
https://travis-ci.org/agocorona/transient-universe/jobs/160441018, you can
see that other Cabal builds fail with same error, however all Stack builds
are fine).

This is a chunk of cabal file:

extra-source-files: src/client/Transient/Move/Services/MonitorService.hs

executable monitorService
  build-depends: base >4 && <5
  if !impl(ghcjs >=0.1)
    hs-source-dirs: src/server/Transient/Monitor/Services
    build-depends: transformers
                 , transient >=0.4.4
                 , transient-universe
    hs-source-dirs: src/client/Transient/Monitor/Services
  main-is:      MonitorService.hs
  default-language:  Haskell2010
  ghc-options:  -threaded -rtsopts

Have anyone faced similar issue?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20160916/e35e0d2d/attachment.html>

More information about the Haskell-Cafe mailing list