-
Bug
-
Resolution: Unresolved
-
P4
-
25
-
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 )
=== 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 )
- relates to
-
JDK-8302599 Extend ASan support to Microsoft Visual C++
-
- Resolved
-