MERCURY_OPTIONS=
gmake[3]: Entering directory '/home/mercury/testing/run/build/mercury-srcdist-rotd-2025-03-28/tests/valid_seq'
{ echo MCFLAGS += '--grade java    --options-file /home/mercury/testing/run/build/mercury-srcdist-rotd-2025-03-28/stage2/Mercury.options --mercury-linkage static -j2 --flags ../TESTS_FLAGS --flags ../WS_FLAGS --use-subdirs  --intermodule-optimization  '; echo MCFLAGS += ' '; echo CFLAGS += '    '; echo JAVACFLAGS += '-J"-Xmx1024m"   '; echo CSCFLAGS += '   '; echo C2INITARGS += '/home/mercury/testing/run/build/mercury-srcdist-rotd-2025-03-28/stage2/library/mer_std.init /home/mercury/testing/run/build/mercury-srcdist-rotd-2025-03-28/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-2025-03-28/stage2/scripts/mmc --make --options-file - typeclass_exist_opt.depend
gmake[3]: Leaving directory '/home/mercury/testing/run/build/mercury-srcdist-rotd-2025-03-28/tests/valid_seq'
gmake[3]: Entering directory '/home/mercury/testing/run/build/mercury-srcdist-rotd-2025-03-28/tests/valid_seq'
{ echo MCFLAGS += '--grade java    --options-file /home/mercury/testing/run/build/mercury-srcdist-rotd-2025-03-28/stage2/Mercury.options --mercury-linkage static -j2 --flags ../TESTS_FLAGS --flags ../WS_FLAGS --use-subdirs  --intermodule-optimization  '; echo MCFLAGS += ' '; echo CFLAGS += '    '; echo JAVACFLAGS += '-J"-Xmx1024m"   '; echo CSCFLAGS += '   '; echo C2INITARGS += '/home/mercury/testing/run/build/mercury-srcdist-rotd-2025-03-28/stage2/library/mer_std.init /home/mercury/testing/run/build/mercury-srcdist-rotd-2025-03-28/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-2025-03-28/stage2/scripts/mmc --make --options-file - typeclass_exist_opt.class
Making Mercury/int3s/typeclass_exist_opt.int3
Making Mercury/ints/typeclass_exist_opt.int
Making Mercury/opts/typeclass_exist_opt.opt
Making Mercury/javas/jmercury/typeclass_exist_opt.java
Making Mercury/classes/jmercury/typeclass_exist_opt.class
Mercury/javas/jmercury/typeclass_exist_opt.java:15: error: package jmercury.runtime does not exist 
  private static final jmercury.runtime.EnumFunctorDesc typeclass_exist_opt__enum_functor_desc_simple_dynamic_block_0_0 = new jmercury.runtime.EnumFunctorDesc();
                                       ^
Mercury/javas/jmercury/typeclass_exist_opt.java:16: error: package jmercury.runtime does not exist 
  private static final jmercury.runtime.EnumFunctorDesc[] typeclass_exist_opt__enum_ordinal_ordered_simple_dynamic_block_0 = new jmercury.runtime.EnumFunctorDesc[1];
                                       ^
Mercury/javas/jmercury/typeclass_exist_opt.java:17: error: package jmercury.runtime does not exist 
  private static final jmercury.runtime.EnumFunctorDesc[] typeclass_exist_opt__enum_name_ordered_simple_dynamic_block_0 = new jmercury.runtime.EnumFunctorDesc[1];
                                       ^
Mercury/javas/jmercury/typeclass_exist_opt.java:19: error: package jmercury.runtime does not exist 
  public static final jmercury.runtime.TypeCtorInfo_Struct typeclass_exist_opt__type_ctor_info_simple_dynamic_block_0 = new jmercury.runtime.TypeCtorInfo_Struct();
                                      ^
Mercury/javas/jmercury/typeclass_exist_opt.java:22: error: package jmercury.runtime does not exist 
  private static final jmercury.runtime.TypeClassMethod[] typeclass_exist_opt__type_class_id_method_ids_dynamic_block_1 = new jmercury.runtime.TypeClassMethod[1];
                                       ^
Mercury/javas/jmercury/typeclass_exist_opt.java:23: error: package jmercury.runtime does not exist 
  private static final jmercury.runtime.TypeClassId typeclass_exist_opt__type_class_id_dynamic_block_1 = new jmercury.runtime.TypeClassId();
                                       ^
Mercury/javas/jmercury/typeclass_exist_opt.java:24: error: package jmercury.runtime does not exist 
  public static final jmercury.runtime.TypeClassDeclStruct typeclass_exist_opt__type_class_decl_dynamic_block_1 = new jmercury.runtime.TypeClassDeclStruct();
                                      ^
Mercury/javas/jmercury/typeclass_exist_opt.java:134: error: package jmercury.runtime does not exist 
    jmercury.runtime.TypeInfo_Struct TypeInfo_for_U_5,
                    ^
Mercury/javas/jmercury/typeclass_exist_opt.java:176: error: package jmercury.runtime does not exist 
    jmercury.runtime.TypeInfo_Struct TypeInfo_for_U_5,
                    ^
Mercury/javas/jmercury/typeclass_exist_opt.java:186: error: package jmercury.runtime does not exist 
    jmercury.runtime.TypeInfo_Struct TypeInfo_for_U_6,
                    ^
Mercury/javas/jmercury/typeclass_exist_opt.java:208: error: package builtin does not exist 
  public static builtin.Comparison_result_0
                       ^
Mercury/javas/jmercury/typeclass_exist_opt.java:254: error: package jmercury.runtime does not exist 
    implements jmercury.runtime.MethodPtr2
                               ^
Mercury/javas/jmercury/typeclass_exist_opt.java:296: error: package jmercury.runtime does not exist 
    implements jmercury.runtime.MethodPtr4
                               ^
Mercury/javas/jmercury/typeclass_exist_opt.java:319: error: package jmercury.runtime does not exist 
    extends jmercury.runtime.MercuryEnum
                            ^
Mercury/javas/jmercury/typeclass_exist_opt.java:320: error: package jmercury.runtime does not exist 
  implements jmercury.runtime.MercuryType
                             ^
Mercury/javas/jmercury/typeclass_exist_opt.java:15: error: package jmercury.runtime does not exist 
  private static final jmercury.runtime.EnumFunctorDesc typeclass_exist_opt__enum_functor_desc_simple_dynamic_block_0_0 = new jmercury.runtime.EnumFunctorDesc();
                                                                                                                                              ^
Mercury/javas/jmercury/typeclass_exist_opt.java:16: error: package jmercury.runtime does not exist 
  private static final jmercury.runtime.EnumFunctorDesc[] typeclass_exist_opt__enum_ordinal_ordered_simple_dynamic_block_0 = new jmercury.runtime.EnumFunctorDesc[1];
                                                                                                                                                 ^
Mercury/javas/jmercury/typeclass_exist_opt.java:17: error: package jmercury.runtime does not exist 
  private static final jmercury.runtime.EnumFunctorDesc[] typeclass_exist_opt__enum_name_ordered_simple_dynamic_block_0 = new jmercury.runtime.EnumFunctorDesc[1];
                                                                                                                                              ^
Mercury/javas/jmercury/typeclass_exist_opt.java:19: error: package jmercury.runtime does not exist 
  public static final jmercury.runtime.TypeCtorInfo_Struct typeclass_exist_opt__type_ctor_info_simple_dynamic_block_0 = new jmercury.runtime.TypeCtorInfo_Struct();
                                                                                                                                            ^
Mercury/javas/jmercury/typeclass_exist_opt.java:22: error: package jmercury.runtime does not exist 
  private static final jmercury.runtime.TypeClassMethod[] typeclass_exist_opt__type_class_id_method_ids_dynamic_block_1 = new jmercury.runtime.TypeClassMethod[1];
                                                                                                                                              ^
Mercury/javas/jmercury/typeclass_exist_opt.java:23: error: package jmercury.runtime does not exist 
  private static final jmercury.runtime.TypeClassId typeclass_exist_opt__type_class_id_dynamic_block_1 = new jmercury.runtime.TypeClassId();
                                                                                                                             ^
Mercury/javas/jmercury/typeclass_exist_opt.java:24: error: package jmercury.runtime does not exist 
  public static final jmercury.runtime.TypeClassDeclStruct typeclass_exist_opt__type_class_decl_dynamic_block_1 = new jmercury.runtime.TypeClassDeclStruct();
                                                                                                                                      ^
Mercury/javas/jmercury/typeclass_exist_opt.java:42: error: package jmercury.runtime does not exist 
      jmercury.runtime.TypeCtorRep.MR_TYPECTOR_REP_DUMMY,
                      ^
Mercury/javas/jmercury/typeclass_exist_opt.java:47: error: package jmercury.runtime does not exist 
      new jmercury.runtime.TypeFunctors(
                          ^
Mercury/javas/jmercury/typeclass_exist_opt.java:50: error: package jmercury.runtime does not exist 
      new jmercury.runtime.TypeLayout(
                          ^
Mercury/javas/jmercury/typeclass_exist_opt.java:73: error: package jmercury.runtime does not exist 
      new jmercury.runtime.TypeClassMethod(
                          ^
Mercury/javas/jmercury/typeclass_exist_opt.java:76: error: cannot find symbol 
        private_builtin.MR_PREDICATE
        ^
  symbol:   variable private_builtin
  location: class typeclass_exist_opt
Mercury/javas/jmercury/typeclass_exist_opt.java:105: error: cannot find symbol 
        ((java.lang.Object) ((/* typeclass_info */ java.lang.Object[]) io.base_typeclass_info_stream__stream__arity2__io__text_output_stream__arity0__io__state__arity0__)),
                                                                       ^
  symbol:   variable io
  location: class typeclass_exist_opt
Mercury/javas/jmercury/typeclass_exist_opt.java:106: error: cannot find symbol 
        ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(io.io__type_ctor_info_text_output_stream_0))),
                                                                        ^
  symbol:   variable io
  location: class typeclass_exist_opt
Mercury/javas/jmercury/typeclass_exist_opt.java:106: error: package jmercury.runtime does not exist 
        ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(io.io__type_ctor_info_text_output_stream_0))),
                                             ^
Mercury/javas/jmercury/typeclass_exist_opt.java:107: error: cannot find symbol 
        ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(io.io__type_ctor_info_state_0)))
                                                                        ^
  symbol:   variable io
  location: class typeclass_exist_opt
