Date: Thu, 16 Jun 2011 00:00:29 -0700 From: Garrett Cooper <yanegomi@gmail.com> To: rodrigc@FreeBSD.org Cc: current@freebsd.org, sparc64@freebsd.org Subject: Re: [head tinderbox] failure on sparc64/sparc64 Message-ID: <BANLkTimrA935w1ARBkWeR2LerCykNB_oDA@mail.gmail.com> In-Reply-To: <201106160436.p5G4ah5k001007@freebsd-current.sentex.ca> References: <201106160436.p5G4ah5k001007@freebsd-current.sentex.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Wed, Jun 15, 2011 at 9:36 PM, FreeBSD Tinderbox
<tinderbox@freebsd.org> wrote:
> TB --- 2011-06-16 04:08:45 - tinderbox 2.7 running on freebsd-current.sentex.ca
> TB --- 2011-06-16 04:08:45 - starting HEAD tinderbox run for sparc64/sparc64
> TB --- 2011-06-16 04:08:45 - cleaning the object tree
> TB --- 2011-06-16 04:08:48 - cvsupping the source tree
> TB --- 2011-06-16 04:08:48 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/HEAD/sparc64/sparc64/supfile
> TB --- 2011-06-16 04:09:15 - building world
> TB --- 2011-06-16 04:09:15 - MAKEOBJDIRPREFIX=/obj
> TB --- 2011-06-16 04:09:15 - PATH=/usr/bin:/usr/sbin:/bin:/sbin
> TB --- 2011-06-16 04:09:15 - TARGET=sparc64
> TB --- 2011-06-16 04:09:15 - TARGET_ARCH=sparc64
> TB --- 2011-06-16 04:09:15 - TZ=UTC
> TB --- 2011-06-16 04:09:15 - __MAKE_CONF=/dev/null
> TB --- 2011-06-16 04:09:15 - cd /src
> TB --- 2011-06-16 04:09:15 - /usr/bin/make -B buildworld
>>>> World build started on Thu Jun 16 04:09:15 UTC 2011
>>>> Rebuilding the temporary build tree
>>>> stage 1.1: legacy release compatibility shims
>>>> stage 1.2: bootstrap tools
>>>> stage 2.1: cleaning up the object tree
>>>> stage 2.2: rebuilding the object tree
>>>> stage 2.3: build tools
>>>> stage 3: cross tools
>>>> stage 4.1: building includes
>>>> stage 4.2: building libraries
> [...]
> cc -O2 -pipe -ffreestanding -Wformat -I/src/lib/libstand -DBZ_NO_STDIO -DBZ_NO_COMPRESS -DHAVE_MEMCPY -I/src/lib/libstand/../libz -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /src/lib/libstand/sbrk.c
> cc -O2 -pipe -ffreestanding -Wformat -I/src/lib/libstand -DBZ_NO_STDIO -DBZ_NO_COMPRESS -DHAVE_MEMCPY -I/src/lib/libstand/../libz -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /src/lib/libstand/twiddle.c
> cc -O2 -pipe -ffreestanding -Wformat -I/src/lib/libstand -DBZ_NO_STDIO -DBZ_NO_COMPRESS -DHAVE_MEMCPY -I/src/lib/libstand/../libz -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /src/lib/libstand/zalloc.c
> cc1: warnings being treated as errors
> /src/lib/libstand/zalloc.c: In function 'zfree':
> /src/lib/libstand/zalloc.c:157: warning: format '%d' expects type 'int', but argument 3 has type 'iaddr_t'
> /src/lib/libstand/zalloc.c:181: warning: format '%d' expects type 'int', but argument 3 has type 'iaddr_t'
> /src/lib/libstand/zalloc.c:212: warning: format '%d' expects type 'int', but argument 3 has type 'iaddr_t'
> *** Error code 1
>
> Stop in /src/lib/libstand.
> *** Error code 1
Could someone please fix the tinderbox compile on sparc64 with this
file via this patch?
Thanks!
-Garrett
[-- Attachment #2 --]
Index: lib/libstand/zalloc.c
===================================================================
--- lib/libstand/zalloc.c (revision 223138)
+++ lib/libstand/zalloc.c (working copy)
@@ -154,7 +154,7 @@
if ((char *)ptr < (char *)mp->mp_Base ||
(char *)ptr + bytes > (char *)mp->mp_End ||
((iaddr_t)ptr & MEMNODE_SIZE_MASK) != 0)
- panic("zfree(%p,%d): wild pointer", ptr, bytes);
+ panic("zfree(%p,%ju): wild pointer", ptr, bytes);
/*
* free the segment
@@ -178,7 +178,7 @@
* range check
*/
if ((char *)ptr + bytes > (char *)mn)
- panic("zfree(%p,%d): corrupt memlist1",ptr, bytes);
+ panic("zfree(%p,%ju): corrupt memlist1", ptr, bytes);
/*
* merge against next area or create independant area
@@ -209,7 +209,7 @@
/* NOT REACHED */
}
if ((char *)ptr < (char *)mn + mn->mr_Bytes)
- panic("zfree(%p,%d): corrupt memlist2", ptr, bytes);
+ panic("zfree(%p,%ju): corrupt memlist2", ptr, bytes);
}
/*
* We are beyond the last MemNode, append new MemNode. Merge against
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTimrA935w1ARBkWeR2LerCykNB_oDA>
