[mercury-users] [newbie] compilation error

Scott Finnie scott.finnie at logiquence.com
Sun Jan 26 07:59:48 AEDT 2003


Hi Peter,

Using 0.10.1.

$ cksum mercury-0.10.1.i686-pc-windows-cygwin.tar.gz
2318133179 20739535 mercury-0.10.1.i686-pc-windows-cygwin.tar.gz

Tried creating the mmakefile, with following result:

$ mmake realclean; mmake hello_world.depend; mmake hello_world
[.. realclean o/p elided ..]
mgnuc --grade hlc.gc             -c hello_world.c -o hello_world.o
hello_world.c
hello_world.h(25) : fatal error C1083: Cannot open include file: 
'mercury.h': No such file or directory
make: *** [hello_world.o] Error 2

Tried adding .../mercury/inc to $INCLUDE again, but no difference.

Wondering if there's something screwy about my machine; e.g. I have both 
VC6 & VC7 installed (although .Net wasn't detected during mercury 
installation; VC6 is on path).  Any other potential gotchas?

Maybe I should wait until the 0.11 binaries are available - conscious 
I've taken a good deal of your time already...

Thanks,
Scott.

Peter Ross wrote:
> 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
> --------------------------------------------------------------------------
> 

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