Date: Thu, 5 Mar 2020 14:51:35 -0500 From: Michael Butler <imb@protected-networks.net> To: freebsd-current <freebsd-current@freebsd.org> Subject: Fwd: SVN r358655 breaks i386 buildworld :-( Message-ID: <52e9a204-b72c-3a1a-5d83-a3220a145867@protected-networks.net> In-Reply-To: <4f6bf95a-bb1b-24bc-b135-69013cfc0b9e@protected-networks.net> References: <4f6bf95a-bb1b-24bc-b135-69013cfc0b9e@protected-networks.net>
next in thread | previous in thread | raw e-mail | index | archive | help
In case anyone else is seeing this ..
-------- Forwarded Message --------
Subject: Re: SVN r358655 breaks i386 buildworld :-(
Date: Thu, 5 Mar 2020 09:49:01 -0500
From: Michael Butler <imb@protected-networks.net>
To: Gleb Smirnoff <glebius@FreeBSD.org>
On 3/4/20 10:00 PM, Michael Butler wrote:
> On i386, I get this ..
>
> Building
> /usr/obj/usr/src/i386.i386/rescue/rescue/usr/src/sbin/mount_nfs/mount_nfs.o
> /usr/src/sbin/mount_nfs/mount_nfs.c:549:10: error: cast from 'char *' to
> 'struct if_msghdr *' increases required alignment from 1 to 4
> [-Werror,-Wcast-align]
> ifm = (struct if_msghdr *)buf;
> ^~~~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
Not sure if it's the correct solution but I noted sbin/dhclient has a
Makefile fix which disables this warning. Applying this works around the
problem ..
Index: sbin/mount_nfs/Makefile
===================================================================
--- sbin/mount_nfs/Makefile (revision 358670)
+++ sbin/mount_nfs/Makefile (working copy)
@@ -11,6 +11,8 @@
UMNTALL= ${SRCTOP}/usr.sbin/rpc.umntall
CFLAGS+= -DNFS -I${MOUNT} -I${UMNTALL}
+NO_WCAST_ALIGN= yes
+
.PATH: ${MOUNT} ${UMNTALL}
.include <bsd.prog.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52e9a204-b72c-3a1a-5d83-a3220a145867>
