Re: Re: HS-Plugins 1.0 chokes on simple test, WinXP GHC-6.6 (Conal Elliott)

Hi, I just setup and installed hs-plugins from darcs on WinXP using ghc-6.6 and MSYS. The hs-plugin test suite all passes. Can you send me something that generates your error and I'll have a look at it. Vivian
Message: 2 Date: Sat, 17 Mar 2007 18:06:12 -0700 From: "Conal Elliott"
Subject: Re: [Haskell-cafe] Re: HS-Plugins 1.0 chokes on simple test, WinXP GHC-6.6 To: haskell-cafe@haskell.org, "Donald Stewart" Message-ID: Content-Type: text/plain; charset="iso-8859-1" Glad to know, Ian. Thanks.
I'd sure love to have a working hs-plugins again, especially in time to help with my ICFP submission. I wouldn't begin to know how to crack something like this bug. Does anyone have any ideas?
Cheers, - Conal
On 3/17/07, Ian Lynagh
wrote: c:/ghc/ghc-6.6/HSbase.o: unknown symbol `_free'
Don mentioned this is a known problem. Is it on
anyone's todo list?
Not mine.
On 3/17/07, Ian Lynagh
wrote: On Fri, Mar 16, 2007 at 09:52:10PM -0700, Conal Elliott wrote:
BTW, to get hs-plugins to build, I changed two lines in hs-plugins/configure.
As it happens, I sent Don a similar patch last night, so hopefully it'll be fixed in darcs soon.
First I tried tr -d '\n', but it didn't work, and I don't
know why.
Because it's a \r you're trying to delete.
On 3/16/07, Conal Elliott
wrote: I got hs-plugins to compile fine on winxp, but now when
I run it I
get a crash with this message:
c:/ghc/ghc-6.6/HSbase.o: unknown symbol `_free'
Don mentioned this is a known problem. Is it on anyone's todo list?
Not mine.
Thanks Ian

[mailto:haskell-cafe-bounces@haskell.org] On Behalf Of Vivian McPhail
I just setup and installed hs-plugins from darcs on WinXP using ghc-6.6 and MSYS.
The hs-plugin test suite all passes.
Can you send me something that generates your error and I'll have a look at it.
Vivian
Well, if I haven't misunderstood what you're asking for, there is the original test case at the root of this mail thread (copied below). This produces the same error message that Conal gets: Main: c:/ghc/ghc-6.6/HSbase.o: unknown symbol `_free' Main: user error (Dynamic loader returned: user error (resolvedObjs failed.)) Alistair --------------------------------------------------------------- module Test1 where test1 = putStrLn "test1" module Main where import Prelude hiding (catch) import Control.Exception import Data.List import System.Environment import System.Plugins instance Show (LoadStatus a) where show (LoadFailure errors) = "LoadFailure - " ++ (concat (intersperse "\n" errors)) show (LoadSuccess m p) = "LoadSuccess" main = do a <- getArgs let modName = case a of (n:_) -> n _ -> "Test1" let modPath = "./" ++ modName ++ ".o" let method = "test1" fc <- catch (load modPath [""] [] method) (\e -> return (LoadFailure ["Dynamic loader returned: " ++ show e])) case fc of LoadFailure errors -> do fail (concat (intersperse "\n" errors)) LoadSuccess modul proc -> do let p :: IO (); p = proc proc ***************************************************************** 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 (2)
-
Bayley, Alistair
-
Vivian McPhail