Skip to contentSkip to conversation

USB compile error with latest 2.5-bk

DISCUSSION Louis Garcia 3 participants 4 messages Mar 23, 2003 – Mar 25, 2003

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 8 lines · Louis Garcia

I'm running RH phoebe beta

gcc -Wp,-MD,drivers/usb/core/.hcd.o.d -D__KERNEL__ -Iinclude -Wall

(quoted diff) +0 -5
-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
Quoted 5 lines

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

#2 lore raw
Quoted 7 lines · Greg KH
Quoted 4 lines

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 ?

#3 lore raw

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

--Lou

Quoted 12 lines · Alan Cox
Quoted 7 lines · Greg KH
Quoted 4 lines

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 ?