All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gitlab-ci: Test building linux-user targets on CentOS 7
@ 2021-01-21 12:15 Philippe Mathieu-Daudé
  2021-01-21 12:18 ` Daniel P. Berrangé
  2021-01-21 13:14 ` Philippe Mathieu-Daudé
  0 siblings, 2 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-01-21 12:15 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Thomas Huth, Philippe Mathieu-Daudé,
	Laurent Vivier, Wainer dos Santos Moschetta,
	Philippe Mathieu-Daudé,
	Alex Bennée

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:
                ^

[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:

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 .gitlab-ci.yml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 203b1671c43..ce52d6cb2cb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -378,6 +378,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:
-- 
2.26.2



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] gitlab-ci: Test building linux-user targets on CentOS 7
  2021-01-21 12:15 [PATCH] gitlab-ci: Test building linux-user targets on CentOS 7 Philippe Mathieu-Daudé
@ 2021-01-21 12:18 ` Daniel P. Berrangé
  2021-01-21 13:14 ` Philippe Mathieu-Daudé
  1 sibling, 0 replies; 5+ messages in thread
From: Daniel P. Berrangé @ 2021-01-21 12:18 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: Peter Maydell, Thomas Huth, Alex Bennée, qemu-devel,
	Wainer dos Santos Moschetta, Laurent Vivier,
	Philippe Mathieu-Daudé

On Thu, Jan 21, 2021 at 01:15:05PM +0100, Philippe Mathieu-Daudé wrote:
> 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:
>                 ^

Yes, makes sense as centos is our oldest distro and thus likely
to see issues missed from newer OS distros.

> 
> [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:
> 
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
>  .gitlab-ci.yml | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> index 203b1671c43..ce52d6cb2cb 100644
> --- a/.gitlab-ci.yml
> +++ b/.gitlab-ci.yml
> @@ -378,6 +378,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
> +

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>



Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] gitlab-ci: Test building linux-user targets on CentOS 7
  2021-01-21 12:15 [PATCH] gitlab-ci: Test building linux-user targets on CentOS 7 Philippe Mathieu-Daudé
  2021-01-21 12:18 ` Daniel P. Berrangé
@ 2021-01-21 13:14 ` Philippe Mathieu-Daudé
  2021-01-21 14:01   ` Thomas Huth
  1 sibling, 1 reply; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-01-21 13:14 UTC (permalink / raw)
  To: qemu-devel, Alex Bennée
  Cc: Peter Maydell, Thomas Huth, Laurent Vivier, Wainer dos Santos Moschetta

On 1/21/21 1:15 PM, Philippe Mathieu-Daudé wrote:
> 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:
>                 ^
> 
> [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:
> 
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
>  .gitlab-ci.yml | 7 +++++++
>  1 file changed, 7 insertions(+)

> +build-user-centos7:
> +  <<: *native_build_job_definition
> +  variables:
> +    IMAGE: centos7
> +    CONFIGURE_ARGS: --disable-system --disable-tools --disable-docs
> +    MAKE_CHECK_ARGS: check-tcg

check-tcg calls build-tcg which fails:

  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

Apparently this is due to the -static flag:

$ gcc  -Wall -Werror -O0 -g -fno-strict-aliasing -m64
tests/tcg/multiarch/threadcount.c -o threadcount  -static -lpthread
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status

Do we need to install these packages?

glibc-static.i686 : C library static libraries for -static linking.
glibc-static.x86_64 : C library static libraries for -static linking.

Or simply ignore testing?

Thanks,

Phil.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] gitlab-ci: Test building linux-user targets on CentOS 7
  2021-01-21 13:14 ` Philippe Mathieu-Daudé
@ 2021-01-21 14:01   ` Thomas Huth
  2021-01-21 18:24     ` Philippe Mathieu-Daudé
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Huth @ 2021-01-21 14:01 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel, Alex Bennée
  Cc: Peter Maydell, Laurent Vivier, Wainer dos Santos Moschetta

