MERCURY_OPTIONS= gmake[3]: Entering directory '/home/mercury/testing/run/build/mercury-srcdist-rotd-2026-10-19/tests/hard_coded' { echo MCFLAGS += '--grade java --options-file /home/mercury/testing/run/build/mercury-srcdist-rotd-2026-10-19/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 += '/home/mercury/testing/run/build/mercury-srcdist-rotd-2026-10-19/stage2/library/mer_std.init /home/mercury/testing/run/build/mercury-srcdist-rotd-2026-10-19/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 = '/home/mercury/testing/run/install'; echo LINKAGE = 'shared'; echo MERCURY_LINKAGE = 'shared'; } | /home/mercury/testing/run/build/mercury-srcdist-rotd-2026-10-19/stage2/scripts/mmc --make --options-file - rational_zero_arithmetic.depend gmake[3]: Leaving directory '/home/mercury/testing/run/build/mercury-srcdist-rotd-2026-10-19/tests/hard_coded' gmake[3]: Entering directory '/home/mercury/testing/run/build/mercury-srcdist-rotd-2026-10-19/tests/hard_coded' { echo MCFLAGS += '--grade java --options-file /home/mercury/testing/run/build/mercury-srcdist-rotd-2026-10-19/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 += '/home/mercury/testing/run/build/mercury-srcdist-rotd-2026-10-19/stage2/library/mer_std.init /home/mercury/testing/run/build/mercury-srcdist-rotd-2026-10-19/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 = '/home/mercury/testing/run/install'; echo LINKAGE = 'shared'; echo MERCURY_LINKAGE = 'shared'; } | /home/mercury/testing/run/build/mercury-srcdist-rotd-2026-10-19/stage2/scripts/mmc --make --options-file - rational_zero_arithmetic Making Mercury/int3s/rational_zero_arithmetic.int3 Making Mercury/ints/rational_zero_arithmetic.int Making Mercury/javas/jmercury/rational_zero_arithmetic.java Making Java class files Mercury/javas/jmercury/rational_zero_arithmetic.java:35: error: package list.List_1 does not exist private static final list.List_1.F_nil_0[] MR_scalar_common_4 = new list.List_1.F_nil_0[1]; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:85: error: package rational does not exist rational.Rational_0 X_6, ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:86: error: package rational does not exist rational.Rational_0 Y_7, ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:87: error: package rational does not exist rational.Rational_0 Expected_8) ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:135: error: package integer does not exist integer.Integer_0 A_4, ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:136: error: package integer does not exist integer.Integer_0 B_5, ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:137: error: package rational does not exist rational.Rational_0 X_6, ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:138: error: package integer does not exist integer.Integer_0 Zero_9) ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:210: error: package rational does not exist rational.Rational_0 X_6, ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:211: error: package integer does not exist integer.Integer_0 LambdaHeadVar__1_36) ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:288: error: package integer does not exist integer.Integer_0 Zero_9) ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:286: error: package rational does not exist private static rational.Rational_0 ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:509: error: package jmercury.runtime does not exist implements jmercury.runtime.MethodPtr1 ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:559: error: package jmercury.runtime does not exist implements jmercury.runtime.MethodPtr2 ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:15: error: package jmercury.runtime does not exist jmercury.runtime.JavaInternal.progname = "rational_zero_arithmetic"; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:16: error: package jmercury.runtime does not exist jmercury.runtime.JavaInternal.args = args; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:17: error: package jmercury.runtime does not exist jmercury.runtime.JavaInternal.exit_status = 0; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:18: error: cannot find symbol library.ML_std_library_init(); ^ symbol: variable library location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:19: error: cannot find symbol benchmarking.ML_initialise(); ^ symbol: variable benchmarking location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:25: error: package jmercury.runtime does not exist jmercury.runtime.JavaInternal.runMain(run_main); ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:26: error: cannot find symbol io.flush_output_3_p_0(io.stdout_stream_0_f_0()); ^ symbol: variable io location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:26: error: cannot find symbol io.flush_output_3_p_0(io.stdout_stream_0_f_0()); ^ symbol: variable io location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:27: error: cannot find symbol io.flush_output_3_p_0(io.stderr_stream_0_f_0()); ^ symbol: variable io location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:27: error: cannot find symbol io.flush_output_3_p_0(io.stderr_stream_0_f_0()); ^ symbol: variable io location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:28: error: package jmercury.runtime does not exist java.lang.System.exit(jmercury.runtime.JavaInternal.exit_status); ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:35: error: package list.List_1 does not exist private static final list.List_1.F_nil_0[] MR_scalar_common_4 = new list.List_1.F_nil_0[1]; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:43: error: cannot find symbol ((java.lang.Object) (rational.rational__type_ctor_info_rational_0)), ^ symbol: variable rational location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:43: error: illegal start of type ((java.lang.Object) (rational.rational__type_ctor_info_rational_0)), ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:44: error: cannot find symbol ((java.lang.Object) (rational.rational__type_ctor_info_rational_0)), ^ symbol: variable rational location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:44: error: illegal start of type ((java.lang.Object) (rational.rational__type_ctor_info_rational_0)), ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:45: error: cannot find symbol ((java.lang.Object) (rational.rational__type_ctor_info_rational_0)) ^ symbol: variable rational location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:45: error: illegal start of type ((java.lang.Object) (rational.rational__type_ctor_info_rational_0)) ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:52: error: cannot find symbol ((java.lang.Object) (integer.integer__type_ctor_info_integer_0)), ^ symbol: variable integer location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:52: error: illegal start of type ((java.lang.Object) (integer.integer__type_ctor_info_integer_0)), ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:53: error: cannot find symbol ((java.lang.Object) (integer.integer__type_ctor_info_integer_0)), ^ symbol: variable integer location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:53: error: illegal start of type ((java.lang.Object) (integer.integer__type_ctor_info_integer_0)), ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:54: error: cannot find symbol ((java.lang.Object) (rational.rational__type_ctor_info_rational_0)), ^ symbol: variable rational location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:54: error: illegal start of type ((java.lang.Object) (rational.rational__type_ctor_info_rational_0)), ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:55: error: cannot find symbol ((java.lang.Object) (integer.integer__type_ctor_info_integer_0)) ^ symbol: variable integer location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:55: error: illegal start of type ((java.lang.Object) (integer.integer__type_ctor_info_integer_0)) ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:62: error: cannot find symbol ((java.lang.Object) (integer.integer__type_ctor_info_integer_0)), ^ symbol: variable integer location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:62: error: illegal start of type ((java.lang.Object) (integer.integer__type_ctor_info_integer_0)), ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:63: error: cannot find symbol ((java.lang.Object) (rational.rational__type_ctor_info_rational_0)) ^ symbol: variable rational location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:63: error: illegal start of type ((java.lang.Object) (rational.rational__type_ctor_info_rational_0)) ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:70: error: cannot find symbol ((java.lang.Object) (rational.rational__type_ctor_info_rational_0)), ^ symbol: variable rational location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:70: error: illegal start of type ((java.lang.Object) (rational.rational__type_ctor_info_rational_0)), ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:71: error: cannot find symbol ((java.lang.Object) (integer.integer__type_ctor_info_integer_0)) ^ symbol: variable integer location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:71: error: illegal start of type ((java.lang.Object) (integer.integer__type_ctor_info_integer_0)) ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:74: error: package list.List_1 does not exist new list.List_1.F_nil_0(); ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:90: error: package rational does not exist rational.Rational_0 Var_28 = null; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:91: error: package rational does not exist rational.Rational_0 Var_29 = null; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:92: error: package rational does not exist rational.Rational_0 Var_59 = null; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:93: error: package rational does not exist rational.Rational_0 Var_61 = null; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:94: error: package rational does not exist rational.Rational_0 Var_62 = null; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:97: error: cannot find symbol Var_59 = rational.f_minus_2_f_0(X_6, Y_7); ^ symbol: variable rational location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:100: error: cannot find symbol succeeded = rational.__Unify____rational_0_0(Expected_8, Var_59); ^ symbol: variable rational location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:105: error: cannot find symbol Var_28 = rational.f_minus_2_f_0(X_6, Y_7); ^ symbol: variable rational location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:108: error: cannot find symbol Var_61 = rational.f_plus_2_f_0(Var_28, Y_7); ^ symbol: variable rational location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:111: error: cannot find symbol succeeded = rational.__Unify____rational_0_0(X_6, Var_61); ^ symbol: variable rational location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:116: error: cannot find symbol Var_29 = rational.f_minus_2_f_0(X_6, X_6); ^ symbol: variable rational location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:119: error: cannot find symbol Var_62 = rational.zero_0_f_0(); ^ symbol: variable rational location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:122: error: cannot find symbol succeeded = rational.__Unify____rational_0_0(Var_29, Var_62); ^ symbol: variable rational location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:126: error: cannot find symbol succeeded = rational.f_less_than_2_p_0(X_6, Y_7); ^ symbol: variable rational location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:141: error: package jmercury.runtime does not exist jmercury.runtime.TypeInfo_Struct TypeCtorInfo_57_57 = null; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:143: error: package list does not exist list.List_1 Var_35 = null; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:144: error: package integer does not exist integer.Integer_0 Var_42 = null; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:145: error: package list does not exist list.List_1 Var_43 = null; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:146: error: package list does not exist list.List_1 Var_44 = null; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:147: error: package integer does not exist integer.Integer_0 Var_45 = null; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:148: error: package integer does not exist integer.Integer_0 Var_46 = null; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:149: error: package list does not exist list.List_1 Var_47 = null; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:160: error: cannot find symbol Var_42 = integer.zero_0_f_0(); ^ symbol: variable integer location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:163: error: cannot find symbol Var_46 = integer.f_minus_1_f_0(A_4); ^ symbol: variable integer location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:166: error: cannot find symbol Var_45 = integer.rem_2_f_0(Var_46, B_5); ^ symbol: variable integer location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:168: error: package list does not exist Var_47 = (list.List_1) rational_zero_arithmetic.MR_scalar_common_4[0]; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:170: error: package list.List_1 does not exist Var_44 = new list.List_1.F_cons_2( ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:176: error: package list.List_1 does not exist Var_43 = new list.List_1.F_cons_2( ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:182: error: package list.List_1 does not exist Var_35 = new list.List_1.F_cons_2( ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:187: error: cannot find symbol TypeCtorInfo_57_57 = jmercury.runtime.TypeInfo_Struct.maybe_new(integer.integer__type_ctor_info_integer_0); ^ symbol: variable integer location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:187: error: package jmercury.runtime does not exist TypeCtorInfo_57_57 = jmercury.runtime.TypeInfo_Struct.maybe_new(integer.integer__type_ctor_info_integer_0); ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:189: error: cannot find symbol succeeded = list.all_true_2_p_0(TypeCtorInfo_57_57, Var_34, Var_35); ^ symbol: variable list location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:203: error: package rational does not exist succeeded = rational_zero_arithmetic.IntroducedFrom__pred__main__38__1_2_p_0(((rational.Rational_0) ((java.lang.Object[]) closure)[3]), ((integer.Integer_0) wrapper_arg_1)); ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:203: error: package integer does not exist succeeded = rational_zero_arithmetic.IntroducedFrom__pred__main__38__1_2_p_0(((rational.Rational_0) ((java.lang.Object[]) closure)[3]), ((integer.Integer_0) wrapper_arg_1)); ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:214: error: package rational does not exist rational.Rational_0 R_11 = null; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:215: error: package integer does not exist integer.Integer_0 Var_37 = null; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:217: error: package integer does not exist integer.Integer_0 Var_39 = null; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:218: error: package integer does not exist integer.Integer_0 Var_40 = null; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:219: error: package rational does not exist rational.Rational_0 Var_41 = null; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:220: error: package rational does not exist rational.Rational_0 Var_63 = null; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:221: error: package integer does not exist integer.Integer_0 Var_64 = null; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:222: error: package integer does not exist integer.Integer_0 Var_65 = null; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:223: error: package rational does not exist rational.Rational_0 Var_66 = null; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:224: error: package rational does not exist rational.Rational_0 Var_67 = null; ^ Mercury/javas/jmercury/rational_zero_arithmetic.java:227: error: cannot find symbol Var_37 = integer.integer_1_f_0(Var_38); ^ symbol: variable integer location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:230: error: cannot find symbol R_11 = rational.from_integers_2_f_0(LambdaHeadVar__1_36, Var_37); ^ symbol: variable rational location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:233: error: cannot find symbol Var_63 = rational.zero_0_f_0(); ^ symbol: variable rational location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:236: error: cannot find symbol succeeded = rational.__Unify____rational_0_0(R_11, Var_63); ^ symbol: variable rational location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:241: error: cannot find symbol Var_39 = rational.numer_1_f_0(R_11); ^ symbol: variable rational location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:244: error: cannot find symbol Var_64 = integer.zero_0_f_0(); ^ symbol: variable integer location: class rational_zero_arithmetic Mercury/javas/jmercury/rational_zero_arithmetic.java:247: error: cannot find symbol succeeded = integer.__Unify____integer_0_0(Var_39, Var_64); ^ symbol: variable integer location: class rational_zero_arithmetic 100 errors gmake[3]: *** [/tmp/mmake.cdZzLn:2440: rational_zero_arithmetic] Error 1 gmake[3]: Target 'rational_zero_arithmetic.runtest' not remade because of errors. gmake[3]: Leaving directory '/home/mercury/testing/run/build/mercury-srcdist-rotd-2026-10-19/tests/hard_coded'