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

jdk.jpackage/share/native/applauncher/JvmLauncher.cpp fails to build with GCC 6.3.0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 18, 19
    • Fix Version/s: 19
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b06

      Backports

        Description

        Happens after JDK-8274856, seems like a missing #include.

        * For target support_native_jdk.jpackage_libjpackageapplauncheraux_JvmLauncher.o:
        src/jdk.jpackage/share/native/applauncher/JvmLauncher.cpp: In member function 'int {anonymous}::JliLaunchData::initJvmlLauncherData(JvmlLauncherData*) const':
        src/jdk.jpackage/share/native/applauncher/JvmLauncher.cpp:289:54: error: expected primary-expression before ',' token
                                     offsetof(JvmlLauncherData, jliLaunchArgv), curPtr);
                                                              ^
        src/jdk.jpackage/share/native/applauncher/JvmLauncher.cpp:289:56: error: 'jliLaunchArgv' was not declared in this scope
                                     offsetof(JvmlLauncherData, jliLaunchArgv), curPtr);
                                                                ^~~~~~~~~~~~~
        src/jdk.jpackage/share/native/applauncher/JvmLauncher.cpp:289:69: error: 'offsetof' was not declared in this scope
                                     offsetof(JvmlLauncherData, jliLaunchArgv), curPtr);
                                                                             ^
        src/jdk.jpackage/share/native/applauncher/JvmLauncher.cpp:300:54: error: expected primary-expression before ',' token
                                     offsetof(JvmlLauncherData, envVarNames), curPtr);
                                                              ^
        src/jdk.jpackage/share/native/applauncher/JvmLauncher.cpp:310:54: error: expected primary-expression before ',' token
                                     offsetof(JvmlLauncherData, envVarValues), curPtr);
           ... (rest of output omitted)

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                shade Aleksey Shipilev
                Reporter:
                shade Aleksey Shipilev
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: