[CRIU] [PATCH] zdtm: fix building uptime_grow.c on s390

Michael Holzheu holzheu at linux.vnet.ibm.com
Wed Jul 19 20:04:16 MSK 2017


Am Wed, 19 Jul 2017 13:40:36 +0000
schrieb Adrian Reber <adrian at lisas.de>:

> From: Adrian Reber <areber at redhat.com>
> 
> Building the uptime_grow test case fails on s390 with:
> 
> uptime_grow.o: In function `main':
> /tmp/2/criu/test/zdtm/static/uptime_grow.c:36: undefined reference to `__floatdidf'
> /tmp/2/criu/test/zdtm/static/uptime_grow.c:36: undefined reference to `__muldf3'
> /tmp/2/criu/test/zdtm/static/uptime_grow.c:36: undefined reference to `__floatdidf'
> /tmp/2/criu/test/zdtm/static/uptime_grow.c:36: undefined reference to `__adddf3'

These look like soft-float symbols. Normally you should not need to
include <math.h> in this case.

Could you please send the V=1 compile output?

Michael

> 
> Include math.h fixes it.
> 
> Signed-off-by: Adrian Reber <areber at redhat.com>
> ---
>  test/zdtm/static/uptime_grow.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/test/zdtm/static/uptime_grow.c b/test/zdtm/static/uptime_grow.c
> index 6d99509..87ae765 100644
> --- a/test/zdtm/static/uptime_grow.c
> +++ b/test/zdtm/static/uptime_grow.c
> @@ -5,6 +5,7 @@ const char *test_author = "Evgeny Antysev <eantyshev at parallels.com>";
> 
>  #include <time.h>
>  #include <stdlib.h>
> +#include <math.h>
> 
>  # define tv_ge(a, b) \
>    (((a)->tv_sec == (b)->tv_sec) ? \



More information about the CRIU mailing list