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

HotSpot build with disabled PCH fails for Windows AArch64

    XMLWordPrintable

Details

    • b03
    • aarch64
    • windows

    Backports

      Description

        When cross-compiling OpenJDK for AArch64 architecture on Windows x86_64 machine, AND using the flag to disable Pre-Compiled Headers, the build fails.
        Here is the partial output from 'configure' command:

        ====================================================
        A new configuration has been successfully created in
        /home/user/projects/openjdk/jdk/build/windows-aarch64-server-release
        using configure arguments '--disable-precompiled-headers --disable-warnings-as-errors --with-boot-jdk=/home/User/.sdkman/candidates/java/18.0.1.fx-librca --with-jtreg=/home/User/Projects/OpenJDK/JTReg/build/images/jtreg --enable-option-checking=fatal --with-jvm-features=shenandoahgc --openjdk-target=aarch64-unknown-cygwin'.

        Configuration summary:
        * Name: windows-aarch64-server-release
        * Debug level: release
        * HS debug level: product
        * JVM variants: server
        * JVM features: server: 'cds compiler1 compiler2 epsilongc g1gc jfr jni-check jvmci jvmti management parallelgc serialgc services shenandoahgc vm-structs zgc'
        * OpenJDK target: OS: windows, CPU architecture: aarch64, address length: 64
        * Version string: 19-internal-adhoc.User.jdk (19-internal)
        * Source date: Determined at build time

        Tools summary:
        * Environment: cygwin version 3.3.5(0.341/5/3), 2022-05-13 12:27; windows version 10.0.19044.1706; prefix "/cygdrive"; root "C:\CYGWIN"
        * Boot JDK: openjdk version "18.0.1" 2022-04-19 OpenJDK Runtime Environment (build 18.0.1+12) OpenJDK 64-Bit Server VM (build 18.0.1+12, mixed mode, sharing) (at /home/User/.sdkman/candidates/java/18.0.1.fx-librca)
        * Toolchain: microsoft (Microsoft Visual Studio 2019)
        * C Compiler: Version 19.29.30138 (at /cygdrive/c/progra~2/micros~2/2019/enterp~1/vc/tools/msvc/1429~1.301/bin/hostx64/arm64/cl.exe)
        * C++ Compiler: Version 19.29.30138 (at /cygdrive/c/progra~2/micros~2/2019/enterp~1/vc/tools/msvc/1429~1.301/bin/hostx64/arm64/cl.exe)
        ====================================================

        And here is the partial output from 'make images' command at the moment of failure:

        ====================================================
        * For target hotspot_variant-server_libjvm_objs_vm_version_windows_aarch64.obj:
        vm_version_windows_aarch64.cpp
        C:\CYGWIN\home\user\projects\openjdk\jdk\src\hotspot\os_cpu\windows_aarch64\vm_version_windows_aarch64.cpp(88): error C2275: 'os': illegal use of this type as an expression
        C:\CYGWIN\home\user\projects\openjdk\jdk\src\hotspot\share\runtime/os.hpp(94): note: see declaration of 'os'
        C:\CYGWIN\home\user\projects\openjdk\jdk\src\hotspot\os_cpu\windows_aarch64\vm_version_windows_aarch64.cpp(88): error C3861: 'log_info': identifier not found
        C:\CYGWIN\home\user\projects\openjdk\jdk\src\hotspot\os_cpu\windows_aarch64\vm_version_windows_aarch64.cpp(88): error C2065: 'log_info': undeclared identifier
           ... (rest of output omitted)
        ====================================================

        Attachments

          Issue Links

            Activity

              People

                alexsch Alexandr Scherbatiy
                alexsch Alexandr Scherbatiy
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: