From patchwork Sat Nov 21 21:53:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Prado X-Patchwork-Id: 547243 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 7E0651402A1 for ; Sun, 22 Nov 2015 08:54:12 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=e-labworks-com.20150623.gappssmtp.com header.i=@e-labworks-com.20150623.gappssmtp.com header.b=1BjnSSW2; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B882F875FE; Sat, 21 Nov 2015 21:54:11 +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 vgO6S64U2ekW; Sat, 21 Nov 2015 21:54:11 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 16B7587628; Sat, 21 Nov 2015 21:54:11 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 3D94F1C1041 for ; Sat, 21 Nov 2015 21:54:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 18C6080659 for ; Sat, 21 Nov 2015 21:54:10 +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 E5fi39JU59Eb for ; Sat, 21 Nov 2015 21:54:09 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qg0-f47.google.com (mail-qg0-f47.google.com [209.85.192.47]) by fraxinus.osuosl.org (Postfix) with ESMTPS id D0261A57D2 for ; Sat, 21 Nov 2015 21:54:08 +0000 (UTC) Received: by qgcc31 with SMTP id c31so51488187qgc.3 for ; Sat, 21 Nov 2015 13:54:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=e-labworks-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=BKdd9yIle/Al2V8NEHgVWx+F397fEoQByY/8tVePStY=; b=1BjnSSW2oxu04/WheOwkx8DIQY4FeqGblqY7RUhimHT8F6qEUyCW06f2AddA93W7ZN F8xltVp9rHSSi8VGBqi1MD+cMrQwjkgHj73drMB8ltvTYasIpzWnfHTaT3Izq0MUUiiX OVPlMzrConnJw8jiJeUapCgmPMOreDRnw3WmWfVtywY1F3bzUJXX9zVnavF5L7YUWT+U KNuy0LuezAeYPVWIQA2ds6UZN7YW3/aCa05/rqohf61YVfFKnw6cNpdlVYnRTFlHTMZF sIQTRqFxJtTo+3UECRYIIT9Njmas8jh3XpHS1w/lzgUQugqX4VnRexmHRjJtKMJDRFCh l54A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=BKdd9yIle/Al2V8NEHgVWx+F397fEoQByY/8tVePStY=; b=k3n24AVK6HC5fMgemCbpChWMwaNFmgQAegS5/FMKsCSpfgYCUcJ+O1cTkXjvYsObqY MsM9bF4S7quZGfUL9OVEEO+I+Gl9QKVg7CLY3dtM8eZhh0sHv2EBYJZGgp6iuf1BYVY3 x2ErhcIPJvNbx+5y0lvu8Gj4Zl+HB7qFWOcEOpRq67bSWfXlRWxLCpEu/XzIZh+vNlyJ 00rruRv1ektE8njiybrKf5IKT1eLcoVDWooF+yHFP29mD6ij0SdW3WAYLEkanp0T5xkG 96R1T5X4P9ngFQux93fhfuMez7cFV5PBHqoVTOrLljVDYLGZRuGlFgnRV75Jt0ftEVI0 o+og== X-Gm-Message-State: ALoCoQlO41CkRjMsmA7XF+PYL8BC3o2tcndYyaobbBUFT/KUhABR3mgegfH+I1uSuXT0BYTP41mi X-Received: by 10.140.98.117 with SMTP id n108mr20291886qge.56.1448142847905; Sat, 21 Nov 2015 13:54:07 -0800 (PST) Received: from localhost.localdomain ([177.141.170.120]) by smtp.gmail.com with ESMTPSA id o6sm1338552qko.34.2015.11.21.13.54.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 21 Nov 2015 13:54:07 -0800 (PST) From: Sergio Prado To: buildroot@buildroot.org Date: Sat, 21 Nov 2015 19:53:22 -0200 Message-Id: <1448142802-1294-1-git-send-email-sergio.prado@e-labworks.com> X-Mailer: git-send-email 1.9.1 Subject: [Buildroot] [PATCH 1/1] gpsd: re-enable on microblaze architecture 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" Fix (works around) bug #6872 https://bugs.busybox.net/show_bug.cgi?id=6872 The gpsd package was disabled due to an internal compiler error for the microblaze architecture in the following commit: http://git.buildroot.net/buildroot/commit/?id=d517415bcda380336f4a27bf248cef4d81791c9e The problem is due to an specific GCC optimization flag (-fexpensive-optimizations), so disabling it we can work around this problem and compile gpsd for the microblaze architecture. Signed-off-by: Sergio Prado --- package/gpsd/Config.in | 3 --- package/gpsd/gpsd.mk | 7 ++++++- package/sconeserver/Config.in | 2 -- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package/gpsd/Config.in b/package/gpsd/Config.in index fa8b8f6b2ad5..b4008ebd8353 100644 --- a/package/gpsd/Config.in +++ b/package/gpsd/Config.in @@ -1,7 +1,6 @@ comment "gpsd needs a toolchain w/ threads, dynamic library" depends on BR2_USE_MMU depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS - depends on !BR2_microblaze config BR2_PACKAGE_GPSD bool "gpsd" @@ -10,8 +9,6 @@ config BR2_PACKAGE_GPSD depends on BR2_TOOLCHAIN_HAS_THREADS # Always tries to build a shared library depends on !BR2_STATIC_LIBS - # triggers gcc ice - depends on !BR2_microblaze help gpsd is a service daemon that monitors one or more GPSes or AIS receivers attached to a host computer through serial or USB ports, diff --git a/package/gpsd/gpsd.mk b/package/gpsd/gpsd.mk index 87911c3905fe..18715f8f2933 100644 --- a/package/gpsd/gpsd.mk +++ b/package/gpsd/gpsd.mk @@ -13,6 +13,7 @@ GPSD_INSTALL_STAGING = YES GPSD_DEPENDENCIES = host-scons host-pkgconf GPSD_LDFLAGS = $(TARGET_LDFLAGS) +GPSD_CFLAGS = $(TARGET_CFLAGS) GPSD_SCONS_ENV = $(TARGET_CONFIGURE_OPTS) @@ -37,6 +38,10 @@ else GPSD_SCONS_OPTS += libgpsmm=no endif +ifeq ($(BR2_microblaze),y) +GPSD_CFLAGS += -fno-expensive-optimizations +endif + # Enable or disable Qt binding ifeq ($(BR2_PACKAGE_QT_NETWORK),y) GPSD_SCONS_ENV += QMAKE="$(QT_QMAKE)" @@ -185,7 +190,7 @@ ifeq ($(BR2_PACKAGE_GPSD_MAX_DEV),y) GPSD_SCONS_OPTS += limited_max_devices=$(BR2_PACKAGE_GPSD_MAX_DEV_VALUE) endif -GPSD_SCONS_ENV += LDFLAGS="$(GPSD_LDFLAGS)" +GPSD_SCONS_ENV += LDFLAGS="$(GPSD_LDFLAGS)" CFLAGS="$(GPSD_CFLAGS)" define GPSD_BUILD_CMDS (cd $(@D); \ diff --git a/package/sconeserver/Config.in b/package/sconeserver/Config.in index f16e683bf563..4083aa7dce36 100644 --- a/package/sconeserver/Config.in +++ b/package/sconeserver/Config.in @@ -63,7 +63,6 @@ config BR2_PACKAGE_SCONESERVER_LOCATION bool "location" depends on BR2_USE_MMU # gpsd depends on BR2_TOOLCHAIN_HAS_THREADS # gpsd - depends on !BR2_microblaze # gpsd depends on !BR2_STATIC_LIBS # gpsd select BR2_PACKAGE_GPSD help @@ -72,7 +71,6 @@ config BR2_PACKAGE_SCONESERVER_LOCATION comment "location support needs a toolchain w/ theads, dynamic library" depends on BR2_USE_MMU depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBRARY - depends on !BR2_microblaze config BR2_PACKAGE_SCONESERVER_LETTUCE bool "lettuce"