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

Build failure on macOS with Xcode 13.0 as vfork is deprecated

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b17
    • CPU:
      x86
    • OS:
      os_x

      Backports

        Description

        This is on behalf of xiepeng.

        === Output from failing command(s) repeated here ===
        * For target hotspot_variant-server_libjvm_objs_os_posix.o:
        /Users/xiepeng/codes/opensource/bobjdk/src/hotspot/os/posix/os_posix.cpp:1887:26: error: 'vfork' is deprecated: Use posix_spawn or fork [-Werror,-Wdeprecated-declarations]
          pid = prefer_vfork ? ::vfork() : ::fork();
                                 ^
        /Users/xiepeng/dev/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/usr/include/unistd.h:604:1: note: 'vfork' has been explicitly marked deprecated here
        __deprecated_msg("Use posix_spawn or fork")
        ^
        /Users/xiepeng/dev/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/usr/include/sys/cdefs.h:208:48: note: expanded from macro '__deprecated_msg'
                #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                              ^
        1 error generated.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jiefu Jie Fu
                Reporter:
                jiefu Jie Fu
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: