2024-10-11 19:21 AEDT

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000255mercuryBugpublic2012-06-19 22:48
Reporterqu1j0t3 
Assigned Tojuliensf 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformPowerPCOSOS XOS Version10.4.11
Product Version 
Target VersionFixed in Version 
Summary0000255: build fails on OS X 10.4.11 PowerPC
Description  $ ./configure --disable-most-grades

pbg4:~/Downloads/mercury-compiler-11.07.1 toby$ make
MMAKE_DIR=`pwd`/scripts scripts/mmake MMAKEFLAGS= all
/tmp/mmake.8duPGY:683: warning: undefined variable `DESTDIR'
scripts/Mmake.vars:683: warning: undefined variable `DESTDIR'
Mmake.common:121: warning: undefined variable `DESTDIR'
/tmp/mmake.8duPGY:1017: warning: undefined variable `DESTDIR'
cd scripts && PATH=../scripts:../util:$PATH MMAKE_VPATH=. MMAKE_DIR=../scripts DESTDIR= ../scripts/mmake
make[2]: Nothing to be done for `default_target'.
/tmp/mmake.8duPGY:1009: warning: undefined variable `DESTDIR'
cd util && PATH=../scripts:../util:$PATH MMAKE_VPATH=. MMAKE_DIR=../scripts DESTDIR= ../scripts/mmake mfiltercc
make[2]: `mfiltercc' is up to date.
/tmp/mmake.8duPGY:1021: warning: undefined variable `DESTDIR'
gc_grade=`scripts/ml --grade reg.gc --print-gc-grade`; \
cd boehm_gc && PATH=../scripts:../util:$PATH MMAKE_VPATH=. MMAKE_DIR=../scripts DESTDIR= ../scripts/mmake GC_GRADE=$gc_grade
MAKEFLAGS=""; export MAKEFLAGS; \
make -j1 GRADE=reg.gc GC_GRADE=gc \
        libgc.a libgc.dylib \
        FINAL_INSTALL_MERC_GC_LIB_DIR=/usr/local/mercury-11.07.1/lib/mercury/lib \
        dylib
