-
Bug
-
Resolution: Fixed
-
P4
-
24, 25
-
+ uname -a
Linux riscv-dev 5.10.134-17.2.al8.x86_64 #1 SMP Fri Aug 9 15:49:42 CST 2024 x86_64 x86_64 x86_64 GNU/Linux
+ cat /etc/os-release
NAME="Alibaba Cloud Linux"
VERSION="3 (OpenAnolis Edition)"
ID="alinux"
ID_LIKE="rhel fedora centos anolis"
VERSION_ID="3"
VARIANT="OpenAnolis Edition"
VARIANT_ID="openanolis"
ALINUX_MINOR_ID="2104"
ALINUX_UPDATE_ID="10"
PLATFORM_ID="platform:al8"
PRETTY_NAME="Alibaba Cloud Linux 3.2104 U10 (OpenAnolis Edition)"
ANSI_COLOR="0;31"
HOME_URL="https://www.aliyun.com/"
+ free -h
total used free shared buff/cache available
Mem: 495Gi 15Gi 218Gi 27Mi 265Gi 480Gi
Swap: 0B 0B 0B
+ lscpu
+ head -n 25
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 128
On-line CPU(s) list: 0-127
Thread(s) per core: 2
Core(s) per socket: 64
Socket(s): 1
NUMA node(s): 1
Vendor ID: AuthenticAMD
CPU family: 25
Model: 17
Model name: AMD EPYC 9T24 96-Core Processor
Stepping: 1
CPU MHz: 3696.930
BogoMIPS: 5400.00
Hypervisor vendor: KVM
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 1024K
L3 cache: 32768K
NUMA node0 CPU(s): 0-127
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf tsc_known_freq pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext invpcid_single ibrs_enhanced vmmcall fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves avx512_bf16 clzero xsaveerptr rdpru wbnoinvd arat avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid fsrm arch_capabilities
+ ldd --version
ldd (GNU libc) 2.32
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
+ java -version
openjdk version "24" 2025-03-18
OpenJDK Runtime Environment (build 24)
OpenJDK 64-Bit Server VM (build 24, mixed mode, sharing)
+ java -Xinternalversion
OpenJDK 64-Bit Server VM (24) for linux-amd64 JRE (24), built on 2024-10-23T10:09:48Z with gcc 10.2.1 20210130 (Red Hat 10.2.1-11)
+ git remote -v
origin git@github.com:sendaoYan/auxiliary.git (fetch)
origin git@github.com:sendaoYan/auxiliary.git (push)
+ git log -n 1
+ head -n 1
commit a291e4edbd61f7e47709db3b38ad76f9ff1b4e04+ uname -a Linux riscv-dev 5.10.134-17.2.al8.x86_64 #1 SMP Fri Aug 9 15:49:42 CST 2024 x86_64 x86_64 x86_64 GNU/Linux + cat /etc/os-release NAME="Alibaba Cloud Linux" VERSION="3 (OpenAnolis Edition)" ID="alinux" ID_LIKE="rhel fedora centos anolis" VERSION_ID="3" VARIANT="OpenAnolis Edition" VARIANT_ID="openanolis" ALINUX_MINOR_ID="2104" ALINUX_UPDATE_ID="10" PLATFORM_ID="platform:al8" PRETTY_NAME="Alibaba Cloud Linux 3.2104 U10 (OpenAnolis Edition)" ANSI_COLOR="0;31" HOME_URL="https://www.aliyun.com/" + free -h total used free shared buff/cache available Mem: 495Gi 15Gi 218Gi 27Mi 265Gi 480Gi Swap: 0B 0B 0B + lscpu + head -n 25 Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 128 On-line CPU(s) list: 0-127 Thread(s) per core: 2 Core(s) per socket: 64 Socket(s): 1 NUMA node(s): 1 Vendor ID: AuthenticAMD CPU family: 25 Model: 17 Model name: AMD EPYC 9T24 96-Core Processor Stepping: 1 CPU MHz: 3696.930 BogoMIPS: 5400.00 Hypervisor vendor: KVM Virtualization type: full L1d cache: 32K L1i cache: 32K L2 cache: 1024K L3 cache: 32768K NUMA node0 CPU(s): 0-127 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf tsc_known_freq pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext invpcid_single ibrs_enhanced vmmcall fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves avx512_bf16 clzero xsaveerptr rdpru wbnoinvd arat avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid fsrm arch_capabilities + ldd --version ldd (GNU libc) 2.32 Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Roland McGrath and Ulrich Drepper. + java -version openjdk version "24" 2025-03-18 OpenJDK Runtime Environment (build 24) OpenJDK 64-Bit Server VM (build 24, mixed mode, sharing) + java -Xinternalversion OpenJDK 64-Bit Server VM (24) for linux-amd64 JRE (24), built on 2024-10-23T10:09:48Z with gcc 10.2.1 20210130 (Red Hat 10.2.1-11) + git remote -v origin git@github.com:sendaoYan/auxiliary.git (fetch) origin git@github.com:sendaoYan/auxiliary.git (push) + git log -n 1 + head -n 1 commit a291e4edbd61f7e47709db3b38ad76f9ff1b4e04
Configure command:
bash configure --with-jobs=128 --prefix=/home/yansendao/git/jdk/install-fastdebug --verbose --with-debug-level=fastdebug --enable-unlimited-crypto --with-vendor-name=yansendao --with-vendor-url=https://github.com/sendaoYan --with-vendor-bug-url=mailto:yansendao.ysd@alibaba-inc.com --with-vendor-vm-bug-url=mailto:yansendao.ysd@alibaba-inc.com --with-jvm-variants=server --with-boot-jdk=/home/yansendao/software/jdk/24/jdk-repo-binary --with-gtest=/home/yansendao/git/googletest-v1.14.x --with-jtreg=/home/yansendao/software/jdk/jtreg-7.4 --with-jmh=build/jmh/jars --with-version-opt=f88c1c6f --with-zlib=system --enable-ccache --with-native-debug-symbols=external --with-toolchain-type=clang --with-toolchain-path=~/software/acc/x86_64/bin
Standalone compile command:
clang -MMD -MF build/linux-x86_64-server-fastdebug/support/native/java.desktop/libawt/awt_LoadLibrary.d.tmp -fpch-preprocess -pipe -fvisibility=hidden -DLIBC=gnu -D_GNU_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DLINUX -DDEBUG -Wall -Wextra -Wformat=2 -Wpointer-arith -Wsign-compare -Wreorder -Wunused-function -Wundef -Wunused-value -Woverloaded-virtual -g -gdwarf-4 -gdwarf-aranges -std=c11 -fno-strict-aliasing -m64 -D_LITTLE_ENDIAN -DARCH='"amd64"' -Damd64 -D_LP64=1 -fno-omit-frame-pointer -fPIC -D__MEDIALIB_OLD_NAMES -D__USE_J2D_NAMES -DMLIB_NO_LIBSUNMATH -Isrc/java.desktop/unix/native/libawt -Isrc/java.desktop/share/native/libawt -Isrc/java.desktop/share/native/common/awt/debug -Isrc/java.desktop/unix/native/common/awt -Ibuild/linux-x86_64-server-fastdebug/support/headers/java.desktop -Isrc/java.desktop/unix/native/common/awt/utility -Isrc/java.desktop/share/native/common/awt/utility -Isrc/java.desktop/share/native/libawt/awt/image -Isrc/java.desktop/share/native/libawt/awt/image/cvutils -Isrc/java.desktop/unix/native/libawt/java2d -Isrc/java.desktop/share/native/libawt/java2d -Isrc/java.desktop/share/native/libawt/java2d/loops -Isrc/java.desktop/share/native/libawt/java2d/pipe -Ibuild/linux-x86_64-server-fastdebug/support/headers/java.base -Isrc/java.desktop/share/native/libawt/awt/medialib -Isrc/java.desktop/share/native/common/awt/medialib -Isrc/java.desktop/share/native/libmlib_image -Isrc/java.desktop/unix/native/include -Isrc/java.desktop/share/native/include -Isrc/java.base/linux/native/libjava -Isrc/java.base/unix/native/libjava -Isrc/java.base/share/native/libjava -Isrc/hotspot/share/include -Isrc/hotspot/os/posix/include -Ibuild/linux-x86_64-server-fastdebug/support/modules_include/java.base -Isrc/java.base/unix/native/include -Isrc/java.base/share/native/include -g -gdwarf-4 -gdwarf-aranges -Wno-unknown-warning-option -Wno-unused-parameter -Wno-unused-but-set-variable -Wno-unused-variable -Werror -O3 -D_FORTIFY_SOURCE=2 -c -o build/linux-x86_64-server-fastdebug/support/native/java.desktop/libawt/awt_LoadLibrary.o src/java.desktop/unix/native/libawt/awt/awt_LoadLibrary.c -frandom-seed="awt_LoadLibrary.c"
Clang17 compile output:
src/java.desktop/unix/native/libawt/awt/awt_LoadLibrary.c:140:9: error: ignoring return value of function declared with 'warn_unused_result' attribute [-Werror,-Wunused-result]
140 | realpath((char *)dlinfo.dli_fname, buf);
| ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Clang version:
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
- relates to
-
JDK-8338768 Introduce runtime lookup to check for static builds
- Resolved
- links to
-
Commit(master) openjdk/jdk/367c3041
-
Review(master) openjdk/jdk/22701