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

Build failure with clang-15

XMLWordPrintable

    • b06

        -Wbitwise-instead-of-logical
        ```
        /Users/jiefu/jdk/src/hotspot/share/oops/generateOopMap.cpp:1735:10: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
          assert(in.is_reference() | in.is_value(), "sanity check");
          ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                   ||


        /Users/jiefu/jdk/src/hotspot/share/runtime/notificationThread.cpp:69:15: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
              while (((sensors_changed = LowMemoryDetector::has_pending_requests()) |
                     ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        /Users/jiefu/jdk/src/hotspot/share/runtime/notificationThread.cpp:69:15: note: cast one or both operands to int to silence this warning
        /Users/jiefu/jdk/src/hotspot/share/runtime/notificationThread.cpp:69:15: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
              while (((sensors_changed = LowMemoryDetector::has_pending_requests()) |
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                                    ||


        /Users/jiefu/jdk/src/hotspot/share/runtime/serviceThread.cpp:114:15: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
              while (((sensors_changed = (!UseNotificationThread && LowMemoryDetector::has_pending_requests())) |
                     ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        /Users/jiefu/jdk/src/hotspot/share/runtime/serviceThread.cpp:114:15: note: cast one or both operands to int to silence this warning
        /Users/jiefu/jdk/src/hotspot/share/runtime/serviceThread.cpp:114:15: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
              while (((sensors_changed = (!UseNotificationThread && LowMemoryDetector::has_pending_requests())) |
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        /Users/jiefu/jdk/src/hotspot/share/runtime/serviceThread.cpp:114:15: note: cast one or both operands to int to silence this warning
        /Users/jiefu/jdk/src/hotspot/share/runtime/serviceThread.cpp:114:15: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
              while (((sensors_changed = (!UseNotificationThread && LowMemoryDetector::has_pending_requests())) |
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        /Users/jiefu/jdk/src/hotspot/share/runtime/serviceThread.cpp:114:15: note: cast one or both operands to int to silence this warning
        /Users/jiefu/jdk/src/hotspot/share/runtime/serviceThread.cpp:114:15: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
              while (((sensors_changed = (!UseNotificationThread && LowMemoryDetector::has_pending_requests())) |
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        ```


        While building (LIBJLI LIBZIP LIBSPLASHSCREEN)
        ```
        * For target support_native_java.base_libzip_compress.o:
        /Users/jiefu/jdk/src/java.base/share/native/libzip/zlib/compress.c:46:13: error: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
        int ZEXPORT compress2(dest, destLen, source, sourceLen, level)
                    ^
        /Users/jiefu/jdk/src/java.base/share/native/libzip/zlib/compress.c:92:13: error: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
        int ZEXPORT compress(dest, destLen, source, sourceLen)
                    ^
        /Users/jiefu/jdk/src/java.base/share/native/libzip/zlib/compress.c:105:15: error: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
        uLong ZEXPORT compressBound(sourceLen)
                      ^
        3 errors generated.
        * For target support_native_java.base_libzip_deflate.o:
        ```
        Compiling infback.c (for libsplashscreen.dylib)


        Compiling awt_ImagingLib.c (for libawt.dylib)
        ```
        /Users/jiefu/jdk/src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:430:43: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
            if ((*sMlibFns[MLIB_CONVKERNCVT].fptr)(kdata, &scale, dkern, w, h,
                                                  ^
        /Users/jiefu/jdk/src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:458:44: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
            status = (*sMlibFns[MLIB_CONVMxN].fptr)(dst, src, kdata, w, h,
                                                   ^
        /Users/jiefu/jdk/src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:677:43: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
            if ((*sMlibFns[MLIB_CONVKERNCVT].fptr)(kdata, &scale, dkern, w, h,
                                                  ^
        /Users/jiefu/jdk/src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:706:44: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
            status = (*sMlibFns[MLIB_CONVMxN].fptr)(dst, src, kdata, w, h,
                                                   ^
        /Users/jiefu/jdk/src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:922:48: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
            if ((status = (*sMlibFns[MLIB_AFFINE].fptr)(dst, src, mtx, filter,
                                                       ^
        /Users/jiefu/jdk/src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:1140:48: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
            if ((status = (*sMlibFns[MLIB_AFFINE].fptr)(dst, src, mtx, filter,
                                                       ^
        /Users/jiefu/jdk/src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:1498:53: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
            else if ((status = (*sMlibFns[MLIB_LOOKUP].fptr)(dst, src,
                                                            ^
        /Users/jiefu/jdk/src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c:1736:55: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
            } else if ((status = (*sMlibFns[MLIB_LOOKUP].fptr)(dst, src,
                                                              ^
        8 errors generated.
        ```


        Compiling hb-font.cc (for libfontmanager.dylib)
        ```
        * For target support_native_java.desktop_libfontmanager_hb-aat-layout.o:
        In file included from /Users/jiefu/jdk/src/java.desktop/share/native/libharfbuzz/hb-aat-layout.cc:28:
        In file included from /Users/jiefu/jdk/src/java.desktop/share/native/libharfbuzz/hb.hh:483:
        /Users/jiefu/jdk/src/java.desktop/share/native/libharfbuzz/hb-vector.hh:229:27: error: builtin __has_trivial_assign is deprecated; use __is_trivially_assignable instead [-Werror,-Wdeprecated-builtins]
                    hb_enable_if (hb_is_trivially_copy_assignable(T))>
                                  ^
        /Users/jiefu/jdk/src/java.desktop/share/native/libharfbuzz/hb-meta.hh:193:44: note: expanded from macro 'hb_is_trivially_copy_assignable'
        #define hb_is_trivially_copy_assignable(T) __has_trivial_assign(T)
                                                   ^
        In file included from /Users/jiefu/jdk/src/java.desktop/share/native/libharfbuzz/hb-aat-layout.cc:28:
        In file included from /Users/jiefu/jdk/src/java.desktop/share/native/libharfbuzz/hb.hh:483:
        /Users/jiefu/jdk/src/java.desktop/share/native/libharfbuzz/hb-vector.hh:236:28: error: builtin __has_trivial_assign is deprecated; use __is_trivially_assignable instead [-Werror,-Wdeprecated-builtins]
                    hb_enable_if (!hb_is_trivially_copy_assignable(T))>
                                   ^
        /Users/jiefu/jdk/src/java.desktop/share/native/libharfbuzz/hb-meta.hh:193:44: note: expanded from macro 'hb_is_trivially_copy_assignable'
        #define hb_is_trivially_copy_assignable(T) __has_trivial_assign(T)
           ... (rest of output omitted)
        ```


        ```
        Creating support/modules_libs/java.desktop/libfontmanager.dylib from 0 file(s)
        /Users/jiefu/jdk/src/java.desktop/macosx/native/libawt_lwawt/awt/CPrinterJob.m:62:21: error: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Werror,-Wdeprecated-non-prototype]
        static NSPrintInfo* createDefaultNSPrintInfo();
                            ^
        /Users/jiefu/jdk/src/java.desktop/macosx/native/libawt_lwawt/awt/CPrinterJob.m:84:21: note: conflicting prototype is here
        static NSPrintInfo* createDefaultNSPrintInfo(JNIEnv* env, jstring printer)
                            ^
        1 error generated.
        make[3]: *** [/Users/jiefu/jdk/build/macosx-aarch64-server-fastdebug/support/native/java.desktop/libawt_lwawt/CPrinterJob.o] Error 1
        make[3]: *** Waiting for unfinished jobs....
        make[2]: *** [java.desktop-libs] Error 2
        ```


        ```
        Compiling NavigableTextAccessibility.m (for libawt_lwawt.dylib)
        /Users/jiefu/jdk/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLRenderer.m:215:23: error: variable length array folded to constant array as an extension [-Werror,-Wgnu-folding-constant]
                struct Vertex verts[POLYLINE_BUF_SIZE];
                              ^
        1 error generated.
        ```

              jiefu Jie Fu
              jiefu Jie Fu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: