[m-rev.] For review: New FAQ entries for installation.

Paul Bone pbone at csse.unimelb.edu.au
Fri Sep 12 20:46:45 AEST 2008


On Fri, Sep 05, 2008 at 10:54:56AM +1000, Paul Bone wrote:
> On Wed, Sep 03, 2008 at 01:34:47PM +1000, Peter Wang wrote:
> > > + at item
> > > + at emph{The compiler crashes during the ``make install'' phase}
> > > + at sp 1
> > > +
> > > +An incompatibility between Mercury's low-level C backend and some GCC
> > > +optimizations in GCC 4.2 seems to be causing problems.  Try using a different
> > > +version of GCC, otherwise the following instructions may help.
> > > +
> > > +After unpacking the tarball but before running @samp{configure}, create a file in
> > > +the root directory of the unpacked source named @samp{Mmake.params} containing
> > > +the line @samp{-EXTRA_CFLAGS=-O0}, and run @samp{configure} as
> > > + at samp{./configure --with-llds-base-grade=none --with-default-grade=hlc.gc}.
> > > +This disables GCC's optimizations and some of Mercury's optimizations for the
> > 
> > nearly all of Mercury's optimizations
> > 
> > > +low-level C backend.  Programs build using this Mercury installation will use
> > 
> > built
> > 
> > > +the high-level C backend by default.
> > > +
> > > +See bugs 66 and 77.
> > 
> > in the bug database.
> > 
> > (Unless I'm mistaken, you would still need to set -O0 when building any
> > programs with the low-level C grade, so you may want to write something
> > about that.)
> > 
> 
> Thanks Peter for your review.  Below is a new diff including the changes
> you've recommended.  However I'd like somebody to check the additional
> paragraph I've added in this first FAQ item, the paragraph about
> building programs in the low-level C grade.
> 

This is waiting for another review before I'm comfortable commiting it,
since it will appear on the website.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20080912/af8f752f/attachment.sig>


More information about the reviews mailing list