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_bug2.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_bug2 Making Mercury/int3s/typeclass_order_bug2.int3 Making Mercury/ints/typeclass_order_bug2.int Making Mercury/javas/jmercury/typeclass_order_bug2.java Making Java class files Mercury/javas/jmercury/typeclass_order_bug2.java:35: error: package jmercury.runtime does not exist private static final jmercury.runtime.TypeClassMethod[] typeclass_order_bug2__type_class_id_method_ids_class_1 = new jmercury.runtime.TypeClassMethod[1]; ^ Mercury/javas/jmercury/typeclass_order_bug2.java:36: error: package jmercury.runtime does not exist private static final jmercury.runtime.TypeClassId typeclass_order_bug2__type_class_id_class_1 = new jmercury.runtime.TypeClassId(); ^ Mercury/javas/jmercury/typeclass_order_bug2.java:37: error: package jmercury.runtime does not exist public static final jmercury.runtime.TypeClassDeclStruct typeclass_order_bug2__type_class_decl_class_1 = new jmercury.runtime.TypeClassDeclStruct(); ^ Mercury/javas/jmercury/typeclass_order_bug2.java:95: error: package jmercury.runtime does not exist private static final jmercury.runtime.TypeInfo_Struct[] MR_scalar_common_1 = new jmercury.runtime.TypeInfo_Struct[1]; ^ Mercury/javas/jmercury/typeclass_order_bug2.java:97: error: package list.List_1 does not exist private static final list.List_1.F_nil_0[] MR_scalar_common_3 = new list.List_1.F_nil_0[1]; ^ Mercury/javas/jmercury/typeclass_order_bug2.java:98: error: package list.List_1 does not exist private static final list.List_1.F_cons_2[] MR_scalar_common_4 = new list.List_1.F_cons_2[3]; ^ Mercury/javas/jmercury/typeclass_order_bug2.java:164: error: package jmercury.runtime does not exist jmercury.runtime.TypeInfo_Struct TypeInfo_for_U_5, ^ Mercury/javas/jmercury/typeclass_order_bug2.java:203: error: package jmercury.runtime does not exist jmercury.runtime.TypeInfo_Struct TypeInfo_for_U_6, ^ Mercury/javas/jmercury/typeclass_order_bug2.java:205: error: package list does not exist list.List_1 HeadVar__2_2) ^ Mercury/javas/jmercury/typeclass_order_bug2.java:285: error: package jmercury.runtime does not exist jmercury.runtime.TypeInfo_Struct TypeInfo_for_U_6, ^ Mercury/javas/jmercury/typeclass_order_bug2.java:300: error: package jmercury.runtime does not exist implements jmercury.runtime.MethodPtr3 ^ Mercury/javas/jmercury/typeclass_order_bug2.java:320: error: package jmercury.runtime does not exist implements jmercury.runtime.MethodPtr5 ^ Mercury/javas/jmercury/typeclass_order_bug2.java:15: error: package jmercury.runtime does not exist jmercury.runtime.JavaInternal.progname = "typeclass_order_bug2"; ^ Mercury/javas/jmercury/typeclass_order_bug2.java:16: error: package jmercury.runtime does not exist jmercury.runtime.JavaInternal.args = args; ^ Mercury/javas/jmercury/typeclass_order_bug2.java:17: error: package jmercury.runtime does not exist jmercury.runtime.JavaInternal.exit_status = 0; ^ Mercury/javas/jmercury/typeclass_order_bug2.java:18: error: cannot find symbol library.ML_std_library_init(); ^ symbol: variable library location: class typeclass_order_bug2 Mercury/javas/jmercury/typeclass_order_bug2.java:19: error: cannot find symbol benchmarking.ML_initialise(); ^ symbol: variable benchmarking location: class typeclass_order_bug2 Mercury/javas/jmercury/typeclass_order_bug2.java:25: error: package jmercury.runtime does not exist jmercury.runtime.JavaInternal.runMain(run_main); ^ Mercury/javas/jmercury/typeclass_order_bug2.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_bug2 Mercury/javas/jmercury/typeclass_order_bug2.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_bug2 Mercury/javas/jmercury/typeclass_order_bug2.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_bug2 Mercury/javas/jmercury/typeclass_order_bug2.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_bug2 Mercury/javas/jmercury/typeclass_order_bug2.java:28: error: package jmercury.runtime does not exist java.lang.System.exit(jmercury.runtime.JavaInternal.exit_status); ^ Mercury/javas/jmercury/typeclass_order_bug2.java:35: error: package jmercury.runtime does not exist private static final jmercury.runtime.TypeClassMethod[] typeclass_order_bug2__type_class_id_method_ids_class_1 = new jmercury.runtime.TypeClassMethod[1]; ^ Mercury/javas/jmercury/typeclass_order_bug2.java:36: error: package jmercury.runtime does not exist private static final jmercury.runtime.TypeClassId typeclass_order_bug2__type_class_id_class_1 = new jmercury.runtime.TypeClassId(); ^ Mercury/javas/jmercury/typeclass_order_bug2.java:37: error: package jmercury.runtime does not exist public static final jmercury.runtime.TypeClassDeclStruct typeclass_order_bug2__type_class_decl_class_1 = new jmercury.runtime.TypeClassDeclStruct(); ^ Mercury/javas/jmercury/typeclass_order_bug2.java:68: error: package jmercury.runtime does not exist new jmercury.runtime.TypeClassMethod( ^ Mercury/javas/jmercury/typeclass_order_bug2.java:71: error: cannot find symbol private_builtin.MR_PREDICATE ^ symbol: variable private_builtin location: class typeclass_order_bug2 Mercury/javas/jmercury/typeclass_order_bug2.java:95: error: package jmercury.runtime does not exist private static final jmercury.runtime.TypeInfo_Struct[] MR_scalar_common_1 = new jmercury.runtime.TypeInfo_Struct[1]; ^ Mercury/javas/jmercury/typeclass_order_bug2.java:97: error: package list.List_1 does not exist private static final list.List_1.F_nil_0[] MR_scalar_common_3 = new list.List_1.F_nil_0[1]; ^ Mercury/javas/jmercury/typeclass_order_bug2.java:98: error: package list.List_1 does not exist private static final list.List_1.F_cons_2[] MR_scalar_common_4 = new list.List_1.F_cons_2[3]; ^ Mercury/javas/jmercury/typeclass_order_bug2.java:104: error: package jmercury.runtime does not exist new jmercury.runtime.TypeInfo_Struct( ^ Mercury/javas/jmercury/typeclass_order_bug2.java:105: error: cannot find symbol ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(list.list__type_ctor_info_list_1))), ^ symbol: variable list location: class typeclass_order_bug2 Mercury/javas/jmercury/typeclass_order_bug2.java:105: error: package jmercury.runtime does not exist ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(list.list__type_ctor_info_list_1))), ^ Mercury/javas/jmercury/typeclass_order_bug2.java:106: 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_bug2 Mercury/javas/jmercury/typeclass_order_bug2.java:106: 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_bug2.java:111: 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_bug2 Mercury/javas/jmercury/typeclass_order_bug2.java:111: 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_bug2.java:117: error: package jmercury.runtime does not exist ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(typeclass_order_bug2.MR_scalar_common_1[0]))) ^ Mercury/javas/jmercury/typeclass_order_bug2.java:120: error: package list.List_1 does not exist new list.List_1.F_nil_0(); ^ Mercury/javas/jmercury/typeclass_order_bug2.java:122: error: package list.List_1 does not exist new list.List_1.F_cons_2( ^ Mercury/javas/jmercury/typeclass_order_bug2.java:124: error: package list does not exist (list.List_1) typeclass_order_bug2.MR_scalar_common_3[0] ^ Mercury/javas/jmercury/typeclass_order_bug2.java:127: error: package list.List_1 does not exist new list.List_1.F_cons_2( ^ Mercury/javas/jmercury/typeclass_order_bug2.java:129: error: package list does not exist (list.List_1) typeclass_order_bug2.MR_scalar_common_4[0] ^ Mercury/javas/jmercury/typeclass_order_bug2.java:132: error: package list.List_1 does not exist new list.List_1.F_cons_2( ^ Mercury/javas/jmercury/typeclass_order_bug2.java:134: error: package list does not exist (list.List_1) typeclass_order_bug2.MR_scalar_common_4[1] ^ Mercury/javas/jmercury/typeclass_order_bug2.java:147: error: cannot find symbol ((java.lang.Object) (private_builtin.private_builtin__type_ctor_info_type_info_0)), ^ symbol: variable private_builtin location: class typeclass_order_bug2 Mercury/javas/jmercury/typeclass_order_bug2.java:147: error: illegal start of type ((java.lang.Object) (private_builtin.private_builtin__type_ctor_info_type_info_0)), ^ Mercury/javas/jmercury/typeclass_order_bug2.java:148: error: cannot find symbol ((java.lang.Object) (private_builtin.private_builtin__type_ctor_info_typeclass_info_0)), ^ symbol: variable private_builtin location: class typeclass_order_bug2 Mercury/javas/jmercury/typeclass_order_bug2.java:148: error: illegal start of type ((java.lang.Object) (private_builtin.private_builtin__type_ctor_info_typeclass_info_0)), ^ Mercury/javas/jmercury/typeclass_order_bug2.java:151: error: cannot find symbol ((java.lang.Object) (io.io__type_ctor_info_state_0)), ^ symbol: variable io location: class typeclass_order_bug2 Mercury/javas/jmercury/typeclass_order_bug2.java:151: error: illegal start of type ((java.lang.Object) (io.io__type_ctor_info_state_0)), ^ Mercury/javas/jmercury/typeclass_order_bug2.java:152: error: cannot find symbol ((java.lang.Object) (io.io__type_ctor_info_state_0)) ^ symbol: variable io location: class typeclass_order_bug2 Mercury/javas/jmercury/typeclass_order_bug2.java:152: error: illegal start of type ((java.lang.Object) (io.io__type_ctor_info_state_0)) ^ Mercury/javas/jmercury/typeclass_order_bug2.java:173: error: cannot find symbol io.write_int_3_p_0(Var_6); ^ symbol: variable io location: class typeclass_order_bug2 Mercury/javas/jmercury/typeclass_order_bug2.java:176: error: cannot find symbol io.nl_2_p_0(); ^ symbol: variable io location: class typeclass_order_bug2 Mercury/javas/jmercury/typeclass_order_bug2.java:179: error: cannot find symbol io.write_line_3_p_0(TypeInfo_for_U_5, HeadVar__1_1); ^ symbol: variable io location: class typeclass_order_bug2 Mercury/javas/jmercury/typeclass_order_bug2.java:195: error: package jmercury.runtime does not exist typeclass_order_bug2.ClassMethod_for_typeclass_order_bug2__class____int__arity0______typeclass_order_bug2__p_4_4_p_0(((jmercury.runtime.TypeInfo_Struct) wrapper_arg_1), wrapper_arg_2, ((java.lang.Integer) wrapper_arg_3).intValue()); ^ Mercury/javas/jmercury/typeclass_order_bug2.java:207: error: package jmercury.runtime does not exist jmercury.runtime.TypeInfo_Struct TypeInfo_18_10 = null; ^ Mercury/javas/jmercury/typeclass_order_bug2.java:208: error: package jmercury.runtime does not exist jmercury.runtime.TypeInfo_Struct TypeCtorInfo_19_11 = null; ^ Mercury/javas/jmercury/typeclass_order_bug2.java:225: error: cannot find symbol TypeInfo_18_10 = private_builtin.type_info_from_typeclass_info_3_p_0(TypeClassInfo_for_class_5, PolyConst1_9); ^ symbol: variable private_builtin location: class typeclass_order_bug2 Mercury/javas/jmercury/typeclass_order_bug2.java:227: error: cannot find symbol TypeCtorInfo_19_11 = jmercury.runtime.TypeInfo_Struct.maybe_new(io.io__type_ctor_info_state_0); ^ symbol: variable io location: class typeclass_order_bug2 Mercury/javas/jmercury/typeclass_order_bug2.java:227: error: package jmercury.runtime does not exist TypeCtorInfo_19_11 = jmercury.runtime.TypeInfo_Struct.maybe_new(io.io__type_ctor_info_state_0); ^ Mercury/javas/jmercury/typeclass_order_bug2.java:229: error: cannot find symbol conv0_STATE_VARIABLE_IO_11_8 = list.foldl_4_p_2(TypeInfo_18_10, TypeCtorInfo_19_11, Var_7, HeadVar__2_2, ((java.lang.Object) (0))); ^ symbol: variable list location: class typeclass_order_bug2 Mercury/javas/jmercury/typeclass_order_bug2.java:232: error: cannot find symbol io.write_line_3_p_0(TypeInfo_for_U_6, HeadVar__1_1); ^ symbol: variable io location: class typeclass_order_bug2 Mercury/javas/jmercury/typeclass_order_bug2.java:246: error: package jmercury.runtime does not exist typeclass_order_bug2.p_4_p_0(((jmercury.runtime.TypeInfo_Struct) ((java.lang.Object[]) closure)[3]), ((/* typeclass_info */ java.lang.Object[]) ((java.lang.Object[]) closure)[4]), ((java.lang.Object[]) closure)[5], wrapper_arg_1); ^ Mercury/javas/jmercury/typeclass_order_bug2.java:263: error: package jmercury.runtime does not exist typeclass_order_bug2.ClassMethod_for_typeclass_order_bug2__class____list__list__arity1______typeclass_order_bug2__p_4_4_p_0(((/* typeclass_info */ java.lang.Object[]) ((java.lang.Object[]) closure)[1]), ((jmercury.runtime.TypeInfo_Struct) wrapper_arg_1), wrapper_arg_2, ((list.List_1) wrapper_arg_3)); ^ Mercury/javas/jmercury/typeclass_order_bug2.java:263: error: package list does not exist typeclass_order_bug2.ClassMethod_for_typeclass_order_bug2__class____list__list__arity1______typeclass_order_bug2__p_4_4_p_0(((/* typeclass_info */ java.lang.Object[]) ((java.lang.Object[]) closure)[1]), ((jmercury.runtime.TypeInfo_Struct) wrapper_arg_1), wrapper_arg_2, ((list.List_1) wrapper_arg_3)); ^ Mercury/javas/jmercury/typeclass_order_bug2.java:272: error: package jmercury.runtime does not exist jmercury.runtime.TypeInfo_Struct TypeCtorInfo_16_16 = jmercury.runtime.TypeInfo_Struct.maybe_new(builtin.builtin__type_ctor_info_string_0); ^ Mercury/javas/jmercury/typeclass_order_bug2.java:272: error: cannot find symbol jmercury.runtime.TypeInfo_Struct TypeCtorInfo_16_16 = jmercury.runtime.TypeInfo_Struct.maybe_new(builtin.builtin__type_ctor_info_string_0); ^ symbol: variable builtin location: class typeclass_order_bug2 Mercury/javas/jmercury/typeclass_order_bug2.java:272: error: package jmercury.runtime does not exist jmercury.runtime.TypeInfo_Struct TypeCtorInfo_16_16 = jmercury.runtime.TypeInfo_Struct.maybe_new(builtin.builtin__type_ctor_info_string_0); ^ Mercury/javas/jmercury/typeclass_order_bug2.java:274: error: package list does not exist list.List_1 Var_7 = (list.List_1) typeclass_order_bug2.MR_scalar_common_4[2]; ^ Mercury/javas/jmercury/typeclass_order_bug2.java:274: error: package list does not exist list.List_1 Var_7 = (list.List_1) typeclass_order_bug2.MR_scalar_common_4[2]; ^ Mercury/javas/jmercury/typeclass_order_bug2.java:275: error: package jmercury.runtime does not exist jmercury.runtime.MethodPtr func_0 = ((jmercury.runtime.MethodPtr) ((java.lang.Object[]) ((java.lang.Object[]) TypeClassInfo_for_class_15)[0])[5]); ^ Mercury/javas/jmercury/typeclass_order_bug2.java:275: error: package jmercury.runtime does not exist jmercury.runtime.MethodPtr func_0 = ((jmercury.runtime.MethodPtr) ((java.lang.Object[]) ((java.lang.Object[]) TypeClassInfo_for_class_15)[0])[5]); ^ Mercury/javas/jmercury/typeclass_order_bug2.java:279: error: package jmercury.runtime does not exist conv1_STATE_VARIABLE_IO_5 = ((java.lang.Object) ((jmercury.runtime.MethodPtr5) func_0).call___0_0(((java.lang.Object) (((/* generic_type */ java.lang.Object) TypeClassInfo_for_class_15))), ((java.lang.Object) (((java.lang.Object) (TypeCtorInfo_16_16)))), ((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_bug2.java:290: error: package jmercury.runtime does not exist jmercury.runtime.MethodPtr func_0 = ((jmercury.runtime.MethodPtr) ((java.lang.Object[]) ((java.lang.Object[]) TypeClassInfo_for_class_5)[0])[5]); ^ Mercury/javas/jmercury/typeclass_order_bug2.java:290: error: package jmercury.runtime does not exist jmercury.runtime.MethodPtr func_0 = ((jmercury.runtime.MethodPtr) ((java.lang.Object[]) ((java.lang.Object[]) TypeClassInfo_for_class_5)[0])[5]); ^ Mercury/javas/jmercury/typeclass_order_bug2.java:294: error: package jmercury.runtime does not exist conv1_HeadVar__4_4 = ((java.lang.Object) ((jmercury.runtime.MethodPtr5) func_0).call___0_0(((java.lang.Object) (((/* generic_type */ java.lang.Object) TypeClassInfo_for_class_5))), ((java.lang.Object) (((java.lang.Object) (TypeInfo_for_U_6)))), ((java.lang.Object) (HeadVar__1_1)), ((java.lang.Object) (HeadVar__2_2)), ((java.lang.Object) (((java.lang.Object) (0)))))); ^ Mercury/javas/jmercury/typeclass_order_bug2.java:352: error: package jmercury.runtime does not exist throw new jmercury.runtime.UnreachableDefault(); ^ 80 errors make[3]: *** [/tmp/mmake.F9csIt:1244: typeclass_order_bug2] Error 1 make[3]: Target 'typeclass_order_bug2.runtest' not remade because of errors. make[3]: Leaving directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-07-24/tests/typeclasses'