[mercury-users] [newbie] compilation error

Peter Ross pro at missioncriticalit.com
Sun Jan 26 00:43:53 AEDT 2003


On Fri, Jan 24, 2003 at 06:57:51PM +0000, Scott Finnie wrote:
> Hello Peter,
> 
> 
> Peter Ross wrote:
> [..]
> >Here is the problem.  For some reason the compiler appears to building
> >in the asm_fast.gc grade which isn't supported when using MSVC.
> >
> >Could you check in the Mmakefile in the directory that you are trying to
> >build hello_world in to determine whether the GRADE variable has been
> >set to asm_fast.gc.  If so then change it to hlc.gc or delete the line.
> 
> Hmm, there isn't a Mmakefile in the source dir.  Files are:
> -rw-r--r--    1 scoot    None         1780 Jan 22 08:35 hello_world.c
> -rw-r--r--    1 scoot    None          879 Jan 24 18:42 hello_world.d
> -rw-r--r--    1 scoot    None         4863 Jan 24 18:42 hello_world.dep
> -rw-r--r--    1 scoot    None         1867 Jan 24 18:42 hello_world.dv
> -rw-r--r--    1 scoot    None            0 Jan 22 08:35 hello_world.err
> -rw-r--r--    1 scoot    None          209 Jan 22 08:33 hello_world.m
> 
> scoot at SUMO /cygdrive/l/scratch
> $ grep "GRADE=" *
> 
> scoot at SUMO /cygdrive/l/scratch
> $
Hmmmm then this looks like a bug in our distribution.
Which version of mercury are you using 0.10.1 or 0.11?

The work around is to add an Mmakefile and place in it the line
GRADE=hlc.gc

Then you need to do
$ mmake realclean
$ mmake hello_world.depend
$ mmake hello_world

Let us know how it goes.

> 
> Do I need the network drive after all (as Fergus suggested)?
> 
I don't think so, Fergus and I have had a discussion off-line and there
are problems with attempting to use network drives that I have
encountered and I don't think this would help you here.

Pete
--------------------------------------------------------------------------
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