From patchwork Thu Jun 25 13:43:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Bedarkar X-Patchwork-Id: 488462 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]) by ozlabs.org (Postfix) with ESMTP id B2AC01402EC for ; Thu, 25 Jun 2015 23:44:01 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D5AC095D04; Thu, 25 Jun 2015 13:44:00 +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 2btA7RYwoqdb; Thu, 25 Jun 2015 13:44:00 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 45BC095D06; Thu, 25 Jun 2015 13:44:00 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id E74A91C100A for ; Thu, 25 Jun 2015 13:43:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id DE6383387F for ; Thu, 25 Jun 2015 13:43:58 +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 dyzyrbO5+l8M for ; Thu, 25 Jun 2015 13:43:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailapp01.imgtec.com (mailapp01.imgtec.com [195.59.15.196]) by silver.osuosl.org (Postfix) with ESMTP id 5847233874 for ; Thu, 25 Jun 2015 13:43:58 +0000 (UTC) Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id 7D3D1C2B3238C for ; Thu, 25 Jun 2015 14:43:54 +0100 (IST) Received: from PUMAIL01.pu.imgtec.org (192.168.91.250) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.195.1; Thu, 25 Jun 2015 14:43:57 +0100 Received: from pudesk287-linux.pu.imgtec.org (192.168.95.110) by PUMAIL01.pu.imgtec.org (192.168.91.250) with Microsoft SMTP Server (TLS) id 14.3.123.3; Thu, 25 Jun 2015 19:13:54 +0530 From: Rahul Bedarkar To: Date: Thu, 25 Jun 2015 19:13:24 +0530 Message-ID: <1435239804-17119-2-git-send-email-rahul.bedarkar@imgtec.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435239804-17119-1-git-send-email-rahul.bedarkar@imgtec.com> References: <1435239804-17119-1-git-send-email-rahul.bedarkar@imgtec.com> MIME-Version: 1.0 X-Originating-IP: [192.168.95.110] Cc: Rahul Bedarkar Subject: [Buildroot] [PATCH 2/2] glog: disable on blackfin external toolchains 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" With following blackfin toolchains BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2014R1 BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2013R1 BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2012R2 when BR2_BINFMT_FDPIC=y ../usr/include/bits/elf-fdpic.h: In function 'void* __reloc_pointer(void*, const elf32_fdpic_loadmap*)': ../usr/include/bits/elf-fdpic.h:95: error: invalid use of 'void' code snippet at line 95 in elf-fdpic.h ------------------------------------------------------- unsigned long offset = p - (void*)map->segs[c].p_vaddr; ------------------------------------------------------- void pointer addition and subtraction is not allowed in C++ as it has undetermined size, however in C with language extension it is possible because sizeof void is treated as one byte. This is toolchain-specific issue. So disable package on these external toolchains. fixes: http://autobuild.buildroot.net/results/c70/c704c70ae2f066f85dd6a5fa6a73789bc358d368/ Signed-off-by: Rahul Bedarkar --- package/glog/Config.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/glog/Config.in b/package/glog/Config.in index 534997a..3f54020 100644 --- a/package/glog/Config.in +++ b/package/glog/Config.in @@ -3,11 +3,18 @@ config BR2_PACKAGE_GLOG depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS depends on !BR2_STATIC_LIBS + # build issues with these external toolchains + depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2014R1 + depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2013R1 + depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2012R2 help C++ implementation of the Google logging module https://github.com/google/glog comment "glog needs a toolchain w/ C++, threads, dynamic library" + depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2014R1 + depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2013R1 + depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2012R2 depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ BR2_STATIC_LIBS