#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       |  
--------------------------------+-------------------------------------------
Changes (by kapy):

 * cc: karel.pi...@… (added)


Comment:

 I'm having the same problem on Fedora 13 x86_64.
 There's the output you asked for:

 {{{
 $ cabal install stm --with-ghc=ghc-6.12.1
 Resolving dependencies...
 Configuring stm-2.1.2.1...
 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
 cabal: Error: some packages failed to install:
 stm-2.1.2.1 failed during the building phase. The exception was:
 ExitFailure 1
 [k...@kapy .xmonad]$ cabal install -v stm --with-ghc=ghc-6.12.1
 /usr/bin/ghc-6.12.1 --numeric-version
 looking for package tool: ghc-pkg near compiler in /usr/bin
 found package tool in /usr/bin/ghc-pkg-6.12.1
 /usr/bin/ghc-pkg-6.12.1 --version
 /usr/bin/ghc-6.12.1 --supported-languages
 Reading installed packages...
 /usr/bin/ghc-pkg-6.12.1 dump --global
 /usr/bin/ghc-pkg-6.12.1 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 ffi-1.0 (installed)
 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
 /home/kapy/.cabal/packages/hackage.haskell.org/stm/2.1.2.1/stm-2.1.2.1.tar.gz
 to /tmp/stm-2.1.2.126054...
 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: /home/kapy/.cabal
 Binaries installed in: /home/kapy/.cabal/bin
 Libraries installed in: /home/kapy/.cabal/lib/stm-2.1.2.1/ghc-6.12.1
 Private binaries installed in: /home/kapy/.cabal/libexec
 Data files installed in: /home/kapy/.cabal/share/stm-2.1.2.1
 Documentation installed in: /home/kapy/.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.4 found on system at: /usr/bin/gcc
 Using ghc version 6.12.1 given by user at: /usr/bin/ghc-6.12.1
 Using ghc-pkg version 6.12.1 found on system at: /usr/bin/ghc-pkg-6.12.1
 No greencard found
 Using haddock version 2.6.0 found on system at: /usr/bin/haddock
 No happy found
 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.23 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-6.12.1 --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
 }}}

 {{{
 $ cabal -V
 cabal-install version 0.8.0
 using version 1.8.0.2 of the Cabal library
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4164#comment:7>
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

Reply via email to