[oe] Build of qemu-native fails.

Ulf Samuelsson ulf.samuelsson at atmel.com
Sun Dec 7 00:02:02 UTC 2008




----- Original Message ----- 
From: "Khem Raj" <raj.khem at gmail.com>
To: <openembedded-devel at lists.openembedded.org>
Sent: Saturday, December 06, 2008 8:10 PM
Subject: Re: [oe] Build of qemu-native fails.


> On Sat, Dec 6, 2008 at 12:16 AM, Ulf Samuelsson <ulf at atmel.com> wrote:
>> Building the Angstrom for at91sam9263ek:
>>
>> The build of qemu-native fails!
>>
>> The normal build uses qemu-native-svn which fails, then I tried
>> qemu-native-0.9.1 with the same result.
>>
>> In 
>> ./work/armv5te-angstrom-linux-gnueabi/linux-libc-headers-2.6.23-r3/linux-2.6.23/include/linux/usbdevice_fs.h
>> it looks like:
>> struct usbdevfs_ctrltransfer {
>>        __u8 bRequestType;
>>        __u8 bRequest;
>>        __u16 wValue;
>>        __u16 wIndex;
>>        __u16 wLength;
>>        __u32 timeout;  /* in milliseconds */
>>        void __user *data;
>> };
>>
>> It does not like the __user in "void __user *data"
>>
>> In 
>> ./work/armv5te-angstrom-linux-gnueabi/linux-libc-headers-2.6.23-r3/image/usr/include/linux/usbdevice_fs.h
>> it looks the same as in recent kernels:
>>
>> /* usbdevfs ioctl codes */
>>
>> struct usbdevfs_ctrltransfer {
>>        __u8 bRequestType;
>>        __u8 bRequest;
>>        __u16 wValue;
>>        __u16 wIndex;
>>        __u16 wLength;
>>        __u32 timeout;  /* in milliseconds */
>>        void *data;
>> };
>>
>>
>> If I extract linux-2.6.23 and do
>> $ make ARCH=arm INSTALL_HDR_PATH=../headers headers_install
>> I don't get the "__user" inside this header file,
>>
>> Anyone knows why?
>
> Thats the difference between raw headers and the saniized headers. By
> doing  make ARCH=arm INSTALL_HDR_PATH=../headers headers_install you
> get sanitized headers.
> problem seems to be in  /usr/include/linux/usbdevice_fs.h thats on
> your build system. check that file and it might not be insalled
> correctly. What are you using for a build machine.
>
> Thx
>
> -Khem
>

Thanks.  I am using OpenSuSE 10.2

I got around the problem by doing a

#define __user

in the file including the usbdevice_:fs.h
but it is probably time to upgrade the machine anyway.

Best Regards
Ulf Samuelsson 





More information about the Openembedded-devel mailing list