Skip to contentSkip to conversation

gitlab-ci: Test linux-user on CentOS 7

PATCH In review Philippe Mathieu-Daudé 3 participants 10 messages Jan 21, 2021

lore
Share & tools
lore
#0 lore raw

v2 cover gitlab-ci: Test linux-user on CentOS 7

The first patch adds the static libc package to the CentOS 7 Docker image so then we can run the TCG linux-user tests on it (second patch).

Since v1:
- added first patch

Philippe Mathieu-Daudé (2):
tests/docker: Install static libc package in CentOS 7
gitlab-ci: Test building linux-user targets on CentOS 7

 .gitlab-ci.yml                          | 7 +++++++
 tests/docker/dockerfiles/centos7.docker | 1 +
 2 files changed, 8 insertions(+)
Signature · 1 line
2.26.2
#1 lore raw

PATCH v2 1/2 tests/docker: Install static libc package in CentOS 7

We need to install the static libc package to be able to run the TCG tests:

  $ make check-tcg
  ...
    BUILD   TCG tests for x86_64-softmmu
    BUILD   x86_64-softmmu guest-tests with cc
  /usr/bin/ld: hello: warning: allocated section `.notes' not in segment
  /usr/bin/ld: memory: warning: allocated section `.notes' not in segment
    BUILD   TCG tests for x86_64-linux-user
    BUILD   x86_64-linux-user guest-tests with cc
  /usr/bin/ld: cannot find -lpthread
  /usr/bin/ld: cannot find -lc
  collect2: error: ld returned 1 exit status
  make[2]: *** [threadcount] Error 1
  make[1]: *** [cross-build-guest-tests] Error 2
  make: *** [build-tcg-tests-x86_64-linux-user] Error 2
---
 tests/docker/dockerfiles/centos7.docker | 1 +
 1 file changed, 1 insertion(+)
tests/docker/dockerfiles/centos7.docker +1 -0
index 6f11af1989e..75fdb53c7c0 100644
@@ -15,6 +15,7 @@ ENV PACKAGES \
     gettext \
     git \
     glib2-devel \
+    glibc-static \
     gnutls-devel \
     libaio-devel \
     libepoxy-devel \
Signature · 1 line
2.26.2
Reviewed-by on v2 1/2
#2 lore raw

Re: [PATCH v2 1/2] tests/docker: Install static libc package in CentOS 7

Quoted 28 lines · Philippe Mathieu-Daudé

We need to install the static libc package to be able to run the TCG tests:

   $ make check-tcg
   ...
     BUILD   TCG tests for x86_64-softmmu
     BUILD   x86_64-softmmu guest-tests with cc
   /usr/bin/ld: hello: warning: allocated section `.notes' not in segment
   /usr/bin/ld: memory: warning: allocated section `.notes' not in segment
     BUILD   TCG tests for x86_64-linux-user
     BUILD   x86_64-linux-user guest-tests with cc
   /usr/bin/ld: cannot find -lpthread
   /usr/bin/ld: cannot find -lc
   collect2: error: ld returned 1 exit status
   make[2]: *** [threadcount] Error 1
   make[1]: *** [cross-build-guest-tests] Error 2
   make: *** [build-tcg-tests-x86_64-linux-user] Error 2
---
  tests/docker/dockerfiles/centos7.docker | 1 +
  1 file changed, 1 insertion(+)
tests/docker/dockerfiles/centos7.docker +0 -0
index 6f11af1989e..75fdb53c7c0 100644

tests/docker/dockerfiles/centos7.docker ENV PACKAGES \ · line 21

Quoted 7 lines
tests/docker/dockerfiles/centos7.docker +1 -0
@@ -15,6 +15,7 @@ ENV PACKAGES \
      gettext \
      git \
      glib2-devel \
+    glibc-static \
      gnutls-devel \
      libaio-devel \
      libepoxy-devel \
Reviewed-by on v2 1/2
#3 lore raw

