[m-rev.] for review: Document experience on AIX.

Julien Fischer jfischer at opturion.com
Fri Jul 11 18:15:38 AEST 2014


On Fri, Jul 11, 2014 at 5:08 PM, Peter Wang <novalazy at gmail.com> wrote:

>
> -----------------------------------------------------------------------------
>
> Mercury was tested on AIX in 2014.
>
>     * AIX 7.1 on POWER7 processor
>     * using IBM C compiler (xlc)
>     * in hlc.gc grade
>     * in none.gc grade
>
> You must have GNU make, flex and bison.  RPMS are available from:
>
>     <http://www.ibm.com/systems/power/software/aix/linux/>
>
> libatomic_ops does not build correctly.  One workaround is to set
> AO_USE_PTHREAD_DEFS by modifying boehm_gc/build_atomic_ops.sh:
>
>     CFLAGS="-DAO_USE_PTHREAD_DEFS" \
>     ./configure --prefix=$P --libdir=$P/lib "$@"
>
> It is not recommended to use parallel Mercury grades in this configuration,
> if they even build.  They currently do not.
>
> You may need to use the IBM C compiler instead of gcc.  Pass
> "--with-cc=xlc"
> when configuring the Mercury installation, and use high-level C grades
> for better performance.
>

One issue here is that the configure script, Mercury.options, mgnuc script,
compiler/compiile_target_code.m
and probably other places won't recognise xlc as a type of C compiler --
the type should default
to unknown, but may incorrectly default to GCC in spots.

Cheers,
Julien.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20140711/3100122e/attachment.html>


More information about the reviews mailing list