Re: [poky] qemu-native-0.9.0+cvs20070613-r4 failed - fixed

From: Ivan Kuten <ivan.kuten@promwad.com>
Date: Wed Aug 15 2007 - 14:36:56 EDT

Richard Purdie пишет:
> Hi,
>
> On Tue, 2007-08-14 at 00:23 +0300, Ivan Kuten wrote:
>> qemu-native-0.9.0+cvs20070613-r4 failed:
>>
>> gcc-3.4 -isystem/root/poky/poky/build/tmp/staging/i686-linux/include -O2 -Wall -O2 -g -fno-strict-aliasing -I. -I..
>> -I/root/poky/poky/build/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r4/qemu/target-i386 -I/root/poky/poky/build/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r4/qemu
>> -I/root/poky/poky/build/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r4/qemu/linux-user -I/root/poky/poky/build/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r4/qemu/linux-user/i386
>> -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/root/poky/poky/build/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r4/qemu/fpu -DHAS_AUDIO -DHAS_AUDIO_CHOICE
>> -I/root/poky/poky/build/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r4/qemu/slirp -c -o syscall.o
>> /root/poky/poky/build/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r4/qemu/linux-user/syscall.c
>> | /root/poky/poky/build/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r4/qemu/linux-user/syscall.c:300: error: `EOWNERDEAD' undeclared here (not in a function)
>> | /root/poky/poky/build/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r4/qemu/linux-user/syscall.c:300: error: nonconstant array index in initializer
>> | /root/poky/poky/build/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r4/qemu/linux-user/syscall.c:300: error: (near initialization for `host_to_target_errno_table')
>> | /root/poky/poky/build/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r4/qemu/linux-user/syscall.c:301: error: `ENOTRECOVERABLE' undeclared here (not in a function)
>> | /root/poky/poky/build/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r4/qemu/linux-user/syscall.c:301: error: nonconstant array index in initializer
>> | /root/poky/poky/build/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r4/qemu/linux-user/syscall.c:301: error: (near initialization for `host_to_target_errno_table')
>> | /root/poky/poky/build/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r4/qemu/linux-user/syscall.c: In function `do_syscall':
>> | /root/poky/poky/build/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r4/qemu/linux-user/syscall.c:4686: warning: passing arg 1 of `page_unprotect_range' makes integer from pointer without a cast
>> | make[1]: *** [syscall.o] Error 1
>> | make[1]: Leaving directory `/root/poky/poky/build/tmp/work/i686-linux/qemu-native-0.9.0+cvs20070613-r4/qemu/i386-linux-user'
>> | make: *** [subdir-i386-linux-user] Error 2
>> | FATAL: oe_runmake failed
>>
>> gcc-3.4 --version
>> gcc-3.4 (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
>>
>> Is it qemu specific or gcc, if gcc what is preferred version for gcc?
>
> qemu needs a 3.x system gcc so the version looks correct. Is not up to
> cross compiling and is using the system gcc/headers at this point.
> Something in your system headers are causing this to fail to compile.
> You can either fix this (probably by defining EOWNERDEAD and
> ENOTRECOVERABLE) or build qemu outside of poky and then tell poky you've
> done so (there is an option in local.conf).
>
> Regards,
>
> Richard
>
>
>
Hello,

Indeed, seems my /usr/include/linux , /usr/include/asm were outdated.
I replaced them with symlinks to kernel includes and qemu compilation
was succeeded.

Best regards,
Ivan

-- 
To unsubscribe send a mail to poky+unsubscribe@o-hand.com
Received on Wed, 15 Aug 2007 21:36:56 +0300

This archive was generated by hypermail 2.1.8 : Wed Aug 15 2007 - 14:00:07 EDT