[mercury-users] mercury_trace.c:172: `Word' undeclared (first use in this function)
Fergus Henderson
fjh at cs.mu.OZ.AU
Sun Apr 8 19:14:48 AEST 2001
Terrence Brannon <princepawn at earthlink.net> wrote:
>
> I am attempting to compile Mercury 0.10.1 on an iBook running Mac
> OS X
BTW, it looks to me like you are actually compiling a more recent
version of Mercury, from the main branch of our CVS repository, rather
than the version-0_10_y branch (which is that branch that we used for
0.10 and 0.10.1).
> ok, the previous patch fixed the previous problem. now I have the
> problem below. I'd appreciate some help with this one too.
>
> mercury_trace.c: In function `MR_trace_real':
> mercury_trace.c:172: `Word' undeclared (first use in this function)
> mercury_trace.c:172: (Each undeclared identifier is reported only once
> mercury_trace.c:172: for each function it appears in.)
> mercury_trace.c:172: `saved_regs' undeclared (first use in this function)
> mercury_trace.c:173: parse error before `int'
> mercury_trace.c:177: `max_r_num' undeclared (first use in this function)
> mercury_trace.c:189: `path' undeclared (first use in this function)
> mercury_trace.c:195: `stop_collecting' undeclared (first use in this function)
> make[2]: *** [mercury_trace.o] Error 1
> make[1]: *** [trace] Error 2
> [localhost:~/wares/Mercury/mercury-compiler-0.10.1] metaperl%
The following patch will fix the symptom.
But I don't think it addresses the cause. The cause is that for some
reason that I don't understand, the symbols in runtime/mercury_bootstrap.h
are not being defined.
Index: mercury_trace.c
===================================================================
RCS file: /home/mercury1/repository/mercury/trace/mercury_trace.c,v
retrieving revision 1.40
diff -u -d -u -r1.40 mercury_trace.c
--- mercury_trace.c 2001/03/07 08:00:00 1.40
+++ mercury_trace.c 2001/04/08 09:10:27
@@ -170,7 +170,7 @@
case MR_CMD_COLLECT:
{
MR_Event_Info event_info;
- Word *saved_regs = event_info.MR_saved_regs;
+ MR_Word *saved_regs = event_info.MR_saved_regs;
int max_r_num;
const char *path;
bool stop_collecting = FALSE;
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
| of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-users mailing list
post: mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the users
mailing list