MERCURY_OPTIONS= gmake[3]: Entering directory '/home/mercury/testing/run/build/mercury-srcdist-rotd-2026-01-30/tests/invalid' { echo MCFLAGS += '--grade java --options-file /home/mercury/testing/run/build/mercury-srcdist-rotd-2026-01-30/stage2/Mercury.options --mercury-linkage static -j2 --flags ../TESTS_FLAGS --flags ../WS_FLAGS --color-diagnostics --use-subdirs '; echo MCFLAGS += ' '; echo CFLAGS += ' '; echo JAVACFLAGS += '-J"-Xmx1024m" '; echo CSCFLAGS += ' '; echo C2INITARGS += '/home/mercury/testing/run/build/mercury-srcdist-rotd-2026-01-30/stage2/library/mer_std.init /home/mercury/testing/run/build/mercury-srcdist-rotd-2026-01-30/stage2/runtime/mer_rt.init '; echo MLLIBS += ' '; echo MLOBJS += ' '; echo LDFLAGS += ' '; echo LD_LIBFLAGS += ' '; echo EXTRA_LIBRARIES += ''; echo EXTRA_LIB_DIRS += ''; echo LIBGRADES = 'hlc.gc '; echo INSTALL_PREFIX = '/home/mercury/testing/run/install'; echo LINKAGE = 'shared'; echo MERCURY_LINKAGE = 'shared'; } | /home/mercury/testing/run/build/mercury-srcdist-rotd-2026-01-30/stage2/scripts/mmc --make --options-file - fp_dup_bug.err Making Mercury/int3s/fp_dup_bug.int3 Making Mercury/ints/fp_dup_bug.int Making fp_dup_bug.err fp_dup_bug.m:048: Error: duplicate Java foreign_proc for this mode of predicate fp_dup_bug.m:048: `foo'/2. fp_dup_bug.m:042: The first one was here. fp_dup_bug.m:054: Error: duplicate Java foreign_proc for this mode of predicate fp_dup_bug.m:054: `foo'/2. fp_dup_bug.m:042: The first one was here. ** Error making `fp_dup_bug.err'. gmake[3]: [/tmp/mmake.155S9Z:1296: fp_dup_bug.err] Error 1 (ignored) if { echo MCFLAGS += '--grade java --options-file /home/mercury/testing/run/build/mercury-srcdist-rotd-2026-01-30/stage2/Mercury.options --mercury-linkage static -j2 --flags ../TESTS_FLAGS --flags ../WS_FLAGS --color-diagnostics --use-subdirs '; echo MCFLAGS += ' '; echo CFLAGS += ' '; echo JAVACFLAGS += '-J"-Xmx1024m" '; echo CSCFLAGS += ' '; echo C2INITARGS += '/home/mercury/testing/run/build/mercury-srcdist-rotd-2026-01-30/stage2/library/mer_std.init /home/mercury/testing/run/build/mercury-srcdist-rotd-2026-01-30/stage2/runtime/mer_rt.init '; echo MLLIBS += ' '; echo MLOBJS += ' '; echo LDFLAGS += ' '; echo LD_LIBFLAGS += ' '; echo EXTRA_LIBRARIES += ''; echo EXTRA_LIB_DIRS += ''; echo LIBGRADES = 'hlc.gc '; echo INSTALL_PREFIX = '/home/mercury/testing/run/install'; echo LINKAGE = 'shared'; echo MERCURY_LINKAGE = 'shared'; } | /home/mercury/testing/run/build/mercury-srcdist-rotd-2026-01-30/stage2/scripts/mmc --make --options-file - -r fp_dup_bug.err > /dev/null 2>&1 ; \ then false; \ else true; \ fi Comparing fp_dup_bug.err with fp_dup_bug.err_exp*, results in fp_dup_bug.err_res ** fp_dup_bug.err did not match the expected error output ** (closest match was fp_dup_bug.err_res2) --- fp_dup_bug.err_exp2 2025-05-12 23:02:36.000000000 +1000 +++ fp_dup_bug.err 2026-01-31 08:01:22.699264725 +1100 @@ -1,6 +1,6 @@ -fp_dup_bug.m:048: Error: duplicate `:- pragma foreign_proc' declaration for -fp_dup_bug.m:048: this mode of predicate `foo'/2 in Java. +fp_dup_bug.m:048: Error: duplicate Java foreign_proc for this mode of predicate +fp_dup_bug.m:048: `foo'/2. fp_dup_bug.m:042: The first one was here. -fp_dup_bug.m:054: Error: duplicate `:- pragma foreign_proc' declaration for -fp_dup_bug.m:054: this mode of predicate `foo'/2 in Java. +fp_dup_bug.m:054: Error: duplicate Java foreign_proc for this mode of predicate +fp_dup_bug.m:054: `foo'/2. fp_dup_bug.m:042: The first one was here. gmake[3]: *** [../Mmake.common:170: fp_dup_bug.err_res] Error 1 gmake[3]: Target 'fp_dup_bug.runtest' not remade because of errors. gmake[3]: Leaving directory '/home/mercury/testing/run/build/mercury-srcdist-rotd-2026-01-30/tests/invalid'