From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MjXHx-0006FS-1S for mharc-grub-devel@gnu.org; Fri, 04 Sep 2009 07:49:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MjXHu-0006E3-Nq for grub-devel@gnu.org; Fri, 04 Sep 2009 07:49:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MjXHq-0006Bw-IE for grub-devel@gnu.org; Fri, 04 Sep 2009 07:49:06 -0400 Received: from [199.232.76.173] (port=58560 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MjXHq-0006Bn-8B for grub-devel@gnu.org; Fri, 04 Sep 2009 07:49:02 -0400 Received: from xvm-190-8.ghst.net ([217.70.190.8]:59953 helo=aybabtu.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MjXHp-0007E5-SM for grub-devel@gnu.org; Fri, 04 Sep 2009 07:49:02 -0400 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1MjXHn-0001am-7K for grub-devel@gnu.org; Fri, 04 Sep 2009 13:48:59 +0200 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1MjXHm-0001ml-Mh for grub-devel@gnu.org; Fri, 04 Sep 2009 13:48:58 +0200 Date: Fri, 4 Sep 2009 13:48:58 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20090904114858.GA6825@thorin> References: <20090810114103.GG9344@thorin> <20090901114643.GB25290@thorin> <2EB51E44-E324-4EA0-9928-AC75C0432741@zetam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2EB51E44-E324-4EA0-9928-AC75C0432741@zetam.org> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: Report: compil error on OSX for target=i386 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Sep 2009 11:49:07 -0000 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."