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

[hotspot] build fails with error on Mac OS vfork deprecated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Withdrawn
    • Icon: P1 P1
    • None
    • 18
    • hotspot
    • None
    • generic
    • os_x

      Compiling 948 files for jdk.hotspot.agent
      /Volumes/Elephant/Users/jlaskey/Git/jdk/open/src/hotspot/os/posix/os_posix.cpp:1888:26: error: 'vfork' is deprecated: Use posix_spawn or fork [-Werror,-Wdeprecated-declarations]
        pid = prefer_vfork ? ::vfork() : ::fork();
                               ^
      /Applications/Xcode.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")
      ^
      /Applications/Xcode.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.

      > cpp --version
      Apple clang version 13.0.0 (clang-1300.0.29.3)
      Target: x86_64-apple-darwin20.6.0
      Thread model: posix

            Unassigned Unassigned
            jlaskey Jim Laskey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: