MERCURY_OPTIONS=
gmake[3]: Entering directory '/home/mercury/testing/run/build/mercury-srcdist-rotd-2025-03-30/tests/valid'
{ echo MCFLAGS += '--grade java    --options-file /home/mercury/testing/run/build/mercury-srcdist-rotd-2025-03-30/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-2025-03-30/stage2/library/mer_std.init /home/mercury/testing/run/build/mercury-srcdist-rotd-2025-03-30/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-30/stage2/scripts/mmc --make --options-file - nasty_func_test.depend
gmake[3]: Leaving directory '/home/mercury/testing/run/build/mercury-srcdist-rotd-2025-03-30/tests/valid'
gmake[3]: Entering directory '/home/mercury/testing/run/build/mercury-srcdist-rotd-2025-03-30/tests/valid'
{ echo MCFLAGS += '--grade java    --options-file /home/mercury/testing/run/build/mercury-srcdist-rotd-2025-03-30/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-2025-03-30/stage2/library/mer_std.init /home/mercury/testing/run/build/mercury-srcdist-rotd-2025-03-30/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-30/stage2/scripts/mmc --make --options-file - nasty_func_test.class
Making Mercury/int3s/nasty_func_test.int3
Making Mercury/ints/nasty_func_test.int
Making Mercury/javas/jmercury/nasty_func_test.java
Making Mercury/classes/jmercury/nasty_func_test.class
Mercury/javas/jmercury/nasty_func_test.java:15: error: package jmercury.runtime does not exist 
  private static final jmercury.runtime.PseudoTypeInfo[] nasty_func_test__field_types_foo_0_0 = new jmercury.runtime.PseudoTypeInfo[1];
                                       ^
Mercury/javas/jmercury/nasty_func_test.java:16: error: package jmercury.runtime does not exist 
  private static final jmercury.runtime.DuFunctorDesc nasty_func_test__du_functor_desc_foo_0_0 = new jmercury.runtime.DuFunctorDesc();
                                       ^
Mercury/javas/jmercury/nasty_func_test.java:17: error: package jmercury.runtime does not exist 
  private static final jmercury.runtime.DuFunctorDesc nasty_func_test__du_functor_desc_foo_0_1 = new jmercury.runtime.DuFunctorDesc();
                                       ^
Mercury/javas/jmercury/nasty_func_test.java:18: error: package jmercury.runtime does not exist 
  private static final jmercury.runtime.DuFunctorDesc[] nasty_func_test__du_stag_ordered_foo_0_0 = new jmercury.runtime.DuFunctorDesc[2];
                                       ^
Mercury/javas/jmercury/nasty_func_test.java:19: error: package jmercury.runtime does not exist 
  private static final jmercury.runtime.DuPtagLayout[] nasty_func_test__du_ptag_ordered_foo_0 = new jmercury.runtime.DuPtagLayout[1];
                                       ^
Mercury/javas/jmercury/nasty_func_test.java:20: error: package jmercury.runtime does not exist 
  private static final jmercury.runtime.DuFunctorDesc[] nasty_func_test__du_name_ordered_foo_0 = new jmercury.runtime.DuFunctorDesc[2];
                                       ^
Mercury/javas/jmercury/nasty_func_test.java:22: error: package jmercury.runtime does not exist 
  public static final jmercury.runtime.TypeCtorInfo_Struct nasty_func_test__type_ctor_info_foo_0 = new jmercury.runtime.TypeCtorInfo_Struct();
                                      ^
Mercury/javas/jmercury/nasty_func_test.java:272: error: package jmercury.runtime does not exist 
    implements jmercury.runtime.MercuryType
                               ^
Mercury/javas/jmercury/nasty_func_test.java:128: error: package builtin does not exist 
  public static builtin.Comparison_result_0
                       ^
Mercury/javas/jmercury/nasty_func_test.java:230: error: package jmercury.runtime does not exist 
    implements jmercury.runtime.MethodPtr2
                               ^
Mercury/javas/jmercury/nasty_func_test.java:15: error: package jmercury.runtime does not exist 
  private static final jmercury.runtime.PseudoTypeInfo[] nasty_func_test__field_types_foo_0_0 = new jmercury.runtime.PseudoTypeInfo[1];
                                                                                                                    ^
Mercury/javas/jmercury/nasty_func_test.java:16: error: package jmercury.runtime does not exist 
  private static final jmercury.runtime.DuFunctorDesc nasty_func_test__du_functor_desc_foo_0_0 = new jmercury.runtime.DuFunctorDesc();
                                                                                                                     ^
Mercury/javas/jmercury/nasty_func_test.java:17: error: package jmercury.runtime does not exist 
  private static final jmercury.runtime.DuFunctorDesc nasty_func_test__du_functor_desc_foo_0_1 = new jmercury.runtime.DuFunctorDesc();
                                                                                                                     ^
Mercury/javas/jmercury/nasty_func_test.java:18: error: package jmercury.runtime does not exist 
  private static final jmercury.runtime.DuFunctorDesc[] nasty_func_test__du_stag_ordered_foo_0_0 = new jmercury.runtime.DuFunctorDesc[2];
                                                                                                                       ^
Mercury/javas/jmercury/nasty_func_test.java:19: error: package jmercury.runtime does not exist 
  private static final jmercury.runtime.DuPtagLayout[] nasty_func_test__du_ptag_ordered_foo_0 = new jmercury.runtime.DuPtagLayout[1];
                                                                                                                    ^
Mercury/javas/jmercury/nasty_func_test.java:20: error: package jmercury.runtime does not exist 
  private static final jmercury.runtime.DuFunctorDesc[] nasty_func_test__du_name_ordered_foo_0 = new jmercury.runtime.DuFunctorDesc[2];
                                                                                                                     ^
Mercury/javas/jmercury/nasty_func_test.java:22: error: package jmercury.runtime does not exist 
  public static final jmercury.runtime.TypeCtorInfo_Struct nasty_func_test__type_ctor_info_foo_0 = new jmercury.runtime.TypeCtorInfo_Struct();
                                                                                                                       ^
Mercury/javas/jmercury/nasty_func_test.java:27: error: package jmercury.runtime does not exist 
      (jmercury.runtime.PseudoTypeInfo) builtin.builtin__type_ctor_info_int_0;
                       ^
Mercury/javas/jmercury/nasty_func_test.java:27: error: cannot find symbol 
      (jmercury.runtime.PseudoTypeInfo) builtin.builtin__type_ctor_info_int_0;
                                        ^
  symbol:   variable builtin
  location: class nasty_func_test
Mercury/javas/jmercury/nasty_func_test.java:32: error: cannot find symbol 
      private_builtin.MR_SECTAG_REMOTE_FULL_WORD,
      ^
  symbol:   variable private_builtin
  location: class nasty_func_test
Mercury/javas/jmercury/nasty_func_test.java:40: error: cannot find symbol 
      private_builtin.MR_FUNCTOR_SUBTYPE_NONE,
      ^
  symbol:   variable private_builtin
  location: class nasty_func_test
Mercury/javas/jmercury/nasty_func_test.java:47: error: cannot find symbol 
      private_builtin.MR_SECTAG_REMOTE_FULL_WORD,
      ^
  symbol:   variable private_builtin
  location: class nasty_func_test
Mercury/javas/jmercury/nasty_func_test.java:55: error: cannot find symbol 
      private_builtin.MR_FUNCTOR_SUBTYPE_NONE,
      ^
  symbol:   variable private_builtin
  location: class nasty_func_test
Mercury/javas/jmercury/nasty_func_test.java:63: error: package jmercury.runtime does not exist 
      new jmercury.runtime.DuPtagLayout(
                          ^
Mercury/javas/jmercury/nasty_func_test.java:65: error: cannot find symbol 
        private_builtin.MR_SECTAG_REMOTE_FULL_WORD,
        ^
  symbol:   variable private_builtin
  location: class nasty_func_test
Mercury/javas/jmercury/nasty_func_test.java:83: error: package jmercury.runtime does not exist 
      jmercury.runtime.TypeCtorRep.MR_TYPECTOR_REP_DU,
                      ^
Mercury/javas/jmercury/nasty_func_test.java:88: error: package jmercury.runtime does not exist 
      new jmercury.runtime.TypeFunctors(
                          ^
Mercury/javas/jmercury/nasty_func_test.java:91: error: package jmercury.runtime does not exist 
      new jmercury.runtime.TypeLayout(
                          ^
Mercury/javas/jmercury/nasty_func_test.java:134: error: package builtin does not exist 
    builtin.Comparison_result_0 HeadVar__1_1 = null;
           ^
Mercury/javas/jmercury/nasty_func_test.java:140: error: package builtin does not exist 
      HeadVar__1_1 = builtin.Comparison_result_0.K0;
                            ^
Mercury/javas/jmercury/nasty_func_test.java:150: error: package builtin does not exist 
            HeadVar__1_1 = builtin.Comparison_result_0.K1;
                                  ^
Mercury/javas/jmercury/nasty_func_test.java:155: error: package builtin does not exist 
              HeadVar__1_1 = builtin.Comparison_result_0.K2;
                                    ^
Mercury/javas/jmercury/nasty_func_test.java:157: error: package builtin does not exist 
              HeadVar__1_1 = builtin.Comparison_result_0.K0;
                                    ^
Mercury/javas/jmercury/nasty_func_test.java:161: error: package builtin does not exist 
          HeadVar__1_1 = builtin.Comparison_result_0.K1;
                                ^
Mercury/javas/jmercury/nasty_func_test.java:164: error: package builtin does not exist 
          HeadVar__1_1 = builtin.Comparison_result_0.K2;
                                ^
Mercury/javas/jmercury/nasty_func_test.java:166: error: package builtin does not exist 
          HeadVar__1_1 = builtin.Comparison_result_0.K0;
                                ^
Mercury/javas/jmercury/nasty_func_test.java:176: error: package builtin does not exist 
    builtin.Comparison_result_0 conv0_HeadVar__1_1 = null;
           ^
Mercury/javas/jmercury/nasty_func_test.java:259: error: package jmercury.runtime does not exist 
          throw new jmercury.runtime.UnreachableDefault();
                                    ^
38 errors
** Error making `Mercury/classes/jmercury/nasty_func_test.class'.
gmake[3]: *** [/tmp/mmake.fESUMy:1497: nasty_func_test.class] Error 1
gmake[3]: Target 'nasty_func_test.runtest' not remade because of errors.
gmake[3]: Leaving directory '/home/mercury/testing/run/build/mercury-srcdist-rotd-2025-03-30/tests/valid'