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

2009-09-08 Thread Yves Blusseau
Le 8 sept. 09 à 16:41, Robert Millan a écrit : On Sun, Sep 06, 2009 at 08:56:59PM +0200, Yves Blusseau wrote: Bad news grub not compiled on a GCC 4.4.1 from MacPorts: gcc-mp-4.4 -Iloader/i386 -I./loader/i386 -I. -I./include -I./ include - Wall -W -Wall -W -Wshadow -Wpointer-arith -Wmissin

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

2009-09-08 Thread Robert Millan
On Sun, Sep 06, 2009 at 08:56:59PM +0200, Yves Blusseau wrote: > > Bad news grub not compiled on a GCC 4.4.1 from MacPorts: > > gcc-mp-4.4 -Iloader/i386 -I./loader/i386 -I. -I./include -I./include - > Wall -W -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes >-Wundef -Wstr

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

2009-09-06 Thread Felix Zielcke
Am Sonntag, den 06.09.2009, 20:56 +0200 schrieb Yves Blusseau: > Le 6 sept. 09 à 16:54, Robert Millan a écrit : > > > On Sun, Sep 06, 2009 at 06:55:41AM +0200, Yves Blusseau wrote: > >> > >> Le 5 sept. 09 à 22:31, Robert Millan a écrit : > >> > >>> On Sat, Sep 05, 2009 at 03:17:58PM +0200, Michal

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

2009-09-06 Thread Yves Blusseau
Le 6 sept. 09 à 16:54, Robert Millan a écrit : On Sun, Sep 06, 2009 at 06:55:41AM +0200, Yves Blusseau wrote: Le 5 sept. 09 à 22:31, Robert Millan a écrit : On Sat, Sep 05, 2009 at 03:17:58PM +0200, Michal Suchanek wrote: Still the time and space required to build GCC is much larger than

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

2009-09-06 Thread Yves Blusseau
Le 6 sept. 09 à 19:17, Vladimir 'phcoder' Serbinenko a écrit : checking whether target compiler is working... no configure: error: cannot compile for the target and if i look into the config.log it's because it use the default apple linker tool witch don't recognize some arguments: configu

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

2009-09-06 Thread Vladimir 'phcoder' Serbinenko
> checking whether target compiler is working... no > configure: error: cannot compile for the target > > and if i look into the config.log it's because it use the default apple > linker tool witch don't recognize some arguments: > > configure:5882: gcc-mp-4.4 -o conftest -Wall -W -Wshadow -Wpointe

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

2009-09-06 Thread Yves Blusseau
Le 6 sept. 09 à 16:54, Robert Millan a écrit : On Sun, Sep 06, 2009 at 06:55:41AM +0200, Yves Blusseau wrote: Le 5 sept. 09 à 22:31, Robert Millan a écrit : On Sat, Sep 05, 2009 at 03:17:58PM +0200, Michal Suchanek wrote: Still the time and space required to build GCC is much larger than

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

2009-09-06 Thread Robert Millan
On Sun, Sep 06, 2009 at 06:55:41AM +0200, Yves Blusseau wrote: > > Le 5 sept. 09 à 22:31, Robert Millan a écrit : > >> On Sat, Sep 05, 2009 at 03:17:58PM +0200, Michal Suchanek wrote: >>> >>> Still the time and space required to build GCC is much larger than >>> that required for building grub. The

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

2009-09-05 Thread Yves Blusseau
Le 5 sept. 09 à 22:31, Robert Millan a écrit : On Sat, Sep 05, 2009 at 03:17:58PM +0200, Michal Suchanek wrote: Still the time and space required to build GCC is much larger than that required for building grub. The OS X platform is somewhat exotic because it uses different object format and

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

2009-09-05 Thread Vladimir 'phcoder' Serbinenko
On Sat, Sep 5, 2009 at 10:31 PM, Robert Millan wrote: > On Sat, Sep 05, 2009 at 03:17:58PM +0200, Michal Suchanek wrote: >> >> Still the time and space required to build GCC is much larger than >> that required for building grub. The OS X platform is somewhat exotic >> because it uses different obj

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

2009-09-05 Thread Robert Millan
On Sat, Sep 05, 2009 at 03:17:58PM +0200, Michal Suchanek wrote: > > Still the time and space required to build GCC is much larger than > that required for building grub. The OS X platform is somewhat exotic > because it uses different object format and non-gnu linker so it is > more likely there

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

2009-09-05 Thread Robert Millan
On Sat, Sep 05, 2009 at 01:47:52PM +0200, Yves Blusseau wrote: >> >> I assume you installed Apple's version of GCC. Can you try with an >> official >> GCC release? > > Yes, i have compiled on a true mac (Leopard 10.5.7) with the gcc-4.2.1 > version. > > I have tried to compil with a mac port o

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

2009-09-05 Thread Michal Suchanek
2009/9/4 Robert Millan : > On Thu, Sep 03, 2009 at 11:33:51PM +0200, Vladimir 'phcoder' Serbinenko 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. >> > >> It

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

2009-09-05 Thread Yves Blusseau
Le 4 sept. 09 à 13:48, Robert Millan a écrit : 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 c

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

2009-09-04 Thread Robert Millan
On Thu, Sep 03, 2009 at 11:33:51PM +0200, Vladimir 'phcoder' Serbinenko 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. > > > It won't do a lot of difference fo

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

