Bug 711

Summary: sugarbay BSP grub-1.98 build failure in x86_32 build machine
Product: [Build System, Metadata & Runtime] Other YP Layers Reporter: Ke Yu <ke.yu>
Component: layersAssignee: Tom Zanussi <tom.zanussi>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: dexuan.cui, meta.layer.watcher, meta.watcher, sgw
Version: unspecified   
Target Milestone: 1.0 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

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