From patchwork Thu Dec 27 23:20:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 208360 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id CD8C52C00C8 for ; Fri, 28 Dec 2012 10:21:13 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 4D80B2728A; Thu, 27 Dec 2012 23:21:12 +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 7A0ssrku8DBA; Thu, 27 Dec 2012 23:21:11 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 102B620540; Thu, 27 Dec 2012 23:21:11 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 1A0788F74B for ; Thu, 27 Dec 2012 23:21:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4AA52805CF for ; Thu, 27 Dec 2012 23:21:09 +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 bKyOvVXO17YZ for ; Thu, 27 Dec 2012 23:21:03 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by whitealder.osuosl.org (Postfix) with ESMTPS id ECA7D818C4 for ; Thu, 27 Dec 2012 23:20:45 +0000 (UTC) Received: by mail-wg0-f43.google.com with SMTP id e12so4591997wge.10 for ; Thu, 27 Dec 2012 15:20:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer; bh=3PYP4QftyD0+VurF5eXqwVzqpU43BpG65zfKnxFXgmg=; b=syIZUNlrbh91P83NyWe/yQ7qP37nD3doCR9fXhfiSeZV3N+gzOUY0PTgAnnpt9UbAI BU6czWQsSeh1EcoQ17Hyb3l+siNfiI5N379FJEa6fQirMyCEed5Q5k9XYFBi7e0su6Nk zBYmofycUT5g4oTRrfqHDvt/Y1ixJ/xddZIZiCbdip+v5S6ROyjhPj2/nPCbbzTRHL90 uI9NTsQipMuSQSExTHVNGypxcFg2jiBCUgvvfDAVokYtTFS+Sm8sTjU98+NeHzgvj5Zg 9X3IRw4YQiwBpV7hndCuN/rbbknicgTQckVdhU/lrQMCPFzhKzxZd8SHO5zio8oEYTnh ZRDw== X-Received: by 10.180.108.236 with SMTP id hn12mr49558626wib.6.1356650444086; Thu, 27 Dec 2012 15:20:44 -0800 (PST) Received: from localhost.localdomain (ARennes-256-1-131-98.w90-32.abo.wanadoo.fr. [90.32.242.98]) by mx.google.com with ESMTPS id bz12sm51696722wib.5.2012.12.27.15.20.42 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 27 Dec 2012 15:20:43 -0800 (PST) From: "Yann E. MORIN" To: buildroot@busybox.net Date: Fri, 28 Dec 2012 00:20:36 +0100 Message-Id: <1356650436-20697-1-git-send-email-yann.morin.1998@free.fr> X-Mailer: git-send-email 1.7.2.5 Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH] package/keyutils: disable on avr32 & microblaze 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 keyutils builds on neither avr32, nor microblaze (probably because the toolchains used fot those archictectures are way too old), with: ..../microblazeel-unknown-linux-gnu-gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I. -DPKGBUILD="\"2012-12-27\"" -DPKGVERSION="\"keyutils-1.5.5\"" -DAPIVERSION="\"libkeyutils-1.4\"" -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -Os -g -Wall -Werror -UNO_GLIBC_KEYERR -o keyutils.o -c keyutils.c cc1: warnings being treated as errors key.dns_resolver.c: In function 'main': key.dns_resolver.c:690: warning: dereferencing type-punned pointer will break strict-aliasing rules Fixing with -fno-strict-aliasing only partially solves the issue for these two archs, since the C library does not export the resolver symbols so the link fails down the road... - on microblaze, glibc-2.3.6 is tool old and does not set these symbols as GLOBALs; - on avr32, uClibc does not have these symbols. It is much more easy to just disable keyutils for avr32 and microblaze. Fixes both (avr2, microblaze): http://autobuild.buildroot.net/results/aa86f6a68f5d0ea4914ab259ed270615bc9d6a99/ http://autobuild.buildroot.net/results/70ae127a6e353fd5c64c0c3b4e19a2e93d54ce52/ Merry X-Mas! PS. Thanks Richard for the help understanding those issues. Cc: Richard Braun Signed-off-by: "Yann E. MORIN" --- package/keyutils/Config.in | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/package/keyutils/Config.in b/package/keyutils/Config.in index 9b5a24b..9b9f9bc 100644 --- a/package/keyutils/Config.in +++ b/package/keyutils/Config.in @@ -1,5 +1,6 @@ config BR2_PACKAGE_KEYUTILS bool "keyutils" + depends on !BR2_avr32 && !BR2_microblaze help These tools are used to control the key management system built into the Linux kernel.