2003-03-23 23:23:30

by Louis E Garcia II

[permalink] [raw]
Subject: USB compile error with latest 2.5-bk

I'm running RH phoebe beta

gcc -Wp,-MD,drivers/usb/core/.hcd.o.d -D__KERNEL__ -Iinclude -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=pentium4
-Iinclude/asm-i386/mach-default -fomit-frame-pointer -nostdinc
-iwithprefix include -DMODULE -DKBUILD_BASENAME=hcd
-DKBUILD_MODNAME=usbcore -c -o drivers/usb/core/.tmp_hcd.o
drivers/usb/core/hcd.c
drivers/usb/core/hcd.c:124: parse error before '>>' token
drivers/usb/core/hcd.c:124: initializer element is not constant
drivers/usb/core/hcd.c:124: (near initialization for
`usb2_rh_dev_descriptor[12]')
drivers/usb/core/hcd.c:124: parse error before '>>' token
drivers/usb/core/hcd.c:124: initializer element is not constant
drivers/usb/core/hcd.c:124: (near initialization for
`usb2_rh_dev_descriptor[13]')
drivers/usb/core/hcd.c:147: parse error before '>>' token
drivers/usb/core/hcd.c:147: initializer element is not constant
drivers/usb/core/hcd.c:147: (near initialization for
`usb11_rh_dev_descriptor[12]')
drivers/usb/core/hcd.c:147: parse error before '>>' token
drivers/usb/core/hcd.c:147: initializer element is not constant
drivers/usb/core/hcd.c:147: (near initialization for
`usb11_rh_dev_descriptor[13]')
make[4]: *** [drivers/usb/core/hcd.o] Error 1
make[3]: *** [drivers/usb/core] Error 2
make[2]: *** [drivers/usb] Error 2
make[1]: *** [drivers] Error 2
make: *** [all] Error 2



2003-03-24 09:42:26

by Greg KH

[permalink] [raw]
Subject: Re: USB compile error with latest 2.5-bk

On Sun, Mar 23, 2003 at 06:34:31PM -0500, Louis Garcia wrote:
> I'm running RH phoebe beta
>
> gcc -Wp,-MD,drivers/usb/core/.hcd.o.d -D__KERNEL__ -Iinclude -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
> -pipe -mpreferred-stack-boundary=2 -march=pentium4
> -Iinclude/asm-i386/mach-default -fomit-frame-pointer -nostdinc
> -iwithprefix include -DMODULE -DKBUILD_BASENAME=hcd
> -DKBUILD_MODNAME=usbcore -c -o drivers/usb/core/.tmp_hcd.o
> drivers/usb/core/hcd.c
> drivers/usb/core/hcd.c:124: parse error before '>>' token
> drivers/usb/core/hcd.c:124: initializer element is not constant
> drivers/usb/core/hcd.c:124: (near initialization for
> `usb2_rh_dev_descriptor[12]')

I don't see this error with a older compiler. I suggest filing a bug
with Red Hat's bugzilla.

thanks,

greg k-h

2003-03-24 12:40:18

by Alan

[permalink] [raw]
Subject: Re: USB compile error with latest 2.5-bk

On Mon, 2003-03-24 at 09:53, Greg KH wrote:
> > drivers/usb/core/hcd.c:124: parse error before '>>' token
> > drivers/usb/core/hcd.c:124: initializer element is not constant
> > drivers/usb/core/hcd.c:124: (near initialization for
> > `usb2_rh_dev_descriptor[12]')
>
> I don't see this error with a older compiler. I suggest filing a bug
> with Red Hat's bugzilla.

I don't get this error with a current compiler either. Are you sure the
patching is ok ?

2003-03-25 04:22:23

by Louis E Garcia II

[permalink] [raw]
Subject: Re: USB compile error with latest 2.5-bk

just recompiled 2.5.66 and went fine. I must have messed a patch up.

--Lou

On Mon, 2003-03-24 at 09:04, Alan Cox wrote:
> On Mon, 2003-03-24 at 09:53, Greg KH wrote:
> > > drivers/usb/core/hcd.c:124: parse error before '>>' token
> > > drivers/usb/core/hcd.c:124: initializer element is not constant
> > > drivers/usb/core/hcd.c:124: (near initialization for
> > > `usb2_rh_dev_descriptor[12]')
> >
> > I don't see this error with a older compiler. I suggest filing a bug
> > with Red Hat's bugzilla.
>
> I don't get this error with a current compiler either. Are you sure the
> patching is ok ?
>