Re: [PATCH v2 1/2] tests/docker: Install static libc package in CentOS 7

In reply to Philippe Mathieu-Daudé
Quoted 18 lines · Philippe Mathieu-Daudé

We need to install the static libc package to be able to run the TCG tests:

   $ make check-tcg
   ...
     BUILD   TCG tests for x86_64-softmmu
     BUILD   x86_64-softmmu guest-tests with cc
   /usr/bin/ld: hello: warning: allocated section `.notes' not in segment
   /usr/bin/ld: memory: warning: allocated section `.notes' not in segment
     BUILD   TCG tests for x86_64-linux-user
     BUILD   x86_64-linux-user guest-tests with cc
   /usr/bin/ld: cannot find -lpthread
   /usr/bin/ld: cannot find -lc
   collect2: error: ld returned 1 exit status
   make[2]: *** [threadcount] Error 1
   make[1]: *** [cross-build-guest-tests] Error 2
   make: *** [build-tcg-tests-x86_64-linux-user] Error 2
Quoted 4 lines
---
  tests/docker/dockerfiles/centos7.docker | 1 +
  1 file changed, 1 insertion(+)
Quoted 13 lines
tests/docker/dockerfiles/centos7.docker +1 -0
index 6f11af1989e..75fdb53c7c0 100644
@@ -15,6 +15,7 @@ ENV PACKAGES \
      gettext \
      git \
      glib2-devel \
+    glibc-static \
      gnutls-devel \
      libaio-devel \
      libepoxy-devel \
#4 lore raw

PATCH v2 2/2 gitlab-ci: Test building linux-user targets on CentOS 7

In reply to Philippe Mathieu-Daudé

Add a configuration tested by Peter Maydell (see [1] and [2]) but not covered in our CI [3]:

[705/2910] Compiling C object libqemu-arm-linux-user.fa.p/linux-user_strace.c.o
FAILED: libqemu-arm-linux-user.fa.p/linux-user_strace.c.o
../linux-user/strace.c: In function 'do_print_sockopt':
../linux-user/strace.c:2831:14: error: 'IPV6_ADDR_PREFERENCES' undeclared (first use in this function)

           case IPV6_ADDR_PREFERENCES:
                ^

This job currently takes 31 minutes 32 seconds ([4]).

[1] https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg05086.html
[2] https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg05379.html
[3] https://gitlab.com/philmd/qemu/-/jobs/977408284
[4] https://gitlab.com/philmd/qemu/-/jobs/978223286

---
 .gitlab-ci.yml | 7 +++++++
 1 file changed, 7 insertions(+)
.gitlab-ci.yml +7 -0
index de3a3d25b58..af4d74757d8 100644
@@ -411,6 +411,13 @@ build-user-plugins:
     MAKE_CHECK_ARGS: check-tcg
   timeout: 1h 30m
 
+build-user-centos7:
+  <<: *native_build_job_definition
+  variables:
+    IMAGE: centos7
+    CONFIGURE_ARGS: --disable-system --disable-tools --disable-docs
+    MAKE_CHECK_ARGS: check-tcg
+
 build-some-softmmu-plugins:
   <<: *native_build_job_definition
   variables:
Signature · 1 line
2.26.2
#5 lore raw

Re: [PATCH v2 2/2] gitlab-ci: Test building linux-user targets on CentOS 7

Hi,

Quoted 8 lines · Philippe Mathieu-Daudé

Add a configuration tested by Peter Maydell (see [1] and [2]) but not covered in our CI [3]:

[705/2910] Compiling C object libqemu-arm-linux-user.fa.p/linux-user_strace.c.o
FAILED: libqemu-arm-linux-user.fa.p/linux-user_strace.c.o
../linux-user/strace.c: In function 'do_print_sockopt':
../linux-user/strace.c:2831:14: error: 'IPV6_ADDR_PREFERENCES' undeclared (first use in this function)
case IPV6_ADDR_PREFERENCES:

Why the following builder did not catch that issue?

build-user:
  <<: *native_build_job_definition variables:
    IMAGE: debian-all-test-cross
    CONFIGURE_ARGS: --disable-tools --disable-system
    MAKE_CHECK_ARGS: check-tcg

Quoted 33 lines
                 ^

This job currently takes 31 minutes 32 seconds ([4]).

[1] https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg05086.html
[2] https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg05379.html
[3] https://gitlab.com/philmd/qemu/-/jobs/977408284
[4] https://gitlab.com/philmd/qemu/-/jobs/978223286

---
  .gitlab-ci.yml | 7 +++++++
  1 file changed, 7 insertions(+)
.gitlab-ci.yml +7 -0
index de3a3d25b58..af4d74757d8 100644
@@ -411,6 +411,13 @@ build-user-plugins:
      MAKE_CHECK_ARGS: check-tcg
    timeout: 1h 30m
 
+build-user-centos7:
+  <<: *native_build_job_definition
+  variables:
+    IMAGE: centos7
+    CONFIGURE_ARGS: --disable-system --disable-tools --disable-docs
+    MAKE_CHECK_ARGS: check-tcg
+
  build-some-softmmu-plugins:
    <<: *native_build_job_definition
    variables:
#6 lore raw

Re: [PATCH v2 2/2] gitlab-ci: Test building linux-user targets on CentOS 7

Quoted 10 lines · Wainer dos Santos Moschetta
Quoted 8 lines · Philippe Mathieu-Daudé

Add a configuration tested by Peter Maydell (see [1] and [2]) but not covered in our CI [3]:

[705/2910] Compiling C object libqemu-arm-linux-user.fa.p/linux-user_strace.c.o
FAILED: libqemu-arm-linux-user.fa.p/linux-user_strace.c.o
../linux-user/strace.c: In function 'do_print_sockopt':
../linux-user/strace.c:2831:14: error: 'IPV6_ADDR_PREFERENCES' undeclared (first use in this function)
case IPV6_ADDR_PREFERENCES:

Quoted 8 lines

Why the following builder did not catch that issue?

build-user:

   <<: *native_build_job_definition
   variables:
     IMAGE: debian-all-test-cross
     CONFIGURE_ARGS: --disable-tools --disable-system
     MAKE_CHECK_ARGS: check-tcg

It uses a different base image, debian-all-test-cross, which is based on Debian 10.

Packages are more recent than CentOS 7.
QEMU aims to support the 2 latest releases from major distribs. CentOS 7 is likely the oldest.

#7 lore raw

Re: [PATCH v2 2/2] gitlab-ci: Test building linux-user targets on CentOS 7

Quoted 19 lines · Philippe Mathieu-Daudé
Quoted 9 lines · Wainer dos Santos Moschetta
Quoted 8 lines · Philippe Mathieu-Daudé

Add a configuration tested by Peter Maydell (see [1] and [2]) but not covered in our CI [3]:

[705/2910] Compiling C object libqemu-arm-linux-user.fa.p/linux-user_strace.c.o
FAILED: libqemu-arm-linux-user.fa.p/linux-user_strace.c.o
../linux-user/strace.c: In function 'do_print_sockopt':
../linux-user/strace.c:2831:14: error: 'IPV6_ADDR_PREFERENCES' undeclared (first use in this function)
case IPV6_ADDR_PREFERENCES:

Quoted 8 lines

Why the following builder did not catch that issue?

build-user:

    <<: *native_build_job_definition
    variables:
      IMAGE: debian-all-test-cross
      CONFIGURE_ARGS: --disable-tools --disable-system
      MAKE_CHECK_ARGS: check-tcg
Quoted 6 lines

It uses a different base image, debian-all-test-cross, which is based on Debian 10.

Packages are more recent than CentOS 7.
QEMU aims to support the 2 latest releases from major distribs. CentOS 7 is likely the oldest.

