Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Oct 2006 20:47:49 -0500
From:      "Scot Hetzel" <swhetzel@gmail.com>
To:        kib@freebsd.org, current@freebsd.org
Subject:   Re: [head tinderbox] failure on powerpc/powerpc
Message-ID:  <790a9fff0610221847u3494e76dsd3d8328d499d6200@mail.gmail.com>
In-Reply-To: <453AD5C2.6030507@freebsd.org>
References:  <20061022000656.C384373068@freebsd-current.sentex.ca> <453AD5C2.6030507@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10/21/06, Peter Grehan <grehan@freebsd.org> wrote:
> > cc -O2 -pipe  -I/src/lib/libc/include -I/src/lib/libc/../../include -I/src/lib/libc/powerpc -D__DBINTERFACE_PRIVATE -I/src/lib/libc/../../contrib/gdtoa -DINET6 -I/obj/powerpc/src/lib/libc -I/src/lib/libc/resolv -DPOSIX_MISTAKE -I/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/src/lib/libc/rpc -DYP -DNS_CACHING -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /src/lib/libc/stdio/xprintf.c
> > /src/lib/libc/stdio/xprintf.c: In function `__v2printf':
> > /src/lib/libc/stdio/xprintf.c:279: warning: passing arg 2 of `__builtin_va_copy' discards qualifiers from pointer target type
> > *** Error code 1
>
>  I did a quick change of
>
>     va_copy(ap, ap1);
>
>  to
>
>     va_copy(ap, (va_list) ap1);
>
>  .. and ended up with:
>
> /usr/home/grehan/freebsd/dev_head/src/lib/libc/stdio/xprintf.c: In
> function `__v2printf':
> /usr/home/grehan/freebsd/dev_head/src/lib/libc/stdio/xprintf.c:279:
> error: cast specifies array type
>
>  A va_list on powerpc is a struct, but va_copy should do the right thing.
>
I'm also seeing this problem on FreeBSD/amd64-CURRENT.  I had reverted
the change back to revision 1.3. And was able to sucessfully complete
a buildworld.

Maybe this change should be made I386 specific, since it is breaking
builds for other arches.

-- 
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0610221847u3494e76dsd3d8328d499d6200>