grub-devel
[Top][All Lists]
Advanced

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

Failed to build grub2


From: Francis Gendreau
Subject: Failed to build grub2
Date: Tue, 25 Dec 2007 04:41:27 -0500

Hello.

I tried to build grub2 after having it checked-out from the repository
tonight (2007/12/25 4:00 EST).

My system is: FreeBSD 6.2-RELEASE-p8 #0: Thu Oct 11 23:11:25 EDT 2007
I am using
{
            GNU Make 3.81
            gcc version 3.4.6 [FreeBSD] 20060305
            GNU assembler 2.15 [FreeBSD] 2004-05-23
            aclocal (GNU automake) 1.9.6
            autoconf (GNU Autoconf) 2.59
            autoheader (GNU Autoconf) 2.59
            autom4te (GNU Autoconf) 2.59
            automake (GNU automake) 1.9.6
            autoreconf (GNU Autoconf) 2.59
            autoscan (GNU Autoconf) 2.59
            autoupdate (GNU Autoconf) 2.59
            ifnames (GNU Autoconf) 2.59
}

The port tree contain the lib LZO required by grub2, but installing the
package did not allow me to pass the configuration stage. So I compiled
and installed the latest (lzo-2.02) in a non-traditionnal location on my
filesystem (~/.local) (abreviation of the paths is done for this email
only).

Prior to configure grub2, I did:

            tcsh$ setenv CFLAGS "-I~/.local/include"
            tcsh$ setenv LDFLAGS "-L~/.local/lib -llzo2"
            tcsh$ setenv PATH /usr/local/gnu-autotools/bin:$PATH

and configured grub2 only with: "--prefix=~/.local/"

Then, used gmake to compile the application and here is the failure:

gcc -Iboot/i386/pc -I./boot/i386/pc -I. -Iinclude -I./include -Wall -W
-DASM_FILE=1  -nostdinc -fno-builtin -m32 -MD -c -o
lnxboot_img-boot_i386_pc_lnxboot.o boot/i386/pc/lnxboot.S
lnxboot.S: Assembler messages:
lnxboot.S:49: Error: `0x200+data_start - data_next(%ebx,%eax)' is not a
valid 16 bit base/index expression
lnxboot.S:264: Error: `(%esi,%eax)' is not a valid 16 bit base/index
expression
lnxboot.S:265: Error: `(%edi,%eax)' is not a valid 16 bit base/index
expression
gmake: *** [lnxboot_img-boot_i386_pc_lnxboot.o] Error 1

I hope someone here may have a clue how to fix the problem. I ignore
almost everything about the Assembly language.

Thanks in advance.

Francis


Attachment: config.log
Description: Text Data


reply via email to

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