[ ghc-Bugs-455887 ] ghc-5.00.2 -fvia-C: symbol undeclared
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 29 Aug 2001 03:14:03 -0700
Bugs item #455887, was opened at 2001-08-27 13:27
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=108032&aid=455887&group_id=8032
Category: Compiler
Group: None
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: ghc-5.00.2 -fvia-C: symbol undeclared
Initial Comment:
I am using ghc-5.00.2
While compiling TclHaskell, compiling a C callout
module with -fvia-C I get the following error:
ghc -fglasgow-exts -recomp -dcore-lint -syslib
concurrent -fvia-C '-#include "Check.h"' -c -ohi
TclCompatibility.hi TclCompatibilityGhc.hs
/tmp/ghc4365.hc: In function `s141_fast1':
/tmp/ghc4365.hc:157: `END_TSO_QUEUE_closure' undeclared
(first use in this function)
/tmp/ghc4365.hc:157: (Each undeclared identifier is
reported only once
/tmp/ghc4365.hc:157: for each function it appears in.)
----------------------------------------------------------------------
>Comment By: Simon Marlow (simonmar)
Date: 2001-08-29 03:14
Message:
Logged In: YES
user_id=48280
[ following reply from Sigbjorn Finne on the glasgow-
haskell-bugs mailing list: ]
you're running into trouble with some expeditious hacks
that were
put into TclHaskell to make it work with ghc-4.xx. The
following
change will make it compile with ghc-5.xx - have Check.h now
contain:
extern StgTSO *run_queue_hd;
#if __GLASGOW_HASKELL__ <= 408
extern StgTSO *MainTSO; /* temporary hack */
#define END_TSO_QUEUE ((StgTSO *)(void*)
&END_TSO_QUEUE_closure)
#endif
hth
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=108032&aid=455887&group_id=8032