Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8262117

jextract crashes with javac compilation error "class u is already defined"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-panama
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux

      Description

      Many corpus tests involving X11 headers, result in jextract crash with error message "class u is already defined"

      libx11-dev's /usr/include/X11/Xlibint.h

      WARNING: Using incubator modules: jdk.incubator.foreign, jdk.incubator.jextract
      WARNING: skipping .__clang_max_align_nonce2 because of unsupported type usage: long double
      WARNING: skipping strtold because of unsupported type usage: long double
      WARNING: skipping qecvt because of unsupported type usage: long double
      WARNING: skipping qfcvt because of unsupported type usage: long double
      WARNING: skipping qgcvt because of unsupported type usage: long double
      WARNING: skipping qecvt_r because of unsupported type usage: long double
      WARNING: skipping qfcvt_r because of unsupported type usage: long double
      In memory compilation failed: warning: using incubating module(s): jdk.incubator.foreign
      Xlibint_h.java:9: error: cannot find symbol
      public final class Xlibint_h extends Xlibint_h_1 {
                                           ^
        symbol: class Xlibint_h_1
      Xlibint_h.java:27778: error: class u is already defined in class _xEvent$6
                  public static class u {
                                ^
      Xlibint_h.java:31209: error: class u is already defined in class _xEvent$6
                      public static class u {
                                    ^
      3 errors
      1 warning


      libafterimage-dev's

      /usr/include/libAfterImage/afterimage.h
      WARNING: Using incubator modules: jdk.incubator.jextract, jdk.incubator.foreign
      WARNING: skipping .__clang_max_align_nonce2 because of unsupported type usage: long double
      WARNING: Layout size not available for sys_errlist
      WARNING: varargs in callbacks is not supported: stream_func
      In memory compilation failed: warning: using incubating module(s): jdk.incubator.foreign
      afterimage_h.java:9: error: cannot find symbol
      public final class afterimage_h extends afterimage_h_5 {
                                              ^
        symbol: class afterimage_h_5
      afterimage_h.java:28732: error: class u is already defined in class _xEvent$6
                  public static class u {
                                ^
      afterimage_h.java:32163: error: class u is already defined in class _xEvent$6
                      public static class u {
                                    ^
      3 errors
      1 warning

      /usr/include/libAfterImage/asim_afterbase.h


      WARNING: Using incubator modules: jdk.incubator.foreign, jdk.incubator.jextract
      WARNING: skipping .__clang_max_align_nonce2 because of unsupported type usage: long double
      WARNING: Layout size not available for sys_errlist
      WARNING: varargs in callbacks is not supported: stream_func
      In memory compilation failed: warning: using incubating module(s): jdk.incubator.foreign
      afterbase_h.java:9: error: cannot find symbol
      public final class afterbase_h extends afterbase_h_4 {
                                             ^
        symbol: class afterbase_h_4
      afterbase_h.java:28732: error: class u is already defined in class _xEvent$6
                  public static class u {
                                ^
      afterbase_h.java:32163: error: class u is already defined in class _xEvent$6
                      public static class u {
                                    ^
      3 errors
      1 warning


      /usr/include/libAfterImage/xwrap.h

      WARNING: Using incubator modules: jdk.incubator.jextract, jdk.incubator.foreign
      WARNING: skipping .__clang_max_align_nonce2 because of unsupported type usage: long double
      In memory compilation failed: warning: using incubating module(s): jdk.incubator.foreign
      xwrap_h.java:9: error: cannot find symbol
      public final class xwrap_h extends xwrap_h_3 {
                                         ^
        symbol: class xwrap_h_3
      xwrap_h.java:28732: error: class u is already defined in class _xEvent$6
                  public static class u {
                                ^
      xwrap_h.java:32163: error: class u is already defined in class _xEvent$6
                      public static class u {
                                    ^
      3 errors
      1 warning

      /usr/include/libAfterImage/afterbase.h

      WARNING: Using incubator modules: jdk.incubator.foreign, jdk.incubator.jextract
      WARNING: skipping .__clang_max_align_nonce2 because of unsupported type usage: long double
      WARNING: Layout size not available for sys_errlist
      WARNING: varargs in callbacks is not supported: stream_func
      In memory compilation failed: warning: using incubating module(s): jdk.incubator.foreign
      afterbase_h.java:9: error: cannot find symbol
      public final class afterbase_h extends afterbase_h_4 {
                                             ^
        symbol: class afterbase_h_4
      afterbase_h.java:28732: error: class u is already defined in class _xEvent$6
                  public static class u {
                                ^
      afterbase_h.java:32163: error: class u is already defined in class _xEvent$6
                      public static class u {
                                    ^
      3 errors
      1 warning

      /usr/include/libAfterBase/audit.h

      WARNING: Using incubator modules: jdk.incubator.foreign, jdk.incubator.jextract
      WARNING: Layout size not available for sys_errlist
      WARNING: skipping .__clang_max_align_nonce2 because of unsupported type usage: long double
      In memory compilation failed: warning: using incubating module(s): jdk.incubator.foreign
      audit_h.java:9: error: cannot find symbol
      public final class audit_h extends audit_h_3 {
                                         ^
        symbol: class audit_h_3
      audit_h.java:29483: error: class u is already defined in class _xEvent$6
                  public static class u {
                                ^
      audit_h.java:32914: error: class u is already defined in class _xEvent$6
                      public static class u {
                                    ^
      3 errors
      1 warning

      /usr/include/libAfterBase/ashash.h

      WARNING: Using incubator modules: jdk.incubator.jextract, jdk.incubator.foreign
      WARNING: skipping .__clang_max_align_nonce2 because of unsupported type usage: long double
      In memory compilation failed: warning: using incubating module(s): jdk.incubator.foreign
      ashash_h.java:9: error: cannot find symbol
      public final class ashash_h extends ashash_h_3 {
                                          ^
        symbol: class ashash_h_3
      ashash_h.java:28732: error: class u is already defined in class _xEvent$6
                  public static class u {
                                ^
      ashash_h.java:32163: error: class u is already defined in class _xEvent$6
                      public static class u {
                                    ^
      3 errors
      1 warning

      /usr/include/libAfterBase/xwrap.h

      WARNING: Using incubator modules: jdk.incubator.jextract, jdk.incubator.foreign
      WARNING: skipping .__clang_max_align_nonce2 because of unsupported type usage: long double
      In memory compilation failed: warning: using incubating module(s): jdk.incubator.foreign
      xwrap_h.java:9: error: cannot find symbol
      public final class xwrap_h extends xwrap_h_2 {
                                         ^
        symbol: class xwrap_h_2
      xwrap_h.java:28732: error: class u is already defined in class _xEvent$6
                  public static class u {
                                ^
      xwrap_h.java:32163: error: class u is already defined in class _xEvent$6
                      public static class u {
                                    ^
      3 errors
      1 warning

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sundar Sundararajan Athijegannathan
              Reporter:
              sundar Sundararajan Athijegannathan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: