From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Ml1t9-0004Ym-7L for mharc-grub-devel@gnu.org; Tue, 08 Sep 2009 10:41:43 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ml1t6-0004Wh-Vj for grub-devel@gnu.org; Tue, 08 Sep 2009 10:41:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ml1t2-0004U9-AW for grub-devel@gnu.org; Tue, 08 Sep 2009 10:41:40 -0400 Received: from [199.232.76.173] (port=56468 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ml1t1-0004Tt-Vi for grub-devel@gnu.org; Tue, 08 Sep 2009 10:41:36 -0400 Received: from xvm-190-8.ghst.net ([217.70.190.8]:48491 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 1Ml1t1-0006u6-Ks for grub-devel@gnu.org; Tue, 08 Sep 2009 10:41:35 -0400 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1Ml1sx-0008E6-Lj for grub-devel@gnu.org; Tue, 08 Sep 2009 16:41:33 +0200 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1Ml1st-0003Ym-6d for grub-devel@gnu.org; Tue, 08 Sep 2009 16:41:27 +0200 Date: Tue, 8 Sep 2009 16:41:27 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20090908144127.GA13674@thorin> References: <20090901114643.GB25290@thorin> <20090904115930.GB6825@thorin> <20090905203158.GB14485@thorin> <244FA39F-B89C-4233-8860-2EC26392A585@zetam.org> <20090906145456.GA3548@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: Tue, 08 Sep 2009 14:41:41 -0000 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 -Wstrict-prototypes -g -Os -falign-jumps=1 -falign-loops=1 > -falign-functions=1 -fno-dwarf2-cfi-asm -DAPPLE_CC=1 -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 > 20:16loader/i386/linux.c: In function 'grub_linux_boot': > 20:16loader/i386/linux.c:546: error: can't find a register in class > 'BREG' while reloading 'asm' > 20:16loader/i386/linux.c:546: error: 'asm' operand has impossible > constraints > 20:16make: * [linux_mod-loader_i386_linux.o] Error 1 > > MacPorts don't use specific patch to build gcc so i think the behavior > is coded somewhere in the gcc source code. I guess that's the implicit -fPIC you mentioned on IRC? Does -fno-PIC help? -- 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."