Building targets 'images test-image' in configuration 'linux-x86_64-server-fastdebug' Compiling up to 1 files for BUILD_TOOLS_HOTSPOT Compiling up to 8 files for BUILD_TOOLS_LANGTOOLS Creating hotspot/variant-server/tools/adlc/adlc from 13 file(s) Compiling up to 2 files for BUILD_JVMTI_TOOLS Generating classes for compiler.properties launcher.properties Compiling 17 properties into resource bundles for jdk.javadoc Compiling 10 properties into resource bundles for jdk.jshell Compiling 19 properties into resource bundles for jdk.compiler Compiling 15 properties into resource bundles for jdk.jdeps Compiling up to 360 files for BUILD_jdk.compiler.interim Compiling up to 145 files for BUILD_jdk.internal.md.interim Compiling up to 213 files for BUILD_jdk.javadoc.interim Compiling up to 17 files for BUILD_JAVAC_SERVER Compiling up to 136 files for BUILD_java.compiler.interim Creating support/modules_libs/java.base/server/libjvm.so from 1213 file(s) In file included from /home/yansendao/git/jdk-asan-clang/src/hotspot/share/precompiled/precompiled.hpp:34: In file included from /home/yansendao/git/jdk-asan-clang/src/hotspot/share/classfile/classLoaderData.hpp:28: In file included from /home/yansendao/git/jdk-asan-clang/src/hotspot/share/memory/allocation.hpp:29: In file included from /home/yansendao/git/jdk-asan-clang/src/hotspot/share/nmt/memTag.hpp:28: In file included from /home/yansendao/git/jdk-asan-clang/src/hotspot/share/utilities/globalDefinitions.hpp:30: In file included from /home/yansendao/git/jdk-asan-clang/src/hotspot/share/utilities/forbiddenFunctions.hpp:38: /home/yansendao/git/jdk-asan-clang/src/hotspot/os/posix/forbiddenFunctions_posix.hpp:43:1: error: attribute declaration must precede definition [-Werror,-Wignored-attributes] 43 | FORBID_C_FUNCTION(char* realpath(const char*, char*), "use os::realpath"); | ^ /home/yansendao/git/jdk-asan-clang/src/hotspot/share/utilities/compilerWarnings.hpp:109:18: note: expanded from macro 'FORBID_C_FUNCTION' 109 | extern "C" { [[deprecated(Alternative)]] Signature; } | ^ /usr/include/bits/stdlib.h:37:8: note: previous definition is here 37 | __NTH (realpath (const char *__restrict __name, char *__restrict __resolved)) | ^ 1 error generated. gmake[3]: *** [lib/CompileJvm.gmk:170: /home/yansendao/git/jdk-asan-clang/build/linux-x86_64-server-fastdebug/hotspot/variant-server/libjvm/objs/precompiled/precompiled.hpp.pch] Error 1 gmake[2]: *** [make/Main.gmk:245: hotspot-server-libs] Error 2 gmake[2]: *** Waiting for unfinished jobs.... ERROR: Build failed for targets 'images test-image' in configuration 'linux-x86_64-server-fastdebug' (exit code 2) === Output from failing command(s) repeated here === * For target hotspot_variant-server_libjvm_objs_precompiled_precompiled.hpp.pch: In file included from /home/yansendao/git/jdk-asan-clang/src/hotspot/share/precompiled/precompiled.hpp:34: In file included from /home/yansendao/git/jdk-asan-clang/src/hotspot/share/classfile/classLoaderData.hpp:28: In file included from /home/yansendao/git/jdk-asan-clang/src/hotspot/share/memory/allocation.hpp:29: In file included from /home/yansendao/git/jdk-asan-clang/src/hotspot/share/nmt/memTag.hpp:28: In file included from /home/yansendao/git/jdk-asan-clang/src/hotspot/share/utilities/globalDefinitions.hpp:30: In file included from /home/yansendao/git/jdk-asan-clang/src/hotspot/share/utilities/forbiddenFunctions.hpp:38: /home/yansendao/git/jdk-asan-clang/src/hotspot/os/posix/forbiddenFunctions_posix.hpp:43:1: error: attribute declaration must precede definition [-Werror,-Wignored-attributes] 43 | FORBID_C_FUNCTION(char* realpath(const char*, char*), "use os::realpath"); | ^ /home/yansendao/git/jdk-asan-clang/src/hotspot/share/utilities/compilerWarnings.hpp:109:18: note: expanded from macro 'FORBID_C_FUNCTION' 109 | extern "C" { [[deprecated(Alternative)]] Signature; } | ^ /usr/include/bits/stdlib.h:37:8: note: previous definition is here 37 | __NTH (realpath (const char *__restrict __name, char *__restrict __resolved)) | ^ ... (rest of output omitted) * All command lines available in /home/yansendao/git/jdk-asan-clang/build/linux-x86_64-server-fastdebug/make-support/failure-logs. === End of repeated output === No indication of failed target found. HELP: Try searching the build log for '] Error'. HELP: Run 'make doctor' to diagnose build problems. make[1]: *** [/home/yansendao/git/jdk-asan-clang/make/Init.gmk:323: main] Error 2 make: *** [/home/yansendao/git/jdk-asan-clang/make/Init.gmk:189: images] Error 2