From owner-freebsd-current@FreeBSD.ORG Sun Nov 12 15:11:40 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 67CEE16A407 for ; Sun, 12 Nov 2006 15:11:40 +0000 (UTC) (envelope-from joseph.koshy@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id E250343D83 for ; Sun, 12 Nov 2006 15:11:39 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: by nz-out-0102.google.com with SMTP id i11so572628nzh for ; Sun, 12 Nov 2006 07:11:39 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NROCbYQ8GCfCDvTsupUzN+jMGf7nhFncJlOZ9dX5Zlcxo1LzwtUwgESZSdkD+rydEF/B/mt++JtT1wKFETJ9pdZ0FyDrCKyiac8KISesPPU4nYsghApxxcgjjYkibmL7Eak8vsDcCIA8bCLlEoYwhleWoPSTUZ+A7Y+5ksGXB8o= Received: by 10.65.250.11 with SMTP id c11mr6245342qbs.1163344298550; Sun, 12 Nov 2006 07:11:38 -0800 (PST) Received: by 10.64.204.15 with HTTP; Sun, 12 Nov 2006 07:11:38 -0800 (PST) Message-ID: <84dead720611120711q41d9dbefi5617f2edb03759f1@mail.gmail.com> Date: Sun, 12 Nov 2006 20:41:38 +0530 From: "Joseph Koshy" To: current@freebsd.org In-Reply-To: <20061111202438.CFBC473068@freebsd-current.sentex.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061111202438.CFBC473068@freebsd-current.sentex.ca> Cc: arm@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 15:11:40 -0000 > /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 This is the offending line: $ sed -ne 47p elf_rand.c arh = (struct ar_hdr *) (ar->e_rawfile + offset); However, 'struct ar_hdr' is a collection of char[] arrays, so I'm puzzled as to why GCC/arm thinks 'struct ar_hdr' has an alignment requirement. __alignof__(struct ar_hdr) appears to be '4' according GCC/arm. -- FreeBSD Volunteer, http://people.freebsd.org/~jkoshy