From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: [PATCH] setbfree: Fix build on MIPS64 Date: Sun, 05 Jul 2015 20:44:31 +0200 Message-ID: <877fqejvg0.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBouE-0003Xo-8Z for guix-devel@gnu.org; Sun, 05 Jul 2015 14:44:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZBou9-0008Tm-5b for guix-devel@gnu.org; Sun, 05 Jul 2015 14:44:46 -0400 Received: from sender163-mail.zoho.com ([74.201.84.163]:25320) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBou8-0008Sj-Tg for guix-devel@gnu.org; Sun, 05 Jul 2015 14:44:41 -0400 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Guix-devel --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit The attached patch should fix the build of setbfree on MIPS64. The default value for OPTIMIZATIONS contains flags for x86 systems. I have not tested this as I don’t have access to a MIPS64 system. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-setbfree-Disable-unsupported-optimizations-on-MI.patch >From 87a5264e54d93cfd84b3c886e2d6ee5fbe69cce7 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Sun, 5 Jul 2015 20:40:56 +0200 Subject: [PATCH] gnu: setbfree: Disable unsupported optimizations on MIPS64. * gnu/packages/music.scm (setbfree)[arguments]: Override default OPTIMIZATIONS variable on MIPS64. --- gnu/packages/music.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index 9e7e012..8f49f04 100644 --- a/gnu/packages/music.scm +++ b/gnu/packages/music.scm @@ -424,7 +424,12 @@ Editor. It is compatible with Power Tab Editor 1.7 and Guitar Pro.") (list (string-append "PREFIX=" (assoc-ref %outputs "out")) (string-append "FONTFILE=" (assoc-ref %build-inputs "font-bitstream-vera") - "/share/fonts/truetype/VeraBd.ttf")) + "/share/fonts/truetype/VeraBd.ttf") + ;; Disable unsupported optimization flags on MIPS64 + ,@(if (string-prefix? "mips64" (or (%current-target-system) + (%current-system))) + '("OPTIMIZATIONS=-ffast-math -fomit-frame-pointer -O3") + '())) #:phases (modify-phases %standard-phases (add-before 'build 'set-CC-variable -- 2.4.3 --=-=-=--