MERCURY_OPTIONS= make[3]: Entering directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-07-24/tests/invalid' ../Mmake.common:335: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.3ouR2C:1303: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.3ouR2C:1951: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.3ouR2C:1951: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.3ouR2C:1951: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.3ouR2C:1951: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.3ouR2C:1951: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.3ouR2C:1951: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.3ouR2C:1951: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.3ouR2C:1952: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.3ouR2C:1952: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.3ouR2C:1952: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.3ouR2C:1952: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.3ouR2C:1952: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.3ouR2C:1952: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.3ouR2C:1952: warning: undefined variable 'TRAILED_PROGS' { echo MCFLAGS += '--grade java --options-file /mnt/testing/run/build/mercury-srcdist-rotd-2024-07-24/stage2/Mercury.options --mercury-linkage static -j2 --flags ../TESTS_FLAGS --flags ../WS_FLAGS --color-diagnostics --use-subdirs --no-intermodule-optimization '; echo MCFLAGS += ' '; echo CFLAGS += ' '; echo JAVACFLAGS += '-J"-Xmx1024m" '; echo CSCFLAGS += ' '; echo C2INITARGS += ' /mnt/testing/run/build/mercury-srcdist-rotd-2024-07-24/stage2/library/mer_std.init /mnt/testing/run/build/mercury-srcdist-rotd-2024-07-24/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-07-24/stage2/scripts/mmc --make --options-file - foreign_type_2.err Making Mercury/int3s/foreign_type_2.int3 Making Mercury/ints/foreign_type_2.int Making foreign_type_2.err foreign_type_2.m:022: In clause for function `unwrap_foreign'/1: foreign_type_2.m:022: in argument 1 of clause head: foreign_type_2.m:022: error: undefined symbol `foreign'/1. ** Error making `foreign_type_2.err'. make[3]: [/tmp/mmake.3ouR2C:1304: foreign_type_2.err] Error 1 (ignored) if { echo MCFLAGS += '--grade java --options-file /mnt/testing/run/build/mercury-srcdist-rotd-2024-07-24/stage2/Mercury.options --mercury-linkage static -j2 --flags ../TESTS_FLAGS --flags ../WS_FLAGS --color-diagnostics --use-subdirs --no-intermodule-optimization '; echo MCFLAGS += ' '; echo CFLAGS += ' '; echo JAVACFLAGS += '-J"-Xmx1024m" '; echo CSCFLAGS += ' '; echo C2INITARGS += ' /mnt/testing/run/build/mercury-srcdist-rotd-2024-07-24/stage2/library/mer_std.init /mnt/testing/run/build/mercury-srcdist-rotd-2024-07-24/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-07-24/stage2/scripts/mmc --make --options-file - -r foreign_type_2.err > /dev/null 2>&1 ; \ then false; \ else true; \ fi Comparing foreign_type_2.err with foreign_type_2.err_exp*, results in foreign_type_2.err_res ** foreign_type_2.err did not match the expected error output ** (closest match was foreign_type_2.err_res2) --- foreign_type_2.err_exp2 2020-10-11 14:28:49.000000000 +1100 +++ foreign_type_2.err 2024-07-25 17:04:09.929439741 +1000 @@ -1,3 +1,3 @@ -foreign_type_2.m:018: In clause for function `foreign_type_2.unwrap_foreign/1': -foreign_type_2.m:018: in argument 1 of clause head: -foreign_type_2.m:018: error: undefined symbol `foreign/1'. +foreign_type_2.m:022: In clause for function `unwrap_foreign'/1: +foreign_type_2.m:022: in argument 1 of clause head: +foreign_type_2.m:022: error: undefined symbol `foreign'/1. make[3]: *** [../Mmake.common:172: foreign_type_2.err_res] Error 1 make[3]: Target 'foreign_type_2.runtest' not remade because of errors. make[3]: Leaving directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-07-24/tests/invalid'