Oh sorry, my emails filters aren't working fine so I missed Daniel's reply on talking about it. Thanks for explaining again. :)

- Wainer

Quoted 1 line
Reviewed-by on v2 2/2
#8 lore raw

Re: [PATCH v2 2/2] gitlab-ci: Test building linux-user targets on CentOS 7

In reply to Philippe Mathieu-Daudé
Quoted 32 lines · Philippe Mathieu-Daudé

Add a configuration tested by Peter Maydell (see [1] and [2]) but not covered in our CI [3]:

[705/2910] Compiling C object libqemu-arm-linux-user.fa.p/linux-user_strace.c.o
FAILED: libqemu-arm-linux-user.fa.p/linux-user_strace.c.o
../linux-user/strace.c: In function 'do_print_sockopt':
../linux-user/strace.c:2831:14: error: 'IPV6_ADDR_PREFERENCES' undeclared (first use in this function)

            case IPV6_ADDR_PREFERENCES:
                 ^

This job currently takes 31 minutes 32 seconds ([4]).

[1] https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg05086.html
[2] https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg05379.html
[3] https://gitlab.com/philmd/qemu/-/jobs/977408284
[4] https://gitlab.com/philmd/qemu/-/jobs/978223286

---
  .gitlab-ci.yml | 7 +++++++
  1 file changed, 7 insertions(+)
.gitlab-ci.yml +0 -0
index de3a3d25b58..af4d74757d8 100644
@@ -411,6 +411,13 @@ build-user-plugins:
      MAKE_CHECK_ARGS: check-tcg
    timeout: 1h 30m
 

.gitlab-ci.yml build-user-plugins: · line 423

Quoted 10 lines
.gitlab-ci.yml +7 -0
+build-user-centos7:
+  <<: *native_build_job_definition
+  variables:
+    IMAGE: centos7
+    CONFIGURE_ARGS: --disable-system --disable-tools --disable-docs
+    MAKE_CHECK_ARGS: check-tcg
+
  build-some-softmmu-plugins:
    <<: *native_build_job_definition
    variables:
Reviewed-by on v2 2/2
#9 lore raw

Re: [PATCH v2 2/2] gitlab-ci: Test building linux-user targets on CentOS 7

In reply to Philippe Mathieu-Daudé
Quoted 17 lines · Philippe Mathieu-Daudé

Add a configuration tested by Peter Maydell (see [1] and [2]) but not covered in our CI [3]:

[705/2910] Compiling C object libqemu-arm-linux-user.fa.p/linux-user_strace.c.o
FAILED: libqemu-arm-linux-user.fa.p/linux-user_strace.c.o
../linux-user/strace.c: In function 'do_print_sockopt':
../linux-user/strace.c:2831:14: error: 'IPV6_ADDR_PREFERENCES' undeclared (first use in this function)

            case IPV6_ADDR_PREFERENCES:
                 ^

This job currently takes 31 minutes 32 seconds ([4]).

[1] https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg05086.html
[2] https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg05379.html
[3] https://gitlab.com/philmd/qemu/-/jobs/977408284
[4] https://gitlab.com/philmd/qemu/-/jobs/978223286

Quoted 5 lines
---
  .gitlab-ci.yml | 7 +++++++
  1 file changed, 7 insertions(+)
Quoted 19 lines
.gitlab-ci.yml +7 -0
index de3a3d25b58..af4d74757d8 100644
@@ -411,6 +411,13 @@ build-user-plugins:
      MAKE_CHECK_ARGS: check-tcg
    timeout: 1h 30m
 
+build-user-centos7:
+  <<: *native_build_job_definition
+  variables:
+    IMAGE: centos7
+    CONFIGURE_ARGS: --disable-system --disable-tools --disable-docs
+    MAKE_CHECK_ARGS: check-tcg
+
  build-some-softmmu-plugins:
    <<: *native_build_job_definition
    variables: