Hi Gregg,
You were spot an about updating my build tools, I did that and also downgraded to a different version of Grub2 from the repository(1.99) and I was able to compile it! I now have an elf file ready to integrate with Coreboot.
Thanks!
Regards,
Nachiketh

On Sun, Apr 29, 2012 at 2:26 AM, Gregg Levine <gregg.drwho8@gmail.com> wrote:
On Sat, Apr 28, 2012 at 4:53 PM, Nachiketh G <nachiketh@gmail.com> wrote:
> Hi Greg,
> Please find the answers below:
>
>
> 1) What release of Grub2 did you select? (There are many numbered ones
> each running towards the 2.00 release one.)
>>> I checked out the latest version on
>>> http://bzr.savannah.gnu.org/r/grub/trunk/grub (Using bzr branch
>>> http://bzr.savannah.gnu.org/r/grub/trunk/grub)
>
> 2) Was this release of Grub2 retrieved from their storage point recently?
>>> Yes
>
>
> 3) Was Coreboot updated recently?
>>>I have checked out the latest copy of Coreboot from their repository as
>>> well, I have not yet compiled it though... thought I would compile the
>>> payload first before compiling Coreboot.
>
>
> 4) What is your build environment? What distribution is this on?
>>> I'm using a Ubuntu(2.6.38 Kernel) with a gcc (Ubuntu/Linaro
>>> 4.5.2-8ubuntu4) 4.5.2 compiler.
>
> Please let me know if there is something wrong in what I'm doing.
> Thanks!
> -Nachiketh
>
>
> On Sun, Apr 29, 2012 at 1:38 AM, Gregg Levine <gregg.drwho8@gmail.com>
> wrote:
>>
>> On Sat, Apr 28, 2012 at 3:07 PM, Nachiketh G <nachiketh@gmail.com> wrote:
>> > Hi Folks,
>> > I'm new on Coreboot and I'm trying to compile Grub2 as a payload for
>> > Coreboot. I'm following the steps provided under
>> > http://www.coreboot.org/Talk:GRUB2 and i'm getting the following
>> > compilation
>> > error:
>> >
>> > cc1: warnings being treated as errors
>> > kern/i386/coreboot/init.c:45:9: error: unknown option after '#pragma GCC
>> > diagnostic' kind
>> > make[3]: *** [kern/i386/coreboot/kernel_exec-init.o] Error 1
>> > make[3]: Leaving directory `/home/nachiketh/coreboot/grub/grub-core'
>> > make[2]: *** [all] Error 2
>> > make[2]: Leaving directory `/home/nachiketh/coreboot/grub/grub-core'
>> > make[1]: *** [all-recursive] Error 1
>> > make[1]: Leaving directory `/home/nachiketh/coreboot/grub'
>> > make: *** [all] Error 2
>> >
>> > Please let me know what I'm doing wrong or is there any step that has
>> > got
>> > missed out which is causing this problem.
>> > Thanks in advance!
>> >
>> > Regards,
>> > Nachiketh
>> >
>> > --
>> > coreboot mailing list: coreboot@coreboot.org
>> > http://www.coreboot.org/mailman/listinfo/coreboot
>>
>> Hello!
>> Let's start it out this way:
>> 1) What release of Grub2 did you select? (There are many numbered ones
>> each running towards the 2.00 release one.)
>>
>> 2) Was this release of Grub2 retrieved from their storage point recently?
>>
>> 3) Was Coreboot updated recently?
>>
>> 4) What is your build environment? What distribution is this on?
>> ------
>> Gregg C Levine gregg.drwho8@gmail.com
>> "This signature fought the Time Wars, time and again."

Hello!
About the only thing I can suggest is that there is yet another drift
to be explained inside the Ubuntu set you have. Please make sure your
build tools are properly updated.

Also please consider keeping the list (both the help grub list and
this one) informed.

-----
Gregg C Levine gregg.drwho8@gmail.com
"This signature fought the Time Wars, time and again."

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