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

On Wed, Feb 1, 2017 at 11:50 AM, chitgope raghuveer <raghurampage@gmail.com> wrote:
Hello Zoran,

I could be sure I havent used YOCTO. I have attached the complete log for the compilation.
The output for $git describe is "4.5-897-gdcad289".

On Wed, Feb 1, 2017 at 12:19 PM, Zoran Stojsavljevic <zoran.stojsavljevic@gmail.com> wrote:
Hello Rag,

Not sure what you are trying to do here?

Did you compile using YOCTO (Makefile:1375: recipe for target 'argp-ba.o' failed)?

Or some other Linux distro? Please, we need here Linux distro with more info and at least 200 lines of compilation log.

Did you compile Coreboot source? Which version (please, execute $ git describe in Coreboot root)?!

Thank you,
Zoran

On Wed, Feb 1, 2017 at 5:10 AM, chitgope raghuveer <raghurampage@gmail.com> wrote:
Hello,

I am facing a compilation issue with GRUB2. Below is the snippet.

mv -f $depbase.Tpo $depbase.Po
/bin/bash: line 1: -DHAVE_CONFIG_H: command not found
Makefile:1375: recipe for target 'argp-ba.o' failed
make[5]: *** [argp-ba.o] Error 127


--
Raghuveer Chitgope.

--
coreboot mailing list: coreboot@coreboot.org
https://www.coreboot.org/mailman/listinfo/coreboot




--
Raghuveer Chitgope.