From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1bwGSk-0003xX-04 for mharc-grub-devel@gnu.org; Mon, 17 Oct 2016 18:32:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwGSi-0003xO-0d for grub-devel@gnu.org; Mon, 17 Oct 2016 18:32:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwGSe-0002pX-0n for grub-devel@gnu.org; Mon, 17 Oct 2016 18:32:51 -0400 Received: from b.painless.aa.net.uk ([81.187.30.52]:35646) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bwGSd-0002oF-RI for grub-devel@gnu.org; Mon, 17 Oct 2016 18:32:47 -0400 Received: from 3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.4.1.b.e.2.f.f.b.0.b.8.0.1.0.0.2.ip6.arpa ([2001:8b0:bff2:eb14::3] helo=riva.pelham.vpn.ucam.org) by b.painless.aa.net.uk with esmtps (TLSv1:AES128-SHA:128) (Exim 4.77) (envelope-from ) id 1bwGSb-0002zG-5o for grub-devel@gnu.org; Mon, 17 Oct 2016 23:32:47 +0100 Received: from ns1.pelham.vpn.ucam.org ([172.20.153.2] helo=riva.ucam.org) by riva.pelham.vpn.ucam.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1bwGSX-0001OG-UD for grub-devel@gnu.org; Mon, 17 Oct 2016 23:32:42 +0100 Date: Mon, 17 Oct 2016 23:32:40 +0100 From: Colin Watson To: grub-devel@gnu.org Subject: Re: "Illegal Instruction" error in grub_script_comments Message-ID: <20161017223240.GA13916@riva.ucam.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Painless-Spam-Score: 1.2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 81.187.30.52 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2016 22:32:53 -0000 On Mon, Oct 17, 2016 at 02:34:16PM -0400, tedheadster wrote: > I am building the older grub2-1.98+20100804 under the similarly old Debian > 'squeeze' distribution. However, I bet the error persists with newer > version. This is because I am building it on a true Intel 80486 and I don't > thing the compiler is building for the correct architecture. If it is in fact the lack of an -march= option that's at fault, then that was fixed in 2.02~beta1: http://git.savannah.gnu.org/cgit/grub.git/commit/?id=02663ee9d9cae806f90518bc4c89d31ae11b84e4 (You may be best simply setting TARGET_CFLAGS='-march=i386 -Os' in the environment when running configure, rather than trying to regenerate configure with that patch.) If that doesn't do it, then it may be something more involved such as hand-written non-486-compatible assembly somewhere, which won't be cured by a compiler option. GRUB is mostly in C, but something running at the level of a boot loader does tend to need at least a little bit of assembly to get itself going. -- Colin Watson [cjwatson@ubuntu.com]