[mercury-users] Error compiling ROTD with grade hlc.gc

Alexsandro Soares prof.asoares at gmail.com
Sat Jul 16 23:24:57 AEST 2011


Hi Julien,

Thank you for your answer.
I used gcc version 4.5.2 (default) but also the gcc-4.6 targeting
x86_64-linux-gnu, uname -r = 2.6.38-10-generic, but when the compilation
process achieves the hlc.gc I have many errors. I tried make with -j2, -j4
and -j8 options but nothing works.

The .err files below were produced using gcc-4.6:

install_grade_dir.hlc.gc/library/array.err

*** Mercury runtime: caught segmentation violation ***
cause: address not mapped to object
address involved: 0x7a36ae00008
This may have been caused by a stack overflow, due to unbounded recursion.
exiting from signal handler
Segmentation fault
--------------------------------------------------

install_grade_dir.hlc.gc/library/assoc_list.err

Uncaught Mercury exception:
Software Error: ml_backend.mlds_to_c: predicate
`ml_backend.mlds_to_c.mlds_output_data_name'/3: Sorry, not implemented: NYI:
proc_layout
Stack dump not available in this grade.
--------------------------------------------------

Then I tried to compile using the csharp grade too, because it's my main
goal:
make install LIBGRADES=csharp

But I got this error message:
...
Making Mercury/css/array.cs

*** Mercury runtime: caught segmentation violation ***
cause: address not mapped to object
address involved: 0x5686a700008
This may have been caused by a stack overflow, due to unbounded recursion.
exiting from signal handler
** Error making `Mercury/css/array.cs'.
make[2]: ** [libmer_std.install] Error 1
----------------------------------------------------
I'm using mono:

$ mono -V
Mono JIT compiler version 2.10.1 (Debian 2.10.1-4~natty1)


Cheers,
Alex


2011/7/16 Julien Fischer <juliensf at csse.unimelb.edu.au>

>
> On Sat, 16 Jul 2011, Julien Fischer wrote:
>
>  On Fri, 15 Jul 2011, Alexsandro Soares wrote:
>>
>>   I'm trying to compile the mercury-compiler-11.07-beta-**2011-07-14 and
>>> I
>>> find the following error with the grade hlc.gc:
>>>
>>> mmc --make-transitive-**optimization-interface --grade hlc.gc
>>> --mercury-linkage shared --flags LIB_FLAGS   --flags INTER_FLAGS array2d
>>> make[2]: ** [array.c_date] Error 139
>>>
>>> I'm using Ubuntu 11.04 64 bits and I had compiled the others grades
>>> before
>>> this one succesfully using the standard procedure:
>>> sh configure
>>> make
>>> sudo make install
>>>
>>> Any ideas to help me?
>>>
>>
>> What version of GCC is being used here?  Also, were you doing a parallel
>> build here (i.e. invoking make with -j N with N > 1)?
>>
>
> Also, do any of the .err files in the library directory contain a more
> meaningful error message?
>
>
> Julien.
> ------------------------------**------------------------------**
> --------------
> mercury-users mailing list
> Post messages to:       mercury-users at csse.unimelb.**edu.au<mercury-users at csse.unimelb.edu.au>
> Administrative Queries: owner-mercury-users at csse.**unimelb.edu.au<owner-mercury-users at csse.unimelb.edu.au>
> Subscriptions:          mercury-users-request at csse.**unimelb.edu.au<mercury-users-request at csse.unimelb.edu.au>
> ------------------------------**------------------------------**
> --------------
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurylang.org/archives/users/attachments/20110716/ee7df79f/attachment.html>


More information about the users mailing list