Opened 14 years ago

Closed 14 years ago

Last modified 46 years ago

#584 closed bug (Invalid)

ghc-5.00.2 -fvia-C: symbol undeclared

Reported by: nobody Owned by: nobody
Priority: normal Milestone:
Component: Compiler Version: None
Keywords: Cc:
Operating System: Architecture:
Type of failure: Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description

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.)

Change History (1)

comment:1 Changed 14 years ago by simonmar

  • Status changed from assigned to closed
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

Note: See TracTickets for help on using tickets.