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

Julien Fischer juliensf at csse.unimelb.edu.au
Mon Jul 18 18:30:22 AEST 2011


Hi,

On Sat, 16 Jul 2011, Alexsandro Soares wrote:

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

There appears to be a problem with the 11.07-beta source distribution
on some platforms.  (I have encountered similar issues on i686-pc-mingw32
with GCC 4.5.2).

> 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

Changing LIBGRADES won't matter here.  It's the Mercury compiler itself that
appears to be broken.

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

We will look into this; in the meantime, I suggest using the 11.01
release.

Julien.
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to:       mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions:          mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the users mailing list