MERCURY_OPTIONS= make[3]: Entering directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-07-24/tests/valid' { 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 --infer-all '; 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 - type_inf_ambig_test.depend make[3]: Leaving directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-07-24/tests/valid' make[3]: Entering directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-07-24/tests/valid' { 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 --infer-all '; 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 - type_inf_ambig_test.class Making Mercury/int3s/type_inf_ambig_test.int3 Making Mercury/ints/type_inf_ambig_test.int Making Mercury/javas/jmercury/type_inf_ambig_test.java type_inf_ambig_test.m:031: Inferred :- pred g(type_inf_ambig_test.l1). Making Mercury/classes/jmercury/type_inf_ambig_test.class Mercury/javas/jmercury/type_inf_ambig_test.java:32: error: package jmercury.runtime does not exist private static final jmercury.runtime.DuFunctorDesc type_inf_ambig_test__du_functor_desc_l1_0_0 = new jmercury.runtime.DuFunctorDesc(); ^ Mercury/javas/jmercury/type_inf_ambig_test.java:33: error: package jmercury.runtime does not exist private static final jmercury.runtime.PseudoTypeInfo[] type_inf_ambig_test__field_types_l1_0_1 = new jmercury.runtime.PseudoTypeInfo[2]; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:34: error: package jmercury.runtime does not exist private static final jmercury.runtime.DuFunctorDesc type_inf_ambig_test__du_functor_desc_l1_0_1 = new jmercury.runtime.DuFunctorDesc(); ^ Mercury/javas/jmercury/type_inf_ambig_test.java:35: error: package jmercury.runtime does not exist private static final jmercury.runtime.DuFunctorDesc[] type_inf_ambig_test__du_stag_ordered_l1_0_0 = new jmercury.runtime.DuFunctorDesc[2]; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:36: error: package jmercury.runtime does not exist private static final jmercury.runtime.DuPtagLayout[] type_inf_ambig_test__du_ptag_ordered_l1_0 = new jmercury.runtime.DuPtagLayout[1]; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:37: error: package jmercury.runtime does not exist private static final jmercury.runtime.DuFunctorDesc[] type_inf_ambig_test__du_name_ordered_l1_0 = new jmercury.runtime.DuFunctorDesc[2]; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:39: error: package jmercury.runtime does not exist public static final jmercury.runtime.TypeCtorInfo_Struct type_inf_ambig_test__type_ctor_info_l1_0 = new jmercury.runtime.TypeCtorInfo_Struct(); ^ Mercury/javas/jmercury/type_inf_ambig_test.java:40: error: package jmercury.runtime does not exist private static final jmercury.runtime.EnumFunctorDesc type_inf_ambig_test__enum_functor_desc_l2_0_0 = new jmercury.runtime.EnumFunctorDesc(); ^ Mercury/javas/jmercury/type_inf_ambig_test.java:41: error: package jmercury.runtime does not exist private static final jmercury.runtime.EnumFunctorDesc type_inf_ambig_test__enum_functor_desc_l2_0_1 = new jmercury.runtime.EnumFunctorDesc(); ^ Mercury/javas/jmercury/type_inf_ambig_test.java:42: error: package jmercury.runtime does not exist private static final jmercury.runtime.EnumFunctorDesc[] type_inf_ambig_test__enum_ordinal_ordered_l2_0 = new jmercury.runtime.EnumFunctorDesc[2]; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:43: error: package jmercury.runtime does not exist private static final jmercury.runtime.EnumFunctorDesc[] type_inf_ambig_test__enum_name_ordered_l2_0 = new jmercury.runtime.EnumFunctorDesc[2]; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:45: error: package jmercury.runtime does not exist public static final jmercury.runtime.TypeCtorInfo_Struct type_inf_ambig_test__type_ctor_info_l2_0 = new jmercury.runtime.TypeCtorInfo_Struct(); ^ Mercury/javas/jmercury/type_inf_ambig_test.java:487: error: package jmercury.runtime does not exist implements jmercury.runtime.MercuryType ^ Mercury/javas/jmercury/type_inf_ambig_test.java:225: error: package builtin does not exist private static builtin.Comparison_result_0 ^ Mercury/javas/jmercury/type_inf_ambig_test.java:528: error: package jmercury.runtime does not exist extends jmercury.runtime.MercuryEnum ^ Mercury/javas/jmercury/type_inf_ambig_test.java:529: error: package jmercury.runtime does not exist implements jmercury.runtime.MercuryType ^ Mercury/javas/jmercury/type_inf_ambig_test.java:302: error: package builtin does not exist private static builtin.Comparison_result_0 ^ Mercury/javas/jmercury/type_inf_ambig_test.java:427: error: package jmercury.runtime does not exist implements jmercury.runtime.MethodPtr2 ^ Mercury/javas/jmercury/type_inf_ambig_test.java:15: error: package jmercury.runtime does not exist jmercury.runtime.JavaInternal.progname = "type_inf_ambig_test"; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:16: error: package jmercury.runtime does not exist jmercury.runtime.JavaInternal.args = args; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:17: error: package jmercury.runtime does not exist jmercury.runtime.JavaInternal.exit_status = 0; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:18: error: cannot find symbol library.ML_std_library_init(); ^ symbol: variable library location: class type_inf_ambig_test Mercury/javas/jmercury/type_inf_ambig_test.java:19: error: cannot find symbol benchmarking.ML_initialise(); ^ symbol: variable benchmarking location: class type_inf_ambig_test Mercury/javas/jmercury/type_inf_ambig_test.java:25: error: package jmercury.runtime does not exist jmercury.runtime.JavaInternal.runMain(run_main); ^ Mercury/javas/jmercury/type_inf_ambig_test.java:26: error: cannot find symbol io.flush_output_3_p_0(io.stdout_stream_0_f_0()); ^ symbol: variable io location: class type_inf_ambig_test Mercury/javas/jmercury/type_inf_ambig_test.java:26: error: cannot find symbol io.flush_output_3_p_0(io.stdout_stream_0_f_0()); ^ symbol: variable io location: class type_inf_ambig_test Mercury/javas/jmercury/type_inf_ambig_test.java:27: error: cannot find symbol io.flush_output_3_p_0(io.stderr_stream_0_f_0()); ^ symbol: variable io location: class type_inf_ambig_test Mercury/javas/jmercury/type_inf_ambig_test.java:27: error: cannot find symbol io.flush_output_3_p_0(io.stderr_stream_0_f_0()); ^ symbol: variable io location: class type_inf_ambig_test Mercury/javas/jmercury/type_inf_ambig_test.java:28: error: package jmercury.runtime does not exist java.lang.System.exit(jmercury.runtime.JavaInternal.exit_status); ^ Mercury/javas/jmercury/type_inf_ambig_test.java:32: error: package jmercury.runtime does not exist private static final jmercury.runtime.DuFunctorDesc type_inf_ambig_test__du_functor_desc_l1_0_0 = new jmercury.runtime.DuFunctorDesc(); ^ Mercury/javas/jmercury/type_inf_ambig_test.java:33: error: package jmercury.runtime does not exist private static final jmercury.runtime.PseudoTypeInfo[] type_inf_ambig_test__field_types_l1_0_1 = new jmercury.runtime.PseudoTypeInfo[2]; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:34: error: package jmercury.runtime does not exist private static final jmercury.runtime.DuFunctorDesc type_inf_ambig_test__du_functor_desc_l1_0_1 = new jmercury.runtime.DuFunctorDesc(); ^ Mercury/javas/jmercury/type_inf_ambig_test.java:35: error: package jmercury.runtime does not exist private static final jmercury.runtime.DuFunctorDesc[] type_inf_ambig_test__du_stag_ordered_l1_0_0 = new jmercury.runtime.DuFunctorDesc[2]; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:36: error: package jmercury.runtime does not exist private static final jmercury.runtime.DuPtagLayout[] type_inf_ambig_test__du_ptag_ordered_l1_0 = new jmercury.runtime.DuPtagLayout[1]; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:37: error: package jmercury.runtime does not exist private static final jmercury.runtime.DuFunctorDesc[] type_inf_ambig_test__du_name_ordered_l1_0 = new jmercury.runtime.DuFunctorDesc[2]; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:39: error: package jmercury.runtime does not exist public static final jmercury.runtime.TypeCtorInfo_Struct type_inf_ambig_test__type_ctor_info_l1_0 = new jmercury.runtime.TypeCtorInfo_Struct(); ^ Mercury/javas/jmercury/type_inf_ambig_test.java:40: error: package jmercury.runtime does not exist private static final jmercury.runtime.EnumFunctorDesc type_inf_ambig_test__enum_functor_desc_l2_0_0 = new jmercury.runtime.EnumFunctorDesc(); ^ Mercury/javas/jmercury/type_inf_ambig_test.java:41: error: package jmercury.runtime does not exist private static final jmercury.runtime.EnumFunctorDesc type_inf_ambig_test__enum_functor_desc_l2_0_1 = new jmercury.runtime.EnumFunctorDesc(); ^ Mercury/javas/jmercury/type_inf_ambig_test.java:42: error: package jmercury.runtime does not exist private static final jmercury.runtime.EnumFunctorDesc[] type_inf_ambig_test__enum_ordinal_ordered_l2_0 = new jmercury.runtime.EnumFunctorDesc[2]; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:43: error: package jmercury.runtime does not exist private static final jmercury.runtime.EnumFunctorDesc[] type_inf_ambig_test__enum_name_ordered_l2_0 = new jmercury.runtime.EnumFunctorDesc[2]; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:45: error: package jmercury.runtime does not exist public static final jmercury.runtime.TypeCtorInfo_Struct type_inf_ambig_test__type_ctor_info_l2_0 = new jmercury.runtime.TypeCtorInfo_Struct(); ^ Mercury/javas/jmercury/type_inf_ambig_test.java:53: error: cannot find symbol private_builtin.MR_SECTAG_REMOTE_FULL_WORD, ^ symbol: variable private_builtin location: class type_inf_ambig_test Mercury/javas/jmercury/type_inf_ambig_test.java:61: error: cannot find symbol private_builtin.MR_FUNCTOR_SUBTYPE_NONE, ^ symbol: variable private_builtin location: class type_inf_ambig_test Mercury/javas/jmercury/type_inf_ambig_test.java:65: error: package jmercury.runtime does not exist (jmercury.runtime.PseudoTypeInfo) builtin.builtin__type_ctor_info_int_0; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:65: error: cannot find symbol (jmercury.runtime.PseudoTypeInfo) builtin.builtin__type_ctor_info_int_0; ^ symbol: variable builtin location: class type_inf_ambig_test Mercury/javas/jmercury/type_inf_ambig_test.java:67: error: package jmercury.runtime does not exist (jmercury.runtime.PseudoTypeInfo) type_inf_ambig_test.type_inf_ambig_test__type_ctor_info_l1_0; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:72: error: cannot find symbol private_builtin.MR_SECTAG_REMOTE_FULL_WORD, ^ symbol: variable private_builtin location: class type_inf_ambig_test Mercury/javas/jmercury/type_inf_ambig_test.java:80: error: cannot find symbol private_builtin.MR_FUNCTOR_SUBTYPE_NONE, ^ symbol: variable private_builtin location: class type_inf_ambig_test Mercury/javas/jmercury/type_inf_ambig_test.java:88: error: package jmercury.runtime does not exist new jmercury.runtime.DuPtagLayout( ^ Mercury/javas/jmercury/type_inf_ambig_test.java:90: error: cannot find symbol private_builtin.MR_SECTAG_REMOTE_FULL_WORD, ^ symbol: variable private_builtin location: class type_inf_ambig_test Mercury/javas/jmercury/type_inf_ambig_test.java:108: error: package jmercury.runtime does not exist jmercury.runtime.TypeCtorRep.MR_TYPECTOR_REP_DU, ^ Mercury/javas/jmercury/type_inf_ambig_test.java:113: error: package jmercury.runtime does not exist new jmercury.runtime.TypeFunctors( ^ Mercury/javas/jmercury/type_inf_ambig_test.java:116: error: package jmercury.runtime does not exist new jmercury.runtime.TypeLayout( ^ Mercury/javas/jmercury/type_inf_ambig_test.java:148: error: package jmercury.runtime does not exist jmercury.runtime.TypeCtorRep.MR_TYPECTOR_REP_ENUM, ^ Mercury/javas/jmercury/type_inf_ambig_test.java:153: error: package jmercury.runtime does not exist new jmercury.runtime.TypeFunctors( ^ Mercury/javas/jmercury/type_inf_ambig_test.java:156: error: package jmercury.runtime does not exist new jmercury.runtime.TypeLayout( ^ Mercury/javas/jmercury/type_inf_ambig_test.java:233: error: package builtin does not exist builtin.Comparison_result_0 HeadVar__1_1 = null; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:240: error: package builtin does not exist HeadVar__1_1 = builtin.Comparison_result_0.K0; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:249: error: package builtin does not exist builtin.Comparison_result_0 SubResult1_6 = null; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:253: error: package builtin does not exist SubResult1_6 = builtin.Comparison_result_0.K1; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:258: error: package builtin does not exist SubResult1_6 = builtin.Comparison_result_0.K2; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:260: error: package builtin does not exist SubResult1_6 = builtin.Comparison_result_0.K0; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:262: error: package builtin.Comparison_result_0 does not exist succeeded = (SubResult1_6.MR_value != builtin.Comparison_result_0.K0.MR_value); ^ Mercury/javas/jmercury/type_inf_ambig_test.java:277: error: package builtin does not exist HeadVar__1_1 = builtin.Comparison_result_0.K2; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:280: error: package builtin does not exist HeadVar__1_1 = builtin.Comparison_result_0.K1; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:282: error: package builtin does not exist HeadVar__1_1 = builtin.Comparison_result_0.K0; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:293: error: package builtin does not exist builtin.Comparison_result_0 conv0_HeadVar__1_1 = null; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:308: error: package builtin does not exist builtin.Comparison_result_0 HeadVar__1_1 = null; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:309: error: cannot find symbol int Cast_HeadVar1_4 = (int) HeadVar__2_2.MR_value; ^ symbol: variable MR_value location: variable HeadVar__2_2 of type L2_0 Mercury/javas/jmercury/type_inf_ambig_test.java:310: error: cannot find symbol int Cast_HeadVar2_5 = (int) HeadVar__3_3.MR_value; ^ symbol: variable MR_value location: variable HeadVar__3_3 of type L2_0 Mercury/javas/jmercury/type_inf_ambig_test.java:314: error: package builtin does not exist HeadVar__1_1 = builtin.Comparison_result_0.K1; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:319: error: package builtin does not exist HeadVar__1_1 = builtin.Comparison_result_0.K2; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:321: error: package builtin does not exist HeadVar__1_1 = builtin.Comparison_result_0.K0; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:332: error: package builtin does not exist builtin.Comparison_result_0 conv0_HeadVar__1_1 = null; ^ Mercury/javas/jmercury/type_inf_ambig_test.java:407: error: cannot find symbol boolean succeeded = (HeadVar__1_1.MR_value == HeadVar__2_2.MR_value); ^ symbol: variable MR_value location: variable HeadVar__1_1 of type L2_0 Mercury/javas/jmercury/type_inf_ambig_test.java:407: error: cannot find symbol boolean succeeded = (HeadVar__1_1.MR_value == HeadVar__2_2.MR_value); ^ symbol: variable MR_value location: variable HeadVar__2_2 of type L2_0 Mercury/javas/jmercury/type_inf_ambig_test.java:474: error: package jmercury.runtime does not exist throw new jmercury.runtime.UnreachableDefault(); ^ 77 errors ** Error making `Mercury/classes/jmercury/type_inf_ambig_test.class'. make[3]: *** [/tmp/mmake.aOXiJr:1500: type_inf_ambig_test.class] Error 1 make[3]: Target 'type_inf_ambig_test.runtest' not remade because of errors. make[3]: Leaving directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-07-24/tests/valid' ERROR OUTPUT type_inf_ambig_test.m:031: Inferred :- pred g(type_inf_ambig_test.l1). END OF THE ERROR OUTPUT