[mercury-users] problem building rotd on Darwin

Ian MacLarty maclarty at csse.unimelb.edu.au
Sun Aug 30 09:40:55 AEST 2009


Hi,

I'm trying to build the rotd-2009-08-28 on an intel Mac and I am
getting the following error when the build script tries to build
tree234.o:

./scripts/mgnuc --grade none.gc        --       -c tree234.c -o tree234.o
In file included from tree234.c:25:
tree234.mih.tmp:39: error: syntax error before
'mercury__tree234__tree234__type_ctor_info_tree234_2'
tree234.mih.tmp:39: warning: type defaults to 'int' in declaration of
'mercury__tree234__tree234__type_ctor_info_tree234_2'
tree234.mih.tmp:39: warning: data definition has no type or storage class
tree234.mih.tmp:42: error: syntax error before
'mercury__tree234__tree234__type_ctor_info_lazy_list_2'
tree234.mih.tmp:42: warning: type defaults to 'int' in declaration of
'mercury__tree234__tree234__type_ctor_info_lazy_list_2'
tree234.mih.tmp:42: warning: data definition has no type or storage class
tree234.mih.tmp:45: error: syntax error before
'mercury__tree234__tree234__type_ctor_info_key_value_pair_2'
tree234.mih.tmp:45: warning: type defaults to 'int' in declaration of
'mercury__tree234__tree234__type_ctor_info_key_value_pair_2'
tree234.mih.tmp:45: warning: data definition has no type or storage class
tree234.m:38: error: syntax error before 'MR_CALL'
...etc...

The code corresponding to the first error is:

#line 39 "tree234.mih.tmp"
extern /* final */ const MR_TypeCtorInfo_Struct
mercury__tree234__tree234__type_ctor_info_tree234_2;

MR_TypeCtorInfo_Struct is defined in mercury_type_info.h and
mercury_type_info.h is included by mercury.h and mercury.h is included
by tree234.mih, but mercury.h has #ifdef MR_HIGHLEVEL_CODE around the
include of mercury_type_info.h and since this is low-level-code
tree234.mih is not seeing the definition of MR_TypeCtorInfo_Struct.

I tried this on eris and I get the same error.  The configure command
I gave on eris was:

./configure --prefix=/Users/maclarty/mercury-rotd-2009-08-28
--enable-libgrades=none.gc,hlc.gc

and it is using Apple's gcc-4.0.1.

Does anyone know what the problem is?

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