From owner-freebsd-tinderbox@FreeBSD.ORG Thu Aug 19 16:23:01 2010 Return-Path: Delivered-To: tinderbox@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3101B1065670; Thu, 19 Aug 2010 16:23:01 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from mail.icecube.wisc.edu (trout.icecube.wisc.edu [128.104.255.119]) by mx1.freebsd.org (Postfix) with ESMTP id E803F8FC16; Thu, 19 Aug 2010 16:23:00 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.icecube.wisc.edu (Postfix) with ESMTP id 6DB43582C5; Thu, 19 Aug 2010 11:02:08 -0500 (CDT) X-Virus-Scanned: amavisd-new at icecube.wisc.edu Received: from mail.icecube.wisc.edu ([127.0.0.1]) by localhost (trout.icecube.wisc.edu [127.0.0.1]) (amavisd-new, port 10030) with ESMTP id 9BbJf2bveM5H; Thu, 19 Aug 2010 11:02:08 -0500 (CDT) Received: from wanderer.tachypleus.net (99-108-141-168.lightspeed.sntcca.sbcglobal.net [99.108.141.168]) by mail.icecube.wisc.edu (Postfix) with ESMTP id CF064582C4; Thu, 19 Aug 2010 11:02:07 -0500 (CDT) Message-ID: <4C6D557E.6080406@freebsd.org> Date: Thu, 19 Aug 2010 09:02:06 -0700 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.11) Gecko/20100727 Thunderbird/3.0.6 MIME-Version: 1.0 To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= References: <201008190304.o7J34Wa4089466@freebsd-current.sentex.ca> <86occzdmhg.fsf@ds4.des.no> In-Reply-To: <86occzdmhg.fsf@ds4.des.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: powerpc@freebsd.org, FreeBSD Tinderbox , current@freebsd.org Subject: Re: [head tinderbox] failure on powerpc64/powerpc 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: Thu, 19 Aug 2010 16:23:01 -0000 On 08/19/10 01:40, Dag-Erling Smørgrav wrote: > FreeBSD Tinderbox writes: > >>>>> Kernel build for LINT started on Thu Aug 19 02:51:08 UTC 2010 >>>>> stage 1: configuring the kernel >>>>> stage 2.1: cleaning up the object tree >>>>> stage 2.2: rebuilding the object tree >>>>> stage 2.3: build tools >>>>> stage 3.1: making dependencies >>>>> stage 3.2: building everything >>>>> >> [...] >> /src/sys/dev/ofw/ofw_standard.c:705: warning: cast to pointer from integer of different size >> /src/sys/dev/ofw/ofw_standard.c: In function 'ofw_std_release': >> /src/sys/dev/ofw/ofw_standard.c:719: warning: cast from pointer to integer of different size >> /src/sys/dev/ofw/ofw_standard.c:724: warning: cast from pointer to integer of different size >> /src/sys/dev/ofw/ofw_standard.c: In function 'ofw_std_enter': >> /src/sys/dev/ofw/ofw_standard.c:742: warning: cast from pointer to integer of different size >> /src/sys/dev/ofw/ofw_standard.c: In function 'ofw_std_exit': >> /src/sys/dev/ofw/ofw_standard.c:760: warning: cast from pointer to integer of different size >> *** Error code 1 >> >> Stop in /obj/powerpc.powerpc64/src/sys/LINT. >> > Line 705 in ofw_standard.c is > > return ((void *)args.baseaddr); > > args.baseaddr is a cell_t, which is defined in: > > typedef uint32_t cell_t; > > which I assume is correct for powerpc (32-bits), but probably not for > powerpc64. Note that it is defined as uint64_t on sparc64 and sun4v, > and in sys/boot as unsigned long int, which is the correct size on both > 32-bit and 64-bit machines (assuming I32LP64). > The problem is that until yesterday, you could not build a powerpc64 LINT, and so it was trying to build a PPC32 kernel with a 64-bit toolchain. An actual powerpc64 kernel does not include ofw_standard.c. This should be fixed now with r211483, so long as the LINT config is made with TARGET_ARCH set (and is not reused for 32 and 64-bit builds). There is a seat-belt mechanism I should add soon that will complain earlier about architecture mismatches like this. Thanks for your patience. -Nathan