Date: Thu, 1 Jan 2015 09:48:19 -0800 From: David Wolfskill <david@catwhisker.org> To: Dimitry Andric <dim@FreeBSD.org> Cc: FreeBSD-Current <freebsd-current@freebsd.org> Subject: Re: HEADS UP: Upgraded clang, llvm and lldb to 3.5.0 Message-ID: <20150101174819.GA37889@albert.catwhisker.org> In-Reply-To: <528C023D-6207-4054-917B-05D4C4E605EC@FreeBSD.org> References: <528C023D-6207-4054-917B-05D4C4E605EC@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 31, 2014 at 09:41:34PM +0100, Dimitry Andric wrote: > Hi, >=20 > I just committed an upgrade of clang, llvm and lldb to 3.5.0 to head, in > r276479. > ..... Hmm... I'm seeing a problem with src/sys/modules/asr, using (head) sources @276499 in native i386 environments that are presently running: FreeBSD g1-253.catwhisker.org 11.0-CURRENT FreeBSD 11.0-CURRENT #1470 r276= 462M/276468:1100051: Wed Dec 31 06:18:00 PST 2014 root@g1-253.catwhiske= r.org:/common/S4/obj/usr/src/sys/CANARY i386 and: FreeBSD freebeast.catwhisker.org 11.0-CURRENT FreeBSD 11.0-CURRENT #1707 r= 276462M/276468:1100051: Wed Dec 31 05:48:32 PST 2014 root@freebeast.cat= whisker.org:/common/S4/obj/usr/src/sys/GENERIC i386 (For a history, showing at what points I've successfully built, installed, and booted i386/head on these machines, please see <http://www.catwhisker.org/~david/FreeBSD/history/laptop_i386_11.txt> or <http://www.catwhisker.org/~david/FreeBSD/history/freebeast_i386_11.txt>.) Here's an excerpt from one of the failures (re-created without a -j specification in order to help keep things clear): >>> Kernel build for CANARY started on Thu Jan 1 08:56:50 PST 2015 =2E.. >>> stage 3.2: building everything =2E.. =3D=3D=3D> asmc (all) cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdin= c -DHAVE_KERNEL_OPTION_HEADERS -include /common/S4/obj/usr/src/sys/CANARY= /opt_global.h -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -fno-common -g= -I/common/S4/obj/usr/src/sys/CANARY -mno-mmx -mno-sse -msoft-float -ffree= standing -fstack-protector -gdwarf-2 -Wno-error-tautological-compare -Wno-e= rror-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function= -Wno-error-pointer-sign -Wno-error-format -Wno-error-parentheses -Wno-er= ror-switch -Wno-error-switch -Wno-error-shift-count-negative -Wno-error-s= hift-count-overflow -Wno-error-constant-conversion -mno-aes -mno-avx -std= =3Diso9899:1999 -c /usr/src/sys/modules/asmc/../../dev/asmc/asmc.c /usr/src/sys/modules/asmc/../../dev/asmc/asmc.c:975:7: warning: assigning to 'char *' from 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] desc =3D buf+4; ^ ~~~~~ 1 warning generated. ctfconvert -L VERSION -g asmc.o ld -d -warn-common -r -d -o asmc.kld asmc.o ctfmerge -L VERSION -g -o asmc.kld asmc.o :> export_syms awk -f /usr/src/sys/conf/kmod_syms.awk asmc.kld export_syms | xargs -J% ob= jcopy % asmc.kld ld -Bshareable -d -warn-common -o asmc.ko.debug asmc.kld objcopy --only-keep-debug asmc.ko.debug asmc.ko.symbols objcopy --strip-debug --add-gnu-debuglink=3Dasmc.ko.symbols asmc.ko.debug a= smc.ko =3D=3D=3D> asr (all) cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdin= c -DHAVE_KERNEL_OPTION_HEADERS -include /common/S4/obj/usr/src/sys/CANARY= /opt_global.h -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -fno-common -g= -I/common/S4/obj/usr/src/sys/CANARY -mno-mmx -mno-sse -msoft-float -ffree= standing -fstack-protector -gdwarf-2 -Wno-error-tautological-compare -Wno-e= rror-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function= -Wno-error-pointer-sign -Wno-error-format -Wno-error-parentheses -Wno-er= ror-switch -Wno-error-switch -Wno-error-shift-count-negative -Wno-error-s= hift-count-overflow -Wno-error-constant-conversion -mno-aes -mno-avx -std= =3Diso9899:1999 -c /usr/src/sys/modules/asr/../../dev/asr/asr.c /usr/src/sys/modules/asr/../../dev/asr/asr.c:1844:4: warning: assigning to 'caddr_t' (aka 'char *') from 'u_int8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] v =3D ccb->csio.data_ptr; ^ ~~~~~~~~~~~~~~~~~~ /usr/src/sys/modules/asr/../../dev/asr/asr.c:1849:29: error: array index 58= is past the end of the array (which contains 1 element) [-Werror,-Warray-bounds] while ((len > 0) && (sg < &((PPRIVATE_SCSI_SCB_EXECUTE_MESSAGE) ^ /usr/src/sys/dev/asr/i2omsg.h:934:8: note: array 'Simple' declared here I2O_SGE_SIMPLE_ELEMENT Simple[1]; ^ /usr/src/sys/modules/asr/../../dev/asr/asr.c:2621:18: warning: passing 'char [8]' to parameter of type 'u_int8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] ASR_prstring (iq->vendor, 8); ^~~~~~~~~~ /usr/src/sys/modules/asr/../../dev/asr/asr.c:732:24: note: passing argument= to parameter 's' here ASR_prstring(u_int8_t *s, int len) ^ /usr/src/sys/modules/asr/../../dev/asr/asr.c:2626:18: warning: passing 'char [16]' to parameter of type 'u_int8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] ASR_prstring (iq->product, 16); /usr/src/sys/modules/asr/../../dev/asr/asr.c:732:24: note: passing argument= to parameter 's' here ASR_prstring(u_int8_t *s, int len) ^ /usr/src/sys/modules/asr/../../dev/asr/asr.c:2631:18: warning: passing 'char [4]' to parameter of type 'u_int8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] ASR_prstring (iq->revision, 4); ^~~~~~~~~~~~ /usr/src/sys/modules/asr/../../dev/asr/asr.c:732:24: note: passing argument= to parameter 's' here ASR_prstring(u_int8_t *s, int len) ^ 4 warnings and 1 error generated. *** Error code 1 Stop. make[4]: stopped in /usr/src/sys/modules/asr *** Error code 1 Stop. make[3]: stopped in /usr/src/sys/modules *** Error code 1 Stop. make[2]: stopped in /common/S4/obj/usr/src/sys/CANARY *** Error code 1 Stop. make[1]: stopped in /usr/src *** Error code 1 src.conf is: g1-253(11.0-C)[9] cat /etc/src.conf=20 KERNCONF=3DCANARY PORTS_MODULES=3Dx11/nvidia-driver g1-253(11.0-C)[10]=20 Peace, david --=20 David H. Wolfskill david@catwhisker.org Actions have consequences ... as do inactions. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --YiEDa0DAkWCtVeE4 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJUpYhiXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RThEMDY4QTIxMjc1MDZFRDIzODYzRTc4 QTY3RjlDOERFRjQxOTNCAAoJEIpn+cje9Bk762EQAJgwhgoaKv7wr1N8JqkEFQ+B CejZeBOvT4ucfJ5CsNWrv2i6azqSRoYd394o/u6sFTZ4eIsf4coGX3z1NylDvxzc Ic9KGL1l6ncCowhVZsKtBZ+Ayv6RXu6svatZeobRi/6jQWIXlGKR2vopG9vJcW9C lKwE7gBlpaD4t/WSgj3NxpNaljydc/9uLvCvHBmOROVdN623gLcVd0H7dR8k2S9c yc0KxOyjZllgwVVAoe3QofA6MJIqFEfN/08vVn2m/NLJM93oKvV66FjXqw/PzkW3 Qu3ysLvdOwFKf7DiQzClhGVcwS4nFMplyM9IgFla/knoqOpaYRu6nnC2FPqTOxtF pD3cujzP1OGD1vYF0EL2sA2SQAqGMFNZgz9HQ7Pu692zDFfvhH7hjhvY3JewR4Xm t5/XFL9ZxlGCy0Zp1H1U7ECPFfXDyk0iUJGt9QQzPJC3WNwfg+R8aVaNJ2mdFYkw NP1Tjbmq2VnAUuWTSuqGcPmW0uOhe2MW5VZD5oo43WbZNWqApgFb2u0L/TkCQMyG 17heT+nmrL+g0PlhwkqyWud0I13gnheKQaNgm5AyarNEjC5EQptILDEbIcBREM5e m10CBuLD28crCTPcsx198+IUUW50Ps9P1rIo3+yy7sX+g9sRbsIF5KJlcAfPx/4V xWW3ZXcvs+68YJiVeN3i =0SOy -----END PGP SIGNATURE----- --YiEDa0DAkWCtVeE4--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150101174819.GA37889>