Bug 14984 - pulseaudio doesn't build with _TIME_BITS=64
Summary: pulseaudio doesn't build with _TIME_BITS=64
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: multimedia (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 4.2 M2
Assignee: Alexandre Belloni
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2022-12-10 19:55 UTC by Alexandre Belloni
Modified: 2023-01-03 19:39 UTC (History)
3 users (show)

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


Attachments
log.do_compile (981.69 KB, application/octet-stream)
2022-12-10 19:55 UTC, Alexandre Belloni
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Belloni 2022-12-10 19:55:10 UTC
Created attachment 4915 [details]
log.do_compile

There are multiple issues in pulseaudio:

FAILED: src/utils/libpulsedsp.so.p/padsp.c.o 
arm-poky-linux-gnueabi-gcc -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a8 -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -
Wformat -Wformat-security -Werror=format-security -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 --sysroot=/home/pokybuild/yocto-
worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/pulseaudio/16.1-r0/recipe-sysroot -Isrc/utils/l
ibpulsedsp.so.p -Isrc/utils -I../pulseaudio-16.1/src/utils -I. -I../pulseaudio-16.1 -Isrc -I../pulseaudio-16.1/src -fdiag
nostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu11 -O2 -pipe -g -feliminate-unused-debug-types -f
macro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/pulseaud
io/16.1-r0/pulseaudio-16.1=/usr/src/debug/pulseaudio/16.1-r0 -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/b
uild/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/pulseaudio/16.1-r0/pulseaudio-16.1=/usr/src/debug/pulseaudio/16.1-
r0 -fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/pul
seaudio/16.1-r0/build=/usr/src/debug/pulseaudio/16.1-r0 -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/
build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/pulseaudio/16.1-r0/build=/usr/src/debug/pulseaudio/16.1-r0 -fdebug-pref
ix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/pulseaudio/16.1-r0
/recipe-sysroot= -fmacro-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-lin
ux-gnueabi/pulseaudio/16.1-r0/recipe-sysroot= -fdebug-prefix-map=/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/
work/cortexa8hf-neon-poky-linux-gnueabi/pulseaudio/16.1-r0/recipe-sysroot-native= -fPIC -pthread -DHAVE_CONFIG_H -D_GNU_S
OURCE -Wno-nonnull-compare -MD -MQ src/utils/libpulsedsp.so.p/padsp.c.o -MF src/utils/libpulsedsp.so.p/padsp.c.o.d -o src
/utils/libpulsedsp.so.p/padsp.c.o -c ../pulseaudio-16.1/src/utils/padsp.c
In file included from /home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/pul
seaudio/16.1-r0/recipe-sysroot/usr/include/features.h:392,
                 from /home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/pul
seaudio/16.1-r0/recipe-sysroot/usr/include/endian.h:21,
                 from /home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/pul
seaudio/16.1-r0/recipe-sysroot/usr/include/linux/soundcard.h:43,
                 from /home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/pul
seaudio/16.1-r0/recipe-sysroot/usr/include/sys/soundcard.h:1,
                 from ../pulseaudio-16.1/src/utils/padsp.c:33:
/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/pulseaudio/16.1-r0/recipe-sysroot/usr/include/features-time64.h:26:5: error: #error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
   26 | #   error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
      |     ^~~~~



../pulseaudio-16.1/src/modules/bluetooth/module-bluez5-device.c:699:26: warning: format '%lu' expects argument of type 'l
ong unsigned int', but argument 6 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
  699 |             pa_log_debug("Got invalid write MTU: %lu, rounding down", u->write_block_size);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~
      |                                                                        |
      |                                                                        size_t {aka unsigned int}


../pulseaudio-16.1/src/modules/bluetooth/module-bluez5-device.c:708:51: note: format string is defined here
  708 |             pa_log_debug("Got invalid read MTU: %lu, rounding down", u->read_block_size);
      |                                                 ~~^
      |                                                   |
      |                                                   long unsigned int
      |                                                 %u