Subject: Re: problem building -current on macppc
To: Johnny Billquist <bqt@Update.UU.SE>
From: Timo Schoeler <timo.schoeler@macfinity.net>
List: current-users
Date: 06/03/2005 16:36:14
thus Johnny Billquist spake:
> On Fri, 3 Jun 2005, Timo Schoeler wrote:
> 
> 
>>thus Davide Zanon spake:
>>
>>>On Friday 03 June 2005 14:01, Davide Zanon wrote:
>>>
>>>
>>>>Hi all!
>>>>I get this error while compiling a custom -current kernel... what's the
>>>>problem?
>>>
>>>
>>>Sorry, I made a mistake :(
>>>
>>>The error is
>>>
>>>#   compile  DREAM/autoconf.o
>>>/usr/src/../tools-macppc/bin/powerpc--netbsd-gcc -maltivec -O4
>>>-mno-strict-align -msoft-float -Wa,-maltivec -ffreestanding -O2 -Wreturn-type
>>>-Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith
>>>-Wmissing-prototypes -Wstrict-prototypes -Wreturn-type -Wswitch -Wshadow
>>>-Wcast-qual -Wwrite-strings -Wno-sign-compare -fno-zero-initialized-in-bss
>>>-Dmacppc=macppc -I. -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM
>>>-DDIAGNOSTIC -DZS_CONSOLE_ABORT -DDEBUG_DARWIN -DOFB_ENABLE_CACHE
>>>-DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/dist/pf
>>>-I/usr/src/sys/dist/ipf -c /usr/src/sys/arch/macppc/macppc/autoconf.c
>>>/usr/src/sys/arch/macppc/macppc/autoconf.c: In function `OF_interpret':
>>>/usr/src/sys/arch/macppc/macppc/autoconf.c:366: warning: initialization
>>>discards qualifiers from pointer target type
>>>
>>>david
>>
>>same here (Xbuild from sparc64), IIRC a few days ago it went okay...
> 
> 
> It's the same all over the place. I've identified a number of places for
> the VAX. People are probably working on this. Don't know if it's a new
> version of the compiler, or (more likely) the addition of another warning
> switch for the compilation.
> 
> Many of these are simlpy code in the form:
> 
> char *foo = "kaka";
> 
> which needs to be changed to:
> 
> const char *foo = "kaka";
> 
> 	Johnny

ah, yes, thanks, i've seen some changes of this style.

cheers,

timo