MERCURY_OPTIONS= --deep-random-write=25 --mdb-disable-progress make[3]: Entering directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-08-14/tests/invalid' ../Mmake.common:335: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.ha4y6F:1305: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.ha4y6F:1950: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.ha4y6F:1950: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.ha4y6F:1950: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.ha4y6F:1950: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.ha4y6F:1950: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.ha4y6F:1950: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.ha4y6F:1950: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.ha4y6F:1951: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.ha4y6F:1951: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.ha4y6F:1951: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.ha4y6F:1951: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.ha4y6F:1951: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.ha4y6F:1951: warning: undefined variable 'TRAILED_PROGS' /tmp/mmake.ha4y6F:1951: warning: undefined variable 'TRAILED_PROGS' { echo MCFLAGS += '--grade csharp --options-file /mnt/testing/run/build/mercury-srcdist-rotd-2024-08-14/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-08-14/stage2/library/mer_std.init /mnt/testing/run/build/mercury-srcdist-rotd-2024-08-14/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-08-14/stage2/scripts/mmc --make --options-file - foreign_type_visibility.err Making Mercury/int3s/foreign_type_visibility.int3 Making Mercury/ints/foreign_type_visibility.int ** Nothing to be done for `foreign_type_visibility.err'. if { echo MCFLAGS += '--grade csharp --options-file /mnt/testing/run/build/mercury-srcdist-rotd-2024-08-14/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-08-14/stage2/library/mer_std.init /mnt/testing/run/build/mercury-srcdist-rotd-2024-08-14/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-08-14/stage2/scripts/mmc --make --options-file - -r foreign_type_visibility.err > /dev/null 2>&1 ; \ then false; \ else true; \ fi Comparing foreign_type_visibility.err with foreign_type_visibility.err_exp*, results in foreign_type_visibility.err_res ** foreign_type_visibility.err did not match the expected error output ** (closest match was foreign_type_visibility.err_res1) --- foreign_type_visibility.err_exp 2024-05-11 21:07:43.000000000 +1000 +++ foreign_type_visibility.err 2024-08-15 15:18:33.412038470 +1000 @@ -4,9 +4,9 @@ foreign_type_visibility.m:022: the implementation section as well. foreign_type_visibility.m:018: That Mercury declaration is here. foreign_type_visibility.m:026: Error: the type `foreign2'/0 has no definition -foreign_type_visibility.m:026: that is valid when targeting C; neither a +foreign_type_visibility.m:026: that is valid when targeting C#; neither a foreign_type_visibility.m:026: Mercury definition, nor a -foreign_type_visibility.m:026: `:- pragma foreign_type' declaration for C. +foreign_type_visibility.m:026: `:- pragma foreign_type' declaration for C#. foreign_type_visibility.m:033: Error: since some foreign language definition of foreign_type_visibility.m:033: `foreign2'/0 is in the interface section, all foreign_type_visibility.m:033: other foreign language definitions for it must make[3]: *** [../Mmake.common:172: foreign_type_visibility.err_res] Error 1 make[3]: Target 'foreign_type_visibility.runtest' not remade because of errors. make[3]: Leaving directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-08-14/tests/invalid'