Preparing for the next release: call for testing

Dmitry V. Levin ldv at altlinux.org
Mon Jul 25 13:13:51 UTC 2016


On Mon, Jul 25, 2016 at 08:49:42PM +0800, Yun-Chih Chen wrote:
> Try to build strace on mips and mipsel on qemu-system-mips,
> qemu-system-mips64el in the following configuration:
> 
> Qemu version: 2.3
> Architecture: mips, mipsel
> Kernel: both 3.2.0-4-kc-malta
> gcc: both 4.6.3
> 
> failed to build with --enable-gcc-Werror on.

According to
http://www.einval.com/debian/strace/build-logs/mips/2016-07-25-020504-log-minkus-SUCCESS.txt
and
http://www.einval.com/debian/strace/build-logs/mipsel/2016-07-25-020436-log-etler-SUCCESS.txt
there are no compilation warnings on these architectures.

Looks like either gcc or kernel headers (or both) is not recent enough
to build strace without warnings.

> Logs as attached.

You didn't have to attach the whole log when the relevant part is
relatively small:

> netlink_inet_diag.c: In function 'check_responses':
> netlink_inet_diag.c:102:7: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
> netlink_netlink_diag.c: In function 'check_responses':
> netlink_netlink_diag.c:107:7: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
> netlink_unix_diag.c: In function 'check_responses':
> netlink_unix_diag.c:110:7: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
> socketutils.c: In function 'receive_responses':
> socketutils.c:220:8: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
> socketutils.c:222:10: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]

This is a known issue, gcc used to complain about NLMSG_OK macro, which
is indeed poorly defined.

> v4l2.c: In function 'print_v4l2_format_fmt':
> v4l2.c:207:2: error: enumeration value 'V4L2_BUF_TYPE_VIDEO_OVERLAY' not handled in switch [-Werror=switch]
> v4l2.c:207:2: error: enumeration value 'V4L2_BUF_TYPE_VBI_CAPTURE' not handled in switch [-Werror=switch]
> v4l2.c:207:2: error: enumeration value 'V4L2_BUF_TYPE_VBI_OUTPUT' not handled in switch [-Werror=switch]
> v4l2.c:207:2: error: enumeration value 'V4L2_BUF_TYPE_SLICED_VBI_CAPTURE' not handled in switch [-Werror=switch]
> v4l2.c:207:2: error: enumeration value 'V4L2_BUF_TYPE_SLICED_VBI_OUTPUT' not handled in switch [-Werror=switch]
> v4l2.c:207:2: error: enumeration value 'V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY' not handled in switch [-Werror=switch]
> v4l2.c:207:2: error: enumeration value 'V4L2_BUF_TYPE_PRIVATE' not handled in switch [-Werror=switch]

Newer versions of gcc no longer complain about this.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20160725/65a0a1f8/attachment.bin>


More information about the Strace-devel mailing list