Date: Sun, 12 Nov 2006 17:00:10 +0300 From: Ruslan Ermilov <ru@freebsd.org> To: FreeBSD Tinderbox <tinderbox@freebsd.org> Cc: arm@freebsd.org, current@freebsd.org Subject: Re: [head tinderbox] failure on arm/arm Message-ID: <20061112140010.GA47660@rambler-co.ru> In-Reply-To: <20061112133929.9194773068@freebsd-current.sentex.ca> References: <20061112133929.9194773068@freebsd-current.sentex.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
--8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Nov 12, 2006 at 08:39:29AM -0500, FreeBSD Tinderbox wrote: > >>> stage 4.2: building libraries > [...] > cc -O2 -pipe -I/obj/arm/src/lib/libelf -I/src/lib/libelf -DLIBELF_TEST_H= OOKS=3D1 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-para= meter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-typ= e -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-param= eter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c /src/= lib/libelf/elf_getident.c > cc -O2 -pipe -I/obj/arm/src/lib/libelf -I/src/lib/libelf -DLIBELF_TEST_H= OOKS=3D1 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-para= meter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-typ= e -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-param= eter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c /src/= lib/libelf/elf_hash.c > cc -O2 -pipe -I/obj/arm/src/lib/libelf -I/src/lib/libelf -DLIBELF_TEST_H= OOKS=3D1 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-para= meter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-typ= e -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-param= eter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c /src/= lib/libelf/elf_kind.c > cc -O2 -pipe -I/obj/arm/src/lib/libelf -I/src/lib/libelf -DLIBELF_TEST_H= OOKS=3D1 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-para= meter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-typ= e -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-param= eter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c /src/= lib/libelf/elf_memory.c > cc -O2 -pipe -I/obj/arm/src/lib/libelf -I/src/lib/libelf -DLIBELF_TEST_H= OOKS=3D1 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-para= meter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-typ= e -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-param= eter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c /src/= lib/libelf/elf_next.c > cc -O2 -pipe -I/obj/arm/src/lib/libelf -I/src/lib/libelf -DLIBELF_TEST_H= OOKS=3D1 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-para= meter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-typ= e -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-param= eter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c /src/= lib/libelf/elf_rand.c > /src/lib/libelf/elf_rand.c: In function `elf_rand': > /src/lib/libelf/elf_rand.c:47: warning: cast increases required alignment= of target type > *** Error code 1 >=20 > Stop in /src/lib/libelf. > *** Error code 1 >=20 This looks like a GCC bug to me. The following code snippet, when compiled on FreeBSD/arm, causes a -Wcast-align warning which doesn't look right: %%% $ cat a.c struct foo { char x; }; struct foo * bubu(char *s) { return (struct foo *)s; } $ cc -c -Wcast-align a.c a.c: In function `bubu': a.c:9: warning: cast increases required alignment of target type %%% (None of other supported architecutes see the issue here.) Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --8t9RHnE3ZwKMSgU+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFVyjqqRfpzJluFF4RAp0yAKCF6pdQIMBN4yr4m2Q/OgScVCDwVQCgllwq n83kSLL032PE6a1jzm3VgwQ= =iePk -----END PGP SIGNATURE----- --8t9RHnE3ZwKMSgU+--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061112140010.GA47660>