grub-devel
[Top][All Lists]
Advanced

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

Re: Report: compil error on OSX for target=i386


From: Robert Millan
Subject: Re: Report: compil error on OSX for target=i386
Date: Fri, 4 Sep 2009 13:48:58 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

On Thu, Sep 03, 2009 at 11:01:23PM +0200, Yves Blusseau wrote:
>>
>> It's much easier to make official GCC a build requirement.  People  
>> hacking
>> on GRUB source, or distributors (e.g. Fink) should have no problem  
>> with a
>> dependency on GCC.
>
> So what you can do because currently we can't compil grub on OSX:
>
> gcc-4.2 -Iloader/i386 -I./loader/i386 -I. -I./include -I./include -Wall 
> -W  -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes                
>   -Wundef -Wstrict-prototypes -g -Os -falign-jumps=1 -falign-loops=1 
> -falign-functions=1 -DAPPLE_CC=1 -fnested-functions -m32 
> -fno-stack-protector -mno-stack-arg-probe -fno-builtin -mrtd -mregparm=3 
> -m32 -MD -c -o linux_mod-loader_i386_linux.o loader/i386/linux.c
> loader/i386/linux.c: In function ‘grub_linux_boot’:
> loader/i386/linux.c:546: error: can't find a register in class ‘BREG’  
> while reloading ‘asm’
> loader/i386/linux.c:542: error: ‘asm’ operand has impossible constraints
> loader/i386/linux.c:543: error: ‘asm’ operand has impossible constraints
> loader/i386/linux.c:546: error: ‘asm’ operand has impossible constraints
> make: *** [linux_mod-loader_i386_linux.o] Error 1

I assume you installed Apple's version of GCC.  Can you try with an official
GCC release?

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."




reply via email to

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