From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 30 17:28:21 2021 Received: (at submit) by debbugs.gnu.org; 30 Sep 2021 21:28:21 +0000 Received: from localhost ([127.0.0.1]:54231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mW3bE-0006ni-7b for submit@debbugs.gnu.org; Thu, 30 Sep 2021 17:28:21 -0400 Received: from lists.gnu.org ([209.51.188.17]:60572) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mW3bA-0006nZ-VT for submit@debbugs.gnu.org; Thu, 30 Sep 2021 17:28:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mW3bA-00033N-LC for guix-patches@gnu.org; Thu, 30 Sep 2021 17:28:12 -0400 Received: from mx.kolabnow.com ([95.128.36.41]:63534 helo=ext-mx-out002.mykolab.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mW3b7-0008Gg-Ht for guix-patches@gnu.org; Thu, 30 Sep 2021 17:28:11 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out002.mykolab.com (Postfix) with ESMTP id 5AA2EC0C for ; Thu, 30 Sep 2021 23:28:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:mime-version:message-id:date:date :subject:subject:from:from:received:received:received; s= dkim20160331; t=1633037286; x=1634851687; bh=og0bTFyqKSO531tRtOT MEwg3FN6Iysr09GKH5VFQi7g=; b=TQUaQs61wnCjtGnJTHxTECSDek+K8xxfTWr XnE/iHGZeqjI2AH0WSBlsaSyKhq2eUb4GGbBTS4ah7ZaBZqgG2CF19204bpq9NLe pO/iabKTm68tBIuFy5zM5P0oPEHPHh8B851Rsv/xLeNhiN4U883jPc76veN0uDi7 a8xFR+ukN8FDMnTSAJbfJ/3vmEM1b7yXI7EMZ0AR6wOhVQN/dS7TfGxr3YI023Wm AUWsYcvBaNTCOn+RczrJLIrLGzbvxdTkHACPOPBW6m6QRMPECs3uP50Fk02HN1mw Y4PSTmQOkvDRh3gwUZ24k8Ykkk01/T8FxWy5l9b78L5zGJPv5OuWATZkBSIY/ZMM StV5+seAbn1X7c/qio8t0vRdlA0JCr5dQFSYSQXOStydqGKJ7axoiD14udDzyjGV 4L9OTbiuC/gACWde4uk4OqMEw+M50+Sw+p4A1SJgJJbm1faCgD9htUMfFnR7/JZM Lk5I11HYi1nlTuL+np/UD3bxy1yAQ2M5zoQ1XS/uvxRS+GaAN2ZGTenb0ZFpL+L4 8yUx6SqbOebPmEetvr/VIP6kIiqQPSC9SEgNU2DjFpXZGomXIp6j4Ns2OXMzoBct O/+NdMmKwqgfMGt4jnZ18wTnqXXMu3sYEC9XcjaHo+ZDy6956Mj40T7hh0IT0k47 IdcekHYI= X-Virus-Scanned: amavisd-new at mykolab.com X-Spam-Flag: NO X-Spam-Score: -1.899 X-Spam-Level: X-Spam-Status: No, score=-1.899 tagged_above=-10 required=5 tests=[BAYES_00=-1.9, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no Received: from ext-mx-out002.mykolab.com ([127.0.0.1]) by localhost (ext-mx-out002.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OSDKLO4Cu405 for ; Thu, 30 Sep 2021 23:28:06 +0200 (CEST) Received: from int-mx003.mykolab.com (unknown [10.9.13.3]) by ext-mx-out002.mykolab.com (Postfix) with ESMTPS id 7A244A30 for ; Thu, 30 Sep 2021 23:28:06 +0200 (CEST) Received: from ext-subm001.mykolab.com (unknown [10.9.6.1]) by int-mx003.mykolab.com (Postfix) with ESMTPS id 07FDF32CA; Thu, 30 Sep 2021 23:28:05 +0200 (CEST) From: Thiago Jung Bauermann To: guix-patches@gnu.org Subject: [PATCH core-updates-frozen] gnu: gdb-9.2: Fix build with GCC 10 on powerpc64le-linux Date: Thu, 30 Sep 2021 18:27:54 -0300 Message-Id: <20210930212754.34629-1-bauermann@kolabnow.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=95.128.36.41; envelope-from=bauermann@kolabnow.com; helo=ext-mx-out002.mykolab.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: Thiago Jung Bauermann X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) * gnu/packages/patches/gdb-9.2-sim-ppc-fno-common.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/gdb.scm (gdb-9.2)[source]: Use it. --- gnu/local.mk | 1 + gnu/packages/gdb.scm | 1 + .../patches/gdb-9.2-sim-ppc-fno-common.patch | 123 ++++++++++++++++++ 3 files changed, 125 insertions(+) create mode 100644 gnu/packages/patches/gdb-9.2-sim-ppc-fno-common.patch diff --git a/gnu/local.mk b/gnu/local.mk index aa5690b19855..bb5b736b96d7 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1095,6 +1095,7 @@ dist_patch_DATA = \ %D%/packages/patches/gcc-9-asan-fix-limits-include.patch \ %D%/packages/patches/gcc-9-strmov-store-file-names.patch \ %D%/packages/patches/gdb-hurd.patch \ + %D%/packages/patches/gdb-9.2-sim-ppc-fno-common.patch \ %D%/packages/patches/gd-fix-tests-on-i686.patch \ %D%/packages/patches/gd-brect-bounds.patch \ %D%/packages/patches/gd-Revert-fix-303-gdlib.pc-use-Requires-instead-of-Libs.patch \ diff --git a/gnu/packages/gdb.scm b/gnu/packages/gdb.scm index 24b7c00dbd4c..543beee8daa1 100644 --- a/gnu/packages/gdb.scm +++ b/gnu/packages/gdb.scm @@ -145,6 +145,7 @@ written in C, C++, Ada, Objective-C, Pascal and more.") (method url-fetch) (uri (string-append "mirror://gnu/gdb/gdb-" version ".tar.xz")) + (patches (search-patches "gdb-9.2-sim-ppc-fno-common.patch")) (sha256 (base32 "0mf5fn8v937qwnal4ykn3ji1y2sxk0fa1yfqi679hxmpg6pdf31n")))) diff --git a/gnu/packages/patches/gdb-9.2-sim-ppc-fno-common.patch b/gnu/packages/patches/gdb-9.2-sim-ppc-fno-common.patch new file mode 100644 index 000000000000..dae126f7d3ff --- /dev/null +++ b/gnu/packages/patches/gdb-9.2-sim-ppc-fno-common.patch @@ -0,0 +1,123 @@ +From a2d12a56679db64d96e02a65933b2911f14c52a2 Mon Sep 17 00:00:00 2001 +From: Sebastian Huber +Date: Wed, 1 Jul 2020 19:29:55 +0200 +Subject: [PATCH] sim/ppc: Fix linker error with -fno-common + +GCC 10 enables -fno-common by default. This resulted in a multiple +definition linker error since global variables were declared and defined +in a header file: + + ld: ld-insn.o:sim/ppc/ld-insn.h:221: multiple definition of + `max_model_fields_len'; igen.o:sim/ppc/ld-insn.h:221: first defined here + +sim/ppc + + * ld-insn.h (last_model, last_model_data, last_model_function, + last_model_internal, last_model_macro, last_model_static): + Delete. + (max_model_fields_len, model_data, model_functions, + model_internal, model_macros, model_static, models): Declare, but do not + define. + * ld-insn.c (last_model, last_model_data, last_model_function, + last_model_internal, last_model_macro, last_model_static, + max_model_fields_len, model_data, model_functions, + model_internal, model_macros, model_static, models): Define. + +(cherry picked from commit ad8464f799a4c96c7ab8bdfec3f95846cf54f9b0) +--- + +This patch is a trivial backport from the upstream commit mentioned above. +Only the ChangeLog had to be adapted. + + sim/ppc/ChangeLog | 13 +++++++++++++ + sim/ppc/ld-insn.c | 18 ++++++++++++++++++ + sim/ppc/ld-insn.h | 24 +++++++----------------- + 3 files changed, 38 insertions(+), 17 deletions(-) + +diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog +index 665c7606d9eb..8f7150cee6b9 100644 +--- a/sim/ppc/ChangeLog ++++ b/sim/ppc/ChangeLog +@@ -1,3 +1,16 @@ ++2020-07-03 Sebastian Huber ++ ++ * ld-insn.h (last_model, last_model_data, last_model_function, ++ last_model_internal, last_model_macro, last_model_static): ++ Delete. ++ (max_model_fields_len, model_data, model_functions, ++ model_internal, model_macros, model_static, models): Declare, but do not ++ define. ++ * ld-insn.c (last_model, last_model_data, last_model_function, ++ last_model_internal, last_model_macro, last_model_static, ++ max_model_fields_len, model_data, model_functions, ++ model_internal, model_macros, model_static, models): Define. ++ + 2019-01-26 Tom Tromey + + * Makefile.in (version.c): Use sim's create-version.sh. +diff --git a/sim/ppc/ld-insn.c b/sim/ppc/ld-insn.c +index e39131ca1334..585071a861ff 100644 +--- a/sim/ppc/ld-insn.c ++++ b/sim/ppc/ld-insn.c +@@ -28,6 +28,24 @@ + + #include "igen.h" + ++static model *last_model; ++ ++static insn *last_model_macro; ++static insn *last_model_function; ++static insn *last_model_internal; ++static insn *last_model_static; ++static insn *last_model_data; ++ ++model *models; ++ ++insn *model_macros; ++insn *model_functions; ++insn *model_internal; ++insn *model_static; ++insn *model_data; ++ ++int max_model_fields_len; ++ + static void + update_depth(insn_table *entry, + lf *file, +diff --git a/sim/ppc/ld-insn.h b/sim/ppc/ld-insn.h +index 88318ffa2b34..52baeaa2d846 100644 +--- a/sim/ppc/ld-insn.h ++++ b/sim/ppc/ld-insn.h +@@ -200,25 +200,15 @@ extern insn_table *load_insn_table + table_include *includes, + cache_table **cache_rules); + +-model *models; +-model *last_model; ++extern model *models; + +-insn *model_macros; +-insn *last_model_macro; ++extern insn *model_macros; ++extern insn *model_functions; ++extern insn *model_internal; ++extern insn *model_static; ++extern insn *model_data; + +-insn *model_functions; +-insn *last_model_function; +- +-insn *model_internal; +-insn *last_model_internal; +- +-insn *model_static; +-insn *last_model_static; +- +-insn *model_data; +-insn *last_model_data; +- +-int max_model_fields_len; ++extern int max_model_fields_len; + + extern void insn_table_insert_insn + (insn_table *table, From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 01 05:44:05 2021 Received: (at 50923-done) by debbugs.gnu.org; 1 Oct 2021 09:44:05 +0000 Received: from localhost ([127.0.0.1]:54713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWF5J-0008DH-MA for submit@debbugs.gnu.org; Fri, 01 Oct 2021 05:44:05 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34232) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWF5I-0008Ch-9y for 50923-done@debbugs.gnu.org; Fri, 01 Oct 2021 05:44:04 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37716) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWF5C-0007Xp-SF; Fri, 01 Oct 2021 05:43:58 -0400 Received: from 2a01cb000492e90078753f5c96c7583f.ipv6.abo.wanadoo.fr ([2a01:cb00:492:e900:7875:3f5c:96c7:583f]:44072 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWF5B-00030d-JC; Fri, 01 Oct 2021 05:43:57 -0400 From: Mathieu Othacehe To: Thiago Jung Bauermann Subject: Re: bug#50923: [PATCH core-updates-frozen] gnu: gdb-9.2: Fix build with GCC 10 on powerpc64le-linux References: <20210930212754.34629-1-bauermann@kolabnow.com> Date: Fri, 01 Oct 2021 09:43:56 +0000 In-Reply-To: <20210930212754.34629-1-bauermann@kolabnow.com> (Thiago Jung Bauermann's message of "Thu, 30 Sep 2021 18:27:54 -0300") Message-ID: <87ilyhozab.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 50923-done Cc: 50923-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > * gnu/packages/patches/gdb-9.2-sim-ppc-fno-common.patch: New file. > * gnu/local.mk (dist_patch_DATA): Add it. > * gnu/packages/gdb.scm (gdb-9.2)[source]: Use it. Pushed, thanks. Mathieu From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 01 17:28:23 2021 Received: (at 50923-done) by debbugs.gnu.org; 1 Oct 2021 21:28:23 +0000 Received: from localhost ([127.0.0.1]:57511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWQ4s-0002HB-R6 for submit@debbugs.gnu.org; Fri, 01 Oct 2021 17:28:22 -0400 Received: from mx.kolabnow.com ([95.128.36.41]:26154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWQ4r-0002Gx-08 for 50923-done@debbugs.gnu.org; Fri, 01 Oct 2021 17:28:21 -0400 Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id D9C2EAFC; Fri, 1 Oct 2021 23:28:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-type:content-type:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:date:subject:subject :from:from:received:received:received; s=dkim20160331; t= 1633123694; x=1634938095; bh=7m8vhSntUOrK5KTVFcCaEOKQgxfmHrePaMg 1/lEwMsY=; b=g5ryx/KvJ1JHhcvqpXu2Ny5qbfIobJRex1UIzcHyZck31dDqhqW HnVDEhw52rD+yOJVr/vxWSY2eKZnWm2wwdD5quCQy/urZlPIFZd6/UKp6uc2mbUw ihrrrv5LZ8whz0ErHpHKdcf2LKbHy0Rs1p/wQGnCPT/LFFcuRu8nliQMI/+rOun+ I/cRUWBDP7k6a6i3nHN9N91ZVnz++sirECODhlISJIyGfEbJwtYtGQuabCvA3c92 MkjUabJaLxb7I6Uz5Pvof+CUf2XnK3IdSfhLimLgc7XpdgqOJhCBB1yTWpMfM0lV fRUpotTmmROJ4LWOXM0/NrnWtzzQRKQj3cPSrN8AZGdOiYDxhfK3GdWCxBOFFdP7 FksxXOBggBljAR9djhk91qKm41gGFK3yGDiZLgD0MEhantb2Hg8lmNX4OJxSowqi VqiqYns90PZ0scqrVRXF9yXsPTrse8hDhKPnktqX4yRNcNm/rIBthzZ8eV6ayNqV 7LeewMpX8IQZW4/dTX8FO2k36bJ3c6uGXlFNXX8yKq8p9BmxvKYeLZtkarazxMus SvlpeeLE/DVbzCwW0JFFepDcKf8k9NTADcJ/ZYzjAFa8yAh91xyCHOL1zOXrT4O9 2bAq7+F+tqSZ5awRm8U8klVbkaEuM7XWG4NH+E2QMD4oaJ+zBm4ZSa0A= X-Virus-Scanned: amavisd-new at mykolab.com X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-10 required=5 tests=[BAYES_00=-1.9] autolearn=ham autolearn_force=no Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out001.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jnHT3dtpqlz1; Fri, 1 Oct 2021 23:28:14 +0200 (CEST) Received: from int-mx002.mykolab.com (unknown [10.9.13.2]) by mx.kolabnow.com (Postfix) with ESMTPS id 766EA6B0; Fri, 1 Oct 2021 23:28:14 +0200 (CEST) Received: from ext-subm003.mykolab.com (unknown [10.9.6.3]) by int-mx002.mykolab.com (Postfix) with ESMTPS id 2E785307C; Fri, 1 Oct 2021 23:28:14 +0200 (CEST) From: Thiago Jung Bauermann To: Mathieu Othacehe Subject: Re: bug#50923: [PATCH core-updates-frozen] gnu: gdb-9.2: Fix build with GCC 10 on powerpc64le-linux Date: Fri, 01 Oct 2021 18:28:07 -0300 Message-ID: <25963571.D4f1daTp6N@popigai> In-Reply-To: <87ilyhozab.fsf@gnu.org> References: <20210930212754.34629-1-bauermann@kolabnow.com> <87ilyhozab.fsf@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50923-done Cc: 50923-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello Mathieu, Em sexta-feira, 1 de outubro de 2021, =E0s 06:43:56 -03, Mathieu Othacehe=20 escreveu: > > * gnu/packages/patches/gdb-9.2-sim-ppc-fno-common.patch: New file. > > * gnu/local.mk (dist_patch_DATA): Add it. > > * gnu/packages/gdb.scm (gdb-9.2)[source]: Use it. >=20 > Pushed, thanks. That was quick. Thank you! =2D-=20 Thanks, Thiago From unknown Fri Jun 20 07:24:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 30 Oct 2021 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator