#4164: stm-2.1.2.0 build failure on GHC < 6.10
--------------------------------+-------------------------------------------
Reporter: j3h | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: libraries (other) | Version:
Resolution: | Keywords: stm GHC.Conc readTVarIO
Difficulty: | Os: Unknown/Multiple
Testcase: | Architecture: Unknown/Multiple
Failure: None/Unknown |
--------------------------------+-------------------------------------------
Comment(by kapy):
Sure, there's the output:
{{{
[k...@kapy ~]$ cabal unpack stm
Unpacking to stm-2.1.2.1/
}}}
{{{
[k...@kapy ~]$ cd stm-2.1.2.1/
[k...@kapy stm-2.1.2.1]$ cabal configure --with-ghc=ghc-6.12.1
Resolving dependencies...
Configuring stm-2.1.2.1...
}}}
{{{
[k...@kapy stm-2.1.2.1]$ cabal build
Preprocessing library stm-2.1.2.1...
Building stm-2.1.2.1...
[1 of 7] Compiling Control.Sequential.STM ( Control/Sequential/STM.hs,
dist/build/Control/Sequential/STM.o )
[2 of 7] Compiling Control.Concurrent.STM.TChan (
Control/Concurrent/STM/TChan.hs, dist/build/Control/Concurrent/STM/TChan.o
)
[3 of 7] Compiling Control.Concurrent.STM.TMVar (
Control/Concurrent/STM/TMVar.hs, dist/build/Control/Concurrent/STM/TMVar.o
)
[4 of 7] Compiling Control.Concurrent.STM.TVar (
Control/Concurrent/STM/TVar.hs, dist/build/Control/Concurrent/STM/TVar.o )
Control/Concurrent/STM/TVar.hs:22:8:
Ambiguous occurrence `readTVarIO'
It could refer to either `Control.Concurrent.STM.TVar.readTVarIO',
defined at Control/Concurrent/STM/TVar.hs:35:0
or `GHC.Conc.readTVarIO', imported from GHC.Conc
at Control/Concurrent/STM/TVar.hs:29:0-14
}}}
{{{
[k...@kapy stm-2.1.2.1]$ cat dist/build/autogen/cabal_macros.h
/* DO NOT EDIT: This file is automatically generated by Cabal */
/* package array-0.3.0.0 */
#define MIN_VERSION_array(major1,major2,minor) \
(major1) < 0 || \
(major1) == 0 && (major2) < 3 || \
(major1) == 0 && (major2) == 3 && (minor) <= 0
/* package base-4.2.0.0 */
#define MIN_VERSION_base(major1,major2,minor) \
(major1) < 4 || \
(major1) == 4 && (major2) < 2 || \
(major1) == 4 && (major2) == 2 && (minor) <= 0
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4164#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs