ghc-6.8.1 on WinXP: windres: can't open font file `for'

I've just installed ghc-6.8.1 on my WinXP workstation (I already have it successfully working on my laptop). When I compile anything, the linking stage fails with: c:\ghc\ghc-6.8.1\bin/windres: can't open font file `for': No such file or directory Any clues as to what's wrong? Google isn't very helpful... (I've stripped my path back to just windows, windows\system32, and ghc, but no joy). Alistair P.S. output from ghc -v3 (trimmed): Linking Main.exe ... *** Windres: c:\ghc\ghc-6.8.1\bin/windres --preprocessor=c:\ghc\ghc-6.8.1\gcc -Bc:\ghc\ghc-6.8.1\gcc-lib/ -E -xc -DRC_INVOKED --input=C:/DOCUME~1/bayleya/LOCALS~1/Temp/ghc1480_0/ghc1480_0.rc --output=C:/DOCUME~1/bayleya/LOCALS~1/Temp/ghc1480_0/ghc1480_0.o --output-format=coff c:\ghc\ghc-6.8.1\bin/windres: can't open font file `for': No such file or directory The .rc file it is given contains: 1 24 MOVEABLE PURE "Main.exe.manifest" so this "... font file 'for':..." message is a puzzle. ***************************************************************** Confidentiality Note: The information contained in this message, and any attachments, may contain confidential and/or privileged material. It is intended solely for the person(s) or entity to which it is addressed. Any review, retransmission, dissemination, or taking of any action in reliance upon this information by persons or entities other than the intended recipient(s) is prohibited. If you received this in error, please contact the sender and delete the material from any computer. *****************************************************************

Bayley, Alistair wrote:
I've just installed ghc-6.8.1 on my WinXP workstation (I already have it successfully working on my laptop). When I compile anything, the linking stage fails with:
c:\ghc\ghc-6.8.1\bin/windres: can't open font file `for': No such file or directory
This one was fixed in 6.8.2. Cheers, Simon

From: Simon Marlow [mailto:simonmarhaskell@gmail.com]
c:\ghc\ghc-6.8.1\bin/windres: can't open font file `for': No such file or directory
This one was fixed in 6.8.2.
Bummer. I was hoping to be able to use 6.8.1 with gtk2hs (AFAIUI, gtk2hs doesn't work with/hasn't been compiled against 6.8.2 yet). Is there a workaround or something I can tweak in my 6.8.1 installation? Alistair ***************************************************************** Confidentiality Note: The information contained in this message, and any attachments, may contain confidential and/or privileged material. It is intended solely for the person(s) or entity to which it is addressed. Any review, retransmission, dissemination, or taking of any action in reliance upon this information by persons or entities other than the intended recipient(s) is prohibited. If you received this in error, please contact the sender and delete the material from any computer. *****************************************************************

Alistair,
Bummer. I was hoping to be able to use 6.8.1 with gtk2hs (AFAIUI, gtk2hs doesn't work with/hasn't been compiled against 6.8.2 yet). Is there a workaround or something I can tweak in my 6.8.1 installation?
It's much easier to gently prod Duncan until he gives in and releases a new gtk2hs version. Thanks Neil /me commences the prodding

From: Neil Mitchell [mailto:ndmitchell@gmail.com]
Bummer. I was hoping to be able to use 6.8.1 with gtk2hs (AFAIUI, gtk2hs doesn't work with/hasn't been compiled against 6.8.2 yet). Is there a workaround or something I can tweak in my 6.8.1 installation?
It's much easier to gently prod Duncan until he gives in and releases a new gtk2hs version.
Maybe... the fact that I don't have this problem with 6.8.1 on my laptop implies that there *might* be something external to ghc that I can change that would fix it. Alistair ***************************************************************** Confidentiality Note: The information contained in this message, and any attachments, may contain confidential and/or privileged material. It is intended solely for the person(s) or entity to which it is addressed. Any review, retransmission, dissemination, or taking of any action in reliance upon this information by persons or entities other than the intended recipient(s) is prohibited. If you received this in error, please contact the sender and delete the material from any computer. *****************************************************************

Bayley, Alistair wrote:
From: Neil Mitchell [mailto:ndmitchell@gmail.com]
Bummer. I was hoping to be able to use 6.8.1 with gtk2hs (AFAIUI, gtk2hs doesn't work with/hasn't been compiled against 6.8.2 yet). Is there a workaround or something I can tweak in my 6.8.1 installation? It's much easier to gently prod Duncan until he gives in and releases a new gtk2hs version.
Maybe... the fact that I don't have this problem with 6.8.1 on my laptop implies that there *might* be something external to ghc that I can change that would fix it.
I assume the bug you're encountering is this one: http://hackage.haskell.org/trac/ghc/ticket/1828 in which case the workaround is not to install GHC to a patch containing spaces. If it's not that bug, then we'll have to investigate further. Cheers, Simon

From: Simon Marlow [mailto:simonmarhaskell@gmail.com]
I assume the bug you're encountering is this one:
http://hackage.haskell.org/trac/ghc/ticket/1828
in which case the workaround is not to install GHC to a patch containing spaces.
If it's not that bug, then we'll have to investigate further.
I searched trac for windres and found two tickets (including that one above), neither of which seems to describe my problem. Here's the (trimmed) output from ghc -v3: Linking Main.exe ... *** Windres: c:\ghc\ghc-6.8.1\bin/windres --preprocessor=c:\ghc\ghc-6.8.1\gcc -Bc:\ghc\ghc-6.8.1\gcc-lib/ -E -xc -DRC_INVOKED --input=C:/DOCUME~1/bayleya/LOCALS~1/Temp/ghc1480_0/ghc1480_0.rc --output=C:/DOCUME~1/bayleya/LOCALS~1/Temp/ghc1480_0/ghc1480_0.o --output-format=coff c:\ghc\ghc-6.8.1\bin/windres: can't open font file `for': No such file or directory You can see that my ghc installation is on a path sans spaces. Would you like more information? Alistair ***************************************************************** Confidentiality Note: The information contained in this message, and any attachments, may contain confidential and/or privileged material. It is intended solely for the person(s) or entity to which it is addressed. Any review, retransmission, dissemination, or taking of any action in reliance upon this information by persons or entities other than the intended recipient(s) is prohibited. If you received this in error, please contact the sender and delete the material from any computer. *****************************************************************
participants (3)
-
Bayley, Alistair
-
Neil Mitchell
-
Simon Marlow