#5399: GHC 7.0.3 produces corrupt .hi files for qtHaskell
---------------------------+------------------------------------------------
    Reporter:  ian.duncan  |        Owner:              
        Type:  bug         |       Status:  new         
    Priority:  normal      |    Milestone:              
   Component:  Compiler    |      Version:  7.0.4       
    Keywords:              |     Testcase:              
   Blockedby:              |   Difficulty:              
          Os:  MacOS X     |     Blocking:              
Architecture:  x86         |      Failure:  None/Unknown
---------------------------+------------------------------------------------

Comment(by simonpj):

 OK, I did the following on my Windows machine
  * Installed Qt, from [http://qt.nokia.com/products/platform/qt-for-
 windows/]
  * Downloaded qtHaskell-1.1.4 from [http://qthaskell.berlios.de/]
 Then I tried to build:
 {{{
 cabal install --extra-lib-dirs=c:/fp/QtSDK/mingw/lib --extra-lib-
 dirs=c:/fp/QtSDK/mingw/include
 Resolving dependencies...
 Configuring qt-1.1.4...
 cabal.exe: Missing dependencies on foreign libraries:
 * Missing C libraries: qtc_core, qtc_gui, qtc_network, qtc_opengl,
 qtc_tools,
 qtc_script
 This problem can usually be solved by installing the system packages that
 provide these libraries (you may need the "-dev" versions). If the
 libraries
 are already installed but in a non-standard location then you can use the
 flags --extra-include-dirs= and --extra-lib-dirs= to specify where they
 are.
 cabal.exe: Error: some packages failed to install:
 qt-1.1.4 failed during the configure step. The exception was:
 ExitFailure 1
 }}}
 I gave it the `--extra-lib-dirs` flag so that it could find the Qt
 installation.  However this did not work.  So I'm stuck on reproducing.
 If you can give a sequence of commands to reproduce, I'll gladly execute
 them!

 Simon

 PS: a verbose run of the same attempt is below

 {{{
 bash$ cd qtHaskell-1.1.4
 bash$ cabal install -v --extra-lib-dirs=c:/fp/QtSDK/mingw/lib --extra-lib-
 dirs=c:/fp/QtSDK/mingw/include
 c:\fp\HP-2010.2.0.0\bin\ghc.exe --numeric-version
 looking for package tool: ghc-pkg near compiler in c:\fp\HP-2010.2.0.0\bin
 found package tool in c:\fp\HP-2010.2.0.0\bin\ghc-pkg.exe
 c:\fp\HP-2010.2.0.0\bin\ghc-pkg.exe --version
 c:\fp\HP-2010.2.0.0\bin\ghc.exe --supported-languages
 Reading installed packages...
 c:\fp\HP-2010.2.0.0\bin\ghc-pkg.exe dump --global
 c:\fp\HP-2010.2.0.0\bin\ghc-pkg.exe dump --user
 c:\fp\HP-2010.2.0.0\bin\ghc.exe --print-libdir
 Reading available packages...
 Resolving dependencies...
 selecting qt-1.1.4 (hackage)
 selecting haskell98-1.0.1.1 (installed or hackage) and discarding
 haskell98-1.0, 1.0.1.0, 1.1.0.0 and 1.1.0.1
 selecting random-1.0.0.2 (installed or hackage) and discarding
 random-1.0.0.0,
 1.0.0.1 and 1.0.0.3
 selecting time-1.1.4 (installed or hackage) and discarding time-1.0,
 1.1.2.0,
 1.1.2.1, 1.1.2.2, 1.1.2.3, 1.1.2.4, 1.1.3, 1.2, 1.2.0.1, 1.2.0.2, 1.2.0.3,
 1.2.0.4 and 1.2.0.5
 selecting process-1.0.1.3 (installed or hackage) and discarding
 directory-1.1.0.0, filepath-1.0, process-1.0.0.0, 1.0.1.1, 1.0.1.2,
 1.0.1.4
 and 1.0.1.5
 selecting directory-1.0.1.1 (installed or hackage) and discarding
 directory-1.0.0.0, 1.0.0.3, 1.0.1.0, 1.0.1.2 and filepath-1.2.0.0
 selecting old-time-1.0.0.5 (installed or hackage) and discarding
 old-time-1.0.0.0, 1.0.0.2, 1.0.0.3, 1.0.0.4 and 1.0.0.6
 selecting old-locale-1.0.0.2 (installed or hackage) and discarding
 old-locale-1.0.0.0 and 1.0.0.1
 selecting filepath-1.1.0.4 (installed or hackage) and discarding
 filepath-1.1.0.0, 1.1.0.1, 1.1.0.2 and 1.1.0.3
 selecting Win32-2.2.0.2 (installed or hackage) and discarding Win32-2.1,
 2.1.0.0, 2.2.0.0 and 2.2.0.1
 selecting bytestring-0.9.1.7 (installed or hackage) and discarding
 bytestring-0.9, 0.9.0.1, 0.9.0.2, 0.9.0.3, 0.9.0.4, 0.9.1.0, 0.9.1.1,
 0.9.1.2,
 0.9.1.3, 0.9.1.4, 0.9.1.5, 0.9.1.6, 0.9.1.8, 0.9.1.9 and 0.9.1.10
 selecting ghc-prim-0.2.0.0 (installed)
 selecting ffi-1.0 (installed)
 selecting rts-1.0 (installed)
 selecting array-0.3.0.1 (installed or hackage) and discarding
 array-0.1.0.0,
 0.2.0.0, 0.3.0.0 and 0.3.0.2
 selecting OpenGL-2.2.3.0 (installed or hackage) and discarding OpenGL-2.1,
 2.2.1.1, 2.2.2.0, 2.3.0.0, 2.4.0.0 and 2.4.0.1
 selecting base-3.0.3.2 (installed) and 4.2.0.2 (installed) and discarding
 syb-0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.2, 0.2.1, 0.2.2, 0.3, 0.3.1 and
 0.3.2
 selecting integer-gmp-0.2.0.1 (installed)
 selecting syb-0.1.0.2 (installed)
 In order, the following would be installed:
 qt-1.1.4 (new package)
 Configuring qt-1.1.4...
 Dependency OpenGL ==2.2.3.0: using OpenGL-2.2.3.0
 Dependency base ==3.0.3.2: using base-3.0.3.2
 Dependency haskell98 ==1.0.1.1: using haskell98-1.0.1.1
 Using Cabal-1.8.0.4 compiled by ghc-6.10
 Using compiler: ghc-6.12.3
 Using install prefix: C:\Users\simonpj\AppData\Roaming\cabal
 Binaries installed in: C:\Users\simonpj\AppData\Roaming\cabal\bin
 Libraries installed in:
 C:\Users\simonpj\AppData\Roaming\cabal\qt-1.1.4\ghc-6.12.3
 Private binaries installed in:
 C:\Users\simonpj\AppData\Roaming\cabal\qt-1.1.4
 Data files installed in: C:\Users\simonpj\AppData\Roaming\cabal\qt-1.1.4
 Documentation installed in:
 C:\Users\simonpj\AppData\Roaming\cabal\doc\qt-1.1.4
 Using alex version 2.2 found on system at: c:\fp\alex-2.2\alex.exe
 Using ar found on system at: c:\fp\HP-2010.2.0.0\mingw\bin\ar.exe
 No c2hs found
 No cpphs found
 No ffihugs found
 Using gcc version 3.4.5 found on system at:
 c:\fp\HP-2010.2.0.0\mingw\bin\gcc.exe
 Using ghc version 6.12.3 found on system at:
 c:\fp\HP-2010.2.0.0\bin\ghc.exe
 Using ghc-pkg version 6.12.3 found on system at:
 c:\fp\HP-2010.2.0.0\bin\ghc-pkg.exe
 No greencard found
 Using haddock version 2.6.1 found on system at:
 c:\fp\HP-2010.2.0.0\bin\haddock.exe
 Using happy version 1.17 found on system at: c:\fp\happy-1.17\happy.exe
 No hmake found
 Using hsc2hs version 0.67 found on system at:
 c:\fp\HP-2010.2.0.0\bin\hsc2hs.exe
 No hscolour found
 No hugs found
 No jhc found
 Using ld found on system at: c:\fp\HP-2010.2.0.0\mingw\bin\ld.exe
 No lhc found
 No lhc-pkg found
 No nhc98 found
 No pkg-config found
 No ranlib found
 No strip found
 Using tar found on system at: c:\msys\1.0\bin\tar.exe
 cabal.exe: Missing dependencies on foreign libraries:
 * Missing C libraries: qtc_core, qtc_gui, qtc_network, qtc_opengl,
 qtc_tools,
 qtc_script
 This problem can usually be solved by installing the system packages that
 provide these libraries (you may need the "-dev" versions). If the
 libraries
 are already installed but in a non-standard location then you can use the
 flags --extra-include-dirs= and --extra-lib-dirs= to specify where they
 are.
 cabal.exe: Error: some packages failed to install:
 qt-1.1.4 failed during the configure step. The exception was:
 ExitFailure 1
 bash-3.1$
 }}}

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