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

ASan build fails with MSVC 2022

XMLWordPrintable

    • generic
    • windows

      When setting "--enable-asan" in the build using VS2022, the build fails:
      === Output from failing command(s) repeated here ===
      * For target hotspot_variant-server_libjvm_objs_chunkManager.obj:
      chunkManager.cpp
      c:\devel\jdk_2\jdk\src\hotspot\share\sanitizers/address.hpp(29): fatal error C1083: Cannot open include file: 'sanitizer/asan_interface.h': No such file or directory
         ... (rest of output omitted)
      * For target hotspot_variant-server_libjvm_objs_static_BUILD_LIBJVM_pch.obj:
      BUILD_LIBJVM_pch.cpp
      c:\devel\build_jdk_2_asan\hotspot\variant-server\libjvm\objs\static\BUILD_LIBJVM_pch.cpp : error C2220: the following warning is treated as an error
      c:\devel\build_jdk_2_asan\hotspot\variant-server\libjvm\objs\static\BUILD_LIBJVM_pch.cpp : warning C5072: ASAN enabled without debug information emission. Enable debug info for better ASAN error reporting


      Looks like the asan_interface.h header is located at a special location , should we extend the input paths ?
      ( Here it can be found at MSVC\14.31.31103\crt\src\sanitizer )

            Unassigned Unassigned
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: