[m-users.] Mercury mmc --make error

Roger Qiu roger.qiu at polycademy.com
Tue Oct 7 18:24:20 AEDT 2014


Hello,

I tried again this time with the VC compiled version.

I had Microsoft Visual Studio 12.0 bin on the path, and I added all of 
Mercury’s bin to the PATH.

Now when I run it gives me no errors, but no compiled executables either.

|$ mercury.bat -m hello14-10-07  18:19:31
Making Mercury\int3s\hello.int3
Making Mercury\ints\hello.int
Making Mercury\cs\hello.c
Making Mercury\objs\hello.obj
$ ls14-10-07  18:20:49
hello.err*  hello.m*  hello.mh*  Mercury/
|

I tried once before, but it complained about the cl.exe, which I then 
added in by putting the visual studio as part of the PATH.

Thanks,
Roger

On 7/10/2014 6:05 PM, Roger Qiu wrote:

> Hello,
>
> Ok I launched cmd from the desktop shortcut, and this is what I get:
>
> |C:\Users\CMCDragonkai\Projects\Language-Learning\mercury\examples>mercury  -m  hello
> Making  Mercury\int3s\hello.int3
> Making  Mercury\ints\hello.int
> Making  Mercury\cs\hello.c
> Making  Mercury\os\hello.o
> In  file  included  from  C:\mercury-14.01-mingw\lib\mercury\inc/mercury_imp.h:45:0,
>
>                   from  Mercury\cs\hello.c:24:
> C:\mercury-14.01-mingw\lib\mercury\inc/mercury_std.h:23:37:fatal  error:stdlib.
> h:No  such  file  or  directory
> compilation  terminated.
> Error:system  command  received  signal  1.
> **Error  making  `Mercury\os\hello.o'.
>
> C:\Users\CMCDragonkai\Projects\Language-Learning\mercury\examples>mmc  --make  hello
> Making  Mercury\int3s\hello.int3
> Making  Mercury\ints\hello.int
> Making  Mercury\cs\hello.c
> Making  Mercury\os\hello.o
> In  file  included  from  C:\mercury-14.01-mingw\lib\mercury\inc/mercury_imp.h:45:0,
>
>                   from  Mercury\cs\hello.c:24:
> C:\mercury-14.01-mingw\lib\mercury\inc/mercury_std.h:23:37:fatal  error:stdlib.
> h:No  such  file  or  directory
> compilation  terminated.
> Error:system  command  received  signal  1.
> **Error  making  `Mercury\os\hello.o'.
> |
>
> Something to do with no such file or directory in stdlib?
>
> Thanks,
> Roger
>
> On 7/10/2014 5:57 PM, Julien Fischer wrote:
>
>>
>> Hi,
>>
>> On Tue, 7 Oct 2014, Roger Qiu wrote:
>>
>>> I’m using the MinGW build for Mercury, and I just ran through the 
>>> hello world example. After running:
>>>
>>> mmc --make hello
>>>
>>> I get this error:
>>>
>>> $ mmc --make hello 14-10-07 17:29:00
>>> Making Mercury\int3s\hello.int3
>>> Making Mercury\ints\hello.int
>>> Making Mercury\cs\hello.c
>>> Making Mercury\os\hello.o
>>> Mercury\cs\hello.c: In function ‘hello_module0’:
>>> Mercury\cs\hello.c:79:10: warning: cast from pointer to integer of 
>>> different size [-Wpointer-to-int-cast]
>>>   MR_r1 = (MR_Word) MR_string_const("Hello, World!\n", 14);
>>>           ^
>>> 'mfiltercc' is not recognized as an internal or external command,
>>> operable program or batch file.
>>> Error: system command received signal 1.
>>> ** Error making `Mercury\os\hello.o'.
>>>
>>> The above was inside Cygwin, I tried again in cmd and I got a 
>>> similar thing:
>>
>> Probably the same problem as below, but note that the MinGW builds are
>> not configure for use within Cygwin.
>>
>>> C:\Users\CMCDragonkai\Projects\Language-Learning\mercury\examples>C:\mercury-14. 
>>>
>>> 01-mingw\bin\mmc.bat hello
>>> hello.c: In function 'hello_module0':
>>> hello.c:79:10: warning: cast from pointer to integer of different 
>>> size [-Wpointe
>>> r-to-int-cast]
>>>   MR_r1 = (MR_Word) MR_string_const("Hello, World!\n", 14);
>>>           ^
>>> 'mfiltercc' is not recognized as an internal or external command,
>>> operable program or batch file.
>>> Error: system command received signal 1.
>>>
>>> C:\Users\CMCDragonkai\Projects\Language-Learning\mercury\examples>
>>>
>>> What’s the problem here?
>>
>> It looks as though the Mercury bin directory has not been included in
>> your PATH.  Do you start cmd.exe via the "Mercury 14.01" desktop
>> shortcut or directly?  (The former should set your environment up
>> properly.)
>>
>> Cheers,
>> Julien.

-- 
Founder of Polycademy & SnapSearch
http://polycademy.com
https://snapsearch.io
+61420925975

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurylang.org/archives/users/attachments/20141007/0bbaa757/attachment.html>


More information about the users mailing list