From owner-freebsd-current@FreeBSD.ORG Sun Nov 12 14:27:25 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 190B716A403; Sun, 12 Nov 2006 14:27:25 +0000 (UTC) (envelope-from stefan@fafoe.narf.at) Received: from viefep16-int.chello.at (viefep15-int.chello.at [213.46.255.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A2AC43D7B; Sun, 12 Nov 2006 14:27:13 +0000 (GMT) (envelope-from stefan@fafoe.narf.at) Received: from wombat.fafoe.narf.at ([213.47.85.26]) by viefep16-int.chello.at (InterMail vM.6.01.05.04 201-2131-123-105-20051025) with ESMTP id <20061112142711.UUIZ7276.viefep16-int.chello.at@wombat.fafoe.narf.at>; Sun, 12 Nov 2006 15:27:11 +0100 Received: by wombat.fafoe.narf.at (Postfix, from userid 1001) id 18FD8BC87; Sun, 12 Nov 2006 15:27:11 +0100 (CET) Date: Sun, 12 Nov 2006 15:27:10 +0100 From: Stefan Farfeleder To: Ruslan Ermilov Message-ID: <20061112142710.GE91556@wombat.fafoe.narf.at> Mail-Followup-To: Ruslan Ermilov , FreeBSD Tinderbox , arm@freebsd.org, current@freebsd.org References: <20061112133929.9194773068@freebsd-current.sentex.ca> <20061112140010.GA47660@rambler-co.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061112140010.GA47660@rambler-co.ru> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: arm@freebsd.org, FreeBSD Tinderbox , current@freebsd.org Subject: Re: [head tinderbox] failure on arm/arm 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: Sun, 12 Nov 2006 14:27:25 -0000 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_TEST_HOOKS=1 -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-parameter -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_HOOKS=1 -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-parameter -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_HOOKS=1 -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-parameter -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_HOOKS=1 -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-parameter -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_HOOKS=1 -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-parameter -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_HOOKS=1 -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-parameter -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 > > > > Stop in /src/lib/libelf. > > *** Error code 1 > > > 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.) What is sizeof(struct foo)? If it's > 1 it makes sense. Stefan