#3635: base-3-compat with 6.12 won't load in GHCi, Template Haskell on Windows
-----------------------+----------------------------------------------------
Reporter:  guest       |          Owner:                  
    Type:  bug         |         Status:  new             
Priority:  normal      |      Component:  libraries/base  
 Version:  6.12.1 RC1  |       Severity:  normal          
Keywords:              |       Testcase:                  
      Os:  Windows     |   Architecture:  Unknown/Multiple
-----------------------+----------------------------------------------------
 base3-compat/GHC/Handle.hs needs:

 {{{
 #ifndef mingw32_HOST_OS
 ..
 #endif
 }}}

 Wrapped around its export for and definition of unlockFile. This is
 because unlockFile is a RTS symbol that is only compiled on non-Windows
 OSes. This #ifdef exists in base4, it looks like it was just omitted from
 base3.

 The result of this bug is that any package using base 3 doesn’t work with
 template-haskell or GHCi:

 {{{
 $ ghci -package base-3.0.3.2
 WARNING: GHCi invoked via 'ghci.exe' in *nix-like shells (cygwin-bash, in
 particular)
          doesn't handle Ctrl-C well; use the 'ghcii.sh' shell wrapper
 instead
 GHCi, version 6.12.0.20091010: http://www.haskell.org/ghc/  :? for help
 Loading package ghc-prim ... linking ... done.
 Loading package integer-gmp ... linking ... done.
 Loading package base ... linking ... done.
 Loading package syb-0.1.0.2 ... linking ... done.
 Loading package base-3.0.3.2 ... linking ... : unable to load package
 `base-3.0.3.2'
 : C:\ghc\GHC-61~2.200\lib\base-3.0.3.2\HSbase-3.0.3.2.o: unknown symbol
 `_unlockFile'
 }}}

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