#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 guaq):
I have this problem on our classroom Ubuntu 10.04 LTS. Not on my own
workstation which is running the same distribution. If you have any ideas
on what packages to look for in {{{dpkg -l}}} output, I'd be glad to
provide a listing.
Here you go:
{{{
$ cabal install -v stm
/usr/bin/ghc --numeric-version
looking for package tool: ghc-pkg near compiler in /usr/bin
found package tool in /usr/bin/ghc-pkg
/usr/bin/ghc-pkg --version
/usr/bin/ghc --supported-languages
Reading installed packages...
/usr/bin/ghc-pkg dump --global
/usr/bin/ghc-pkg dump --user
Reading available packages...
Resolving dependencies...
selecting stm-2.1.2.1 (hackage) and discarding stm-2.1, 2.1.1.0, 2.1.1.2
and
2.1.2.0
selecting array-0.3.0.0 (installed or hackage) and discarding
array-0.1.0.0,
0.2.0.0 and 0.3.0.1
selecting base-3.0.3.2 (installed) and 4.2.0.0 (installed) and discarding
syb-0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.2 and 0.2.1
selecting ghc-prim-0.2.0.0 (installed)
selecting integer-gmp-0.2.0.0 (installed)
selecting rts-1.0 (installed)
selecting syb-0.1.0.2 (installed)
In order, the following would be installed:
stm-2.1.2.1 (new package)
stm-2.1.2.1 has already been downloaded.
Extracting
/fs-3/b/ahinkka/.cabal/packages/hackage.haskell.org/stm/2.1.2.1/stm-2.1.2.1.tar.gz
to /tmp/stm-2.1.2.121584...
Configuring stm-2.1.2.1...
Flags chosen: base4=True
Dependency array ==0.3.0.0: using array-0.3.0.0
Dependency base ==4.2.0.0: using base-4.2.0.0
Using Cabal-1.8.0.2 compiled by ghc-6.12
Using compiler: ghc-6.12.1
Using install prefix: /fs-3/b/ahinkka/.cabal
Binaries installed in: /fs-3/b/ahinkka/.cabal/bin
Libraries installed in: /fs-3/b/ahinkka/.cabal/lib/stm-2.1.2.1/ghc-6.12.1
Private binaries installed in: /fs-3/b/ahinkka/.cabal/libexec
Data files installed in: /fs-3/b/ahinkka/.cabal/share/stm-2.1.2.1
Documentation installed in: /fs-3/b/ahinkka/.cabal/share/doc/stm-2.1.2.1
No alex found
Using ar found on system at: /usr/bin/ar
No c2hs found
No cpphs found
No ffihugs found
Using gcc version 4.4.3 found on system at: /usr/bin/gcc
Using ghc version 6.12.1 found on system at: /usr/bin/ghc
Using ghc-pkg version 6.12.1 found on system at: /usr/bin/ghc-pkg
No greencard found
Using haddock version 2.6.0 found on system at: /usr/bin/haddock
Using happy version 1.17 found on system at: /usr/bin/happy
No hmake found
Using hsc2hs version 0.67 found on system at: /usr/bin/hsc2hs
No hscolour found
No hugs found
No jhc found
Using ld found on system at: /usr/bin/ld
No lhc found
No lhc-pkg found
No nhc98 found
Using pkg-config version 0.22 found on system at: /usr/bin/pkg-config
Using ranlib found on system at: /usr/bin/ranlib
Using strip found on system at: /usr/bin/strip
Using tar found on system at: /bin/tar
Creating dist/build (and its parents)
Creating dist/build/autogen (and its parents)
Preprocessing library stm-2.1.2.1...
Building stm-2.1.2.1...
Building library...
Creating dist/build (and its parents)
/usr/bin/ghc --make -package-name stm-2.1.2.1 -hide-all-packages
-fbuilding-cabal-package -i -idist/build -i. -idist/build/autogen
-Idist/build/autogen -Idist/build -optP-DBASE4 -optP-include
-optPdist/build/autogen/cabal_macros.h -odir dist/build -hidir dist/build
-stubdir dist/build -package-id
array-0.3.0.0-ed0c6ffecd933bdec33f902cfd4153ec -package-id
base-4.2.0.0-2cc27b7e43511c4ca001642a7f77a8f6 -O -XCPP
Control.Concurrent.STM Control.Concurrent.STM.TArray
Control.Concurrent.STM.TVar Control.Concurrent.STM.TChan
Control.Concurrent.STM.TMVar Control.Monad.STM Control.Sequential.STM
[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
cabal: Error: some packages failed to install:
stm-2.1.2.1 failed during the building phase. The exception was:
ExitFailure 1
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4164#comment:8>
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