make[3]: `libgc.a' is up to date.
make[3]: `libgc.dylib' is up to date.
make[3]: Nothing to be done for `dylib'.
/tmp/mmake.8duPGY:1026: warning: undefined variable `DESTDIR'
cd runtime && PATH=../scripts:../util:$PATH MMAKE_VPATH=. MMAKE_DIR=../scripts DESTDIR= ../scripts/mmake
make[2]: Nothing to be done for `default_target'.
/tmp/mmake.8duPGY:1013: warning: undefined variable `DESTDIR'
cd util && PATH=../scripts:../util:$PATH MMAKE_VPATH=. MMAKE_DIR=../scripts DESTDIR= ../scripts/mmake
make[2]: Nothing to be done for `default_target'.
/tmp/mmake.8duPGY:1030: warning: undefined variable `DESTDIR'
cd robdd && PATH=../scripts:../util:$PATH MMAKE_VPATH=. MMAKE_DIR=../scripts DESTDIR= ../scripts/mmake
make[2]: Nothing to be done for `default_target'.
/tmp/mmake.8duPGY:1034: warning: undefined variable `DESTDIR'
cd library && PATH=../scripts:../util:$PATH MMAKE_VPATH=. MMAKE_DIR=../scripts DESTDIR= ../scripts/mmake
/tmp/mmake.8duPGY:1038: warning: undefined variable `DESTDIR'
cd mdbcomp && PATH=../scripts:../util:$PATH MMAKE_VPATH=. MMAKE_DIR=../scripts DESTDIR= ../scripts/mmake
/tmp/mmake.f0C9tK:1097: Extraneous text after `else' directive
/tmp/mmake.f0C9tK:1102: *** only one `else' per conditional. Stop.
make[1]: *** [mdbcomp] Error 2
make: *** [all] Error 2
Steps To Reproduce$ ./configure --disable-most-grades
$ make
Additional Informationmercury-compiler-11.07.1

$ gcc -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1819)
TagsNo tags attached.
Attached Files
  • ? file icon configure-log (13,747 bytes) 2012-05-19 15:22 -
    pbg4:~/Downloads/mercury-compiler-11.07.1 toby$ ./configure --disable-most-grades
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables... 
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking what the C compiler type really is... gcc
    checking build system type... powerpc-apple-darwin8.11.0
    checking host system type... powerpc-apple-darwin8.11.0
    checking for cygpath... echo
    checking for cygpath... echo
    looking for an already installed Mercury compiler to bootstrap with...
    checking for mmc... no
    checking whether to enable large heaps when using conservative GC... yes
    checking whether to enable unmapping of unused pages when using Boehm GC... no
    checking for GCC source directory... not_found
    checking whether to enable the GCC back-end interface... no
    looking for GNU Make...
    checking for gmake... no
    checking for make... make
    found GNU Make: make
    looking for a way to create named pipes...
    checking for mkfifo... /usr/bin/mkfifo
    looking for a way to create temporary files...
    checking for mktemp... /usr/bin/mktemp
    checking for install-info... /usr/bin/install-info
    checking for texi2dvi... /usr/bin/texi2dvi
    checking for pdftex... no
    checking for lynx... no
    checking for dvips... no
    checking for makeinfo... /usr/bin/makeinfo
    checking for info... /usr/bin/info
    checking for perl... /usr/bin/perl
    checking for hostname... /bin/hostname
    checking whether C compiler needs -no-cpp-precomp... no
    checking whether we can use -fno-move-loop-invariants... no
    checking whether to pass -I/usr/local/include to C compiler... no
    checking whether to pass -L/usr/local/lib to the linker... no
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for use of a Microsoft C compiler... no
    checking for ranlib... ranlib
    checking for sin in -lm... yes
    checking for ilasm... no
    checking for gacutil... no
    checking for Microsoft.NET Framework SDK... no
    checking for csc... /usr/local/bin/csc
    checking for al... no
    checking for ilalink... no
    checking for mono... no
    checking for jikes... /usr/bin/jikes
    checking for java... /usr/bin/java
    checking for jar... /usr/bin/jar
    checking if the above Java SDK works and is sufficiently recent... no
    checking for erlc... /usr/local/bin/erlc
    checking for erl... /usr/local/bin/erl
    checking for sysconf... yes
    checking for getpagesize... yes
    checking for gethostname... yes
    checking for mprotect... yes
    checking for memalign... no
    checking for posix_memalign... no
    checking for memmove... yes
    checking for sigaction... yes
    checking for siginterrupt... yes
    checking for setitimer... yes
    checking for snprintf... yes
    checking for _snprintf... no
    checking for vsnprintf... yes
    checking for _vsnprintf... no
    checking for strerror... yes
    checking for open... yes
    checking for close... yes
    checking for dup... yes
    checking for dup2... yes
    checking for fdopen... yes
    checking for fileno... yes
    checking for fstat... yes
    checking for stat... yes
    checking for lstat... yes
    checking for isatty... yes
    checking for getpid... yes
    checking for setpgid... yes
    checking for fork... yes
    checking for execlp... yes
    checking for wait... yes
    checking for kill... yes
    checking for grantpt... yes
    checking for unlockpt... yes
    checking for ptsname... yes
    checking for tcgetattr... yes
    checking for tcsetattr... yes
    checking for ioctl... yes
    checking for access... yes
    checking for sleep... yes
    checking for opendir... yes
    checking for readdir... yes
    checking for closedir... yes
    checking for mkdir... yes
    checking for symlink... yes
    checking for readlink... yes
    checking for gettimeofday... yes
    checking for setenv... yes
    checking for putenv... yes
    checking for _putenv... no
    checking for posix_spawn... no
    checking for sched_setaffinity... no
    checking for sched_getcpu... no
    checking for sched_yield... yes
    checking for mkstemp... yes
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for unistd.h... (cached) yes
    checking sys/wait.h usability... yes
    checking sys/wait.h presence... yes
    checking for sys/wait.h... yes
    checking sys/siginfo.h usability... no
    checking sys/siginfo.h presence... no
    checking for sys/siginfo.h... no
    checking sys/signal.h usability... yes
    checking sys/signal.h presence... yes
    checking for sys/signal.h... yes
    checking ucontext.h usability... yes
    checking ucontext.h presence... yes
    checking for ucontext.h... yes
    checking asm/sigcontext.h usability... no
    checking asm/sigcontext.h presence... no
    checking for asm/sigcontext.h... no
    checking sys/param.h usability... yes
    checking sys/param.h presence... yes
    checking for sys/param.h... yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking sys/times.h usability... yes
    checking sys/times.h presence... yes
    checking for sys/times.h... yes
    checking for sys/types.h... (cached) yes
    checking for sys/stat.h... (cached) yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking termios.h usability... yes
    checking termios.h presence... yes
    checking for termios.h... yes
    checking sys/ioctl.h usability... yes
    checking sys/ioctl.h presence... yes
    checking for sys/ioctl.h... yes
    checking sys/stropts.h usability... no
    checking sys/stropts.h presence... no
    checking for sys/stropts.h... no
    checking windows.h usability... no
    checking windows.h presence... no
    checking for windows.h... no
    checking dirent.h usability... yes
    checking dirent.h presence... yes
    checking for dirent.h... yes
    checking getopt.h usability... yes
    checking getopt.h presence... yes
    checking for getopt.h... yes
    checking malloc.h usability... no
    checking malloc.h presence... no
    checking for malloc.h... no
    checking semaphore.h usability... yes
    checking semaphore.h presence... yes
    checking for semaphore.h... yes
    checking pthread.h usability... yes
    checking pthread.h presence... yes
    checking for pthread.h... yes
    checking time.h usability... yes
    checking time.h presence... yes
    checking for time.h... yes
    checking spawn.h usability... no
    checking spawn.h presence... no
    checking for spawn.h... no
    checking fenv.h usability... yes
    checking fenv.h presence... yes
    checking for fenv.h... yes
    checking sys/mman.h usability... yes
    checking sys/mman.h presence... yes
    checking for sys/mman.h... yes
    checking sys/sem.h usability... yes
    checking sys/sem.h presence... yes
    checking for sys/sem.h... yes
    checking sched.h usability... yes
    checking sched.h presence... yes
    checking for sched.h... yes
    checking utmpx.h usability... yes
    checking utmpx.h presence... yes
    checking for utmpx.h... yes
    checking for fesetround function... yes
    checking for `sigaction' field name... sa_handler
    checking for working `sigcontext_struct' in second arg... no
    checking for working `sigcontext_struct' in third arg... no
    checking for `siginfo_t'... yes
    checking for `siginfo' pc access at signals... no
    checking for an integer type with the same size as a pointer... int
    checking for an integer type of at least 64 bits... long long
    checking for an integer type of at least 32 bits... int
    checking for pid_t... yes
    checking for dev_t... yes
    checking for ino_t... yes
    checking for an integer type of at least 16 bits... short
    checking the number of low tag bits available... 2
    checking the number of bytes per word... 4
    checking the number of words in a synchronization term... 3
    checking the number of bits per word... 32
    checking whether we can use unboxed floats... no
    checking whether float is 64-bit... no
    checking whether double is 64-bit... yes
    checking whether long double is 64-bit... yes
    checking whether architecture is big-endian... yes
    checking whether architecture is little-endian... no
    checking whether we can use files as locks... yes
    checking return values of system... yes
    checking to see if we can handle contexts blocking on IO... yes
    checking to see if strings.h is needed for bzero... no
    checking whether we can use gcc labels... no
    checking whether we can use global registers without gcc labels... yes
    checking whether we can support profiling on this system... yes
    checking if C compiler is egcs... no
    checking whether to enable the deep profiler... yes
    checking where to install deep profiler CGI script... /Library/WebServer/CGI-Executables
    checking for pthread_mutexattr_setpshared... yes
    checking whether we can use thread-local storage class extension... no
    using grade `reg.gc' as the default grade for applications
    configure: WARNING: Mercury compiler not yet installed -
    ****    cannot use grade `hlc.gc'
    ****    using grade `reg.gc' to compile the compiler
    ****    after installation is complete you should reinstall
    ****    from scratch so you can use the more efficient
    ****    grade `hlc.gc'.
    ****    NOTE: before reinstalling from scratch, ensure that the
    ****    source tree is clean by running `make realclean'.  Not doing
    ****    this may result in a broken Mercury installation.
    checking whether the assembler handles .type... yes
    checking for as... /usr/bin/as
    checking whether the assembler does full preprocessing... no
    checking whether structure assignment conflicts with global registers... yes
    checking whether Mercury supports shared libraries on this system... yes
    checking options for static linking... -static
    checking for struct tms and times function... yes
    checking for environ global variable... yes
    checking for Sleep function... no
    checking ieeefp.h usability... no
    checking ieeefp.h presence... no
    checking for ieeefp.h... no
    checking for isnan function... yes
    checking for isnanf function... no
    checking for isinf function... yes
    checking for isinff function... no
    checking for socket in -lsocket... no
    checking for inet_addr in -lnsl... no
    checking whether we can use sockets (for Morphine)... yes
    checking whether to enable the external debugger... yes
    checking dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking for dlopen in -ldl... yes
    checking for dlopen... yes
    checking for dlclose... yes
    checking for dlsym... yes
    checking for dlerror... yes
    checking whether to enable the new MercuryFile struct... no
    checking whether to use the MS Visual C Runtime... no
    checking readline/readline.h usability... yes
    checking readline/readline.h presence... yes
    checking for readline/readline.h... yes
    checking readline/history.h usability... yes
    checking readline/history.h presence... yes
    checking for readline/history.h... yes
    looking for termcap or curses (needed by readline)...
    checking for tgetent in -ltermcap... yes
    checking for readline in -lreadline... yes
    checking for flex... flex
    checking lex output file root... lex.yy
    checking lex library... -lfl
    checking whether yytext is a pointer... yes
    checking for bison... bison -y
    checking for firefox... no
    checking for mozilla... no
    checking for xsltproc... /usr/bin/xsltproc
    checking whether any C files need to be rebuilt...
    no - they are compatible with autoconfigured settings
    checking for C shell executable... /bin/tcsh
    configure: creating ./config.status
    config.status: creating Mmake.common
    config.status: creating scripts/Mmake.vars
    config.status: creating scripts/parse_ml_options.sh-subr
    config.status: creating scripts/mdbrc
    config.status: creating scripts/Mercury.config
    config.status: creating scripts/Mercury.config.bootstrap
    config.status: creating bindist/bindist.INSTALL
    config.status: creating bindist/bindist.Makefile
    config.status: creating runtime/mercury_dotnet.cs
    config.status: creating java/runtime/Constants.java
    config.status: creating java/runtime/Native.java
    config.status: creating library/erlang_conf.hrl
    config.status: creating compiler/COMP_FLAGS
    config.status: creating library/LIB_FLAGS
    config.status: creating mdbcomp/MDBCOMP_FLAGS
    config.status: creating browser/MDB_FLAGS
    config.status: creating ssdb/SSDB_FLAGS
    config.status: creating slice/SLICE_FLAGS
    config.status: creating profiler/PROF_FLAGS
    config.status: creating deep_profiler/DEEP_FLAGS
    config.status: creating scripts/mmc
    config.status: creating scripts/mercury.bat
    config.status: creating scripts/mprof
    config.status: creating scripts/mprof.bat
    config.status: creating scripts/mercury_update_interface
    config.status: creating scripts/mgnuc
    config.status: creating scripts/ml
    config.status: creating scripts/c2init
    config.status: creating scripts/mmake
    config.status: creating scripts/mdb
    config.status: creating scripts/mdb.bat
    config.status: creating scripts/mdprof
    config.status: creating scripts/mtags
    config.status: creating scripts/canonical_grade
    config.status: creating scripts/mkfifo_using_mknod
    config.status: creating scripts/mercury_config
    config.status: creating scripts/prepare_install_dir
    config.status: creating tools/lmc
    config.status: creating tools/dotime
    config.status: creating runtime/mercury_conf.h
    config.status: executing default commands
    
    the set of library grades to install will be
       hlc.gc
       reg.gc
       reg.gc.debug
       reg.gc.decldebug
    
    Configuring to install 4 grades.
    This will likely take 40 to 120 minutes.
    You can make the install faster by installing fewer grades
    as shown by the fine-tuning section of the INSTALL file or by
    compiling the files of each grade in parallel which you can do
    via a command such as make PARALLEL=-j2 install.
    
    ? file icon configure-log (13,747 bytes) 2012-05-19 15:22 +
  • ? file icon make-log (38,349 bytes) 2012-05-19 15:22 -
    pbg4:~/Downloads/mercury-compiler-11.07.1 toby$ make
    MMAKE_DIR=`pwd`/scripts scripts/mmake  MMAKEFLAGS= all
    /tmp/mmake.jN62FK:683: warning: undefined variable `DESTDIR'
    scripts/Mmake.vars:683: warning: undefined variable `DESTDIR'
    Mmake.common:121: warning: undefined variable `DESTDIR'
    /tmp/mmake.jN62FK:1017: warning: undefined variable `DESTDIR'
    cd scripts && PATH=../scripts:../util:$PATH MMAKE_VPATH=. MMAKE_DIR=../scripts DESTDIR= ../scripts/mmake 
    make[2]: Nothing to be done for `default_target'.
    /tmp/mmake.jN62FK:1009: warning: undefined variable `DESTDIR'
    cd util && PATH=../scripts:../util:$PATH MMAKE_VPATH=. MMAKE_DIR=../scripts DESTDIR= ../scripts/mmake  mfiltercc
    make[2]: `mfiltercc' is up to date.
    /tmp/mmake.jN62FK:1021: warning: undefined variable `DESTDIR'
    gc_grade=`scripts/ml --grade reg.gc --print-gc-grade`; \
    cd boehm_gc && PATH=../scripts:../util:$PATH MMAKE_VPATH=. MMAKE_DIR=../scripts DESTDIR= ../scripts/mmake  GC_GRADE=$gc_grade
    MAKEFLAGS=""; export MAKEFLAGS; \
    make  -j1 GRADE=reg.gc GC_GRADE=gc \
            libgc.a libgc.dylib \
            FINAL_INSTALL_MERC_GC_LIB_DIR=/usr/local/mercury-11.07.1/lib/mercury/lib \
            dylib
    make[3]: `libgc.a' is up to date.
    gcc -multiply_defined suppress                      -dynamiclib -single_module -install_name \
            /usr/local/mercury-11.07.1/lib/mercury/lib/libgc.dylib \
            -o libgc.dylib alloc.o reclaim.o allchblk.o misc.o mach_dep.o os_dep.o mark_rts.o headers.o mark.o obj_map.o blacklst.o finalize.o new_hblk.o dbg_mlc.o malloc.o stubborn.o checksums.o pthread_support.o pthread_stop_world.o darwin_stop_world.o typd_mlc.o ptr_chck.o mallocx.o gcj_mlc.o specific.o gc_dlopen.o backgraph.o win32_threads.o thread_local_alloc.o dyn_load.o -lc
    make[3]: Nothing to be done for `dylib'.
    /tmp/mmake.jN62FK:1026: warning: undefined variable `DESTDIR'
    cd runtime && PATH=../scripts:../util:$PATH MMAKE_VPATH=. MMAKE_DIR=../scripts DESTDIR= ../scripts/mmake 
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury.c -o mercury.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_accurate_gc.c -o mercury_accurate_gc.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_agc_debug.c -o mercury_agc_debug.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_atomic_ops.c -o mercury_atomic_ops.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_backjump.c -o mercury_backjump.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_bitmap.c -o mercury_bitmap.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_bootstrap.c -o mercury_bootstrap.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_builtin_types.c -o mercury_builtin_types.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_construct.c -o mercury_construct.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_context.c -o mercury_context.o
    mercury_context.c: In function `MR_init_context_maybe_generator':
    mercury_context.c:577: warning: `detstack_name' might be used uninitialized in this function
    mercury_context.c:578: warning: `nondetstack_name' might be used uninitialized in this function
    mercury_context.c:579: warning: `detstack_size' might be used uninitialized in this function
    mercury_context.c:580: warning: `nondetstack_size' might be used uninitialized in this function
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_debug.c -o mercury_debug.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_deconstruct.c -o mercury_deconstruct.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_deep_copy.c -o mercury_deep_copy.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_deep_profiling.c -o mercury_deep_profiling.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_dlist.c -o mercury_dlist.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_dummy.c -o mercury_dummy.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_engine.c -o mercury_engine.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_file.c -o mercury_file.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_float.c -o mercury_float.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_getopt.c -o mercury_getopt.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_getopt1.c -o mercury_getopt1.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_grade.c -o mercury_grade.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_hash_table.c -o mercury_hash_table.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_heap_profile.c -o mercury_heap_profile.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_hgc.c -o mercury_hgc.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_ho_call.c -o mercury_ho_call.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_label.c -o mercury_label.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_layout_util.c -o mercury_layout_util.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_memory.c -o mercury_memory.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_memory_handlers.c -o mercury_memory_handlers.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_memory_zones.c -o mercury_memory_zones.o
    mercury_memory_zones.c: In function `MR_gc_zones':
    mercury_memory_zones.c:1205: warning: `oldest_lru_token' might be used uninitialized in this function
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_minimal_model.c -o mercury_minimal_model.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_misc.c -o mercury_misc.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_mm_own_stacks.c -o mercury_mm_own_stacks.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_par_builtin.c -o mercury_par_builtin.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_prof.c -o mercury_prof.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_profiling_builtin.c -o mercury_profiling_builtin.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_prof_mem.c -o mercury_prof_mem.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_prof_time.c -o mercury_prof_time.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_region.c -o mercury_region.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_regs.c -o mercury_regs.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_reg_workarounds.c -o mercury_reg_workarounds.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_runtime_util.c -o mercury_runtime_util.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_signal.c -o mercury_signal.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_stacks.c -o mercury_stacks.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_stack_layout.c -o mercury_stack_layout.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_stack_trace.c -o mercury_stack_trace.o
    mercury_stack_trace.c: In function `MR_step_over_nondet_frame':
    mercury_stack_trace.c:780: warning: `last' might be used uninitialized in this function
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_stm.c -o mercury_stm.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_string.c -o mercury_string.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_tabling.c -o mercury_tabling.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_term_size.c -o mercury_term_size.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_thread.c -o mercury_thread.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_threadscope.c -o mercury_threadscope.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_timing.c -o mercury_timing.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_trace_base.c -o mercury_trace_base.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_trace_term.c -o mercury_trace_term.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_trail.c -o mercury_trail.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_type_desc.c -o mercury_type_desc.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_type_info.c -o mercury_type_info.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_type_tables.c -o mercury_type_tables.o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_wrapper.c -o mercury_wrapper.o
    mercury_wrapper.c: In function `MR_process_options':
    mercury_wrapper.c:2048: warning: `rounding_mode' might be used uninitialized in this function
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -c mercury_wsdeque.c -o mercury_wsdeque.o
    rm -f libmer_rt.a
    ar cr   \
            libmer_rt.a mercury.o mercury_accurate_gc.o mercury_agc_debug.o mercury_atomic_ops.o mercury_backjump.o mercury_bitmap.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_getopt.o mercury_getopt1.o mercury_grade.o mercury_hash_table.o mercury_heap_profile.o mercury_hgc.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_par_builtin.o mercury_prof.o mercury_profiling_builtin.o mercury_prof_mem.o mercury_prof_time.o mercury_region.o mercury_regs.o mercury_reg_workarounds.o mercury_runtime_util.o mercury_signal.o mercury_stacks.o mercury_stack_layout.o mercury_stack_trace.o mercury_stm.o mercury_string.o mercury_tabling.o mercury_term_size.o mercury_thread.o mercury_threadscope.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 mercury_wsdeque.o
    ranlib -c libmer_rt.a
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury.c -o mercury.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_accurate_gc.c -o mercury_accurate_gc.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_agc_debug.c -o mercury_agc_debug.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_atomic_ops.c -o mercury_atomic_ops.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_backjump.c -o mercury_backjump.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_bitmap.c -o mercury_bitmap.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_bootstrap.c -o mercury_bootstrap.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_builtin_types.c -o mercury_builtin_types.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_construct.c -o mercury_construct.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_context.c -o mercury_context.pic_o
    mercury_context.c: In function `MR_init_context_maybe_generator':
    mercury_context.c:577: warning: `detstack_name' might be used uninitialized in this function
    mercury_context.c:578: warning: `nondetstack_name' might be used uninitialized in this function
    mercury_context.c:579: warning: `detstack_size' might be used uninitialized in this function
    mercury_context.c:580: warning: `nondetstack_size' might be used uninitialized in this function
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_debug.c -o mercury_debug.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_deconstruct.c -o mercury_deconstruct.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_deep_copy.c -o mercury_deep_copy.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_deep_profiling.c -o mercury_deep_profiling.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_dlist.c -o mercury_dlist.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_dummy.c -o mercury_dummy.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_engine.c -o mercury_engine.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_file.c -o mercury_file.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_float.c -o mercury_float.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_getopt.c -o mercury_getopt.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_getopt1.c -o mercury_getopt1.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_grade.c -o mercury_grade.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_hash_table.c -o mercury_hash_table.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_heap_profile.c -o mercury_heap_profile.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_hgc.c -o mercury_hgc.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_ho_call.c -o mercury_ho_call.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_label.c -o mercury_label.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_layout_util.c -o mercury_layout_util.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_memory.c -o mercury_memory.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_memory_handlers.c -o mercury_memory_handlers.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_memory_zones.c -o mercury_memory_zones.pic_o
    mercury_memory_zones.c: In function `MR_gc_zones':
    mercury_memory_zones.c:1205: warning: `oldest_lru_token' might be used uninitialized in this function
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_minimal_model.c -o mercury_minimal_model.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_misc.c -o mercury_misc.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_mm_own_stacks.c -o mercury_mm_own_stacks.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_par_builtin.c -o mercury_par_builtin.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_prof.c -o mercury_prof.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_profiling_builtin.c -o mercury_profiling_builtin.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_prof_mem.c -o mercury_prof_mem.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_prof_time.c -o mercury_prof_time.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_region.c -o mercury_region.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_regs.c -o mercury_regs.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_reg_workarounds.c -o mercury_reg_workarounds.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_runtime_util.c -o mercury_runtime_util.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_signal.c -o mercury_signal.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_stacks.c -o mercury_stacks.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_stack_layout.c -o mercury_stack_layout.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_stack_trace.c -o mercury_stack_trace.pic_o
    mercury_stack_trace.c: In function `MR_step_over_nondet_frame':
    mercury_stack_trace.c:780: warning: `last' might be used uninitialized in this function
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_stm.c -o mercury_stm.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_string.c -o mercury_string.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_tabling.c -o mercury_tabling.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_term_size.c -o mercury_term_size.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_thread.c -o mercury_thread.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_threadscope.c -o mercury_threadscope.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_timing.c -o mercury_timing.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_trace_base.c -o mercury_trace_base.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_trace_term.c -o mercury_trace_term.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_trail.c -o mercury_trail.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_type_desc.c -o mercury_type_desc.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_type_info.c -o mercury_type_info.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_type_tables.c -o mercury_type_tables.pic_o
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_wrapper.c -o mercury_wrapper.pic_o
    mercury_wrapper.c: In function `MR_process_options':
    mercury_wrapper.c:2048: warning: `rounding_mode' might be used uninitialized in this function
    ../scripts/mgnuc --grade reg.gc      --c-debug --no-ansi   --       -fPIC -DMR_PIC \
            -c mercury_wsdeque.c -o mercury_wsdeque.pic_o
    gcc -multiply_defined suppress                      -dynamiclib -single_module -undefined error                     \
    -o libmer_rt.dylib mercury.pic_o mercury_accurate_gc.pic_o mercury_agc_debug.pic_o mercury_atomic_ops.pic_o mercury_backjump.pic_o mercury_bitmap.pic_o mercury_bootstrap.pic_o mercury_builtin_types.pic_o mercury_construct.pic_o mercury_context.pic_o mercury_debug.pic_o mercury_deconstruct.pic_o mercury_deep_copy.pic_o mercury_deep_profiling.pic_o mercury_dlist.pic_o mercury_dummy.pic_o mercury_engine.pic_o mercury_file.pic_o mercury_float.pic_o mercury_getopt.pic_o mercury_getopt1.pic_o mercury_grade.pic_o mercury_hash_table.pic_o mercury_heap_profile.pic_o mercury_hgc.pic_o mercury_ho_call.pic_o mercury_label.pic_o mercury_layout_util.pic_o mercury_memory.pic_o mercury_memory_handlers.pic_o mercury_memory_zones.pic_o mercury_minimal_model.pic_o mercury_misc.pic_o mercury_mm_own_stacks.pic_o mercury_par_builtin.pic_o mercury_prof.pic_o mercury_profiling_builtin.pic_o mercury_prof_mem.pic_o mercury_prof_time.pic_o mercury_region.pic_o mercury_regs.pic_o mercury_reg_workarounds.pic_o mercury_runtime_util.pic_o mercury_signal.pic_o mercury_stacks.pic_o mercury_stack_layout.pic_o mercury_stack_trace.pic_o mercury_stm.pic_o mercury_string.pic_o mercury_tabling.pic_o mercury_term_size.pic_o mercury_thread.pic_o mercury_threadscope.pic_o mercury_timing.pic_o mercury_trace_base.pic_o mercury_trace_term.pic_o mercury_trail.pic_o mercury_type_desc.pic_o mercury_type_info.pic_o mercury_type_tables.pic_o mercury_wrapper.pic_o mercury_wsdeque.pic_o                 \
    -install_name                                           \
            /usr/local/mercury-11.07.1/lib/mercury/lib/reg.gc/libmer_rt.dylib \
    -L../boehm_gc -L/usr/local/lib -lgc ` case "reg.gc" in *.par*|*.mps*) echo "-lpthread" ;; esac `                    \
            `gcc -print-libgcc-file-name` -lm -lc
    /tmp/mmake.jN62FK:1013: warning: undefined variable `DESTDIR'
    cd util && PATH=../scripts:../util:$PATH MMAKE_VPATH=. MMAKE_DIR=../scripts DESTDIR= ../scripts/mmake 
    make[2]: Nothing to be done for `default_target'.
    /tmp/mmake.jN62FK:1030: warning: undefined variable `DESTDIR'
    cd robdd && PATH=../scripts:../util:$PATH MMAKE_VPATH=. MMAKE_DIR=../scripts DESTDIR= ../scripts/mmake 
    make[2]: Nothing to be done for `default_target'.
    /tmp/mmake.jN62FK:1034: warning: undefined variable `DESTDIR'
    cd library && PATH=../scripts:../util:$PATH MMAKE_VPATH=. MMAKE_DIR=../scripts DESTDIR= ../scripts/mmake 
    ../scripts/mgnuc --grade reg.gc        --       -c tree234.c -o tree234.o
    ../scripts/mgnuc --grade reg.gc        --       -c array.c -o array.o
    ../scripts/mgnuc --grade reg.gc        --       -c array2d.c -o array2d.o
    ../scripts/mgnuc --grade reg.gc        --       -c assoc_list.c -o assoc_list.o
    ../scripts/mgnuc --grade reg.gc        --       -c backjump.c -o backjump.o
    ../scripts/mgnuc --grade reg.gc        --       -c bag.c -o bag.o
    ../scripts/mgnuc --grade reg.gc        --       -c benchmarking.c -o benchmarking.o
    ../scripts/mgnuc --grade reg.gc        --       -c bimap.c -o bimap.o
    ../scripts/mgnuc --grade reg.gc        --       -c bit_buffer.c -o bit_buffer.o
    ../scripts/mgnuc --grade reg.gc        --       -c bit_buffer.read.c -o bit_buffer.read.o
    ../scripts/mgnuc --grade reg.gc        --       -c bit_buffer.write.c -o bit_buffer.write.o
    ../scripts/mgnuc --grade reg.gc        --       -c bitmap.c -o bitmap.o
    ../scripts/mgnuc --grade reg.gc        --       -c bool.c -o bool.o
    ../scripts/mgnuc --grade reg.gc        --       -c bt_array.c -o bt_array.o
    ../scripts/mgnuc --grade reg.gc        --       -c builtin.c -o builtin.o
    ../scripts/mgnuc --grade reg.gc        --       -c calendar.c -o calendar.o
    ../scripts/mgnuc --grade reg.gc        --       -c char.c -o char.o
    ../scripts/mgnuc --grade reg.gc        --       -c construct.c -o construct.o
    construct.c: In function `mercury__construct__get_functor_ordinal_3_0':
    construct.c:630: warning: `Ordinal' might be used uninitialized in this function
    construct.c: In function `mercury__fn__construct__get_functor_ordinal_2_0':
    construct.c:764: warning: `Ordinal' might be used uninitialized in this function
    construct.c: In function `mercury__fn__construct__construct_3_0':
    construct.m:566: warning: `new_data' might be used uninitialized in this function
    ../scripts/mgnuc --grade reg.gc        --       -c cord.c -o cord.o
    ../scripts/mgnuc --grade reg.gc        --       -c counter.c -o counter.o
    ../scripts/mgnuc --grade reg.gc        --       -c deconstruct.c -o deconstruct.o
    ../scripts/mgnuc --grade reg.gc        --       -c digraph.c -o digraph.o
    ../scripts/mgnuc --grade reg.gc        --       -c dir.c -o dir.o
    ../scripts/mgnuc --grade reg.gc        --       -c enum.c -o enum.o
    ../scripts/mgnuc --grade reg.gc        --       -c eqvclass.c -o eqvclass.o
    ../scripts/mgnuc --grade reg.gc        --       -c erlang_builtin.c -o erlang_builtin.o
    ../scripts/mgnuc --grade reg.gc        --       -c erlang_rtti_implementation.c -o erlang_rtti_implementation.o
    ../scripts/mgnuc --grade reg.gc        --       -c exception.c -o exception.o
    ../scripts/mgnuc --grade reg.gc        --       -c float.c -o float.o
    ../scripts/mgnuc --grade reg.gc        --       -c gc.c -o gc.o
    ../scripts/mgnuc --grade reg.gc        --       -c getopt.c -o getopt.o
    ../scripts/mgnuc --grade reg.gc        --       -c getopt_io.c -o getopt_io.o
    ../scripts/mgnuc --grade reg.gc        --       -c hash_table.c -o hash_table.o
    ../scripts/mgnuc --grade reg.gc        --       -c injection.c -o injection.o
    ../scripts/mgnuc --grade reg.gc        --       -c int.c -o int.o
    ../scripts/mgnuc --grade reg.gc        --       -c integer.c -o integer.o
    ../scripts/mgnuc --grade reg.gc       --no-ansi --       -c io.c -o io.o
    io.c: In function `mercury__io__file_modification_time_2_6_0':
    io.c:24138: warning: `Time' might be used uninitialized in this function
    io.c: In function `mercury__io__file_modification_time_4_0':
    io.c:24206: warning: `Time' might be used uninitialized in this function
    ../scripts/mgnuc --grade reg.gc        --       -c lazy.c -o lazy.o
    ../scripts/mgnuc --grade reg.gc        --       -c lexer.c -o lexer.o
    ../scripts/mgnuc --grade reg.gc        --       -c library.c -o library.o
    ../scripts/mgnuc --grade reg.gc        --       -c list.c -o list.o
    ../scripts/mgnuc --grade reg.gc        --       -c map.c -o map.o
    ../scripts/mgnuc --grade reg.gc        --       -c math.c -o math.o
    ../scripts/mgnuc --grade reg.gc        --       -c maybe.c -o maybe.o
    ../scripts/mgnuc --grade reg.gc        --       -c mer_std.c -o mer_std.o
    ../scripts/mgnuc --grade reg.gc        --       -c multi_map.c -o multi_map.o
    ../scripts/mgnuc --grade reg.gc        --       -c mutvar.c -o mutvar.o
    ../scripts/mgnuc --grade reg.gc        --       -c ops.c -o ops.o
    ../scripts/mgnuc --grade reg.gc        --       -c pair.c -o pair.o
    ../scripts/mgnuc --grade reg.gc        --       -c par_builtin.c -o par_builtin.o
    ../scripts/mgnuc --grade reg.gc        --       -c parser.c -o parser.o
    ../scripts/mgnuc --grade reg.gc        --       -c parsing_utils.c -o parsing_utils.o
    ../scripts/mgnuc --grade reg.gc        --       -c pprint.c -o pprint.o
    ../scripts/mgnuc --grade reg.gc        --       -c pqueue.c -o pqueue.o
    ../scripts/mgnuc --grade reg.gc        --       -c pretty_printer.c -o pretty_printer.o
    ../scripts/mgnuc --grade reg.gc        --       -c private_builtin.c -o private_builtin.o
    ../scripts/mgnuc --grade reg.gc        --       -c profiling_builtin.c -o profiling_builtin.o
    ../scripts/mgnuc --grade reg.gc        --       -c prolog.c -o prolog.o
    ../scripts/mgnuc --grade reg.gc        --       -c queue.c -o queue.o
    ../scripts/mgnuc --grade reg.gc        --       -c random.c -o random.o
    ../scripts/mgnuc --grade reg.gc        --       -c rational.c -o rational.o
    ../scripts/mgnuc --grade reg.gc        --       -c rbtree.c -o rbtree.o
    ../scripts/mgnuc --grade reg.gc        --       -c region_builtin.c -o region_builtin.o
    ../scripts/mgnuc --grade reg.gc        --       -c require.c -o require.o
    ../scripts/mgnuc --grade reg.gc        --       -c robdd.c -o robdd.o
    ../scripts/mgnuc --grade reg.gc        --       -c rtree.c -o rtree.o
    ../scripts/mgnuc --grade reg.gc        --       -c rtti_implementation.c -o rtti_implementation.o
    ../scripts/mgnuc --grade reg.gc        --       -c set.c -o set.o
    ../scripts/mgnuc --grade reg.gc        --       -c set_bbbtree.c -o set_bbbtree.o
    ../scripts/mgnuc --grade reg.gc        --       -c set_ctree234.c -o set_ctree234.o
    ../scripts/mgnuc --grade reg.gc        --       -c set_ordlist.c -o set_ordlist.o
    ../scripts/mgnuc --grade reg.gc        --       -c set_tree234.c -o set_tree234.o
    ../scripts/mgnuc --grade reg.gc        --       -c set_unordlist.c -o set_unordlist.o
    ../scripts/mgnuc --grade reg.gc        --       -c solutions.c -o solutions.o
    ../scripts/mgnuc --grade reg.gc        --       -c sparse_bitset.c -o sparse_bitset.o
    ../scripts/mgnuc --grade reg.gc        --       -c stack.c -o stack.o
    ../scripts/mgnuc --grade reg.gc        --       -c std_util.c -o std_util.o
    ../scripts/mgnuc --grade reg.gc        --       -c stm_builtin.c -o stm_builtin.o
    ../scripts/mgnuc --grade reg.gc        --       -c store.c -o store.o
    ../scripts/mgnuc --grade reg.gc        --       -c stream.c -o stream.o
    ../scripts/mgnuc --grade reg.gc        --       -c stream.string_writer.c -o stream.string_writer.o
    ../scripts/mgnuc --grade reg.gc        --       -c string.c -o string.o
    ../scripts/mgnuc --grade reg.gc        --       -c string.builder.c -o string.builder.o
    ../scripts/mgnuc --grade reg.gc        --       -c svarray.c -o svarray.o
    ../scripts/mgnuc --grade reg.gc        --       -c svbag.c -o svbag.o
    ../scripts/mgnuc --grade reg.gc        --       -c svbimap.c -o svbimap.o
    ../scripts/mgnuc --grade reg.gc        --       -c sveqvclass.c -o sveqvclass.o
    ../scripts/mgnuc --grade reg.gc        --       -c svlist.c -o svlist.o
    ../scripts/mgnuc --grade reg.gc        --       -c svmap.c -o svmap.o
    ../scripts/mgnuc --grade reg.gc        --       -c svmulti_map.c -o svmulti_map.o
    ../scripts/mgnuc --grade reg.gc        --       -c svpqueue.c -o svpqueue.o
    ../scripts/mgnuc --grade reg.gc        --       -c svqueue.c -o svqueue.o
    ../scripts/mgnuc --grade reg.gc        --       -c svset.c -o svset.o
    ../scripts/mgnuc --grade reg.gc        --       -c svstack.c -o svstack.o
    ../scripts/mgnuc --grade reg.gc        --       -c svvarset.c -o svvarset.o
    ../scripts/mgnuc --grade reg.gc        --       -c table_builtin.c -o table_builtin.o
    table_builtin.c: In function `mercury__table_builtin__table_loop_setup_shortcut_3_0':
    table_builtin.c:709: warning: `T' might be used uninitialized in this function
    table_builtin.c:710: warning: `Status' might be used uninitialized in this function
    table_builtin.c: In function `mercury__table_builtin__table_memo_det_setup_shortcut_3_0':
    table_builtin.c:902: warning: `T' might be used uninitialized in this function
    table_builtin.c:903: warning: `Status' might be used uninitialized in this function
    table_builtin.c: In function `mercury__table_builtin__table_memo_semi_setup_shortcut_3_0':
    table_builtin.c:978: warning: `T' might be used uninitialized in this function
    table_builtin.c:979: warning: `Status' might be used uninitialized in this function
    table_builtin.c: In function `mercury__table_builtin__table_memo_non_answer_is_not_duplicate_shortcut_1_0':
    table_builtin.c:1469: warning: `MercurySuccessIndicator' might be used uninitialized in this function
    table_builtin.c: In function `mercury__table_builtin__table_mmos_create_answer_block_3_0':
    table_builtin.c:2286: warning: `AnswerBlock' might be used uninitialized in this function
    table_builtin.c: In function `mercury__table_builtin__table_save_io_state_answer_3_0':
    table_builtin.c:3093: warning: `V' might be used uninitialized in this function
    ../scripts/mgnuc --grade reg.gc        --       -c table_statistics.c -o table_statistics.o
    ../scripts/mgnuc --grade reg.gc        --       -c term.c -o term.o
    ../scripts/mgnuc --grade reg.gc        --       -c term_io.c -o term_io.o
    ../scripts/mgnuc --grade reg.gc        --       -c term_size_prof_builtin.c -o term_size_prof_builtin.o
    ../scripts/mgnuc --grade reg.gc        --       -c term_to_xml.c -o term_to_xml.o
    ../scripts/mgnuc --grade reg.gc        --       -c thread.c -o thread.o
    ../scripts/mgnuc --grade reg.gc        --       -c thread.channel.c -o thread.channel.o
    ../scripts/mgnuc --grade reg.gc        --       -c thread.mvar.c -o thread.mvar.o
    ../scripts/mgnuc --grade reg.gc        --       -c thread.semaphore.c -o thread.semaphore.o
    ../scripts/mgnuc --grade reg.gc        --       -c time.c -o time.o
    ../scripts/mgnuc --grade reg.gc        --       -c tree_bitset.c -o tree_bitset.o
    ../scripts/mgnuc --grade reg.gc        --       -c type_desc.c -o type_desc.o
    ../scripts/mgnuc --grade reg.gc        --       -c unit.c -o unit.o
    ../scripts/mgnuc --grade reg.gc        --       -c univ.c -o univ.o
    ../scripts/mgnuc --grade reg.gc        --       -c varset.c -o varset.o
    ../scripts/mgnuc --grade reg.gc        --       -c version_array.c -o version_array.o
    ../scripts/mgnuc --grade reg.gc        --       -c version_array2d.c -o version_array2d.o
    ../scripts/mgnuc --grade reg.gc        --       -c version_bitmap.c -o version_bitmap.o
    ../scripts/mgnuc --grade reg.gc        --       -c version_hash_table.c -o version_hash_table.o
    ../scripts/mgnuc --grade reg.gc        --       -c version_store.c -o version_store.o
    rm -f libmer_std.a
    ar cr   libmer_std.a array.o array2d.o assoc_list.o backjump.o bag.o benchmarking.o bimap.o bit_buffer.o bit_buffer.read.o bit_buffer.write.o bitmap.o bool.o bt_array.o builtin.o calendar.o char.o construct.o cord.o counter.o deconstruct.o digraph.o dir.o enum.o eqvclass.o erlang_builtin.o erlang_rtti_implementation.o exception.o float.o gc.o getopt.o getopt_io.o hash_table.o injection.o int.o integer.o io.o lazy.o lexer.o library.o list.o map.o math.o maybe.o mer_std.o multi_map.o mutvar.o ops.o pair.o par_builtin.o parser.o parsing_utils.o pprint.o pqueue.o pretty_printer.o private_builtin.o profiling_builtin.o prolog.o queue.o random.o rational.o rbtree.o region_builtin.o require.o robdd.o rtree.o rtti_implementation.o set.o set_bbbtree.o set_ctree234.o set_ordlist.o set_tree234.o set_unordlist.o solutions.o sparse_bitset.o stack.o std_util.o stm_builtin.o store.o stream.o stream.string_writer.o string.o string.builder.o svarray.o svbag.o svbimap.o sveqvclass.o svlist.o svmap.o svmulti_map.o svpqueue.o svqueue.o svset.o svstack.o svvarset.o table_builtin.o table_statistics.o term.o term_io.o term_size_prof_builtin.o term_to_xml.o thread.o thread.channel.o thread.mvar.o thread.semaphore.o time.o tree234.o tree_bitset.o type_desc.o unit.o univ.o varset.o version_array.o version_array2d.o version_bitmap.o version_hash_table.o version_store.o \
              
    ranlib -c   libmer_std.a
    ../scripts/ml --make-shared-lib --grade reg.gc      --no-mercury-stdlib-dir -L../boehm_gc -L../mps_gc/code -L../runtime -L../library -L../trace -L../mdbcomp -L../browser -L../ssdb  --trace-init-file ../browser/mer_browser.init --trace-init-file ../mdbcomp/mer_mdbcomp.init --ssdb-init-file ../ssdb/mer_ssdb.init        --    -install_name /usr/local/mercury-11.07.1/lib/mercury/lib/reg.gc/libmer_std.dylib -o libmer_std.dylib \
            array.pic_o array2d.pic_o assoc_list.pic_o backjump.pic_o bag.pic_o benchmarking.pic_o bimap.pic_o bit_buffer.pic_o bit_buffer.read.pic_o bit_buffer.write.pic_o bitmap.pic_o bool.pic_o bt_array.pic_o builtin.pic_o calendar.pic_o char.pic_o construct.pic_o cord.pic_o counter.pic_o deconstruct.pic_o digraph.pic_o dir.pic_o enum.pic_o eqvclass.pic_o erlang_builtin.pic_o erlang_rtti_implementation.pic_o exception.pic_o float.pic_o gc.pic_o getopt.pic_o getopt_io.pic_o hash_table.pic_o injection.pic_o int.pic_o integer.pic_o io.pic_o lazy.pic_o lexer.pic_o library.pic_o list.pic_o map.pic_o math.pic_o maybe.pic_o mer_std.pic_o multi_map.pic_o mutvar.pic_o ops.pic_o pair.pic_o par_builtin.pic_o parser.pic_o parsing_utils.pic_o pprint.pic_o pqueue.pic_o pretty_printer.pic_o private_builtin.pic_o profiling_builtin.pic_o prolog.pic_o queue.pic_o random.pic_o rational.pic_o rbtree.pic_o region_builtin.pic_o require.pic_o robdd.pic_o rtree.pic_o rtti_implementation.pic_o set.pic_o set_bbbtree.pic_o set_ctree234.pic_o set_ordlist.pic_o set_tree234.pic_o set_unordlist.pic_o solutions.pic_o sparse_bitset.pic_o stack.pic_o std_util.pic_o stm_builtin.pic_o store.pic_o stream.pic_o stream.string_writer.pic_o string.pic_o string.builder.pic_o svarray.pic_o svbag.pic_o svbimap.pic_o sveqvclass.pic_o svlist.pic_o svmap.pic_o svmulti_map.pic_o svpqueue.pic_o svqueue.pic_o svset.pic_o svstack.pic_o svvarset.pic_o table_builtin.pic_o table_statistics.pic_o term.pic_o term_io.pic_o term_size_prof_builtin.pic_o term_to_xml.pic_o thread.pic_o thread.channel.pic_o thread.mvar.pic_o thread.semaphore.pic_o time.pic_o tree234.pic_o tree_bitset.pic_o type_desc.pic_o unit.pic_o univ.pic_o varset.pic_o version_array.pic_o version_array2d.pic_o version_bitmap.pic_o version_hash_table.pic_o version_store.pic_o \
                -lmer_rt -lgc   
    ld: warning -L: directory name (../mps_gc/code) does not exist
    /tmp/mmake.jN62FK:1038: warning: undefined variable `DESTDIR'
    cd mdbcomp && PATH=../scripts:../util:$PATH MMAKE_VPATH=. MMAKE_DIR=../scripts DESTDIR= ../scripts/mmake 
    /tmp/mmake.uEjTIn:1097: Extraneous text after `else' directive
    /tmp/mmake.uEjTIn:1102: *** only one `else' per conditional.  Stop.
    make[1]: *** [mdbcomp] Error 2
    make: *** [all] Error 2
    
    ? file icon make-log (38,349 bytes) 2012-05-19 15:22 +
  • log file icon patch-test.log (15,494 bytes) 2012-05-21 16:14

-Relationships
+Relationships

-Notes

~0000455

qu1j0t3 (reporter)

I also have access to OS X 10.5/PowerPC and 10.6/x86_64 systems for testing if wanted.

~0000456

juliensf (administrator)

Fix committed. It should be available in the ROTD in a few days and will also
be included in the next 11.07.2-beta release.

~0000457

qu1j0t3 (reporter)

Sorry, patch (forwarded by PB) seems not to resolve things. Log attached.

~0000458

juliensf (administrator)

Last edited: 2012-05-22 00:07

View 2 revisions

That's a different problem, most probably caused by the version of
autoconf on Mac OS 10.4 being too old. (I'll take a look at the configure
script to see if it can be worked around, but it may not be possible to
do anything about it.)

If you wait until there is an ROTD available containing the patch and
compile from the source distribution you won't have that problem (since
you won't need to run autoconf).

~0000459

qu1j0t3 (reporter)

Not out of the woods yet, I'm afraid; I get this during 'sudo make install':

ranlib -c /usr/local/mercury-rotd-2012-05-20/lib/mercury/lib/hlc.gc/libmer_rt.a
../Mmake.common:486: warning: undefined variable `mer_std.mhs'
../Mmake.common:489: warning: undefined variable `mer_std.mhs'
../Mmake.common:495: warning: undefined variable `mer_std.os'
/tmp/mmake.26t9a3:987: warning: undefined variable `mer_std.trans_opts'
/tmp/mmake.26t9a3:991: warning: undefined variable `mer_std.ms'
/tmp/mmake.26t9a3:1000: warning: undefined variable `mer_std.ms'
/tmp/mmake.26t9a3:1020: warning: undefined variable `mer_std.os'
/tmp/mmake.26t9a3:1021: warning: undefined variable `mer_std.cs'
/tmp/mmake.26t9a3:1022: warning: undefined variable `mer_std.ss'
/tmp/mmake.26t9a3:1023: warning: undefined variable `mer_std.pic_ss'
/tmp/mmake.26t9a3:1024: warning: undefined variable `mer_std.ils'
/tmp/mmake.26t9a3:1025: warning: undefined variable `mer_std.javas'
/tmp/mmake.26t9a3:1205: warning: undefined variable `mer_std.os'
mmc --generate-dependencies --grade hlc.gc --mercury-linkage shared --flags LIB_FLAGS --flags INTER_FLAGS --no-warn-nothing-exported --no-warn-unused-imports mer_std
mercury_compile: `--host-env-type posix` is incompatible with
  `--csharp-compiler-type microsoft'.
Mercury Compiler, version rotd-2012-05-20, configured for powerpc-apple-darwin8.11.0
Copyright (C) 1993-2012 The University of Melbourne
Usage: mmc [<options>] <arguments>
Use `mmc --help' for more information.
make[2]: *** [mer_std.depend] Error 1
To clean up from failed install, remove /Users/toby/Downloads/mercury-compiler-rotd-2012-05-20/install_grade_dir.hlc.gc
make[1]: *** [install_grades] Error 1
make: *** [install] Error 2

