Skip to content

cabal --uhc install transformers fails #7

Open

Description

@robinp

Resolving dependencies...
Configuring transformers-0.3.0.0...
Building transformers-0.3.0.0...
Preprocessing library transformers-0.3.0.0...
:0: warning: "STDC" redefined [enabled by default]
:0: note: this is the location of the previous definition
Control/Monad/Trans/Error.hs:60: error: missing binary operator before token "("
Control/Monad/Trans/Error.hs:71: warning: missing terminating " character [enabled by default]
Control/Monad/Trans/Error.hs:97: error: missing binary operator before token "("
Control/Monad/Trans/Error.hs:146: warning: missing terminating ' character [enabled by default]
Control/Monad/Trans/Error.hs:148: warning: missing terminating ' character [enabled by default]
cabal: Error: some packages failed to install:
transformers-0.3.0.0 failed during the building phase. The exception was:
ExitFailure 1

Activity

  1. atzedijkstra commented on Nov 15, 2012

    @atzedijkstra
    Member

    Due to experiments requiring a different cpp some options passed by default (like -traditional-cpp -std=gnu99) were omitted, breaking building of (apparently some) libraries on some platforms. This has been changed back, the default is now conservative use of the default cpp, which 'should' not break on your platform. Please check/verify this, thanks.

  2. robinp commented on Dec 18, 2012

    @robinp
    Author

    Now I get the following errors (uhc head):

    ~$ cabal --uhc install transformers
    Resolving dependencies...
    Downloading transformers-0.3.0.0...
    Configuring transformers-0.3.0.0...
    Building transformers-0.3.0.0...
    Preprocessing library transformers-0.3.0.0...
    Control/Monad/Trans/Error.hs:60: error: missing binary operator before token "("
    Control/Monad/Trans/Error.hs:97: error: missing binary operator before token "("
    cabal: Error: some packages failed to install:
    transformers-0.3.0.0 failed during the building phase. The exception was:
    ExitFailure 1

    The offending line seems to be:

    #if !(MIN_VERSION_base(4,4,0))

  3. robinp commented on Dec 22, 2012

    @robinp
    Author

    When doing cabal --uhc -v install, I can see the following uhc command tries to get executed:

    /usr/local/bin/uhc --pkg-build=transformers-0.3.0.0 --hide-all-packages --pkg-searchpath=/usr/local/lib/uhc-1.1.5/lib/pkg --pkg-searchpath=/home/robin/.cabal/lib --package=uhcbase --package=base -idist/build -i. -idist/build/autogen --odir=dist/build -O1 Control/Applicative/Backwards Control/Applicative/Lift Control/Monad/IO/Class Control/Monad/Trans/Class Control/Monad/Trans/Cont Control/Monad/Trans/Error Control/Monad/Trans/Identity Control/Monad/Trans/List Control/Monad/Trans/Maybe Control/Monad/Trans/Reader Control/Monad/Trans/RWS Control/Monad/Trans/RWS/Lazy Control/Monad/Trans/RWS/Strict Control/Monad/Trans/State Control/Monad/Trans/State/Lazy Control/Monad/Trans/State/Strict Control/Monad/Trans/Writer Control/Monad/Trans/Writer/Lazy Control/Monad/Trans/Writer/Strict Data/Functor/Compose Data/Functor/Constant Data/Functor/Identity Data/Functor/Product Data/Functor/Reverse

    I don't see any --cpp directives, and when I tried to add one, the result was the same.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions