All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Failed to build grub2
Date: Tue, 25 Dec 2007 12:07:56 +0100	[thread overview]
Message-ID: <20071225110756.GA22389@thorin> (raw)
In-Reply-To: <1198575687.6484.25.camel@latsun.main.fg>

On Tue, Dec 25, 2007 at 04:41:27AM -0500, Francis Gendreau wrote:
>             GNU assembler 2.15 [FreeBSD] 2004-05-23
> [...]
> 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.

I don't see anything wrong in the code (`(%esi,%eax)' is indeed not a valid
16 bit base/index, but it AFAICT it isn't meant to be).

However, your binutils are a bit old.  Perhaps this is a bug they fixed ?

Anyway, maybe this solves the problem for you:

+       .code32
        leal    0x200 + data_start - data_next(%ebx,%eax), %eax
+       .code16

(please report if it does)

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)



  reply	other threads:[~2007-12-25 11:08 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-25  9:41 Failed to build grub2 Francis Gendreau
2007-12-25 11:07 ` Robert Millan [this message]
2007-12-25 11:23   ` Francis Gendreau
2007-12-25 11:37     ` Bean
2007-12-26  7:17       ` Robert Millan
2007-12-26 11:13         ` Bean
2007-12-27  9:57           ` Robert Millan
2007-12-27 10:43             ` Bean
2007-12-27 11:00               ` Robert Millan
2007-12-27 11:07                 ` Bean
2007-12-26  7:15     ` Robert Millan
2007-12-27  6:40       ` Francis Gendreau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071225110756.GA22389@thorin \
    --to=rmh@aybabtu.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.