|
From: | Yves Blusseau |
Subject: | Re: Report: compil error on OSX for target=i386 |
Date: | Sat, 5 Sep 2009 13:47:52 +0200 |
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 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 constraintsmake: *** [linux_mod-loader_i386_linux.o] Error 1I assume you installed Apple's version of GCC. Can you try with an officialGCC 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 of gcc 4.4 but configure report an error (about the linker):
checking whether target compiler is working... no configure: error: cannot compile for the targetand 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 -Wpointer- arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -Os -falign- jumps=1 -falign-loops=1 -falign-functions=1 -fno-dwarf2-cfi-asm -m32 - fno-stack-protector -mno-stack-arg-probe -nostdlib -Wl,-- defsym,___main=0x8100 -m32 conftest.c >&5
ld: unknown option: --defsym collect2: ld returned 1 exit status Regards, Yves Blusseau
smime.p7s
Description: S/MIME cryptographic signature
[Prev in Thread] | Current Thread | [Next in Thread] |