[mercury-users] Problem building on Mac OS X / Xcode 4 / clang

Sean Johnson sean at snootymonkey.com
Tue May 22 02:25:50 AEST 2012


Julien,

	Thanks for the fast response by the way.

	I assume you mean in the ./compiler directory of the build directory? It is there:

[local 05/21/12 12:23:54 ~/build/mercury-compiler-11.07.1/compiler] ls -la transform_hlds.ctgc.structure_reuse.indirect.int3

-rw-r--r--  1 sean  staff  96 Feb 28 23:18 transform_hlds.ctgc.structure_reuse.indirect.int3

[local 05/21/12 12:23:58 ~/build/mercury-compiler-11.07.1/compiler] cat transform_hlds.ctgc.structure_reuse.indirect.int3

:- module (((transform_hlds.ctgc).structure_reuse).indirect).
:- interface.
:- type sr_request.

Cheers,
Sean

On May 21, 2012, at 11:54 AM, Julien Fischer wrote:

> 
> Hi,
> 
> On Mon, 21 May 2012, Sean Johnson wrote:
> 
>> I'm trying to build Mercury and running into an issue. The machine is
>> Intel, Mac OS X 10.7 (Lion) with Xcode 4 (clang).
>> 
>> My goal is to have a Mercury install with parallel, high-level C, Java
>> and Erlang backends, I'm trying to follow these steps I created for
>> myself based on my understanding of Mercury from reading of the
>> manuals and the INSTALL and README files.
>> 
>> # Create a minimal, bootstrap Mercury
>> ./configure --with-cc=clang --disable-most-grades
>> make
>> sudo make install
>> 
>> # Add Mercury's bin and man to your paths
>> ln -s /usr/local/mercury-11.07.1 /usr/local/mercury
>> export PATH=$PATH:/usr/local/mercury/bin
>> export MANPATH=$MANPATH:/usr/local/mercury/man
>> 
>> # Create a fairly complete Mercury with Java and Erlang
>> make realclean
>> ./configure --with-cc=clang --enable-erlang-grade --enable-java-grade
>> make
>> sudo make install
>> 
>> But the 2nd build is a not working. (It fails with the errors below.)
>> 
>> To simplify things, I'm trying doing the 2nd build THE SAME as the first. That is with:
>> 
>> ./configure --with-cc=clang --disable-most-grades
>> 
>> So that the only difference between the 1st build that works and the
>> 2nd build that doesn't is that I already have a bootstrapped Mercury
>> in the PATH.
>> 
>> What happens is this:
>> 
>> mercury_compile: cannot find
>> `transform_hlds.ctgc.structure_reuse.indirect.int3' in directories .,
>> ../library, ../browser, ../ssdb, ../mdbcomp
> 
> Is the file transform_hlds.ctgc.structure_reuse.indirect.int3 present in
> the compiler directory?
> 
> (I don't have acces to a machine running Mac OS X 10.7 at present; I've
> just tried the above with 10.6 and did not encounter the above problem.)
> 
> Cheers,
> 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
> --------------------------------------------------------------------------


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