MERCURY_OPTIONS= make[3]: Entering directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-07-24/tests/typeclasses' { 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 --use-subdirs '; 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 - typeclass_order_bug.depend make[3]: Leaving directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-07-24/tests/typeclasses' make[3]: Entering directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-07-24/tests/typeclasses' { 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 --use-subdirs '; 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 - typeclass_order_bug Making Mercury/int3s/typeclass_order_bug.int3 Making Mercury/ints/typeclass_order_bug.int Making Mercury/javas/jmercury/typeclass_order_bug.java typeclass_order_bug.m:019: In module `typeclass_order_bug': typeclass_order_bug.m:019: warning: module `maybe' is imported in the typeclass_order_bug.m:019: interface, but it is not used in the interface. Making Java class files Mercury/javas/jmercury/typeclass_order_bug.java:34: error: package jmercury.runtime does not exist private static final jmercury.runtime.TypeClassMethod[] typeclass_order_bug__type_class_id_method_ids_p_2 = new jmercury.runtime.TypeClassMethod[1]; ^ Mercury/javas/jmercury/typeclass_order_bug.java:35: error: package jmercury.runtime does not exist private static final jmercury.runtime.TypeClassId typeclass_order_bug__type_class_id_p_2 = new jmercury.runtime.TypeClassId(); ^ Mercury/javas/jmercury/typeclass_order_bug.java:36: error: package jmercury.runtime does not exist public static final jmercury.runtime.TypeClassDeclStruct typeclass_order_bug__type_class_decl_p_2 = new jmercury.runtime.TypeClassDeclStruct(); ^ Mercury/javas/jmercury/typeclass_order_bug.java:84: error: package jmercury.runtime does not exist private static final jmercury.runtime.TypeInfo_Struct[] MR_scalar_common_1 = new jmercury.runtime.TypeInfo_Struct[2]; ^ Mercury/javas/jmercury/typeclass_order_bug.java:86: error: package maybe.Maybe_1 does not exist private static final maybe.Maybe_1.Yes_1[] MR_scalar_common_3 = new maybe.Maybe_1.Yes_1[2]; ^ Mercury/javas/jmercury/typeclass_order_bug.java:125: error: package jmercury.runtime does not exist jmercury.runtime.TypeInfo_Struct TypeInfo_for_T_5, ^ Mercury/javas/jmercury/typeclass_order_bug.java:126: error: package jmercury.runtime does not exist jmercury.runtime.TypeInfo_Struct TypeInfo_for_U_6, ^ Mercury/javas/jmercury/typeclass_order_bug.java:127: error: package maybe does not exist maybe.Maybe_1 HeadVar__1_1, ^ Mercury/javas/jmercury/typeclass_order_bug.java:128: error: package maybe does not exist maybe.Maybe_1 HeadVar__2_2) ^ Mercury/javas/jmercury/typeclass_order_bug.java:203: error: package jmercury.runtime does not exist implements jmercury.runtime.MethodPtr4 ^ Mercury/javas/jmercury/typeclass_order_bug.java:15: error: package jmercury.runtime does not exist jmercury.runtime.JavaInternal.progname = "typeclass_order_bug"; ^ Mercury/javas/jmercury/typeclass_order_bug.java:16: error: package jmercury.runtime does not exist jmercury.runtime.JavaInternal.args = args; ^ Mercury/javas/jmercury/typeclass_order_bug.java:17: error: package jmercury.runtime does not exist jmercury.runtime.JavaInternal.exit_status = 0; ^ Mercury/javas/jmercury/typeclass_order_bug.java:18: error: cannot find symbol library.ML_std_library_init(); ^ symbol: variable library location: class typeclass_order_bug Mercury/javas/jmercury/typeclass_order_bug.java:19: error: cannot find symbol benchmarking.ML_initialise(); ^ symbol: variable benchmarking location: class typeclass_order_bug Mercury/javas/jmercury/typeclass_order_bug.java:25: error: package jmercury.runtime does not exist jmercury.runtime.JavaInternal.runMain(run_main); ^ Mercury/javas/jmercury/typeclass_order_bug.java:26: error: cannot find symbol io.flush_output_3_p_0(io.stdout_stream_0_f_0()); ^ symbol: variable io location: class typeclass_order_bug Mercury/javas/jmercury/typeclass_order_bug.java:26: error: cannot find symbol io.flush_output_3_p_0(io.stdout_stream_0_f_0()); ^ symbol: variable io location: class typeclass_order_bug Mercury/javas/jmercury/typeclass_order_bug.java:27: error: cannot find symbol io.flush_output_3_p_0(io.stderr_stream_0_f_0()); ^ symbol: variable io location: class typeclass_order_bug Mercury/javas/jmercury/typeclass_order_bug.java:27: error: cannot find symbol io.flush_output_3_p_0(io.stderr_stream_0_f_0()); ^ symbol: variable io location: class typeclass_order_bug Mercury/javas/jmercury/typeclass_order_bug.java:28: error: package jmercury.runtime does not exist java.lang.System.exit(jmercury.runtime.JavaInternal.exit_status); ^ Mercury/javas/jmercury/typeclass_order_bug.java:34: error: package jmercury.runtime does not exist private static final jmercury.runtime.TypeClassMethod[] typeclass_order_bug__type_class_id_method_ids_p_2 = new jmercury.runtime.TypeClassMethod[1]; ^ Mercury/javas/jmercury/typeclass_order_bug.java:35: error: package jmercury.runtime does not exist private static final jmercury.runtime.TypeClassId typeclass_order_bug__type_class_id_p_2 = new jmercury.runtime.TypeClassId(); ^ Mercury/javas/jmercury/typeclass_order_bug.java:36: error: package jmercury.runtime does not exist public static final jmercury.runtime.TypeClassDeclStruct typeclass_order_bug__type_class_decl_p_2 = new jmercury.runtime.TypeClassDeclStruct(); ^ Mercury/javas/jmercury/typeclass_order_bug.java:57: error: package jmercury.runtime does not exist new jmercury.runtime.TypeClassMethod( ^ Mercury/javas/jmercury/typeclass_order_bug.java:60: error: cannot find symbol private_builtin.MR_PREDICATE ^ symbol: variable private_builtin location: class typeclass_order_bug Mercury/javas/jmercury/typeclass_order_bug.java:84: error: package jmercury.runtime does not exist private static final jmercury.runtime.TypeInfo_Struct[] MR_scalar_common_1 = new jmercury.runtime.TypeInfo_Struct[2]; ^ Mercury/javas/jmercury/typeclass_order_bug.java:86: error: package maybe.Maybe_1 does not exist private static final maybe.Maybe_1.Yes_1[] MR_scalar_common_3 = new maybe.Maybe_1.Yes_1[2]; ^ Mercury/javas/jmercury/typeclass_order_bug.java:90: error: package jmercury.runtime does not exist new jmercury.runtime.TypeInfo_Struct( ^ Mercury/javas/jmercury/typeclass_order_bug.java:91: error: cannot find symbol ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(maybe.maybe__type_ctor_info_maybe_1))), ^ symbol: variable maybe location: class typeclass_order_bug Mercury/javas/jmercury/typeclass_order_bug.java:91: error: package jmercury.runtime does not exist ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(maybe.maybe__type_ctor_info_maybe_1))), ^ Mercury/javas/jmercury/typeclass_order_bug.java:92: error: cannot find symbol ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(builtin.builtin__type_ctor_info_int_0))) ^ symbol: variable builtin location: class typeclass_order_bug Mercury/javas/jmercury/typeclass_order_bug.java:92: error: package jmercury.runtime does not exist ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(builtin.builtin__type_ctor_info_int_0))) ^ Mercury/javas/jmercury/typeclass_order_bug.java:95: error: package jmercury.runtime does not exist new jmercury.runtime.TypeInfo_Struct( ^ Mercury/javas/jmercury/typeclass_order_bug.java:96: error: cannot find symbol ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(maybe.maybe__type_ctor_info_maybe_1))), ^ symbol: variable maybe location: class typeclass_order_bug Mercury/javas/jmercury/typeclass_order_bug.java:96: error: package jmercury.runtime does not exist ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(maybe.maybe__type_ctor_info_maybe_1))), ^ Mercury/javas/jmercury/typeclass_order_bug.java:97: error: cannot find symbol ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(builtin.builtin__type_ctor_info_string_0))) ^ symbol: variable builtin location: class typeclass_order_bug Mercury/javas/jmercury/typeclass_order_bug.java:97: error: package jmercury.runtime does not exist ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(builtin.builtin__type_ctor_info_string_0))) ^ Mercury/javas/jmercury/typeclass_order_bug.java:102: error: cannot find symbol ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(builtin.builtin__type_ctor_info_int_0))), ^ symbol: variable builtin location: class typeclass_order_bug Mercury/javas/jmercury/typeclass_order_bug.java:102: error: package jmercury.runtime does not exist ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(builtin.builtin__type_ctor_info_int_0))), ^ Mercury/javas/jmercury/typeclass_order_bug.java:103: error: cannot find symbol ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(builtin.builtin__type_ctor_info_string_0))), ^ symbol: variable builtin location: class typeclass_order_bug Mercury/javas/jmercury/typeclass_order_bug.java:103: error: package jmercury.runtime does not exist ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(builtin.builtin__type_ctor_info_string_0))), ^ Mercury/javas/jmercury/typeclass_order_bug.java:104: error: package jmercury.runtime does not exist ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(typeclass_order_bug.MR_scalar_common_1[0]))), ^ Mercury/javas/jmercury/typeclass_order_bug.java:105: error: package jmercury.runtime does not exist ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(typeclass_order_bug.MR_scalar_common_1[1]))) ^ Mercury/javas/jmercury/typeclass_order_bug.java:108: error: package maybe.Maybe_1 does not exist new maybe.Maybe_1.Yes_1( ^ Mercury/javas/jmercury/typeclass_order_bug.java:112: error: package maybe.Maybe_1 does not exist new maybe.Maybe_1.Yes_1( ^ Mercury/javas/jmercury/typeclass_order_bug.java:130: error: package jmercury.runtime does not exist jmercury.runtime.TypeInfo_Struct TypeCtorInfo_13_8 = jmercury.runtime.TypeInfo_Struct.maybe_new(maybe.maybe__type_ctor_info_maybe_1); ^ Mercury/javas/jmercury/typeclass_order_bug.java:130: error: cannot find symbol jmercury.runtime.TypeInfo_Struct TypeCtorInfo_13_8 = jmercury.runtime.TypeInfo_Struct.maybe_new(maybe.maybe__type_ctor_info_maybe_1); ^ symbol: variable maybe location: class typeclass_order_bug Mercury/javas/jmercury/typeclass_order_bug.java:130: error: package jmercury.runtime does not exist jmercury.runtime.TypeInfo_Struct TypeCtorInfo_13_8 = jmercury.runtime.TypeInfo_Struct.maybe_new(maybe.maybe__type_ctor_info_maybe_1); ^ Mercury/javas/jmercury/typeclass_order_bug.java:131: error: package jmercury.runtime does not exist jmercury.runtime.TypeInfo_Struct TypeInfo_14_9 = null; ^ Mercury/javas/jmercury/typeclass_order_bug.java:132: error: package jmercury.runtime does not exist jmercury.runtime.TypeInfo_Struct TypeInfo_15_10 = null; ^ Mercury/javas/jmercury/typeclass_order_bug.java:135: error: package jmercury.runtime does not exist TypeInfo_14_9 = new jmercury.runtime.TypeInfo_Struct( ^ Mercury/javas/jmercury/typeclass_order_bug.java:141: error: cannot find symbol io.write_line_3_p_0(TypeInfo_14_9, ((java.lang.Object) (HeadVar__1_1))); ^ symbol: variable io location: class typeclass_order_bug Mercury/javas/jmercury/typeclass_order_bug.java:144: error: package jmercury.runtime does not exist TypeInfo_15_10 = new jmercury.runtime.TypeInfo_Struct( ^ Mercury/javas/jmercury/typeclass_order_bug.java:150: error: cannot find symbol io.write_line_3_p_0(TypeInfo_15_10, ((java.lang.Object) (HeadVar__2_2))); ^ symbol: variable io location: class typeclass_order_bug Mercury/javas/jmercury/typeclass_order_bug.java:165: error: package jmercury.runtime does not exist typeclass_order_bug.ClassMethod_for_typeclass_order_bug__p____maybe__maybe__arity1__maybe__maybe__arity1______typeclass_order_bug__m_4_4_p_0(((jmercury.runtime.TypeInfo_Struct) ((java.lang.Object[]) closure)[1]), ((jmercury.runtime.TypeInfo_Struct) ((java.lang.Object[]) closure)[2]), ((maybe.Maybe_1) wrapper_arg_1), ((maybe.Maybe_1) wrapper_arg_2)); ^ Mercury/javas/jmercury/typeclass_order_bug.java:165: error: package jmercury.runtime does not exist typeclass_order_bug.ClassMethod_for_typeclass_order_bug__p____maybe__maybe__arity1__maybe__maybe__arity1______typeclass_order_bug__m_4_4_p_0(((jmercury.runtime.TypeInfo_Struct) ((java.lang.Object[]) closure)[1]), ((jmercury.runtime.TypeInfo_Struct) ((java.lang.Object[]) closure)[2]), ((maybe.Maybe_1) wrapper_arg_1), ((maybe.Maybe_1) wrapper_arg_2)); ^ Mercury/javas/jmercury/typeclass_order_bug.java:165: error: package maybe does not exist typeclass_order_bug.ClassMethod_for_typeclass_order_bug__p____maybe__maybe__arity1__maybe__maybe__arity1______typeclass_order_bug__m_4_4_p_0(((jmercury.runtime.TypeInfo_Struct) ((java.lang.Object[]) closure)[1]), ((jmercury.runtime.TypeInfo_Struct) ((java.lang.Object[]) closure)[2]), ((maybe.Maybe_1) wrapper_arg_1), ((maybe.Maybe_1) wrapper_arg_2)); ^ Mercury/javas/jmercury/typeclass_order_bug.java:165: error: package maybe does not exist typeclass_order_bug.ClassMethod_for_typeclass_order_bug__p____maybe__maybe__arity1__maybe__maybe__arity1______typeclass_order_bug__m_4_4_p_0(((jmercury.runtime.TypeInfo_Struct) ((java.lang.Object[]) closure)[1]), ((jmercury.runtime.TypeInfo_Struct) ((java.lang.Object[]) closure)[2]), ((maybe.Maybe_1) wrapper_arg_1), ((maybe.Maybe_1) wrapper_arg_2)); ^ Mercury/javas/jmercury/typeclass_order_bug.java:176: error: package jmercury.runtime does not exist jmercury.runtime.MethodPtr func_0 = ((jmercury.runtime.MethodPtr) ((java.lang.Object[]) ((java.lang.Object[]) TypeClassInfo_for_p_5)[0])[5]); ^ Mercury/javas/jmercury/typeclass_order_bug.java:176: error: package jmercury.runtime does not exist jmercury.runtime.MethodPtr func_0 = ((jmercury.runtime.MethodPtr) ((java.lang.Object[]) ((java.lang.Object[]) TypeClassInfo_for_p_5)[0])[5]); ^ Mercury/javas/jmercury/typeclass_order_bug.java:180: error: package jmercury.runtime does not exist conv1_HeadVar__4_4 = ((java.lang.Object) ((jmercury.runtime.MethodPtr4) func_0).call___0_0(((java.lang.Object) (((/* generic_type */ java.lang.Object) TypeClassInfo_for_p_5))), ((java.lang.Object) (HeadVar__1_1)), ((java.lang.Object) (HeadVar__2_2)), ((java.lang.Object) (((java.lang.Object) (0)))))); ^ Mercury/javas/jmercury/typeclass_order_bug.java:188: error: package maybe does not exist maybe.Maybe_1 Var_6 = (maybe.Maybe_1) typeclass_order_bug.MR_scalar_common_3[0]; ^ Mercury/javas/jmercury/typeclass_order_bug.java:188: error: package maybe does not exist maybe.Maybe_1 Var_6 = (maybe.Maybe_1) typeclass_order_bug.MR_scalar_common_3[0]; ^ Mercury/javas/jmercury/typeclass_order_bug.java:189: error: package maybe does not exist maybe.Maybe_1 Var_7 = (maybe.Maybe_1) typeclass_order_bug.MR_scalar_common_3[1]; ^ Mercury/javas/jmercury/typeclass_order_bug.java:189: error: package maybe does not exist maybe.Maybe_1 Var_7 = (maybe.Maybe_1) typeclass_order_bug.MR_scalar_common_3[1]; ^ Mercury/javas/jmercury/typeclass_order_bug.java:190: error: package jmercury.runtime does not exist jmercury.runtime.MethodPtr func_0 = ((jmercury.runtime.MethodPtr) ((java.lang.Object[]) ((java.lang.Object[]) TypeClassInfo_for_p_11)[0])[5]); ^ Mercury/javas/jmercury/typeclass_order_bug.java:190: error: package jmercury.runtime does not exist jmercury.runtime.MethodPtr func_0 = ((jmercury.runtime.MethodPtr) ((java.lang.Object[]) ((java.lang.Object[]) TypeClassInfo_for_p_11)[0])[5]); ^ Mercury/javas/jmercury/typeclass_order_bug.java:194: error: package jmercury.runtime does not exist conv1_STATE_VARIABLE_IO_8_8 = ((java.lang.Object) ((jmercury.runtime.MethodPtr4) func_0).call___0_0(((java.lang.Object) (((/* generic_type */ java.lang.Object) TypeClassInfo_for_p_11))), ((java.lang.Object) (((java.lang.Object) (Var_6)))), ((java.lang.Object) (((java.lang.Object) (Var_7)))), ((java.lang.Object) (((java.lang.Object) (0)))))); ^ Mercury/javas/jmercury/typeclass_order_bug.java:197: error: cannot find symbol io.nl_2_p_0(); ^ symbol: variable io location: class typeclass_order_bug 70 errors make[3]: *** [/tmp/mmake.1CVj4D:1244: typeclass_order_bug] Error 1 make[3]: Target 'typeclass_order_bug.runtest' not remade because of errors. make[3]: Leaving directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-07-24/tests/typeclasses' ERROR OUTPUT typeclass_order_bug.m:019: In module `typeclass_order_bug': typeclass_order_bug.m:019: warning: module `maybe' is imported in the typeclass_order_bug.m:019: interface, but it is not used in the interface. END OF THE ERROR OUTPUT