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

Error C2666 compiling ICU 73.1 with VS 2022 17.6

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx21
    • javafx
    • None
    • web
    • x86_64
    • windows_10

      The latest release of Visual Studio 2022 version 17.6.3 prints the following error when compiling WebKit on Windows for the gradle task ':web:compileNativeWin':

        fmtable.cpp(59): error C2666: 'icu_73::Measure::operator ==':
        overloaded functions have similar conversions

      The build fails due to the error.

      SYSTEM / OS / JAVA RUNTIME INFORMATION

      The following build tools were used:

      - CMake version 3.26.4
      - Visual Studio Community 2022 version 17.6.3, build number 17.6.33801.468
      - OpenJDK Runtime Environment (build 19.0.2+7-44)
      - Apache Ant(TM) version 1.10.13 compiled on January 4 2023

      STEPS TO REPRODUCE

      Build a simulated release of JavaFX as follows:

      $ bash gradlew --no-daemon -PCONF=Release -PPROMOTED_BUILD_NUMBER=12 \
        -PHUDSON_BUILD_NUMBER=101 -PHUDSON_JOB_NAME=jfx -PCOMPILE_WEBKIT=true \
        -PCOMPILE_MEDIA=true -PBUILD_LIBAV_STUBS=true sdk jmods javadoc

      EXPECTED RESULTS

      The build should succeed.

      ACTUAL RESULT

      The build fails with the messages:

      ----------
      > Task :web:compileNativeWin FAILED

      FAILURE: Build failed with an exception.

      * Where:
      Build file 'C:\cygwin64\home\john\src\jfx\build.gradle' line: 3655

      * What went wrong:
      Execution failed for task ':web:compileNativeWin'.
      > Process 'command 'perl'' finished with non-zero exit value 1

        ...

      BUILD FAILED in 9m 43s
      65 actionable tasks: 65 executed
      ----------

      See the attached log file for details.

      SOURCE CODE FOR AN EXECUTABLE TEST CASE

      None.

      WORKAROUND

      One workaround is to downgrade to Visual Studio Build Tools 2022 version 17.5.5, build number 17.5.33627.172, which builds the WebKit library without errors. This version is available on the following page in the table entry dated May 1, 2023:

      Visual Studio 2022 Release History: Fixed version bootstrappers
      https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-history#fixed-version-bootstrappers

            hmeda Hima Bindu Meda
            jgneff John Neffenger
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: