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

MacOS: Xcode 9.3: Build Failure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • None
    • hotspot
    • None
    • gc
    • x86
    • os_x

      My Mac was updated recently to Xcode 9.3. This new version gets a hiccup on the following line:

      hs/src/hotspot/share/gc/g1/heapRegionSet.hpp:125:5: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
      #if HEAP_REGION_SET_FORCE_VERIFY

      hs/src/hotspot/share/gc/g1/heapRegionSet.hpp:53:38: note: expanded from macro 'HEAP_REGION_SET_FORCE_VERIFY'
      #define HEAP_REGION_SET_FORCE_VERIFY defined(ASSERT)

      Switching back to Xcode 9.2 makes the error go away. However, the question remains: does the preprocessor do the right thing, i.e. recursively substitute the #defines?

      This is a duplicate of JDK-8200550.

            Unassigned Unassigned
            lucy Lutz Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: