[mercury-users] Problem compiling mercury compiler on AIX 5.3

Fergus Henderson fjh at cs.mu.OZ.AU
Sat Feb 18 19:41:24 AEDT 2006


On 08-Feb-2006, Degauquier Yves <yves.degauquier at winterthur.be> wrote:
> I'm trying to compile the mercury compliler (0.12.2) on aix 5.3 ML03.
> 
> I'm using:
> 	-gcc 3.3.2 (latest rpm from AIX toolbox)
> 	-gmake 3.80 (latest rpm from AIX toolbox)
> 
> The configure step seems to be correct, but the make fails with:
> 
> ar cr   \
> 	libmer_rt.a mercury.o mercury_accurate_gc.o mercury_agc_debug.o
> mercury_bootstrap.o mercury_builtin_types.o mercury_construct.o
> mercury_context.o mercury_debug.o mercury_deconstruct.o mercury_deep_copy.o
> mercury_deep_profiling.o mercury_dlist.o mercury_dummy.o mercury_engine.o
> mercury_file.o mercury_float.o mercury_getopt1.o mercury_getopt.o
> mercury_grade.o mercury_hash_table.o mercury_heap_profile.o
> mercury_ho_call.o mercury_label.o mercury_layout_util.o mercury_memory.o
> mercury_memory_handlers.o mercury_memory_zones.o mercury_minimal_model.o
> mercury_misc.o mercury_mm_own_stacks.o mercury_prof.o
> mercury_profiling_builtin.o mercury_prof_mem.o mercury_prof_time.o
> mercury_regs.o mercury_reg_workarounds.o mercury_runtime_util.o
> mercury_signal.o mercury_stacks.o mercury_stack_trace.o mercury_string.o
> mercury_tabling.o mercury_term_size.o mercury_thread.o mercury_timing.o
> mercury_trace_base.o mercury_trace_term.o mercury_trail.o
> mercury_type_desc.o mercury_type_info.o mercury_type_tables.o
> mercury_wrapper.o
> ranlib libmer_rt.a
> gmake[2]: Leaving directory
> `/usr/local/Applications/MAS/tools/src/mercury-compiler-0.12.2/runtime'
> cd robdd && PATH=../scripts:../util:$PATH MMAKE_VPATH=. MMAKE_DIR=../scripts
> ../scripts/mmake 
> gmake[2]: Entering directory
> `/usr/local/Applications/MAS/tools/src/mercury-compiler-0.12.2/robdd'
> /tmp/mmake348170-0/mmake:1136: warning: undefined variable `EXTRAOPTS'
> ../scripts/mgnuc --grade reg.gc      --no-mercury-stdlib-dir   -- -DNDEBUG
> -DNEW -DCLEAR_CACHES -DCOMPUTED_TABLE -DEQUAL_TEST -DUSE_ITE_CONSTANT
> -DRESTRICT_SET  -Wall  -I../browser -I../library -I../runtime -I../boehm_gc
> -I../boehm_gc/include    -c bryant.c -o bryant.o
> In file included from ../runtime/mercury_heap.h:19,
>                  from ../runtime/mercury_string.h:12,
>                  from ../runtime/mercury_imp.h:51,
>                  from bryant.c:107:
> ../runtime/mercury_reg_workarounds.h:62: error: parse error before '*' token
> ../runtime/mercury_reg_workarounds.h:62: warning: function declaration isn't
> a prototype

This error occurs because the AIX header files are not defining the
"fd_set" type in either of the following two header files:

	#include <sys/types.h>
	#include <sys/time.h>

You need to figure out which AIX header file(s) define that type.
It may perhaps also be necessary to define some special preprocessor
symbol before including the appropriate header files in order
to make the definition of that type visible.

-- 
Fergus Henderson                    |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list