From patchwork Wed Sep 21 20:25:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=C3=B6rg_Krause?= X-Patchwork-Id: 673044 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sfWNB6F4gz9sBr for ; Thu, 22 Sep 2016 06:25:46 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=embedded.rocks header.i=@embedded.rocks header.b=vza2iIJU; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 402508A9A1; Wed, 21 Sep 2016 20:25:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lROOxe0xOLj8; Wed, 21 Sep 2016 20:25:43 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id D269C8A989; Wed, 21 Sep 2016 20:25:42 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 42D9C1C1F38 for ; Wed, 21 Sep 2016 20:25:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3F0208BE1B for ; Wed, 21 Sep 2016 20:25:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2NV6K+uJLTck for ; Wed, 21 Sep 2016 20:25:40 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.142]) by whitealder.osuosl.org (Postfix) with ESMTPS id 0F9A48BE11 for ; Wed, 21 Sep 2016 20:25:40 +0000 (UTC) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3sfWN13Tr9zyp0 for ; Wed, 21 Sep 2016 22:25:37 +0200 (CEST) Authentication-Results: mail.embedded.rocks (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=embedded.rocks DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embedded.rocks; h=content-transfer-encoding:content-type:content-type :mime-version:x-mailer:message-id:date:date:subject:subject:from :from:received:received; s=default; t=1474489536; x=1475094337; bh=w3NBz8muEyBEco8uSMsKwyUvktQpQczPwqXNFrQCMbU=; b=vza2iIJUADad 72t0OUC6aeZmKiURGMozSK4FRPsjlr7nhL8BncA8bOR9Z29R6VIRrtlbkb387R5u /9wcY0EcRfx55j9sA1V5XzUK4jTeIPuRhvGFdSHDdXLzvrNWzxpqJQFx5B4KIWaY 4+LJatbhmfDvXvbC1F69VEkSYgjw9mREBqJ4bPjujnpRub8hKSg6UqPwJEGXjAv7 haFdgqfJgP41Y39WcL6Z1MuedWcd7UedbxZboxCzwHxyQlbctC2kCF8WehvHjoDY IFzCYeQGwcPvYCP58OHPfLbytP7Ugx1E5HTXsfiNnrXUuRplFm2JYvteVWgAb2TC FmywgPm5HQ== Received: from mail.embedded.rocks ([127.0.0.1]) by localhost (mail.embedded.rocks [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id RcVBx4Wst4eR; Wed, 21 Sep 2016 22:25:36 +0200 (CEST) Received: from nzxt.fritz.box (x2f76d87.dyn.telefonica.de [2.247.109.135]) (Authenticated sender: joerg.krause@embedded.rocks) by mail.embedded.rocks (Postfix) with ESMTPSA; Wed, 21 Sep 2016 22:25:36 +0200 (CEST) From: =?UTF-8?q?J=C3=B6rg=20Krause?= To: buildroot@buildroot.org Date: Wed, 21 Sep 2016 22:25:33 +0200 Message-Id: <20160921202533.382-1-joerg.krause@embedded.rocks> X-Mailer: git-send-email 2.10.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2] package/libxslt: fix bfin compile X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" A GCC bug is triggered when the compiler is run with an optimization level '-Os/-O2/-O3' for the Blackfin architecture: ``` error: unable to find a register to spill in class 'CCREGS' ``` Workaround this bug by forcing an optimization level of '-O1' when building libxslt for the Blackfin architecture. See GCC bug report: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77311 Fixes: http://autobuild.buildroot.net/results/907/907f906fd24d6a70a2a704cefb70219b3d0c06d8/ http://autobuild.buildroot.net/results/e4c/e4cccff0f46900008c84fa7610482486e1df5aff/ http://autobuild.buildroot.net/results/16a/16ac477d06bdf032afd8a7e151f7b31b31bfbf97/ http://autobuild.buildroot.net/results/fbd/fbd294a4dadf2d3b11fb44967cd90903b32d1811/ .. and more. Signed-off-by: Jörg Krause --- v2: - add autobuild fixes --- package/libxslt/libxslt.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/libxslt/libxslt.mk b/package/libxslt/libxslt.mk index 868ba6a..4253a60 100644 --- a/package/libxslt/libxslt.mk +++ b/package/libxslt/libxslt.mk @@ -19,6 +19,12 @@ LIBXSLT_CONF_OPTS = \ LIBXSLT_CONFIG_SCRIPTS = xslt-config LIBXSLT_DEPENDENCIES = libxml2 +# GCC bug with Os/O2/O3, PR77311 +# error: unable to find a register to spill in class 'CCREGS' +ifeq ($(BR2_bfin),y) +LIBXSLT_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -O1" +endif + # If we have enabled libgcrypt then use it, else disable crypto support. ifeq ($(BR2_PACKAGE_LIBGCRYPT),y) LIBXSLT_DEPENDENCIES += libgcrypt