MERCURY_OPTIONS= make[3]: Entering directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-10-02/tests/invalid' ../Mmake.common:335: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.J98v9t:1307: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.J98v9t:1955: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.J98v9t:1955: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.J98v9t:1955: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.J98v9t:1955: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.J98v9t:1955: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.J98v9t:1955: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.J98v9t:1955: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.J98v9t:1956: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.J98v9t:1956: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.J98v9t:1956: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.J98v9t:1956: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.J98v9t:1956: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.J98v9t:1956: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.J98v9t:1956: warning: undefined variable 'TRAILED_PROGS' { echo MCFLAGS += '--grade java --options-file /mnt/testing/run/build/mercury-srcdist-rotd-2024-10-02/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 += ' /mnt/testing/run/build/mercury-srcdist-rotd-2024-10-02/stage2/library/mer_std.init /mnt/testing/run/build/mercury-srcdist-rotd-2024-10-02/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 = '/mnt/testing/run/install'; echo LINKAGE = 'shared'; echo MERCURY_LINKAGE = 'shared'; } | /mnt/testing/run/build/mercury-srcdist-rotd-2024-10-02/stage2/scripts/mmc --make --options-file - pragma_c_code_dup_var.err Making Mercury/int3s/pragma_c_code_dup_var.int3 Making Mercury/ints/pragma_c_code_dup_var.int ** Nothing to be done for `pragma_c_code_dup_var.err'. if { echo MCFLAGS += '--grade java --options-file /mnt/testing/run/build/mercury-srcdist-rotd-2024-10-02/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 += ' /mnt/testing/run/build/mercury-srcdist-rotd-2024-10-02/stage2/library/mer_std.init /mnt/testing/run/build/mercury-srcdist-rotd-2024-10-02/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 = '/mnt/testing/run/install'; echo LINKAGE = 'shared'; echo MERCURY_LINKAGE = 'shared'; } | /mnt/testing/run/build/mercury-srcdist-rotd-2024-10-02/stage2/scripts/mmc --make --options-file - -r pragma_c_code_dup_var.err > /dev/null 2>&1 ; \ then false; \ else true; \ fi Comparing pragma_c_code_dup_var.err with pragma_c_code_dup_var.err_exp*, results in pragma_c_code_dup_var.err_res ** pragma_c_code_dup_var.err did not match the expected error output ** (closest match was pragma_c_code_dup_var.err_res2) --- pragma_c_code_dup_var.err_exp2 2023-10-26 21:55:27.000000000 +1100 +++ pragma_c_code_dup_var.err 2024-10-03 19:51:50.611664442 +1000 @@ -1,5 +1,5 @@ -pragma_c_code_dup_var.m:025: Error: no clauses for function `bread_impl'/7. +pragma_c_code_dup_var.m:025: Error: function `bread_impl'/7 has no clauses. pragma_c_code_dup_var.m:041: In `:- pragma foreign_proc' declaration for pragma_c_code_dup_var.m:041: function `bread_impl'/7: -pragma_c_code_dup_var.m:041: error: variable `Buf' occurs more than once in +pragma_c_code_dup_var.m:041: error: variable `Buf' occurs more than once in pragma_c_code_dup_var.m:041: the argument list. make[3]: *** [../Mmake.common:172: pragma_c_code_dup_var.err_res] Error 1 make[3]: Target 'pragma_c_code_dup_var.runtest' not remade because of errors. make[3]: Leaving directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-10-02/tests/invalid'