Configure command:
bash configure --with-toolchain-type=clang --with-debug-level=fastdebug --with-toolchain-path=~/software/acc/x86_64/bin
Make command:
time make images test-image &> build/make.log
Make output:
=== 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)