Bug 711 - sugarbay BSP grub-1.98 build failure in x86_32 build machine
Summary: sugarbay BSP grub-1.98 build failure in x86_32 build machine
Status: RESOLVED FIXED
Alias: None
Product: Other YP Layers
Classification: Build System, Metadata & Runtime
Component: layers (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.0 M4
Assignee: Tom Zanussi
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-02-12 06:42 UTC by Ke Yu
Modified: 2011-02-24 12:58 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 Ke Yu 2011-02-12 06:42:01 UTC
* reproduce info: 
1. use meta-intel/meta-sugarbay/ BSP
2. build machine is x86_32 machine
3. bitbake poky-image-sato

# error log:
the build failed in grub-1.98 do_compile:

# cat tmp/work/snb-poky-linux/grub-1.98-r0/temp/log.do_compile.19746
...
./gentrigtables > trigtables.c
x86_64-poky-linux-nm -g --defined-only -P -p pre-crypto.o | sed 's/^\([^ ]*\).*/\1 crypto/' > def-crypto.lst
x86_64-poky-linux-nm -g --defined-only -P -p pre-hashsum.o | sed 's/^\([^ ]*\).*/\1 hashsum/' > def-hashsum.lst
x86_64-poky-linux-nm -g --defined-only -P -p pre-pbkdf2.o | sed 's/^\([^ ]*\).*/\1 pbkdf2/' > def-pbkdf2.lst
/bin/sh: ./gentrigtables: cannot execute binary file

# file tmp/work/snb-poky-linux/grub-1.98-r0/grub-1.98/gentrigtables
/home/kyu3/work/snb/tmp/work/snb-poky-linux/grub-1.98-r0/grub-1.98/gentrigtables: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.4.0, not stripped

so the reason is that gentrigtables  is 64bit binary, and can not run in x86_32 machine.
Comment 1 Tom Zanussi 2011-02-24 12:58:02 UTC
Fixed by commit	17992386d3416cb24cfdf5857411ed143de20371