From patchwork Mon Jul 27 19:51:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brendan Heading X-Patchwork-Id: 500625 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 D6E951402A0 for ; Tue, 28 Jul 2015 05:51:54 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=S7O8J34a; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 268F1A3759; Mon, 27 Jul 2015 19:51:54 +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 1DZjtCRCQuwK; Mon, 27 Jul 2015 19:51:53 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4320FA3742; Mon, 27 Jul 2015 19:51:53 +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 10C4D1C0847 for ; Mon, 27 Jul 2015 19:51:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 0B17A32EED for ; Mon, 27 Jul 2015 19:51:52 +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 PnjyPDBPFP79 for ; Mon, 27 Jul 2015 19:51:49 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by silver.osuosl.org (Postfix) with ESMTPS id 92C1432ED9 for ; Mon, 27 Jul 2015 19:51:49 +0000 (UTC) Received: by wicgb10 with SMTP id gb10so127076431wic.1 for ; Mon, 27 Jul 2015 12:51:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=8U13ybMFHBiATr7k7lqXEqytv45L+OR4OMZsx2PufFc=; b=S7O8J34akz2D4ryqSTru660MkNpRhgughKvchFzW9sPlrKkP+ElpPrY+aiABKVvsCS yt3AzZW/ZGJU1WdjYup/OZtgWd09iJwFM/1XCXRUXir93NmhIM8kP8uCWOQG1B97yF6H UM3IlW+Bs2KQ6BJLcefydeU6I9RjhPKz5Y5vrI+jYmdI2/EE6OvywycTfXwTjZnm3FP0 KOJkS+Iuc8sdKzrzxjCcbUwgiutfem6yjG+0MbhzEN/7d2Z/stB1MHGZPjMHxmSB0kmY EgpG9dyNDRcv9NqHf+2LgUphmBVUiDWCT13sBDHmhlzSlupkLFO8vJkbIW9peE591s1N XO6g== X-Received: by 10.181.29.100 with SMTP id jv4mr26603910wid.4.1438026708280; Mon, 27 Jul 2015 12:51:48 -0700 (PDT) Received: from bhfedora.localdomain ([82.15.84.251]) by smtp.gmail.com with ESMTPSA id lm5sm15226714wic.22.2015.07.27.12.51.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jul 2015 12:51:47 -0700 (PDT) From: Brendan Heading To: buildroot@buildroot.org Date: Mon, 27 Jul 2015 20:51:44 +0100 Message-Id: <1438026704-13318-1-git-send-email-brendanheading@gmail.com> X-Mailer: git-send-email 2.4.3 Cc: Brendan Heading Subject: [Buildroot] [PATCH 1/1] packages/dmraid: mark as broken on nios2, _gp2 issue 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" Fixes : http://autobuild.buildroot.net/results/a7e2631d06634d768faf5c1d02712cc9b38562c6/ Investigation of nios2 config.log shows that this is caused by the "infamous" _gp2 link issue on codesourcery toolchains: /home/bheading/dev/fix-dmraid/buildroot/output/host/opt/ext-toolchain/bin/../lib/gcc/nios2-linux-gnu/4.8.3/../../../../nios2-linux-gnu/bin/ld: /home/bheading/dev/fix-dmraid/buildroot/output/host/usr/nios2-buildroot-linux-gnu/sysroot/usr/lib/crt1.o: undefined reference to symbol '_gp' /home/bheading/dev/fix-dmraid/buildroot/output/host/usr/nios2-buildroot-linux-gnu/sysroot/usr/lib/libdevmapper.so.1.02: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status As with other cases, fixed by disabling this package when codesourcery toolchains are in use. Signed-off-by: Brendan Heading --- package/dmraid/Config.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/dmraid/Config.in b/package/dmraid/Config.in index 4a8cf61..ec50670 100644 --- a/package/dmraid/Config.in +++ b/package/dmraid/Config.in @@ -3,6 +3,9 @@ config BR2_PACKAGE_DMRAID depends on BR2_TOOLCHAIN_HAS_THREADS # lvm2 depends on BR2_USE_MMU # lvm2 depends on !BR2_STATIC_LIBS # lvm2 + # dmraid triggers the _gp link issue + depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305 + depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201405 select BR2_PACKAGE_LVM2 help dmraid discovers, activates, deactivates and displays properties @@ -13,4 +16,7 @@ config BR2_PACKAGE_DMRAID comment "dmraid needs a toolchain w/ threads, dynamic library" depends on BR2_USE_MMU + # dmraid triggers the _gp link issue + depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305 + depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201405 depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS