Received: from list by lists.gnu.org with archive (Exim 4.71) id 1YGXRK-0005ut-2n for mharc-grub-devel@gnu.org; Wed, 28 Jan 2015 13:34:10 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGXRG-0005uD-Rh for grub-devel@gnu.org; Wed, 28 Jan 2015 13:34:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGXRD-0006wR-G2 for grub-devel@gnu.org; Wed, 28 Jan 2015 13:34:06 -0500 Received: from mail-wg0-f49.google.com ([74.125.82.49]:42482) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGXRD-0006wI-Af for grub-devel@gnu.org; Wed, 28 Jan 2015 13:34:03 -0500 Received: by mail-wg0-f49.google.com with SMTP id k14so22253760wgh.8 for ; Wed, 28 Jan 2015 10:34:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-type:content-disposition:user-agent; bh=Vo8dMkTUAcaRHYSB1QIPqYh9bsezJozJF0PqExGfcF0=; b=fsBJWWKcl54Z18F2zld4J2Dc1zL9qtAJmuu5NODDr5U3qoYIdOCZ8aNgJyxTh/meWr jm89SeEjT8KxQpS+j7kAFzaRq/w5ijsQwQlbBE+0n0i9Qyn5x3Q3U+cPGwRnpOjj4WPL 6ykv4Chdr5H/BvJcCOueEWr9Da3xmB86fW1YcUE9k/V1XyKAJkc5MbSo594ACakV6E0S 4f7Jd5zP8jeL0Y9Z9bqzRCyDEJOnxFt0jZrVy3pu+Jhde3L/7LAdYkUgSpq7rWhwAcJT OnjYSxR4FKgaV+w1UnoM0NejW1fiN1BTTkMECj5Mx/zJvMkINLTzv3410XXDGWdjB0mw 3Xtw== X-Gm-Message-State: ALoCoQk87YHNbc84kT8fnSXzz8ZL6NBtXqEkE7ihGNL/edeG6a8GQd0REEjA4x9z1YRMm/yFEywu X-Received: by 10.194.187.235 with SMTP id fv11mr10461935wjc.16.1422470042360; Wed, 28 Jan 2015 10:34:02 -0800 (PST) Received: from bivouac.eciton.net (bivouac.eciton.net. [2a00:1098:0:86:1000:23:0:2]) by mx.google.com with ESMTPSA id mz10sm3893354wic.9.2015.01.28.10.34.01 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 28 Jan 2015 10:34:01 -0800 (PST) Date: Wed, 28 Jan 2015 18:33:59 +0000 From: Leif Lindholm To: grub-devel@gnu.org Subject: commit 3661261f breaks arm64 Message-ID: <20150128183359.GG4278@bivouac.eciton.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.125.82.49 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2015 18:34:08 -0000 commit 3661261fe17a8fe19681073889b5b36ec1ee823d, "Always add -msoft-float to avoid compiler generating float arithmetics." breaks the arm64 build. -msoft-float is not a valid command line option for aarch64 (as far as I can see, it is technically a target-specific option which just happens to exist for most targets - including arm). This setting will need to be conditionalised somehow. An option that works for arm64 is -march=armv8-a+nofp+nosimd. Would something like this be an acceptable workaround?: diff --git a/configure.ac b/configure.ac index a3bca06..c99e1ea 100644 --- a/configure.ac +++ b/configure.ac @@ -678,7 +678,11 @@ fi # that floats are a good fit to run instead of what's written in the # code. # Given that floating point unit is disabled (if present to begin # with) # when GRUB is running which may result in various hard crashes. -TARGET_CFLAGS="$TARGET_CFLAGS -msoft-float" +if ( test "x$target_cpu" = xarm64 ); then + TARGET_CFLAGS="$TARGET_CFLAGS -march=armv8-a+nofp+nosimd" +else + TARGET_CFLAGS="$TARGET_CFLAGS -msoft-float" +fi # By default, GCC 4.4 generates .eh_frame sections containing unwind # information in some cases where it previously did not. GRUB doesn't # need / Leif