MERCURY_OPTIONS= make[3]: Entering directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-07-27/tests/invalid' ../Mmake.common:335: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.94GOFb:1304: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.94GOFb:1763: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.94GOFb:1763: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.94GOFb:1763: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.94GOFb:1763: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.94GOFb:1763: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.94GOFb:1763: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.94GOFb:1763: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.94GOFb:1764: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.94GOFb:1764: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.94GOFb:1764: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.94GOFb:1764: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.94GOFb:1764: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.94GOFb:1764: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.94GOFb:1764: warning: undefined variable 'TRAILED_PROGS' { echo MCFLAGS += '--grade java --options-file /mnt/testing/run/build/mercury-srcdist-rotd-2024-07-27/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-07-27/stage2/library/mer_std.init /mnt/testing/run/build/mercury-srcdist-rotd-2024-07-27/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-27/stage2/scripts/mmc --make --options-file - exported_foreign_enum.err Making Mercury/int3s/exported_foreign_enum.int3 Making Mercury/ints/exported_foreign_enum.int Making exported_foreign_enum.err exported_foreign_enum.m:021: Error: predicate `test'/1 has no clauses. exported_foreign_enum.m:052: In `:- pragma foreign_export_enum' declaration for exported_foreign_enum.m:052: type `exported_foreign_enum.foo'/0: exported_foreign_enum.m:052: error: `exported_foreign_enum.foo'/0 is not an exported_foreign_enum.m:052: enumeration type. exported_foreign_enum.m:052: It has this non-zero arity constructor: exported_foreign_enum.m:052: `foo'/1. exported_foreign_enum.m:054: Error: the Mercury definition of `foo'/0 is not an exported_foreign_enum.m:054: enumeration type, so there must not be any exported_foreign_enum.m:054: `:- pragma foreign_enum' declarations for it. exported_foreign_enum.m:047: That Mercury definition is here. exported_foreign_enum.m:047: It has this non-zero arity constructor: exported_foreign_enum.m:047: `foo'/1. exported_foreign_enum.m:073: Error: the Mercury definition of `t1'/0 is not an exported_foreign_enum.m:073: enumeration type, so there must not be any exported_foreign_enum.m:073: `:- pragma foreign_enum' declarations for it. exported_foreign_enum.m:066: That Mercury definition is here. exported_foreign_enum.m:066: It has this non-zero arity constructor: exported_foreign_enum.m:066: `f13'/1. exported_foreign_enum.m:100: Error: this `:- pragma foreign_enum' declaration exported_foreign_enum.m:100: for `t3'/0 is incompatible with the equivalence exported_foreign_enum.m:100: type definition in the implementation section. exported_foreign_enum.m:098: That definition is here. ** Error making `exported_foreign_enum.err'. make[3]: [/tmp/mmake.94GOFb:1305: exported_foreign_enum.err] Error 1 (ignored) if { echo MCFLAGS += '--grade java --options-file /mnt/testing/run/build/mercury-srcdist-rotd-2024-07-27/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-07-27/stage2/library/mer_std.init /mnt/testing/run/build/mercury-srcdist-rotd-2024-07-27/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-27/stage2/scripts/mmc --make --options-file - -r exported_foreign_enum.err > /dev/null 2>&1 ; \ then false; \ else true; \ fi Comparing exported_foreign_enum.err with exported_foreign_enum.err_exp*, results in exported_foreign_enum.err_res ** exported_foreign_enum.err did not match the expected error output ** (closest match was exported_foreign_enum.err_res1) --- exported_foreign_enum.err_exp 2024-05-23 21:50:03.000000000 +1000 +++ exported_foreign_enum.err 2024-07-28 15:38:45.326748818 +1000 @@ -1,3 +1,4 @@ +exported_foreign_enum.m:021: Error: predicate `test'/1 has no clauses. exported_foreign_enum.m:052: In `:- pragma foreign_export_enum' declaration for exported_foreign_enum.m:052: type `exported_foreign_enum.foo'/0: exported_foreign_enum.m:052: error: `exported_foreign_enum.foo'/0 is not an make[3]: *** [../Mmake.common:172: exported_foreign_enum.err_res] Error 1 make[3]: Target 'exported_foreign_enum.runtest' not remade because of errors. make[3]: Leaving directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-07-27/tests/invalid'