-
Bug
-
Resolution: Withdrawn
-
P3
-
25
-
None
-
Clang version:
clang -v
clang version 17.0.6 (Alibaba Cloud Compiler 17.0.6.1-24.05.10.alios7)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/yansendao/software/acc/x86_64/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/10
Selected GCC installation: /usr/lib/gcc/x86_64-redhat-linux/10
Candidate multilib: .;@m64
Selected multilib: .;@m64Clang version: clang -v clang version 17.0.6 (Alibaba Cloud Compiler 17.0.6.1-24.05.10.alios7) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /home/yansendao/software/acc/x86_64/bin Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/10 Selected GCC installation: /usr/lib/gcc/x86_64-redhat-linux/10 Candidate multilib: .;@m64 Selected multilib: .;@m64
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)
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)
- relates to
-
JDK-8313396 Portable implementation of FORBID_C_FUNCTION and ALLOW_C_FUNCTION
-
- Closed
-
-
JDK-8347720 [BACKOUT] Portable implementation of FORBID_C_FUNCTION and ALLOW_C_FUNCTION
-
- Resolved
-
- links to
-
Review(master) openjdk/jdk/23102