2009-09-04 Thread Robert Millan
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 ca

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

2009-09-03 Thread Vladimir 'phcoder' Serbinenko
>> >> Compil and work on OSX. >> >> Is it ok to commit it ? > > However, on our side, I'm not satisfied at all with accomodating to arbitrary > limitations like this one.  This seems like a slippery slope.  If we do it > now, what's the next one? I agree that we shouldn't support a compiler if it r

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

2009-09-03 Thread Yves Blusseau
Le 1 sept. 09 à 13:46, Robert Millan a écrit : On Mon, Aug 31, 2009 at 11:10:17PM +0200, Yves Blusseau wrote: What about following compromise: diff --git a/loader/i386/linux.c b/loader/i386/linux.c index 4144384..1380eb8 100644 --- a/loader/i386/linux.c +++ b/loader/i386/linux.c @@ -543,7 +543

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

2009-09-01 Thread Robert Millan
On Mon, Aug 31, 2009 at 11:10:17PM +0200, Yves Blusseau wrote: >>> What about following compromise: >>> diff --git a/loader/i386/linux.c b/loader/i386/linux.c >>> index 4144384..1380eb8 100644 >>> --- a/loader/i386/linux.c >>> +++ b/loader/i386/linux.c >>> @@ -543,7 +543,8 @@ grub_linux_boot (void)

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

2009-08-31 Thread Yves Blusseau
What about following compromise: diff --git a/loader/i386/linux.c b/loader/i386/linux.c index 4144384..1380eb8 100644 --- a/loader/i386/linux.c +++ b/loader/i386/linux.c @@ -543,7 +543,8 @@ grub_linux_boot (void) asm volatile ("lgdt %0" : : "m" (gdt_desc)); /* Enter Linux. */ - asm volatile

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

2009-08-28 Thread Vladimir 'phcoder' Serbinenko
> What about following compromise: > diff --git a/loader/i386/linux.c b/loader/i386/linux.c > index 4144384..1380eb8 100644 > --- a/loader/i386/linux.c > +++ b/loader/i386/linux.c > @@ -543,7 +543,8 @@ grub_linux_boot (void) >   asm volatile ("lgdt %0" : : "m" (gdt_desc)); > >   /* Enter Linux.  */

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

2009-08-23 Thread Vladimir 'phcoder' Serbinenko
>> What about following compromise: >> [...] > > I'm not sure what's the problem here.  AFAIK inline assembly had this syntax > with GCC 4.0 already.  Did Apple cripple it in their version of GCC ? Yes. They don't allow usage of %ebx/%rbx in constraints and clobbered registers > > -- > Robert Milla

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

2009-08-23 Thread Robert Millan
On Sat, Aug 22, 2009 at 08:00:10PM +0200, Vladimir 'phcoder' Serbinenko wrote: > On Mon, Aug 10, 2009 at 1:41 PM, Robert Millan wrote: > > On Sat, Aug 08, 2009 at 10:44:25PM +0800, Bean wrote: > >> Hi, > >> > >> I also encounter this problem with apple gcc 4.0, the fix is to replace: > >> > >> asm

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

2009-08-22 Thread Vladimir 'phcoder' Serbinenko
On Mon, Aug 10, 2009 at 1:41 PM, Robert Millan wrote: > On Sat, Aug 08, 2009 at 10:44:25PM +0800, Bean wrote: >> Hi, >> >> I also encounter this problem with apple gcc 4.0, the fix is to replace: >> >> asm volatile ("jmp *%2" : : "b" (0), "S" (real_mode_mem), "g" >> (params->code32_start)); >> >> W

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

2009-08-10 Thread Robert Millan
On Sat, Aug 08, 2009 at 10:44:25PM +0800, Bean wrote: > Hi, > > I also encounter this problem with apple gcc 4.0, the fix is to replace: > > asm volatile ("jmp *%2" : : "b" (0), "S" (real_mode_mem), "g" > (params->code32_start)); > > With: > asm volatile ("movl %0, %%ecx" : : "m" (params->code

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

2009-08-08 Thread Bean
On Sat, Aug 8, 2009 at 10:47 PM, Vladimir 'phcoder' Serbinenko wrote: > On Sat, Aug 8, 2009 at 4:44 PM, Bean wrote: >> Hi, >> >> I also encounter this problem with apple gcc 4.0, the fix is to replace: >> >> asm volatile ("jmp *%2" : : "b" (0), "S" (real_mode_mem), "g" >> (params->code32_start)); >

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

2009-08-08 Thread Vladimir 'phcoder' Serbinenko
On Sat, Aug 8, 2009 at 4:44 PM, Bean wrote: > Hi, > > I also encounter this problem with apple gcc 4.0, the fix is to replace: > > asm volatile ("jmp *%2" : : "b" (0), "S" (real_mode_mem), "g" > (params->code32_start)); > > With: >  asm volatile ("movl %0, %%ecx" : : "m" (params->code32_start)); >

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

2009-08-08 Thread Bean
Hi, I also encounter this problem with apple gcc 4.0, the fix is to replace: asm volatile ("jmp *%2" : : "b" (0), "S" (real_mode_mem), "g" (params->code32_start)); With: asm volatile ("movl %0, %%ecx" : : "m" (params->code32_start)); asm volatile ("movl %0, %%esi" : : "m" (real_mode_mem));