From owner-freebsd-tinderbox@FreeBSD.ORG Sun Nov 12 14:46:19 2006 Return-Path: X-Original-To: tinderbox@freebsd.org Delivered-To: freebsd-tinderbox@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C68016A403; Sun, 12 Nov 2006 14:46:19 +0000 (UTC) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (relay0.rambler.ru [81.19.66.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F40643D7E; Sun, 12 Nov 2006 14:46:16 +0000 (GMT) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (localhost [127.0.0.1]) by relay0.rambler.ru (Postfix) with ESMTP id 4D7155F37; Sun, 12 Nov 2006 17:46:15 +0300 (MSK) Received: from edoofus.park.rambler.ru (unknown [81.19.65.108]) by relay0.rambler.ru (Postfix) with ESMTP id 289B95F35; Sun, 12 Nov 2006 17:46:15 +0300 (MSK) Received: (from ru@localhost) by edoofus.park.rambler.ru (8.13.8/8.13.8) id kACEkI9M050075; Sun, 12 Nov 2006 17:46:18 +0300 (MSK) (envelope-from ru) Date: Sun, 12 Nov 2006 17:46:18 +0300 From: Ruslan Ermilov To: FreeBSD Tinderbox , arm@freebsd.org, current@freebsd.org Message-ID: <20061112144618.GB49703@rambler-co.ru> References: <20061112133929.9194773068@freebsd-current.sentex.ca> <20061112140010.GA47660@rambler-co.ru> <20061112142710.GE91556@wombat.fafoe.narf.at> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IiVenqGWf+H9Y6IX" Content-Disposition: inline In-Reply-To: <20061112142710.GE91556@wombat.fafoe.narf.at> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: No virus found Cc: Subject: Re: [head tinderbox] failure on arm/arm X-BeenThere: freebsd-tinderbox@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Tinderbox reports, responses, and meta-comments" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Nov 2006 14:46:19 -0000 --IiVenqGWf+H9Y6IX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Nov 12, 2006 at 03:27:10PM +0100, Stefan Farfeleder wrote: > On Sun, Nov 12, 2006 at 05:00:10PM +0300, Ruslan Ermilov wrote: > > 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_TE= ST_HOOKS=3D1 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-= parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn= -type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-p= arameter -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_TE= ST_HOOKS=3D1 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-= parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn= -type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-p= arameter -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_TE= ST_HOOKS=3D1 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-= parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn= -type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-p= arameter -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_TE= ST_HOOKS=3D1 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-= parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn= -type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-p= arameter -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_TE= ST_HOOKS=3D1 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-= parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn= -type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-p= arameter -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_TE= ST_HOOKS=3D1 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-= parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn= -type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-p= arameter -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 align= ment 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: > >=20 > > %%% > > $ cat a.c > > struct foo { > > char x; > > }; > >=20 > > struct foo * > > bubu(char *s) > > { > >=20 > > 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 > > %%% > >=20 > > (None of other supported architecutes see the issue here.) >=20 > What is sizeof(struct foo)? If it's > 1 it makes sense. >=20 Yes, it's four bytes on ARM. But why? Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --IiVenqGWf+H9Y6IX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFVzO6qRfpzJluFF4RAnW8AJ9XPR3d5tGGAHEkD06xWD07Frw2rACghbIi AssHx2oQOJQ9xso6+MNMaTA= =l4T9 -----END PGP SIGNATURE----- --IiVenqGWf+H9Y6IX--