Bug 14985 - xen-tools doesn't build with _TIME_BITS=64
Summary: xen-tools doesn't build with _TIME_BITS=64
Status: RESOLVED FIXED
Alias: None
Product: Other YP Layers
Classification: Build System, Metadata & Runtime
Component: layers (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 4.3 M1
Assignee: Bruce Ashfield
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2022-12-12 16:27 UTC by Alexandre Belloni
Modified: 2023-06-13 15:06 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Belloni 2022-12-12 16:27:32 UTC
https://autobuilder.yoctoproject.org/typhoon/#builders/128/builds/975/steps/21/logs/stdio

| arm-poky-linux-gnueabi-gcc  -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a15  --sysroot=/home/pokybuild/yocto-worker/meta-virt/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0/recipe-sysroot -fmacro-prefix-map=/home/pokybuild/yocto-worker/meta-virt/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0/git=/usr/src/debug/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0  -fdebug-prefix-map=/home/pokybuild/yocto-worker/meta-virt/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0/git=/usr/src/debug/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0  -fmacro-prefix-map=/home/pokybuild/yocto-worker/meta-virt/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0/git=/usr/src/debug/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0  -fdebug-prefix-map=/home/pokybuild/yocto-worker/meta-virt/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0/git=/usr/src/debug/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0  -fdebug-prefix-map=/home/pokybuild/yocto-worker/meta-virt/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0/recipe-sysroot=  -fmacro-prefix-map=/home/pokybuild/yocto-worker/meta-virt/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0/recipe-sysroot=  -fdebug-prefix-map=/home/pokybuild/yocto-worker/meta-virt/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0/recipe-sysroot-native=      -ffile-prefix-map=/home/pokybuild/yocto-worker/meta-virt/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0/git=xen-tools-source     -fdebug-prefix-map=/home/pokybuild/yocto-worker/meta-virt/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0=xen-tools        -marm -DBUILD_ID -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -O2 -fomit-frame-pointer -D__XEN_INTERFACE_VERSION__=__XEN_LATEST_INTERFACE_VERSION__ -MMD -MP -MF .xenstored_posix.o.d -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a15 -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64  -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/pokybuild/yocto-worker/meta-virt/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0/git=/usr/src/debug/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0  -fdebug-prefix-map=/home/pokybuild/yocto-worker/meta-virt/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0/git=/usr/src/debug/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0  -fmacro-prefix-map=/home/pokybuild/yocto-worker/meta-virt/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0/git=/usr/src/debug/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0  -fdebug-prefix-map=/home/pokybuild/yocto-worker/meta-virt/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0/git=/usr/src/debug/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0  -fdebug-prefix-map=/home/pokybuild/yocto-worker/meta-virt/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0/recipe-sysroot=  -fmacro-prefix-map=/home/pokybuild/yocto-worker/meta-virt/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0/recipe-sysroot=  -fdebug-prefix-map=/home/pokybuild/yocto-worker/meta-virt/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0/recipe-sysroot-native=      -ffile-prefix-map=/home/pokybuild/yocto-worker/meta-virt/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0/git=xen-tools-source     -fdebug-prefix-map=/home/pokybuild/yocto-worker/meta-virt/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0=xen-tools      -Werror -I. -include /home/pokybuild/yocto-worker/meta-virt/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0/git/tools/xenstore/../../tools/config.h -I./include -I/home/pokybuild/yocto-worker/meta-virt/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0/git/tools/xenstore/../../tools/include -I/home/pokybuild/yocto-worker/meta-virt/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0/git/tools/xenstore/../../tools/include -D__XEN_TOOLS__ -I/home/pokybuild/yocto-worker/meta-virt/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0/git/tools/xenstore/../../tools/include -I/home/pokybuild/yocto-worker/meta-virt/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0/git/tools/xenstore/../../tools/include -DXEN_LIB_STORED="\"/var/lib/xenstored\"" -DXEN_RUN_STORED="\"/var/run/xenstored\""  -I/home/pokybuild/yocto-worker/meta-virt/build/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.16+stableAUTOINC+cea5ed49bb-r0/git/tools/xenstore/../../tools/include  -c -o xenstored_posix.o xenstored_posix.c
| xenstored_control.c: In function 'lu_reject_reason':
| xenstored_control.c:537:70: error: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t' {aka 'long long int'} [-Werror=format=]
|   537 |                         ret = talloc_asprintf(ctx, "%s\nDomain %u: %ld s",
|       |                                                                    ~~^
|       |                                                                      |
|       |                                                                      long int
|       |                                                                    %lld
| ......
|   540 |                                               now - conn->ta_start_time);
|       |                                               ~~~~~~~~~~~~~~~~~~~~~~~~~
|       |                                                   |
|       |                                                   time_t {aka long long int}
Comment 1 Randy MacLeod 2022-12-15 15:37:08 UTC
We don't normally take meta-virt bugs but we've made an exception here.
Bruce you might ask Alex about how pulseaudio is handling time-bits.
Comment 2 Bruce Ashfield 2023-01-31 04:30:42 UTC
xen has been upgraded to 4.7, this is worth re-testing
Comment 3 Alexandre Belloni 2023-02-18 21:59:05 UTC
Tested to day, it still fails:

https://autobuilder.yoctoproject.org/typhoon/#/builders/128/builds/1297/steps/20/logs/stdio
Comment 4 Bruce Ashfield 2023-06-13 15:06:20 UTC
meta-virt merged 64bit on 32 bit hosts for time_t, it also is intended to address this issue