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

Attachment: pgpdelFk0r83f.pgp
Description: PGP signature

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to