Works fine here, but you're probably using a different
version of the mingw tools than I am.

Fixing these kinds of errors is just a matter of extending
RTS_MINGW_ONLY_SYMBOLS in rts/Linker.c to
resolve these local syms,but in this case it'd be better to
at least also change libraries/base/cbits/Makefile to use
GHC to compile the .c files - i.e., set CC to $(HC) +
filter out any -mno-cygwin opts in SRC_CC_OPTS
by inserting

 SRC_CC_OPTS := $(subst -mno-cygwin,,$(SRC_CC_OPTS))

somewhere towards the end of the Makefile.

--sigbjorn

----- Original Message -----
From: "Mike Thomas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 28, 2002 23:45
Subject: ghci/Template Haskell - Windows link problem


> Hi there
>
> While trying to compile a Template Haskell program (and run ghci) I get
the
> output shown below.
>
> The symbol "_imp____mb_cur_max" is in "msvcrt.dll" and "msvcrt" is present
> in the extra libraries list for package "base".
>
> Windows XP and CVS.
>
> Cheers
>
> Mike Thomas.
>
> =================================================
> $ ghc --make -fglasgow-exts -package haskell-src th.hs -o th
> c:\lang\ghc\bin\ghc.exe: chasing modules from: th.hs
> Skipping  Pr               ( Pr.hs, ./Pr.o )
> Compiling Main             ( th.hs, ./th.o )
>
> c:/lang/ghc/HSbase_cbits.o: unknown symbol `__imp____mb_cur_max'
> Loading package base ... linking ... c:\lang\ghc\bin\ghc.exe: panic! (the
> `impossible' happened, GHC version 5.05):
>         can't load package `base'
>
> Please report it as a compiler bug to [EMAIL PROTECTED],
> or http://sourceforge.net/projects/ghc/.
>
>
>
> miketh@ICE c:/cvs/fptools
> $ ghci
>    ___         ___ _
>   / _ \ /\  /\/ __(_)
>  / /_\// /_/ / /  | |      GHC Interactive, version 5.05, for Haskell 98.
> / /_\\/ __  / /___| |      http://www.haskell.org/ghc/
> \____/\/ /_/\____/|_|      Type :? for help.
>
> Loading package base ... linking ...
> c:/lang/ghc/HSbase_cbits.o: unknown symbol `__imp____mb_cur_max'
> c:\lang\ghc\bin\ghc.exe: panic! (the `impossible' happened, GHC version
> 5.05):
>         can't load package `base'
>
> Please report it as a compiler bug to [EMAIL PROTECTED],
> or http://sourceforge.net/projects/ghc/.
>
>
> _______________________________________________
> Glasgow-haskell-bugs mailing list
> [EMAIL PROTECTED]
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to