Hello Rag,
I'll try shot in The Absolute Dark. I have inspected your log. And strange things cot my eye.
Here:
./autogen.sh
Importing unicode...
Importing libgcrypt...
WARNING: grub-core/lib/libgcrypt-grub already exists
WARNING: grub-core/lib/libgcrypt-grub/cipher already exists
WARNING: grub-core/lib/libgcrypt-grub/mpi already exists
WARNING: grub-core/lib/libgcrypt-grub/src already exists
Generating Automake input...
Saving timestamps...
Running autoreconf...
cd grub2/build && ../configure BUILD_CC="" CC="" \
TARGET_CC="cc" \
TARGET_OBJCOPY="" TARGET_STRIP="" CFLAGS=-O2 TARGET_CFLAGS=-Os --with-platform=coreboot
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
[snap]
config.status: creating config.h
config.status: creating config-util.h
config.status: linking ../include/grub/i386 to include/grub/cpu
config.status: linking ../include/grub/i386/coreboot to include/grub/machine
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
*******************************************************
GRUB2 will be compiled with following components:
Platform: i386-coreboot
With devmapper support: No (need libdevmapper header)
_______
So, target system is 64bit. Build system (tools) is configured as 64bit. Target system is 64bit. So, seems configuration is 64 bit...
Should GRUB2 be build for 64bit platform? Not sure if here it is meant to be build as 32bit, according Coreboot, which is always 32bit???
_______
No idea, but something seems fishy in your environment setup. :-(
Zoran