Bug 1407 - x32: qemu compilation fails
Summary: x32: qemu compilation fails
Status: RESOLVED WONTFIX
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 x86_64
: Medium normal
Target Milestone: 1.2
Assignee: Nitin Kamble
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks: 1579
  Show dependency tree
 
Reported: 2011-08-25 14:26 UTC by Nitin Kamble
Modified: 2011-12-05 11:31 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nitin Kamble 2011-08-25 14:26:30 UTC
ERROR: Logfile of failure stored in: /disk0/pokybuild/build-multilib-x32-qemu/tmp/work/x86_64-x32-poky-linux-gnux32/qemu-0.14.0-r2/temp/log.do_configure.8264
Log data follows:
| DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-32', 'ix86-common', 'x86_64-linux-gnux32', 'common']
| big/little test failed
| 
| Error: zlib check failed
| Make sure to have the zlib libs and headers installed.
| 
| ERROR: Function 'do_configure' failed (see /disk0/pokybuild/build-multilib-x32-qemu/tmp/work/x86_64-x32-poky-linux-gnux32/qemu-0.14.0-r2/temp/log.do_configure.8264 for further information)
Comment 1 Richard Purdie 2011-11-24 15:19:58 UTC
I'm not sure it makes sense to compile qemu for x32? In our normal use cases we don't use qemu on target (and I'm not sure the target recipe even works for other architectures).
Comment 2 H.J. Lu 2011-11-24 15:38:54 UTC
(In reply to comment #0)
> ERROR: Logfile of failure stored in:
> /disk0/pokybuild/build-multilib-x32-qemu/tmp/work/x86_64-x32-poky-linux-gnux32/qemu-0.14.0-r2/temp/log.do_configure.8264
> Log data follows:
> | DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-32',
> 'ix86-common', 'x86_64-linux-gnux32', 'common']
> | big/little test failed
> | 
> | Error: zlib check failed
> | Make sure to have the zlib libs and headers installed.
> | 
> | ERROR: Function 'do_configure' failed (see
> /disk0/pokybuild/build-multilib-x32-qemu/tmp/work/x86_64-x32-poky-linux-gnux32/qemu-0.14.0-r2/temp/log.do_configure.8264
> for further information)

What is wrong with zlib build?  I can build x32 zlib without any changes.
I just pass CC="gcc -mx32" and configure it as x86-64-linux:

+ CFLAGS='-O2 -g -mx32'
+ ./configure --libdir=/usr/libx32 --includedir=/usr/include --prefix=/usr
Checking for gcc...
Checking for shared library support...
Building shared library libz.so.1.2.5 with gcc.
Checking for off64_t... Yes.
Checking for fseeko... Yes.
Checking for unistd.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for attribute(visibility) support... Yes.
+ make -j8
...
Comment 3 Nitin Kamble 2011-11-25 09:09:29 UTC
zlib recipe is building fine under x32, 

I think the qemu issue is a line before in the error log:

"big/little test failed"
Comment 4 H.J. Lu 2011-11-28 17:13:59 UTC
Isn't qemu a native application to run x32 image? I don't think
we need x32 qemu binary unless we have an x32 host machine.
Comment 5 Nitin Kamble 2011-12-05 11:31:01 UTC
This will not be fixed, as of now the target qemu binary is not needed for x32.