#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.3
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: MacOS X | Blocking:
Architecture: x86 | Failure: None/Unknown
---------------------------+------------------------------------------------
Old description:
> I installed qtHaskell 1.1.4 by installing Qt 4.7.3 through brew.
> I ran ./build --enable-shared for qtHaskell, which failed after compiling
> and installing all of the C bindings. I then ran cabal install --disable-
> library-for-ghci, per http://hackage.haskell.org/trac/hackage/ticket/791
> .
>
> I can successfully build, but I get the following warnings:
>
> [1 of 1] Compiling Main ( Main.hs, dist/build/qtTest/qtTest-
> tmp/Main.o )
> /Users/ian/Library/Haskell/ghc-7.0.3/lib/qt-1.1.4/lib/Qtc/Gui/QWidget.hi
> Declaration for $wa227
> Unfolding of Qtc.Gui.QWidget.$wa227
> Unfolding of eta:
> Iface id out of scope: qtc_QWidget_setWindowTitle
> /Users/ian/Library/Haskell/ghc-7.0.3/lib/qt-1.1.4/lib/Qtc/Gui/QLabel.hi
> Declaration for $wa141
> Unfolding of Qtc.Gui.QLabel.$wa141
> Unfolding of eta:
> Iface id out of scope: qtc_QLabel_setText
>
> When I run the compiled program, labels do not show up properly, and I'm
> pretty sure that it's due to these issues.
New description:
I installed qtHaskell 1.1.4 by installing Qt 4.7.3 through brew.
I ran ./build --enable-shared for qtHaskell, which failed after compiling
and installing all of the C bindings. I then ran cabal install --disable-
library-for-ghci, per http://hackage.haskell.org/trac/hackage/ticket/791 .
I can successfully build, but I get the following warnings:
{{{
[1 of 1] Compiling Main ( Main.hs, dist/build/qtTest/qtTest-
tmp/Main.o )
/Users/ian/Library/Haskell/ghc-7.0.3/lib/qt-1.1.4/lib/Qtc/Gui/QWidget.hi
Declaration for $wa227
Unfolding of Qtc.Gui.QWidget.$wa227
Unfolding of eta:
Iface id out of scope: qtc_QWidget_setWindowTitle
/Users/ian/Library/Haskell/ghc-7.0.3/lib/qt-1.1.4/lib/Qtc/Gui/QLabel.hi
Declaration for $wa141
Unfolding of Qtc.Gui.QLabel.$wa141
Unfolding of eta:
Iface id out of scope: qtc_QLabel_setText
}}}
When I run the compiled program, labels do not show up properly, and I'm
pretty sure that it's due to these issues.
--
Comment(by simonpj):
This is all very odd. Can you give from-scratch instructions for how to
reproduce your problem? I fell at the first fence
{{{
bash$ cabal update
Downloading the latest package list from hackage.haskell.org
simonpj@cam-04-unx:~/tmp$ cabal unpack qt-1.1.4
cabal: There is no package named 'qt'.
You may need to run 'cabal update' to get the latest list of available
packages.
}}}
Also I don't have MacOS -- which may mean I can't run your program, but I
hope I can still compile it.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5399#comment:2>
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