~0000460

juliensf (administrator)

Can you check the setting of the variable MERCURY_CSHARP_COMPILER_TYPE
in scripts/Mercury.config and scripts/Mercury.config.bootstrap. Are
they set to "microsoft"?

~0000461

qu1j0t3 (reporter)

pbg4:~/Downloads/mercury-compiler-rotd-2012-05-20 toby$ grep -i csharp.*= scripts/Mercury.config*
scripts/Mercury.config:MERCURY_CSHARP_COMPILER=csc
scripts/Mercury.config:MERCURY_CSHARP_COMPILER_TYPE=microsoft
scripts/Mercury.config.bootstrap:MERCURY_CSHARP_COMPILER=csc
scripts/Mercury.config.bootstrap:MERCURY_CSHARP_COMPILER_TYPE=microsoft

~0000462

juliensf (administrator)

I'm pretty sure that Microsoft have never ported their C# compiler to
Mac OS X or to powerpc. What is the csc executable on that system?

(A workaround for the above problem would be to set MERCURY_CSHARP_COMPILER_TYPE
to "unknown" in both cases.)

~0000463

qu1j0t3 (reporter)

Aha! There is a csc executable (the Chicken Scheme compiler). Maybe the test needs to be a little more specific? (And which Unix platforms *do* support the C# compiler?)

(I guess I can also work around this with a --disable-<foo> option to configure?)

~0000464

juliensf (administrator)

Ok, that would be it - IIRC the current test just looks for an executable named csc.
(The only C# compiler -- that works with Mercury -- on Unix is mono, but the executable
for that is usually called gmcs.) I'll put a stronger test into configure, in the meantime you
will need to edit scripts/Mercury.config and scripts/Mercury.config.bootstrap by hand.
(I don't think there is a --disable-foo option that will help here.)

~0000465

qu1j0t3 (reporter)

'make install' was successful, thankyou very much for the prompt help. I am trying a tools/bootcheck as suggested by Boney.

~0000469

juliensf (administrator)

I've added a stronger test for MS C# to the configure script; it should (hopefully) now distinguish
between that and the Chicken Scheme compiler.

I don't think anything can be done about not being able to generate configure on Mac OX X 10.4,
except upgrading to a newer version of autoconf.
+Notes

-Issue History
Date Modified Username Field Change
2012-05-19 14:32 qu1j0t3 New Issue
2012-05-19 14:34 qu1j0t3 Note Added: 0000455
2012-05-19 15:22 qu1j0t3 File Added: configure-log
2012-05-19 15:22 qu1j0t3 File Added: make-log
2012-05-19 23:28 juliensf Note Added: 0000456
2012-05-19 23:28 juliensf Status new => resolved
2012-05-19 23:28 juliensf Resolution open => fixed
2012-05-19 23:28 juliensf Assigned To => juliensf
2012-05-21 16:14 qu1j0t3 Note Added: 0000457
2012-05-21 16:14 qu1j0t3 Status resolved => feedback
2012-05-21 16:14 qu1j0t3 Resolution fixed => reopened
2012-05-21 16:14 qu1j0t3 File Added: patch-test.log
2012-05-21 16:20 juliensf Note Added: 0000458
2012-05-22 00:07 juliensf Note Edited: 0000458 View Revisions
2012-05-23 10:59 qu1j0t3 Note Added: 0000459
2012-05-23 10:59 qu1j0t3 Status feedback => assigned
2012-05-23 14:53 juliensf Note Added: 0000460
2012-05-25 12:54 qu1j0t3 Note Added: 0000461
2012-05-25 15:46 juliensf Note Added: 0000462
2012-05-25 23:07 qu1j0t3 Note Added: 0000463
2012-05-25 23:12 juliensf Note Added: 0000464
2012-05-26 23:17 qu1j0t3 Note Added: 0000465
2012-06-19 22:48 juliensf Note Added: 0000469
2012-06-19 22:48 juliensf Status assigned => resolved
2012-06-19 22:48 juliensf Resolution reopened => fixed
+Issue History