Compile errors in qemu
Nishikant Nigam
nishin at hotmail.com
Wed Jan 2 10:11:57 CET 2008
Hi,
Wish you all a Very Happy New Year.
I need some help with compiling an Angstrom/OE based image. I have followed the instructions on the Building Angstrom image
and OE pages. I am getting a compile error with qemu. My setup is as follows :
Environment : SuSE Enterprise Linux 10.1 SP1; gcc 3.3
Goal : Build an Angstrom/OE based image and patch it with Google's android to run on a Sharp Zaurus SL-C750
Issue :
When I try to run a bitbake (v1.8.8) as "bitbake task-sdk", I am getting an error. I tried with gcc v 4.2.1 (default) but ran into some
qemu errors and then came across bug 3282. The solution mentioned in there was to try and compile with 3.4.6 or lower. 3.4.6 gave
the same errors. 3.3 is also giving me the errors. However, it has worked for someone. I will appreciate if the community can throw
some light on this and let me know what could be wrong. The error log is as below :
gcc -Wall -O2 -g -fno-strict-aliasing -I. -I.. -I/home/nishi/Desktop/Angstrom/openembedded/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r5/qemu/target-i386 -I/home/nishi/Desktop/Angstrom/openembedded/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r5/qemu -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/nishi/Desktop/Angstrom/openembedded/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r5/qemu/fpu -DHAS_AUDIO -DHAS_AUDIO_CHOICE -I/home/nishi/Desktop/Angstrom/openembedded/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r5/qemu/slirp -c -o usb-linux.o /home/nishi/Desktop/Angstrom/openembedded/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r5/qemu/usb-linux.c
In file included from /home/nishi/Desktop/Angstrom/openembedded/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r5/qemu/usb-linux.c:29:
/usr/include/linux/usbdevice_fs.h:49: variable or field `__user' declared void
/usr/include/linux/usbdevice_fs.h:49: syntax error before '*' token
/usr/include/linux/usbdevice_fs.h:56: variable or field `__user' declared void
/usr/include/linux/usbdevice_fs.h:56: syntax error before '*' token
/usr/include/linux/usbdevice_fs.h:66: variable or field `__user' declared void
/usr/include/linux/usbdevice_fs.h:66: syntax error before '*' token
/usr/include/linux/usbdevice_fs.h:100: variable or field `__user' declared void
/usr/include/linux/usbdevice_fs.h:100: syntax error before '*' token
/usr/include/linux/usbdevice_fs.h:109: syntax error before '}' token
/usr/include/linux/usbdevice_fs.h:116: variable or field `__user' declared void
/usr/include/linux/usbdevice_fs.h:116: syntax error before '*' token
/home/nishi/Desktop/Angstrom/openembedded/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r5/qemu/usb-linux.c: In function `usb_host_handle_control':
/home/nishi/Desktop/Angstrom/openembedded/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r5/qemu/usb-linux.c:102: sizeof applied to an incomplete type
/home/nishi/Desktop/Angstrom/openembedded/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r5/qemu/usb-linux.c: In function `usb_host_handle_data':
/home/nishi/Desktop/Angstrom/openembedded/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r5/qemu/usb-linux.c:119: storage size of `bt' isn't known
/home/nishi/Desktop/Angstrom/openembedded/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r5/qemu/usb-linux.c:131: sizeof applied to an incomplete type
/home/nishi/Desktop/Angstrom/openembedded/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r5/qemu/usb-linux.c:119: warning: unused variable `bt'
/home/nishi/Desktop/Angstrom/openembedded/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r5/qemu/usb-linux.c: In function `usb_host_device_open':
/home/nishi/Desktop/Angstrom/openembedded/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r5/qemu/usb-linux.c:198: storage size of `ctrl' isn't known
/home/nishi/Desktop/Angstrom/openembedded/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r5/qemu/usb-linux.c:201: sizeof applied to an incomplete type
/home/nishi/Desktop/Angstrom/openembedded/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r5/qemu/usb-linux.c:198: warning: unused variable `ctrl'
make[1]: *** [usb-linux.o] Error 1
make[1]: Leaving directory `/home/nishi/Desktop/Angstrom/openembedded/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r5/qemu/i386-softmmu'
make: *** [subdir-i386-softmmu] Error 2
nishi at linux-v0nc:~/Desktop/Angstrom/openembedded/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r5/qemu> which gcc
/usr/local/gcc33/bin/gcc
Thanks in advance,
Regards
Nishi
_________________________________________________________________
i’m is proud to present Cause Effect, a series about real people making a difference.
http://im.live.com/Messenger/IM/MTV/?source=text_Cause_Effect
More information about the Openembedded-issues
mailing list