Mercury/javas/jmercury/typeclass_exist_opt.java:107: error: package jmercury.runtime does not exist 
        ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(io.io__type_ctor_info_state_0)))
                                             ^
Mercury/javas/jmercury/typeclass_exist_opt.java:111: error: cannot find symbol 
        ((java.lang.Object) ((/* typeclass_info */ java.lang.Object[]) io.base_typeclass_info_stream__output__arity2__io__text_output_stream__arity0__io__state__arity0__)),
                                                                       ^
  symbol:   variable io
  location: class typeclass_exist_opt
Mercury/javas/jmercury/typeclass_exist_opt.java:113: error: cannot find symbol 
        ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(io.io__type_ctor_info_text_output_stream_0))),
                                                                        ^
  symbol:   variable io
  location: class typeclass_exist_opt
Mercury/javas/jmercury/typeclass_exist_opt.java:113: error: package jmercury.runtime does not exist 
        ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(io.io__type_ctor_info_text_output_stream_0))),
                                             ^
Mercury/javas/jmercury/typeclass_exist_opt.java:114: error: cannot find symbol 
        ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(io.io__type_ctor_info_state_0)))
                                                                        ^
  symbol:   variable io
  location: class typeclass_exist_opt
Mercury/javas/jmercury/typeclass_exist_opt.java:114: error: package jmercury.runtime does not exist 
        ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(io.io__type_ctor_info_state_0)))
                                             ^
