MERCURY_OPTIONS= --deep-random-write=25 --mdb-disable-progress make[3]: Entering directory '/mnt/testing/run/build/mercury-srcdist-rotd-2021-01-13/tests/invalid' if /mnt/testing/run/build/mercury-srcdist-rotd-2021-01-13/stage2/scripts/mmc --errorcheck-only --grade hlc.par.gc --mercury-linkage static --flags ../TESTS_FLAGS --flags ../WS_FLAGS -O5 --intermod-opt --no-errorcheck-only gh72_errors \ > gh72_errors.err 2>&1; \ then false; \ else true; \ fi Comparing gh72_errors.err with gh72_errors.err_exp*, results in gh72_errors.err_res ** gh72_errors.err did not match the expected error output ** (closest match was gh72_errors.err_res1) --- gh72_errors.err_exp 2021-01-13 22:49:04.000000000 +1100 +++ gh72_errors.err 2021-01-14 14:46:17.465416180 +1100 @@ -1,26 +1,5 @@ -gh72_errors.m:043: Error: the C code for `test_export_1'/3 cannot be exported -gh72_errors.m:043: to C as `exported_test_export_1', because -gh72_errors.m:043: `test_export_1'/3 has a nonstandard and undocumented -gh72_errors.m:043: calling convention due to interactions between its use of -gh72_errors.m:043: partially instantiated data structures and the -gh72_errors.m:043: `direct_arg' data representation optimization. -gh72_errors.m:055: Error: the C code for `test_export_2'/5 cannot be exported -gh72_errors.m:055: to C as `exported_test_export_2', because -gh72_errors.m:055: `test_export_2'/5 has a nonstandard and undocumented -gh72_errors.m:055: calling convention due to interactions between its use of -gh72_errors.m:055: partially instantiated data structures and the -gh72_errors.m:055: `direct_arg' data representation optimization. -gh72_errors.m:082: Error: a procedure implemented using a -gh72_errors.m:082: `:- pragma foreign_proc' declaration may not have any -gh72_errors.m:082: arguments whose types use the `direct_arg' data -gh72_errors.m:082: representations optimization, and whose modes indicate -gh72_errors.m:082: that they fill in partially instantiated terms. Argument 1 -gh72_errors.m:082: of predicate `direct_arg_in_out_0_test_fproc_1'/3 mode 0 -gh72_errors.m:082: violates this prohibition. -gh72_errors.m:093: Error: a procedure implemented using a -gh72_errors.m:093: `:- pragma foreign_proc' declaration may not have any -gh72_errors.m:093: arguments whose types use the `direct_arg' data -gh72_errors.m:093: representations optimization, and whose modes indicate -gh72_errors.m:093: that they fill in partially instantiated terms. Arguments -gh72_errors.m:093: 2 and 3 of predicate `direct_arg_in_out_0_test_fproc_2'/5 -gh72_errors.m:093: mode 0 violate this prohibition. +Uncaught Mercury exception: +Software Error: map.lookup: key not found + Key Type: hlds.hlds_pred.pred_proc_id + Key Value: proc(pred_id(56), 0) + Value Type: transform_hlds.direct_arg_in_out.direct_arg_proc_in_out ../Mmake.common:169: recipe for target 'gh72_errors.err_res' failed make[3]: *** [gh72_errors.err_res] Error 1 make[3]: Target 'gh72_errors.runtest' not remade because of errors. make[3]: Leaving directory '/mnt/testing/run/build/mercury-srcdist-rotd-2021-01-13/tests/invalid'