bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mingw


From: Pavel Roskin
Subject: Re: mingw
Date: Wed, 20 Mar 2002 16:54:04 -0500 (EST)

Hi, Brian!

> I am trying to compile grub right now and I am running into problems. I am
> running w2k pro with mingw/msys. I tried to compile the package and here is
> what happens.

I remember that I tried this and gave up, but maybe you will be more 
successful.

> checking for style of include used by make... ./configure: fgrep: command
> not found
> none

Do you have grep or egrep?  Copy it to fgrep, it should be better than not 
to have fgrep at all.  It may even work correctly.

> checking if start is defined by the compiler... no
> checking if _start is defined by the compiler... no
> configure: error: Neither start nor _start is defined

I remember having this problem.  Compile some program to assembler using
"gcc -S" and find the name of the label at the beginning of the code.  
Then change grub_CHECK_USCORE_START_SYMBOL macro in acinclude.m4 to look
for that symbol instead of _start.  Run aclocal and autoconf to regenerate
configure.

Now configure should work.  I thing that "make" will also work.  At very
least you should be able to compile the GRUB shell (grub.exe) by running
"make -k".  If you manage to compile the stage* files be careful and try
them from the floppy first.  I remember that they had some extra zeroes.

If you have any questions please specify versions of GNU GRUB and MinGW.  
Make sure you are using the latest versions of both.

> Is it even possible to use grub with mingw? Maybe i am doing something
> wrong? Any suggestions?

What are you trying to achieve?  Do you only want the GRUB shell or the
binary stages as well?  I believe that without fixing some internals in
MinGW (proper _start label, moving all those zeroes to a separate section)  
you can only get the GRUB shell.

-- 
Regards,
Pavel Roskin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]