Mercury/javas/jmercury/typeclass_exist_opt.java:118: error: cannot find symbol 
        ((java.lang.Object) ((/* typeclass_info */ java.lang.Object[]) io.base_typeclass_info_stream__writer__arity3__io__text_output_stream__arity0__string__arity0__io__state__arity0__)),
                                                                       ^
  symbol:   variable io
  location: class typeclass_exist_opt
Mercury/javas/jmercury/typeclass_exist_opt.java:120: error: cannot find symbol 
        ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(io.io__type_ctor_info_text_output_stream_0))),
                                                                        ^
  symbol:   variable io
  location: class typeclass_exist_opt
Mercury/javas/jmercury/typeclass_exist_opt.java:120: error: package jmercury.runtime does not exist 
        ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(io.io__type_ctor_info_text_output_stream_0))),
                                             ^
Mercury/javas/jmercury/typeclass_exist_opt.java:121: 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_exist_opt
Mercury/javas/jmercury/typeclass_exist_opt.java:121: 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_exist_opt.java:122: error: cannot find symbol 
        ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(io.io__type_ctor_info_state_0)))
                                                                        ^
  symbol:   variable io
  location: class typeclass_exist_opt
Mercury/javas/jmercury/typeclass_exist_opt.java:122: error: package jmercury.runtime does not exist 
        ((java.lang.Object) (jmercury.runtime.TypeInfo_Struct.maybe_new(io.io__type_ctor_info_state_0)))
                                             ^
Mercury/javas/jmercury/typeclass_exist_opt.java:137: error: package jmercury.runtime does not exist 
    jmercury.runtime.TypeInfo_Struct ExistQTypeInfo_for_Q_8 = null;
                    ^
Mercury/javas/jmercury/typeclass_exist_opt.java:139: error: package jmercury.runtime does not exist 
    jmercury.runtime.TypeInfo_Struct TypeInfo_for_Q_4 = jmercury.runtime.TypeInfo_Struct.maybe_new(builtin.builtin__type_ctor_info_string_0);
                    ^
