[Bug 793073] New: build failure: format errors in gstnetsim.c when cross-building for armv7 (32-bit)
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Wed Jan 31 17:41:22 UTC 2018
https://bugzilla.gnome.org/show_bug.cgi?id=793073
Bug ID: 793073
Summary: build failure: format errors in gstnetsim.c when
cross-building for armv7 (32-bit)
Classification: Platform
Product: GStreamer
Version: git master
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: gst-plugins-bad
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: omar.akkila at collabora.co.uk
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
When cross-compiling -bad for armv7 (32-bit) I get the following errors:
gstnetsim.c: In function ‘gst_net_sim_delay_buffer’:
gstnetsim.c:372:31: error: format ‘%ld’ expects argument of type ‘long int’,
but argument 8 has type ‘gint64 {aka long long int}’ [-Werror=format=]
GST_DEBUG_OBJECT (netsim, "Delaying packet by %ldms",
^
(ready_time - now_time) / 1000);
~~~~~~~~~~~~~~~~~~~~~~~~~~~
gstnetsim.c: In function ‘gst_net_sim_token_bucket’:
gstnetsim.c:449:27: error: format ‘%lu’ expects argument of type ‘long unsigned
int’, but argument 9 has type ‘gsize {aka unsigned int}’ [-Werror=format=]
GST_LOG_OBJECT (netsim, "Adding %d tokens to bucket (contains %lu tokens)",
^
tokens, netsim->bucket_size);
~~~~~~~~~
^
gstnetsim.c:457:31: error: format ‘%lu’ expects argument of type ‘long unsigned
int’, but argument 9 has type ‘gsize {aka unsigned int}’ [-Werror=format=]
GST_DEBUG_OBJECT (netsim, "Buffer size (%lu) exeedes bucket size (%lu)",
^
buffer_size, netsim->bucket_size);
gstnetsim.c:463:27: error: format ‘%lu’ expects argument of type ‘long unsigned
int’, but argument 9 has type ‘gsize {aka unsigned int}’ [-Werror=format=]
GST_LOG_OBJECT (netsim, "Buffer taking %lu tokens (%lu left)",
^
buffer_size, netsim->bucket_size);
These regressions were introduced by commits 3f87a9dd7f (bz:
https://bugzilla.gnome.org/show_bug.cgi?id=791838) and 3eb733d95f (no bz link).
For `gst_net_sim_delay_buffer` replacing %lu with " G_GSIZE_FORMAT " would
hopefully fix it. Similarly with `gst_net_sim_delay_buffer` by replacing %ld
with " G_GINT64_FORMAT ".
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list