On 21/01/2021 14.14, Philippe Mathieu-Daudé wrote:
> On 1/21/21 1:15 PM, Philippe Mathieu-Daudé wrote:
>> 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:
>>                  ^
>>
>> [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:
>>
>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
>> ---
>>   .gitlab-ci.yml | 7 +++++++
>>   1 file changed, 7 insertions(+)
> 
>> +build-user-centos7:
>> +  <<: *native_build_job_definition
>> +  variables:
>> +    IMAGE: centos7
>> +    CONFIGURE_ARGS: --disable-system --disable-tools --disable-docs
>> +    MAKE_CHECK_ARGS: check-tcg

Ok ... just be aware of the fact that we might remove it again in some few 
months, since we then won't support CentOS 7 anymore (RHEL8 has been 
released in May 2019 and according to our support policy we will drop 
support for the previous version two years later, i.e. in May 2021).

> check-tcg calls build-tcg which fails:
> 
>    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
> 
> Apparently this is due to the -static flag:
> 
> $ gcc  -Wall -Werror -O0 -g -fno-strict-aliasing -m64
> tests/tcg/multiarch/threadcount.c -o threadcount  -static -lpthread
> /usr/bin/ld: cannot find -lpthread
> /usr/bin/ld: cannot find -lc
> collect2: error: ld returned 1 exit status
> 
> Do we need to install these packages?
> 
> glibc-static.i686 : C library static libraries for -static linking.
> glibc-static.x86_64 : C library static libraries for -static linking.
> 
> Or simply ignore testing?

If testing then succeeds, I think I'd prefer to add the package to the 
docker file.

  Thomas



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] gitlab-ci: Test building linux-user targets on CentOS 7
  2021-01-21 14:01   ` Thomas Huth
@ 2021-01-21 18:24     ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-01-21 18:24 UTC (permalink / raw)
  To: Thomas Huth
  Cc: Peter Maydell, Alex Bennée,
	qemu-devel@nongnu.org Developers, Wainer dos Santos Moschetta,
	Laurent Vivier

On Thu, Jan 21, 2021 at 3:01 PM Thomas Huth <thuth@redhat.com> wrote:
> On 21/01/2021 14.14, Philippe Mathieu-Daudé wrote:
> >> +build-user-centos7:
> >> +  <<: *native_build_job_definition
> >> +  variables:
> >> +    IMAGE: centos7
> >> +    CONFIGURE_ARGS: --disable-system --disable-tools --disable-docs
> >> +    MAKE_CHECK_ARGS: check-tcg
>
> Ok ... just be aware of the fact that we might remove it again in some few
> months, since we then won't support CentOS 7 anymore (RHEL8 has been
> released in May 2019 and according to our support policy we will drop
> support for the previous version two years later, i.e. in May 2021).

I'm not against it, as long as our CI catches the same errors found by
Peter testing
(I suppose Peter will stop testing on his particular machine by May 2021, else
there is another CI gap).

> > check-tcg calls build-tcg which fails:
> >
> >    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
> >
> > Apparently this is due to the -static flag:
> >
> > $ gcc  -Wall -Werror -O0 -g -fno-strict-aliasing -m64
> > tests/tcg/multiarch/threadcount.c -o threadcount  -static -lpthread
> > /usr/bin/ld: cannot find -lpthread
> > /usr/bin/ld: cannot find -lc
> > collect2: error: ld returned 1 exit status
> >
> > Do we need to install these packages?
> >
> > glibc-static.i686 : C library static libraries for -static linking.
> > glibc-static.x86_64 : C library static libraries for -static linking.
> >
> > Or simply ignore testing?
>
> If testing then succeeds, I think I'd prefer to add the package to the
> docker file.

Yes, tests run fine. Sent a v2.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-01-21 18:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-21 12:15 [PATCH] gitlab-ci: Test building linux-user targets on CentOS 7 Philippe Mathieu-Daudé
2021-01-21 12:18 ` Daniel P. Berrangé
2021-01-21 13:14 ` Philippe Mathieu-Daudé
2021-01-21 14:01   ` Thomas Huth
2021-01-21 18:24     ` Philippe Mathieu-Daudé

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.