From owner-freebsd-current@FreeBSD.ORG Tue Sep 18 15:28:27 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B592106566B; Tue, 18 Sep 2012 15:28:27 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 442EE8FC16; Tue, 18 Sep 2012 15:28:27 +0000 (UTC) Received: by obbun3 with SMTP id un3so13269398obb.13 for ; Tue, 18 Sep 2012 08:28:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to; bh=L8pxeZgjI7tuelu0rCD+N1gkRH4beOSg2IwSZKxzV7c=; b=k5kjmF1kQ2ALzzILC/HIfr9+tRjbXG5zTj2A5rWTRgzXt62YX0E0VZNCDcD6XVzsDq J/V2y3yFiBZvbbPI/SqYAb9zs+rKYVB6OYs22r5+4AxopC+VJau1+eDLTgGWF0O8gqEn BYLQ33ZFFP4laDs0FTTrzEysK+LsO84WCCV31BeR4+ey1YMMgUs6FM2Jga4ECjEC1/qO 1FmeCbSSF1PK4s1OkF0rDWItq2q3HiRtRez0/8s06vrkCpabIwxxh+TWzyBmqp2Ss06M tYB58lreQRawIiCKF4fZqONPTwIP+rDgnB4kFsSgwDsKIwuquD4caOz7Cp6sENK3zgA/ fk7g== Received: by 10.60.12.103 with SMTP id x7mr142284oeb.142.1347982106390; Tue, 18 Sep 2012 08:28:26 -0700 (PDT) Received: from [192.168.20.12] (c-24-19-191-56.hsd1.wa.comcast.net. [24.19.191.56]) by mx.google.com with ESMTPS id jd10sm14683405obb.13.2012.09.18.08.28.24 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 18 Sep 2012 08:28:25 -0700 (PDT) References: <20120918125303.GN3357@albert.catwhisker.org> In-Reply-To: <20120918125303.GN3357@albert.catwhisker.org> Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <7BCCAFEA-693E-479A-B1BD-AAA625164DCC@gmail.com> X-Mailer: iPhone Mail (9B206) From: Garrett Cooper Date: Tue, 18 Sep 2012 08:28:24 -0700 To: David Wolfskill Cc: Jim Harris , "current@freebsd.org" Subject: Re: buildworld broke in sbin/nvmecontrol; r240620 suspected X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2012 15:28:27 -0000 On Sep 18, 2012, at 5:53 AM, David Wolfskill wrote: > This was on: >=20 > FreeBSD g1-227.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #681 24059= 7M: Mon Sep 17 15:34:41 PDT 2012 root@d134.dwolf.juniper.net.:/usr/obj/u= sr/src/sys/CANARY i386 >=20 > using clang as the C compiler: >=20 > ... > =3D=3D=3D> sbin/nvmecontrol (all) > clang -O2 -pipe -std=3Dgnu99 -Qunused-arguments -fstack-protector -Wsyste= m-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-pr= ototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwr= ite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscri= pts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-= pointer-sign -Wno-empty-body -Wno-string-plus-int -c /usr/src/sbin/nvmecontr= ol/nvmecontrol.c > /usr/src/sbin/nvmecontrol/nvmecontrol.c:77:6: error: cast from 'struct nvm= e_controller_data *' to 'uint32_t *' (aka 'unsigned int *') increases requir= ed alignment from 1 to 4 [-Werror,-Wcast-align] > p =3D (uint32_t *)cdata; > ^~~~~~~~~~~~~~~~~ > 1 error generated. > *** [nvmecontrol.o] Error code 1 > 1 error > *** [all] Error code 2 > 1 error > *** [sbin.all__D] Error code 2 Probably should be using memcpy for that. Thanks! -Garrett=