Re: buildworld broke in sbin/nvmecontrol; r240620 suspected

看板FB_current作者時間13年前 (2012/09/19 02:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串6/6 (看更多)
On Tue, Sep 18, 2012 at 5:53 AM, David Wolfskill <david@catwhisker.org> wro= te: > This was on: > > FreeBSD g1-227.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #681 2405= 97M: Mon Sep 17 15:34:41 PDT 2012 root@d134.dwolf.juniper.net.:/usr/obj= /usr/src/sys/CANARY i386 > > using clang as the C compiler: > > ... > =3D=3D=3D> sbin/nvmecontrol (all) > clang -O2 -pipe -std=3Dgnu99 -Qunused-arguments -fstack-protector -Wsyst= em-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-= prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -= Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-sub= scripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition = -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -c /usr/src/sbin/nvm= econtrol/nvmecontrol.c > /usr/src/sbin/nvmecontrol/nvmecontrol.c:77:6: error: cast from 'struct nv= me_controller_data *' to 'uint32_t *' (aka 'unsigned int *') increases requ= ired 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 Fixed in r240671. On a related note, r240672 fixes a build warning in nvme(4), found only with clang. > Peace, > david > -- > David H. Wolfskill david@catwhisker.org > Depriving a girl or boy of an opportunity for education is evil. > > See http://www.catwhisker.org/~david/publickey.gpg for my public key. _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1GMBuZti (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1GMBuZti (FB_current)