This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: mysterious failure with latest gcc cvs
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Andrew Morton <akpm at osdl dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 23 Jan 2004 18:32:14 -0500
- Subject: Re: mysterious failure with latest gcc cvs
- References: <20040123152723.357284d6.akpm@osdl.org>
On Fri, Jan 23, 2004 at 03:27:23PM -0800, Andrew Morton wrote:
> Plodding away, making the 2.6 kernel compile...
>
> akpm:/usr/src/25> /usr/local/gcc-cvs/bin/gcc --version
> gcc (GCC) 3.5.0 20040123 (experimental)
>
> /usr/local/gcc-cvs/bin/gcc -Wp,-MD,drivers/ide/pci/.alim15x3.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i386 -mregparm=3 -Iinclude/asm-i386/mach-default -gdwarf-2 -O1 -Os -g -funit-at-a-time -Wdeclaration-after-statement -Idrivers/ide -DKBUILD_BASENAME=alim15x3 -DKBUILD_MODNAME=alim15x3 -c -o drivers/ide/pci/.tmp_alim15x3.o drivers/ide/pci/alim15x3.c
>
> drivers/ide/pci/alim15x3.c: In function `ali15x3_ratemask':
> drivers/ide/pci/alim15x3.c:480: warning: ISO C90 forbids mixed declarations and code
> drivers/ide/pci/alim15x3.c:891: error: initializer element is not constant
> drivers/ide/pci/alim15x3.c:891: error: (near initialization for `driver.probe')
> drivers/ide/pci/alim15x3.c:904: error: initializer element is not constant
> drivers/ide/pci/alim15x3.c:905: error: initializer element is not constant
> drivers/ide/pci/alim15x3.c:905: warning: ISO C90 forbids mixed declarations and code
> drivers/ide/pci/alim15x3.c:909: error: parse error at end of input
> drivers/ide/pci/alim15x3.h:28: warning: 'init_chipset_ali15x3' declared `static' but never defined
> drivers/ide/pci/alim15x3.h:29: warning: 'init_hwif_common_ali15x3' declared `static' but never defined
> drivers/ide/pci/alim15x3.h:30: warning: 'init_hwif_ali15x3' declared `static' but never defined
> drivers/ide/pci/alim15x3.h:31: warning: 'init_dma_ali15x3' declared `static' but never defined
>
> I don't understand these warnings and the errors. Could someone please
> take a look?
>
> The cpp output is at http://www.zip.com.au/~akpm/linux/patches/stuff/1
Er, that's not the right file....
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer