[m-rev.] for review: fix broken source distribution

Julien Fischer juliensf at csse.unimelb.edu.au
Mon Oct 2 18:36:53 AEST 2006


On Mon, 2 Oct 2006, Ian MacLarty wrote:

> I have committed the following change to fix the source distribution in
> the mean time.  I will try to find out what procedure(s) in the library
> and/or mdbcomp are causing stack overflow in mtc_union in debugging
> grades, and copy the appropriate modules to the slice directory.
> I'll then compile the slice directory with --force-disable-tracing.
> (This solution was agreed to by myself, Zoltan and Julien).
>
> Estimated hours taken: 0.5
> Branches: main
>
> Do not use the installed mmc to compile the slice directory, because
> this means you cannot install the source distribution on a machine that
> doesn't already have Mercury installed.
>
> The reason the slice directory was compiled with the installed mmc was so that
> the mtc_union tool wouldn't be compiled with debugging enabled even if the
> compiler was compiled with debugging.  mtc_union is used to summarise
> trace counts when coverage testing the compiler.  If mtc_union is compiled
> in a debug grade then tail recursion is lost and it runs out of stack space.
>
> If we're going to coverage test the compiler then we should use the
> MERCURY_OPTIONS option that lets us customise the summary command, to choose
> a version of mtc_union not compiled with debugging.

For those with workspaces from before this change you will need to 
delete the mdbcomp files that were copied into the the slice directory
(plus any generated files) otherwise the workspace will fail to compile
correctly.  (For those with haven't got any outstanding changes in that
directory it probably easiest to delete it and do a cvs update.)

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



More information about the reviews mailing list