[jdk8u-dev] RFR: 8270517: Add Zero support for LoongArch [v2]
Sergey Bylokhov
serb at openjdk.org
Mon Feb 19 02:46:59 UTC 2024
On Sat, 6 Jan 2024 02:53:45 GMT, Leslie Zhai <lzhai at openjdk.org> wrote:
>> Hi,
>>
>> I'd like to backport this patch to jdk8u. `common/autoconf/build-aux/config.guess` and `hotspot/src/os/linux/vm/os_linux.cpp` do not apply cleanly due to context difference, but it is easy to resolve them manually. `common/autoconf/platform.m4` just changed file path.
>>
>> `common/autoconf/generated-configure.sh` regenerated by `bash common/autoconf/autogen.sh`.
>>
>> A native build on LoongArch hardware is tested.
>>
>> Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1060236
>>
>>
>> $ ./build/images/j2sdk-image/bin/java -version
>> openjdk version "1.8.0_392"
>> OpenJDK Runtime Environment (build 1.8.0_392-8u392-ga-1-b08)
>> OpenJDK 64-Bit Zero VM (build 25.392-b08, interpreted mode)
>>
>>
>> Loongnix Desktop:
>>
>>
>> $ ./build/linux-loongarch64-normal-zero-release/images/j2sdk-image/bin/java -version
>> openjdk version "1.8.0_412-internal"
>> OpenJDK Runtime Environment (build 1.8.0_412-internal-zhaixiang_2024_01_06_10_53-b00)
>> OpenJDK 64-Bit Zero VM (build 25.412-b00, interpreted mode)
>>
>>
>> The risk of the downport is low.
>>
>> Thanks,
>> Leslie Zhai
>
> Leslie Zhai has updated the pull request incrementally with one additional commit since the last revision:
>
> bash common/autoconf/autogen.sh to regerated common/autoconf/generated-configure.sh
It is strange but after integration of this patch, execution of "autogen.sh" using autoconf 2.69 will cut part of the change(tested on macOS+brew).
[autoconf (GNU Autoconf) 2.69]
Generating generated-configure.sh
diff --git a/common/autoconf/generated-configure.sh b/common/autoconf/generated-configure.sh
index 85eb8a16a21..0803a8782af 100644
--- a/common/autoconf/generated-configure.sh
+++ b/common/autoconf/generated-configure.sh
@@ -1017,7 +1017,6 @@ infodir
docdir
oldincludedir
includedir
-runstatedir
localstatedir
sharedstatedir
sysconfdir
@@ -1263,7 +1262,6 @@ datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
-runstatedir='${localstatedir}/run'
includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -1516,15 +1514,6 @@ do
| -silent | --silent | --silen | --sile | --sil)
silent=yes ;;
- -runstatedir | --runstatedir | --runstatedi | --runstated \
- | --runstate | --runstat | --runsta | --runst | --runs \
- | --run | --ru | --r)
- ac_prev=runstatedir ;;
- -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
- | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
- | --run=* | --ru=* | --r=*)
- runstatedir=$ac_optarg ;;
-
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
ac_prev=sbindir ;;
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@@ -1662,7 +1651,7 @@ fi
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
datadir sysconfdir sharedstatedir localstatedir includedir \
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
- libdir localedir mandir runstatedir
+ libdir localedir mandir
do
eval ac_val=$$ac_var
# Remove trailing slashes.
@@ -1815,7 +1804,6 @@ Fine tuning of the installation directories:
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
- --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
@@ -4440,7 +4428,7 @@ VS_TOOLSET_SUPPORTED_2022=true
-------------
PR Comment: https://git.openjdk.org/jdk8u-dev/pull/413#issuecomment-1951600088
More information about the jdk8u-dev
mailing list