From patchwork Sun Aug 2 21:43:50 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brendan Heading X-Patchwork-Id: 502931 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 156071402E2 for ; Mon, 3 Aug 2015 07:44:00 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=lAGI7877; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4F4B38B8A6; Sun, 2 Aug 2015 21:43:59 +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 Q2HEqM2DleYE; Sun, 2 Aug 2015 21:43:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 47CD78BAD1; Sun, 2 Aug 2015 21:43:58 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id CFFDC1C203A for ; Sun, 2 Aug 2015 21:43:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id CCEEC9307C for ; Sun, 2 Aug 2015 21:43:56 +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 URbqqEZVT7DI for ; Sun, 2 Aug 2015 21:43:56 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by hemlock.osuosl.org (Postfix) with ESMTPS id A8FB593069 for ; Sun, 2 Aug 2015 21:43:55 +0000 (UTC) Received: by wibxm9 with SMTP id xm9so91141433wib.1 for ; Sun, 02 Aug 2015 14:43:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=n7cM6+4KSFH3yxSBW9A7C4huVrvtrr/PYhahQKoYy9c=; b=lAGI7877AzkoHoSbviA8jS9hJH6XLNyaikE/Wq9ANlzvZ+mUXkXCi0Bx72YwHjj6+3 +CsAqHuLy3i4GdNPdUPD2lCMiK1SchMA0VHyRyrXDzldo60iNhLTuoygODnMyZjQKOT5 EgHBpHUqlPaCHeipSCar5IocUnYOixqN11kxPBehZsUlNblWpNip3lpPgd9jyYlDBAk9 fjNfrs2YM53YbCm74o+VyM/UweUenOZLyDjfWjTimCYiumJ0faH2mNImh3QY7jfTF4Jl FbtMcNjaJa8nVjwUthxXoci3JQw4lWRlhVSc/FwA8gcGbv+PtP5Ct1njLysBxCe0Y/Me WoPQ== X-Received: by 10.194.237.232 with SMTP id vf8mr27708841wjc.22.1438551834381; Sun, 02 Aug 2015 14:43:54 -0700 (PDT) Received: from bhfedora.localdomain ([82.15.84.251]) by smtp.gmail.com with ESMTPSA id uc3sm10148071wib.2.2015.08.02.14.43.53 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Aug 2015 14:43:53 -0700 (PDT) From: Brendan Heading To: buildroot@buildroot.org Date: Sun, 2 Aug 2015 22:43:50 +0100 Message-Id: <1438551830-3619-1-git-send-email-brendanheading@gmail.com> X-Mailer: git-send-email 2.4.3 Cc: Brendan Heading Subject: [Buildroot] [PATCH 1/1] package/libatomic_ops - fix compilation fail on sparc 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: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes http://autobuild.buildroot.net/results/6d8/6d83fa5d69572cec5c96be4b7651f9b113a1a19c/ libatomic_ops by default requires SPARC v9. buildroot's two supported sparc arches (SPARCv8, and leon3) are both SPARCv8-based. Unfortunately libatomic_ops's support for SPARCv8 is incomplete. The library includes fallbacks but these must expressly be enabled by defining a macro, enabled by this patch. Note that I'm testing for the SPARC variants rather than BR2_sparc, in case someone implements SPARCv9 support in the future. Discussion of this workaround described by the maintainer here : https://github.com/ivmai/libatomic_ops/issues/9 Signed-off-by: Brendan Heading --- package/libatomic_ops/libatomic_ops.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/libatomic_ops/libatomic_ops.mk b/package/libatomic_ops/libatomic_ops.mk index 5f698c4..fd45726 100644 --- a/package/libatomic_ops/libatomic_ops.mk +++ b/package/libatomic_ops/libatomic_ops.mk @@ -19,5 +19,9 @@ LIBATOMIC_OPS_LICENSE_FILES = doc/LICENSING.txt COPYING LIBATOMIC_OPS_INSTALL_STAGING = YES +ifeq ($(BR2_sparc_v8)$(BR2_sparc_leon3),y) +LIBATOMIC_OPS_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -DAO_NO_SPARC_V9" +endif + $(eval $(autotools-package)) $(eval $(host-autotools-package))