Hi Gregg,<br>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.<br>
Thanks!<br>Regards,<br>Nachiketh<br><br><div class="gmail_quote">On Sun, Apr 29, 2012 at 2:26 AM, Gregg Levine <span dir="ltr"><<a href="mailto:gregg.drwho8@gmail.com" target="_blank">gregg.drwho8@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Sat, Apr 28, 2012 at 4:53 PM, Nachiketh G <<a href="mailto:nachiketh@gmail.com">nachiketh@gmail.com</a>> wrote:<br>

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