From patchwork Thu Jun 18 13:02:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Bedarkar X-Patchwork-Id: 486304 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 413CD1401F0 for ; Thu, 18 Jun 2015 23:03:51 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 84E6191768; Thu, 18 Jun 2015 13:03:49 +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 4oBWlll5z0mn; Thu, 18 Jun 2015 13:03:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id F3BE991751; Thu, 18 Jun 2015 13:03:45 +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 72AE01C2CC7 for ; Thu, 18 Jun 2015 13:03:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 6ECB994CC2 for ; Thu, 18 Jun 2015 13:03: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 cI5ytdv--kaM for ; Thu, 18 Jun 2015 13:03:43 +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 hemlock.osuosl.org (Postfix) with ESMTP id 9E8BB94C85 for ; Thu, 18 Jun 2015 13:03:43 +0000 (UTC) Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id E4EA1DF0A03BC for ; Thu, 18 Jun 2015 14:03:38 +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, 18 Jun 2015 14:03:41 +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, 18 Jun 2015 18:33:32 +0530 From: Rahul Bedarkar To: Date: Thu, 18 Jun 2015 18:32:35 +0530 Message-ID: <1434632555-10004-1-git-send-email-rahul.bedarkar@imgtec.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [192.168.95.110] Cc: Rahul Bedarkar Subject: [Buildroot] [PATCH] glog: disable on blackfin 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" glog fails to build on blackfin for following reasons, 1. http://autobuild.buildroot.net/results/c70/c704c70ae2f066f85dd6a5fa6a73789bc358d368/ when when BR2_BINFMT_FDPIC=y ../usr/include/bits/elf-fdpic.h: In function 'void* __reloc_pointer(void*, const elf32_fdpic_loadmap*)': ../usr/bfin-buildroot-linux-uclibc/sysroot/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. 2. http://autobuild.buildroot.net/results/75d/75d17ceb764c2c1136047c089a0c554770ca98a4/ when BR2_BINFMT_FLAT=y src/symbolize.cc:110:19: error: dlfcn.h: No such file or directory with flat binary, programming interface to dynamic linker loader is not available even though BR2_BINFMT_FLAT_SHARED is selected. As arch doesn't support MMU and thus available file formats are FDPIC and FLAT. With either of these selected above failure occurs. For failure 1, issue is in toolchain and for 2, arch support is not available. So disable glog for blackfin. Signed-off-by: Rahul Bedarkar --- package/glog/Config.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/glog/Config.in b/package/glog/Config.in index aed0a3e..350afe2 100644 --- a/package/glog/Config.in +++ b/package/glog/Config.in @@ -2,10 +2,14 @@ config BR2_PACKAGE_GLOG bool "glog" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS + # build issues with C++ compiler with elf-fdpic and + # can't use libdl with flat target binary file format + depends on !BR2_bfin help C++ implementation of the Google logging module https://github.com/google/glog comment "glog needs a toolchain w/ C++, threads" + depends on !BR2_bfin depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS