|
[ ghc-Bugs-997511 ] Options -no-hs-main -debug cause 'impossible' to happen: msg#00038lang.haskell.glasgow.bugs
Bugs item #997511, was opened at 2004-07-25 12:38 Message generated for change (Comment added) made by simonmar You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=997511&group_id=8032 Category: Compiler (FFI) Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Options -no-hs-main -debug cause 'impossible' to happen Initial Comment: Here's the command line: ghc -c ForeignTest.hs -fglasgow-exts -package text -no-hs-main And here's the module: ----------------------- module ForeignTest (reduce) where import Foreign.StablePtr import GensDef import GensCoreIO foreign export ccall "reduce" reduceMain :: StablePtr LookupFun -> StablePtr ReduceFun -> IO (StablePtr Environment) reduceMain _ _ = newStablePtr emptyEnv ------------------------ Let me know if you need the modules GensDef and GensCoreIO imported from above. I expect the problem is more generic than that. ---------------------------------------------------------------------- >Comment By: Simon Marlow (simonmar) Date: 2004-07-26 11:33 Message: Logged In: YES user_id=48280 Could you supply more info? The title of the bug says "-no-hs-main -debug", but your example command line doesn't contain -debug. As a quick test I tried to compile something with -no-hs-main -debug, and it apparently worked correctly. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2004-07-25 12:41 Message: Logged In: NO Oh yeah, the error message I get is: ghc-6.2: panic! (the `impossible' happened, GHC version 6.2): findBuildTag Please report it as a compiler bug to glasgow-haskell-bugs@xxxxxxxxxxx, or http://sourceforge.net/projects/ghc/. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=997511&group_id=8032
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [ ghc-Bugs-996746 ] -odir changes output name of main module, SourceForge.net |
|---|---|
| Next by Date: | [ ghc-Bugs-998514 ] GHCi panic bytecode vs object code -O2, SourceForge.net |
| Previous by Thread: | [ ghc-Bugs-997511 ] Options -no-hs-main -debug cause 'impossible' to happen, SourceForge.net |
| Next by Thread: | [ ghc-Bugs-998514 ] GHCi panic bytecode vs object code -O2, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |