From patchwork Thu Jul 31 13:24:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Kolesov X-Patchwork-Id: 375309 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 83CD0140139 for ; Thu, 31 Jul 2014 23:25:38 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id CF1128B1A6; Thu, 31 Jul 2014 13:25:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id s9oD1xULj7FX; Thu, 31 Jul 2014 13:25:37 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 738048BDAF; Thu, 31 Jul 2014 13:25:35 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 8D3EF1BF97D for ; Thu, 31 Jul 2014 13:25:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 874EA30984 for ; Thu, 31 Jul 2014 13:25:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6vVGUP8u1Otl for ; Thu, 31 Jul 2014 13:25:09 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from smtprelay.synopsys.com (us01smtprelay-2.synopsys.com [198.182.60.111]) by silver.osuosl.org (Postfix) with ESMTPS id 51F1E26113 for ; Thu, 31 Jul 2014 13:25:09 +0000 (UTC) Received: from us01secmta2.synopsys.com (us01secmta2.synopsys.com [10.9.203.102]) by smtprelay.synopsys.com (Postfix) with ESMTP id E0E8510C0D06; Thu, 31 Jul 2014 06:25:08 -0700 (PDT) Received: from us01secmta2.internal.synopsys.com (us01secmta2.internal.synopsys.com [127.0.0.1]) by us01secmta2.internal.synopsys.com (Service) with ESMTP id D5395A4112; Thu, 31 Jul 2014 06:25:08 -0700 (PDT) Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by us01secmta2.internal.synopsys.com (Service) with ESMTP id B5000A4102; Thu, 31 Jul 2014 06:25:08 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id A6330D76; Thu, 31 Jul 2014 06:25:08 -0700 (PDT) Received: from akolesov-lab.internal.synopsys.com (akolesov-lab.internal.synopsys.com [10.121.8.134]) by mailhost.synopsys.com (Postfix) with ESMTP id A925FD70; Thu, 31 Jul 2014 06:25:07 -0700 (PDT) From: Anton Kolesov To: buildroot@uclibc.org Date: Thu, 31 Jul 2014 17:24:49 +0400 Message-Id: <1406813090-32472-8-git-send-email-Anton.Kolesov@synopsys.com> X-Mailer: git-send-email 1.8.4.1 In-Reply-To: <1406813090-32472-1-git-send-email-Anton.Kolesov@synopsys.com> References: <20140730084548.05bd6dec@free-electrons.com> <1406813090-32472-1-git-send-email-Anton.Kolesov@synopsys.com> Cc: Thomas Petazzoni , Alexey.Brodkin@synopsys.com Subject: [Buildroot] [PATCH v2 8/9] libtorrent: Add dependency on atomic intrinsics X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 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-bounces@busybox.net Libtorrent requires GCC built-in atomic functions which are architecture specific and may not be implemented. This fixes: http://autobuild.buildroot.net/results/51414e22c8ea47c38df20d864526a370c5a895d7/ Signed-off-by: Anton Kolesov --- package/libtorrent/Config.in | 9 ++++----- package/rtorrent/Config.in | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/package/libtorrent/Config.in b/package/libtorrent/Config.in index a21bf95..a706d98 100644 --- a/package/libtorrent/Config.in +++ b/package/libtorrent/Config.in @@ -2,14 +2,13 @@ config BR2_PACKAGE_LIBTORRENT bool "libtorrent" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS - # ARC GCC doesn't support atomic instructions required by this lib - depends on !BR2_arc + depends on BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS select BR2_PACKAGE_LIBSIGC help BitTorrent library written in C++ for *nix http://libtorrent.rakshasa.no/ -comment "libtorrent needs a toolchain w/ C++, threads" - depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS - depends on !BR2_arc +comment "libtorrent needs a toolchain w/ C++, threads, atomic intrinsics" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS \ + || !BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS diff --git a/package/rtorrent/Config.in b/package/rtorrent/Config.in index fa81cde..1efc5f1 100644 --- a/package/rtorrent/Config.in +++ b/package/rtorrent/Config.in @@ -4,8 +4,7 @@ config BR2_PACKAGE_RTORRENT depends on BR2_USE_WCHAR depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_USE_MMU # fork() - # ARC GCC doesn't support atomic instructions required by libtorrent - depends on !BR2_arc + depends on BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS # libtorrent select BR2_PACKAGE_LIBCURL select BR2_PACKAGE_LIBSIGC select BR2_PACKAGE_LIBTORRENT @@ -16,7 +15,7 @@ config BR2_PACKAGE_RTORRENT http://libtorrent.rakshasa.no/ -comment "rtorrent needs a toolchain w/ C++, threads, wchar" +comment "rtorrent needs a toolchain w/ C++, threads, wchar, atomic intrinsics" depends on BR2_USE_MMU - depends on !(BR2_INSTALL_LIBSTDCPP && BR2_USE_WCHAR && BR2_TOOLCHAIN_HAS_THREADS) - depends on !BR2_arc + depends on !(BR2_INSTALL_LIBSTDCPP && BR2_USE_WCHAR && BR2_TOOLCHAIN_HAS_THREADS \ + && BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS)