From patchwork Wed Sep 13 11:28:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 813379 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xsfYZ0VH3z9s9Y for ; Wed, 13 Sep 2017 21:28:33 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 2C4A088CC4; Wed, 13 Sep 2017 11:28:27 +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 tz0SftHB0OC4; Wed, 13 Sep 2017 11:28:25 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 157CC88C1C; Wed, 13 Sep 2017 11:28:25 +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 18DB91BFCA2 for ; Wed, 13 Sep 2017 11:28:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 151848A45C for ; Wed, 13 Sep 2017 11:28:24 +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 XJpVoYLfNP9x for ; Wed, 13 Sep 2017 11:28:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by hemlock.osuosl.org (Postfix) with ESMTPS id A03918A45E for ; Wed, 13 Sep 2017 11:28:22 +0000 (UTC) Received: from [217.110.38.74] by 3c-app-gmx-bs48.server.lan (via HTTP); Wed, 13 Sep 2017 13:28:18 +0200 MIME-Version: 1.0 Message-ID: From: "Peter Seiderer" To: buildroot@buildroot.org Date: Wed, 13 Sep 2017 13:28:18 +0200 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:WLFunhgNdfWx812qyNHgAqOGW/tkijWuiR/8xIRXV2k QxmD1kkUszWIQrzulkb4TWHYsSpLC8nfsAqjmTyvD08LtTb/p8 +ZmF/cBsqf9ImxaQBrwtWmE6Rjyk6vhtsYkH49390E40lmAvwr w0YwMWSnN6eVfRv4ZU6d3HPIwr3abZZgp05loCh1zYsN+iB617 GRY1DvOSqFxl6oCS6DNmGR/GEWPpURwRlpAkmBhad4v5ZMYf9h gF938/s6j//5wrCMZciQlXP0356oz2PlUAfVgKEh54Fiss4HD8 aJ2Q+A= X-UI-Out-Filterresults: notjunk:1; V01:K0:/ZHXtJldXNk=:u+a5phY6znFdRFi1OxbjND 2bAarrwSX4MYe7/cYHhg6HyuzwhVtBE790cgfljznKXWjIJlfVyBGACUJxPflD08rNCi+eazZ bkD6keaMm5qZw0z1BowGTbx9UA277GU9ey+6gLTmUwrPuS3dH9CYlL9zdi22P3HnfhVF8ytb1 aOZQK4oRUJepuP132/xVOs9W4+jgmnzq4l4QSQoNB6ha+IfcPDvUm7B87+jboX489Yjfe/XA3 9z4CSsuMMSqM1u3yxgQIWo8birGex/InUWZpH39WCHbktKuoznWDMr3+XbA8ffeXOh3PYKwel TMBvjRZoicXpfjBJccLvUvBK/ktc6919cJvWpkwPiP0/oBniJvwz7ase0Z22Kr8B7jJssLiYB GCIV3ZpFzT6e1QY1MDUWxjzRdQ4sb//2SA6eB9UE3afEDFncHHVYtGRGHv1Vh36h+cmVAFJmq 1YRYzdrtbNTRoTSQ6FTk6ABOJ/h+R/rr2WQiYT+ByfrmQaHmusEr Subject: [Buildroot] gdb/binutils - two versions of libbfd installed 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" Hello, with the following config fragment: BR2_BINUTILS_VERSION_2_29_X=y BR2_BINUTILS_VERSION="2.29" BR2_BINUTILS_EXTRA_CONFIG_OPTIONS="" BR2_PACKAGE_BINUTILS=y BR2_GDB_VERSION_8_0=y BR2_GDB_VERSION="8.0" BR2_PACKAGE_GDB_ARCH_SUPPORTS=y BR2_PACKAGE_GDB=y BR2_PACKAGE_GDB_SERVER=y BR2_PACKAGE_GDB_DEBUGGER=y two versions of libbfd are installed into the target directory: ./target/usr/lib/libbfd-2.28.51.so ./target/usr/lib/libbfd-2.29.so ./target/usr/lib/libbfd.so -> libbfd-2.28.51.so one from gdb-8.0 (2.28.51) and one from the binutils-2.29 package (and I believe the link from libbfd.so points to the wrong one). With the following patch (inspired by [1] found by search for 'gdb disable dynamic libbfd build'): the installation of the gdb libbfd version is prevented... Regards, Peter [1] https://patchwork.ozlabs.org/patch/449686/ diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk index 7e86ba0..8c4188b 100644 --- a/package/gdb/gdb.mk +++ b/package/gdb/gdb.mk @@ -111,7 +111,7 @@ GDB_CONF_OPTS = \ --with-curses \ --without-included-gettext \ --disable-werror \ - --enable-static + --enable-static --disable-shared # When gdb is built as C++ application for ARC it segfaults at runtime # So we pass --disable-build-with-cxx config option to force gdb not to