Mercury/javas/jmercury/typeclass_exist_opt.java:139: error: cannot find symbol 
    jmercury.runtime.TypeInfo_Struct TypeInfo_for_Q_4 = jmercury.runtime.TypeInfo_Struct.maybe_new(builtin.builtin__type_ctor_info_string_0);
                                                                                                   ^
  symbol:   variable builtin
  location: class typeclass_exist_opt
Mercury/javas/jmercury/typeclass_exist_opt.java:139: error: package jmercury.runtime does not exist 
    jmercury.runtime.TypeInfo_Struct TypeInfo_for_Q_4 = jmercury.runtime.TypeInfo_Struct.maybe_new(builtin.builtin__type_ctor_info_string_0);
                                                                        ^
Mercury/javas/jmercury/typeclass_exist_opt.java:160: error: package jmercury.runtime does not exist 
    jmercury.runtime.TypeInfo_Struct conv0_ExistQTypeInfo_for_Q_8 = null;
                    ^
Mercury/javas/jmercury/typeclass_exist_opt.java:163: error: package jmercury.runtime does not exist 
      java.lang.Object [] result = typeclass_exist_opt.ClassMethod_for_typeclass_exist_opt__dynamic_block____typeclass_exist_opt__simple_dynamic_block__arity0______typeclass_exist_opt__generate_block_3_3_p_0(((jmercury.runtime.TypeInfo_Struct) wrapper_arg_1), wrapper_arg_4);
                                                                                                                                                                                                                                  ^
Mercury/javas/jmercury/typeclass_exist_opt.java:164: error: package jmercury.runtime does not exist 
      conv0_ExistQTypeInfo_for_Q_8 = (jmercury.runtime.TypeInfo_Struct) result[0];
                                                      ^
Mercury/javas/jmercury/typeclass_exist_opt.java:191: error: package jmercury.runtime does not exist 
    jmercury.runtime.TypeInfo_Struct TypeInfo_for_Q_5 = null;
                    ^
Mercury/javas/jmercury/typeclass_exist_opt.java:193: error: package jmercury.runtime does not exist 
    jmercury.runtime.MethodPtr func_0 = ((jmercury.runtime.MethodPtr) ((java.lang.Object[]) ((java.lang.Object[]) TypeClassInfo_for_dynamic_block_4)[0])[5]);
                    ^
Mercury/javas/jmercury/typeclass_exist_opt.java:193: error: package jmercury.runtime does not exist 
    jmercury.runtime.MethodPtr func_0 = ((jmercury.runtime.MethodPtr) ((java.lang.Object[]) ((java.lang.Object[]) TypeClassInfo_for_dynamic_block_4)[0])[5]);
                                                          ^
Mercury/javas/jmercury/typeclass_exist_opt.java:197: error: package jmercury.runtime does not exist 
      java.lang.Object [] result = ((java.lang.Object[]) ((jmercury.runtime.MethodPtr4) func_0).call___0_0(((java.lang.Object) (((/* generic_type */ java.lang.Object) TypeClassInfo_for_dynamic_block_4))), ((java.lang.Object) (((java.lang.Object) (TypeInfo_for_U_6)))), ((java.lang.Object) (HeadVar__1_1)), ((java.lang.Object) (HeadVar__2_2))));
                                                                           ^
Mercury/javas/jmercury/typeclass_exist_opt.java:201: error: package jmercury.runtime does not exist 
    TypeInfo_for_Q_5 = ((jmercury.runtime.TypeInfo_Struct) conv1_TypeInfo_for_Q_5);
                                         ^
Mercury/javas/jmercury/typeclass_exist_opt.java:211: error: package builtin does not exist 
    builtin.Comparison_result_0 HeadVar__1_1 = builtin.Comparison_result_0.K0;
           ^
Mercury/javas/jmercury/typeclass_exist_opt.java:211: error: package builtin does not exist 
    builtin.Comparison_result_0 HeadVar__1_1 = builtin.Comparison_result_0.K0;
                                                      ^
Mercury/javas/jmercury/typeclass_exist_opt.java:222: error: package builtin does not exist 
    builtin.Comparison_result_0 conv0_HeadVar__1_1 = null;
           ^
Mercury/javas/jmercury/typeclass_exist_opt.java:283: error: package jmercury.runtime does not exist 
          throw new jmercury.runtime.UnreachableDefault();
                                    ^
60 errors
** Error making `Mercury/classes/jmercury/typeclass_exist_opt.class'.
gmake[3]: *** [/tmp/mmake.AkI6F6:1239: typeclass_exist_opt.class] Error 1
gmake[3]: Target 'typeclass_exist_opt.runtest' not remade because of errors.
gmake[3]: Leaving directory '/home/mercury/testing/run/build/mercury-srcdist-rotd-2025-03-28/tests/valid_seq'