Skip to contentSkip to conversation

doc: Add supported kernel, libc versions

RFC PATCH Superseded Petr Vorel 5 participants 9 messages May 14, 2021 – May 18, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

RFC PATCH 1/1 doc: Add supported kernel, libc versions

---
 doc/supported-kernel-libc-versions.txt | 57 ++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)
 create mode 100644 doc/supported-kernel-libc-versions.txt
doc/supported-kernel-libc-versions.txt new file +57 -0
new file mode 100644
index 000000000..b7ae01f11
@@ -0,0 +1,57 @@
+Supported kernel, libc, toolchain versions
+==========================================
+
+1. Build testing with Travis CI
+-------------------------------
+
+We test master branch in https://travis-ci.org/github/linux-test-project/ltp/builds[travis CI]
+to ensure LTP builds on various distributions including old, current and bleeding edge.
+We test both gcc and clang toolchains, various arch with cross-compilation.
+
+For list of tested distros see
+https://github.com/linux-test-project/ltp/blob/master/.travis.yml[.travis.yml].
+
+
+NOTE: Travis does only build testing, passing the CI means only that the
+      test compiles fine on variety of different distributions and releases.
+
+1.1 Oldest tested distributions
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+[align="center",options="header"]
+|==============================================================
+| Distro                       | kernel | glibc | gcc   | clang
+| CentOS 7                     | 3.10   | 2.17  | 4.8.5 | -
+| Ubuntu 16.04 LTS xenial      | 4.4    | 2.23  | 5.3.1 | -
+| Debian 9 stretch (oldstable) | 4.9.30 | 2.24  | 6.3.0 | 3.8
+|==============================================================
+
+For older versions please use https://github.com/linux-test-project/ltp/releases[older LTP releases].
+
+1.2 Supported architectures
+~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+[align="center",options="header"]
+|==================================
+| arch          | build
+| x86_64        | native
+| x86 emulation | native
+| aarch64       | cross compilation
+| ppc64le       | cross compilation
+| s390x         | cross compilation
+|==================================
+
+1.3 Supported libc
+~~~~~~~~~~~~~~~~~~
+
+Targeted libc is https://www.gnu.org/software/libc/[GNU C Library (glibc)].
+
+https://uclibc-ng.org/[uClibc-ng] is not being tested should work as well as it
+attempt to maintain a glibc compatible interface
+(older https://www.uclibc.org/[uClibc] might have problems).
+
+https://musl.libc.org/[musl] is not yet supported
+(see https://github.com/linux-test-project/ltp/blob/master/travis/alpine.sh[travis script]
+for list of files which need to be deleted in order to compile under musl).
+
+For bionic libc please (Android) use https://android.googlesource.com/platform/external/ltp/[AOSP fork].
Signature · 1 line
2.31.1
#1 lore raw

RFC PATCH 1/1 doc: Add supported kernel, libc versions

Hi!

Quoted 19 lines
doc/supported-kernel-libc-versions.txt new file +19 -0
+Supported kernel, libc, toolchain versions
+==========================================
+
+1. Build testing with Travis CI
+-------------------------------
+
+We test master branch in https://travis-ci.org/github/linux-test-project/ltp/builds[travis CI]
+to ensure LTP builds on various distributions including old, current and bleeding edge.
+We test both gcc and clang toolchains, various arch with cross-compilation.
+
+For list of tested distros see
+https://github.com/linux-test-project/ltp/blob/master/.travis.yml[.travis.yml].
+
+
+NOTE: Travis does only build testing, passing the CI means only that the
+      test compiles fine on variety of different distributions and releases.
+
+1.1 Oldest tested distributions
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

doc/supported-kernel-libc-versions.txt line 29

Quoted 10 lines
doc/supported-kernel-libc-versions.txt new file +10 -0
+
+[align="center",options="header"]
+|==============================================================
+| Distro                       | kernel | glibc | gcc   | clang
+| CentOS 7                     | 3.10   | 2.17  | 4.8.5 | -
+| Ubuntu 16.04 LTS xenial      | 4.4    | 2.23  | 5.3.1 | -
+| Debian 9 stretch (oldstable) | 4.9.30 | 2.24  | 6.3.0 | 3.8
+|==============================================================
+
+For older versions please use https://github.com/linux-test-project/ltp/releases[older LTP releases].

I'm not sure that this is a good suggestion.

I would write something as:

Older distributions are not officially supported, which means that it may or may not work. It all depends on your luck. It should be possible to compile latest LTP even on slightly older distributions than we support with a few manual tweaks, e.g. disabling manually tests for newly added syscalls manually, etc.

If latest LTP cannot be compiled even with some amount of workarounds, you may result to older LTP releases, however these are _not_ supported in any way. Also if you are trying to run LTP on more than 10 years old distribution you may as well reconsider you life choices.

Quoted 1 line

+1.2 Supported architectures

        ^
	Tested?

We do support more than we test, right?

Quoted 12 lines

+~~~~~~~~~~~~~~~~~~~~~~~~~~~

doc/supported-kernel-libc-versions.txt new file +11 -0
+
+[align="center",options="header"]
+|==================================
+| arch          | build
+| x86_64        | native
+| x86 emulation | native
+| aarch64       | cross compilation
+| ppc64le       | cross compilation
+| s390x         | cross compilation
+|==================================
+

doc/supported-kernel-libc-versions.txt line 53

Quoted 10 lines
doc/supported-kernel-libc-versions.txt new file +10 -0
+1.3 Supported libc
+~~~~~~~~~~~~~~~~~~
+
+Targeted libc is https://www.gnu.org/software/libc/[GNU C Library (glibc)].
+
+https://uclibc-ng.org/[uClibc-ng] is not being tested should work as well as it
+attempt to maintain a glibc compatible interface
+(older https://www.uclibc.org/[uClibc] might have problems).
+
+https://musl.libc.org/[musl] is not yet supported
                                          ^
					  fully?

doc/supported-kernel-libc-versions.txt line 57

Quoted 4 lines
doc/supported-kernel-libc-versions.txt new file +4 -0
+(see https://github.com/linux-test-project/ltp/blob/master/travis/alpine.sh[travis script]
+for list of files which need to be deleted in order to compile under musl).
+
+For bionic libc please (Android) use https://android.googlesource.com/platform/external/ltp/[AOSP fork].

Thanks a lot for starting this.

Signature · 2 lines
Cyril Hrubis
[email protected]
author
#2 lore raw

RFC PATCH 1/1 doc: Add supported kernel, libc versions

Hi Cyril,

Quoted 41 lines

Hi!

Quoted 19 lines
doc/supported-kernel-libc-versions.txt new file +19 -0
+Supported kernel, libc, toolchain versions
+==========================================
+
+1. Build testing with Travis CI
+-------------------------------
+
+We test master branch in https://travis-ci.org/github/linux-test-project/ltp/builds[travis CI]
+to ensure LTP builds on various distributions including old, current and bleeding edge.
+We test both gcc and clang toolchains, various arch with cross-compilation.
+
+For list of tested distros see
+https://github.com/linux-test-project/ltp/blob/master/.travis.yml[.travis.yml].
+
+
+NOTE: Travis does only build testing, passing the CI means only that the
+      test compiles fine on variety of different distributions and releases.
+
+1.1 Oldest tested distributions
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

doc/supported-kernel-libc-versions.txt line 29

Quoted 10 lines
doc/supported-kernel-libc-versions.txt new file +10 -0
+
+[align="center",options="header"]
+|==============================================================
+| Distro                       | kernel | glibc | gcc   | clang
+| CentOS 7                     | 3.10   | 2.17  | 4.8.5 | -
+| Ubuntu 16.04 LTS xenial      | 4.4    | 2.23  | 5.3.1 | -
+| Debian 9 stretch (oldstable) | 4.9.30 | 2.24  | 6.3.0 | 3.8
+|==============================================================
+
+For older versions please use https://github.com/linux-test-project/ltp/releases[older LTP releases].

I'm not sure that this is a good suggestion.

I would write something as:

Older distributions are not officially supported, which means that it may or may not work. It all depends on your luck. It should be possible to compile latest LTP even on slightly older distributions than we support with a few manual tweaks, e.g. disabling manually tests for newly added syscalls manually, etc.

Quoted 4 lines

If latest LTP cannot be compiled even with some amount of workarounds, you may result to older LTP releases, however these are _not_ supported in any way. Also if you are trying to run LTP on more than 10 years old distribution you may as well reconsider you life choices.

+1 (although not sure about the latest sentence :))

Quoted 3 lines
Quoted 1 line

+1.2 Supported architectures

        ^
	Tested?

+1

Quoted 18 lines

We do support more than we test, right?

Quoted 16 lines

+~~~~~~~~~~~~~~~~~~~~~~~~~~~

doc/supported-kernel-libc-versions.txt new file +15 -0
+
+[align="center",options="header"]
+|==================================
+| arch          | build
+| x86_64        | native
+| x86 emulation | native
+| aarch64       | cross compilation
+| ppc64le       | cross compilation
+| s390x         | cross compilation
+|==================================
+
+1.3 Supported libc
+~~~~~~~~~~~~~~~~~~
+
+Targeted libc is https://www.gnu.org/software/libc/[GNU C Library (glibc)].
Quoted 8 lines

doc/supported-kernel-libc-versions.txt line 53

Quoted 6 lines
doc/supported-kernel-libc-versions.txt new file +6 -0
+
+https://uclibc-ng.org/[uClibc-ng] is not being tested should work as well as it
+attempt to maintain a glibc compatible interface
+(older https://www.uclibc.org/[uClibc] might have problems).
+
+https://musl.libc.org/[musl] is not yet supported
                                          ^
					  fully?

+1

Quoted 7 lines

doc/supported-kernel-libc-versions.txt line 57

Quoted 4 lines
doc/supported-kernel-libc-versions.txt new file +4 -0
+(see https://github.com/linux-test-project/ltp/blob/master/travis/alpine.sh[travis script]
+for list of files which need to be deleted in order to compile under musl).
+
+For bionic libc please (Android) use https://android.googlesource.com/platform/external/ltp/[AOSP fork].

Thanks a lot for starting this.

Thanks a lot for all the feedback, I'll take it all for v2. It'd be nice to get it merged before the release.

Kind regards,
Petr

#3 lore raw

RFC PATCH 1/1 doc: Add supported kernel, libc versions

Hi!

Quoted 10 lines
Quoted 9 lines

I'm not sure that this is a good suggestion.

I would write something as:

Older distributions are not officially supported, which means that it may or may not work. It all depends on your luck. It should be possible to compile latest LTP even on slightly older distributions than we support with a few manual tweaks, e.g. disabling manually tests for newly added syscalls manually, etc.

Quoted 5 lines
Quoted 4 lines

If latest LTP cannot be compiled even with some amount of workarounds, you may result to older LTP releases, however these are _not_ supported in any way. Also if you are trying to run LTP on more than 10 years old distribution you may as well reconsider you life choices.

+1 (although not sure about the latest sentence :))

Sure, we can be nicer and the last sentence could be:

Also if you are trying to run LTP on more than 10 years old distribution you should really consider updating to a more recent one.

Signature · 2 lines
Cyril Hrubis
[email protected]
#4 lore raw

RFC PATCH 1/1 doc: Add supported kernel, libc versions

Hi Petr,

LGTM(with fixing as the above suggestions). Thanks for starting this doc.

Signature · 2 lines
Regards,
Li Wang
#5 lore raw

RFC PATCH 1/1 doc: Add supported kernel, libc versions

In reply to Cyril Hrubis
Quoted 42 lines · Cyril Hrubis

Hi!

Quoted 19 lines
doc/supported-kernel-libc-versions.txt new file +19 -0
+Supported kernel, libc, toolchain versions
+==========================================
+
+1. Build testing with Travis CI
+-------------------------------
+
+We test master branch in https://travis-ci.org/github/linux-test-project/ltp/builds[travis CI]
+to ensure LTP builds on various distributions including old, current and bleeding edge.
+We test both gcc and clang toolchains, various arch with cross-compilation.
+
+For list of tested distros see
+https://github.com/linux-test-project/ltp/blob/master/.travis.yml[.travis.yml].
+
+
+NOTE: Travis does only build testing, passing the CI means only that the
+      test compiles fine on variety of different distributions and releases.
+
+1.1 Oldest tested distributions
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

doc/supported-kernel-libc-versions.txt line 29

Quoted 10 lines
doc/supported-kernel-libc-versions.txt new file +10 -0
+
+[align="center",options="header"]
+|==============================================================
+| Distro                       | kernel | glibc | gcc   | clang
+| CentOS 7                     | 3.10   | 2.17  | 4.8.5 | -
+| Ubuntu 16.04 LTS xenial      | 4.4    | 2.23  | 5.3.1 | -
+| Debian 9 stretch (oldstable) | 4.9.30 | 2.24  | 6.3.0 | 3.8
+|==============================================================
+
+For older versions please use https://github.com/linux-test-project/ltp/releases[older LTP releases].

I'm not sure that this is a good suggestion.

I would write something as:

Older distributions are not officially supported, which means that it may or may not work. It all depends on your luck. It should be possible to compile latest LTP even on slightly older distributions than we support with a few manual tweaks, e.g. disabling manually tests for newly added syscalls manually, etc.

Quoted 4 lines

If latest LTP cannot be compiled even with some amount of workarounds, you may result to older LTP releases, however these are _not_ supported in any way. Also if you are trying to run LTP on more than 10 years old distribution you may as well reconsider you life choices.

Should we also give some hint about accepting patches/wokrarounds for very old distros?
For example: "Trivial fixes/workarounds may be accepted, but users are encouraged to move to newer distro."

Quoted 43 lines
Quoted 2 lines

+1.2 Supported architectures

        ^
        Tested?

We do support more than we test, right?

Quoted 12 lines

+~~~~~~~~~~~~~~~~~~~~~~~~~~~

doc/supported-kernel-libc-versions.txt new file +11 -0
+
+[align="center",options="header"]
+|==================================
+| arch          | build
+| x86_64        | native
+| x86 emulation | native
+| aarch64       | cross compilation
+| ppc64le       | cross compilation
+| s390x         | cross compilation
+|==================================
+

doc/supported-kernel-libc-versions.txt line 53

Quoted 10 lines
doc/supported-kernel-libc-versions.txt new file +10 -0
+1.3 Supported libc
+~~~~~~~~~~~~~~~~~~
+
+Targeted libc is https://www.gnu.org/software/libc/[GNU C Library (glibc)].
+
+https://uclibc-ng.org/[uClibc-ng] is not being tested should work as well as it
+attempt to maintain a glibc compatible interface
+(older https://www.uclibc.org/[uClibc] might have problems).
+
+https://musl.libc.org/[musl] is not yet supported
                                          ^
                                          fully?

doc/supported-kernel-libc-versions.txt line 57

Quoted 4 lines
doc/supported-kernel-libc-versions.txt new file +4 -0
+(see https://github.com/linux-test-project/ltp/blob/master/travis/alpine.sh[travis script]
+for list of files which need to be deleted in order to compile under musl).
+
+For bionic libc please (Android) use https://android.googlesource.com/platform/external/ltp/[AOSP fork].

Thanks a lot for starting this.

--
Cyril Hrubis
[email protected]

author
#6 lore raw

RFC PATCH 1/1 doc: Add supported kernel, libc versions

Hi,

...

Quoted 11 lines
Quoted 10 lines

Older distributions are not officially supported, which means that it may or may not work. It all depends on your luck. It should be possible to compile latest LTP even on slightly older distributions than we support with a few manual tweaks, e.g. disabling manually tests for newly added syscalls manually, etc.

If latest LTP cannot be compiled even with some amount of workarounds, you may result to older LTP releases, however these are _not_ supported in any way. Also if you are trying to run LTP on more than 10 years old distribution you may as well reconsider you life choices.

Quoted 4 lines

Should we also give some hint about accepting patches/wokrarounds for very old distros?
For example: "Trivial fixes/workarounds may be accepted, but users are encouraged to move to newer distro."

+1. I'd add it at the end of first paragraph. Or anyone feel free to express it differently.

Kind regards,
Petr

#7 lore raw

RFC PATCH 1/1 doc: Add supported kernel, libc versions

In reply to Petr Vorel

Hi Petr

Quoted 18 lines
---
  doc/supported-kernel-libc-versions.txt | 57 ++++++++++++++++++++++++++
  1 file changed, 57 insertions(+)

create mode 100644 doc/supported-kernel-libc-versions.txt

doc/supported-kernel-libc-versions.txt new file +6 -0
new file mode 100644
index 000000000..b7ae01f11
@@ -0,0 +1,57 @@
+Supported kernel, libc, toolchain versions
+==========================================
+
+1. Build testing with Travis CI
+-------------------------------
+

doc/supported-kernel-libc-versions.txt line 16

Quoted 10 lines
doc/supported-kernel-libc-versions.txt new file +10 -0
+We test master branch in https://travis-ci.org/github/linux-test-project/ltp/builds[travis CI]
+to ensure LTP builds on various distributions including old, current and bleeding edge.
+We test both gcc and clang toolchains, various arch with cross-compilation.
+
+For list of tested distros see
+https://github.com/linux-test-project/ltp/blob/master/.travis.yml[.travis.yml].
+
+
+NOTE: Travis does only build testing, passing the CI means only that the
+      test compiles fine on variety of different distributions and releases.

AFAIK, travis uses lastest distribution image to build. So it may exist the situation that it build pass on lastest centos7 and build failed on older centos7. I think we should add a note in here.

Quoted 41 lines
doc/supported-kernel-libc-versions.txt new file +41 -0
+
+1.1 Oldest tested distributions
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+[align="center",options="header"]
+|==============================================================
+| Distro                       | kernel | glibc | gcc   | clang
+| CentOS 7                     | 3.10   | 2.17  | 4.8.5 | -
+| Ubuntu 16.04 LTS xenial      | 4.4    | 2.23  | 5.3.1 | -
+| Debian 9 stretch (oldstable) | 4.9.30 | 2.24  | 6.3.0 | 3.8
+|==============================================================
+
+For older versions please use https://github.com/linux-test-project/ltp/releases[older LTP releases].
+
+1.2 Supported architectures
+~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+[align="center",options="header"]
+|==================================
+| arch          | build
+| x86_64        | native
+| x86 emulation | native
+| aarch64       | cross compilation
+| ppc64le       | cross compilation
+| s390x         | cross compilation
+|==================================
+
+1.3 Supported libc
+~~~~~~~~~~~~~~~~~~
+
+Targeted libc is https://www.gnu.org/software/libc/[GNU C Library (glibc)].
+
+https://uclibc-ng.org/[uClibc-ng] is not being tested should work as well as it
+attempt to maintain a glibc compatible interface
+(older https://www.uclibc.org/[uClibc] might have problems).
+
+https://musl.libc.org/[musl] is not yet supported
+(see https://github.com/linux-test-project/ltp/blob/master/travis/alpine.sh[travis script]
+for list of files which need to be deleted in order to compile under musl).
+
+For bionic libc please (Android) use https://android.googlesource.com/platform/external/ltp/[AOSP fork].
author
#8 lore raw

RFC PATCH 1/1 doc: Add supported kernel, libc versions

Hi all,

Quoted 24 lines

Hi Petr

Quoted 23 lines
---
  doc/supported-kernel-libc-versions.txt | 57 ++++++++++++++++++++++++++
  1 file changed, 57 insertions(+)

create mode 100644 doc/supported-kernel-libc-versions.txt

doc/supported-kernel-libc-versions.txt new file +11 -0
new file mode 100644
index 000000000..b7ae01f11
@@ -0,0 +1,57 @@
+Supported kernel, libc, toolchain versions
+==========================================
+
+1. Build testing with Travis CI
+-------------------------------
+
+We test master branch in https://travis-ci.org/github/linux-test-project/ltp/builds[travis CI]
+to ensure LTP builds on various distributions including old, current and bleeding edge.
+We test both gcc and clang toolchains, various arch with cross-compilation.
+
+For list of tested distros see
Quoted 8 lines

doc/supported-kernel-libc-versions.txt line 16

Quoted 5 lines
doc/supported-kernel-libc-versions.txt new file +5 -0
+https://github.com/linux-test-project/ltp/blob/master/.travis.yml[.travis.yml].
+
+
+NOTE: Travis does only build testing, passing the CI means only that the
+      test compiles fine on variety of different distributions and releases.

AFAIK, travis uses lastest distribution image to build. So it may exist the situation that it build pass on lastest centos7 and build failed on older centos7. I think we should add a note in here.

+1

Quoted 11 lines

doc/supported-kernel-libc-versions.txt line 27

Quoted 11 lines
doc/supported-kernel-libc-versions.txt new file +11 -0
+
+1.1 Oldest tested distributions
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+[align="center",options="header"]
+|==============================================================
+| Distro                       | kernel | glibc | gcc   | clang
+| CentOS 7                     | 3.10   | 2.17  | 4.8.5 | -
+| Ubuntu 16.04 LTS xenial      | 4.4    | 2.23  | 5.3.1 | -
+| Debian 9 stretch (oldstable) | 4.9.30 | 2.24  | 6.3.0 | 3.8
+|==============================================================

This means we need to update time to time, at least for CentOS and Debian.

Debian moves to another release after current testing gets released. We might want to use names (e.g. stretch) instead of "oldstable", "stable". (I slightly prefer current approach, but not having a strong opinion)

Quoted 7 lines
Quoted 7 lines
doc/supported-kernel-libc-versions.txt new file +7 -0
+
+For older versions please use https://github.com/linux-test-project/ltp/releases[older LTP releases].
+
+1.2 Supported architectures
+~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+[align="center",options="header"]
Quoted 8 lines

doc/supported-kernel-libc-versions.txt line 42

Quoted 8 lines
doc/supported-kernel-libc-versions.txt new file +8 -0
+|==================================
+| arch          | build
+| x86_64        | native
+| x86 emulation | native
+| aarch64       | cross compilation
+| ppc64le       | cross compilation
+| s390x         | cross compilation
+|==================================

nit: not sure if having this as a table and supported libc (next section) just paragraphs.

Quoted 7 lines
Quoted 7 lines
doc/supported-kernel-libc-versions.txt new file +7 -0
+
+1.3 Supported libc
+~~~~~~~~~~~~~~~~~~
+
+Targeted libc is https://www.gnu.org/software/libc/[GNU C Library (glibc)].
+
+https://uclibc-ng.org/[uClibc-ng] is not being tested should work as well as it
Quoted 8 lines

doc/supported-kernel-libc-versions.txt line 57

Quoted 8 lines
doc/supported-kernel-libc-versions.txt new file +8 -0
+attempt to maintain a glibc compatible interface
+(older https://www.uclibc.org/[uClibc] might have problems).
+
+https://musl.libc.org/[musl] is not yet supported
+(see https://github.com/linux-test-project/ltp/blob/master/travis/alpine.sh[travis script]
+for list of files which need to be deleted in order to compile under musl).
+
+For bionic libc please (Android) use https://android.googlesource.com/platform/external/ltp/[AOSP fork].

Kind regards,
Petr