Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

cabal --uhc install transformers fails #7

Open
robinp opened this Issue Oct 28, 2012 · 3 comments

Comments

Projects
None yet
2 participants

robinp commented Oct 28, 2012

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

Owner

atzedijkstra commented Nov 15, 2012

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.

robinp commented Dec 18, 2012

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))

robinp commented Dec 22, 2012

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