From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dedi548.your-server.de (dedi548.your-server.de [85.10.215.148]) by sourceware.org (Postfix) with ESMTPS id 4F1903857007 for ; Wed, 1 Jul 2020 09:29:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4F1903857007 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embedded-brains.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=sebastian.huber@embedded-brains.de Received: from sslproxy01.your-server.de ([78.46.139.224]) by dedi548.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1jqZ3H-0005QJ-VI for gdb@sourceware.org; Wed, 01 Jul 2020 11:29:11 +0200 Received: from [82.100.198.138] (helo=mail.embedded-brains.de) by sslproxy01.your-server.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1jqZ3H-0005rG-RA for gdb@sourceware.org; Wed, 01 Jul 2020 11:29:11 +0200 Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id F0F292A1610 for ; Wed, 1 Jul 2020 11:29:27 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id W8aC2jlzvNAL for ; Wed, 1 Jul 2020 11:29:27 +0200 (CEST) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 938FC2A165B for ; Wed, 1 Jul 2020 11:29:27 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.eb.localhost Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id YUiomDdkvQJt for ; Wed, 1 Jul 2020 11:29:27 +0200 (CEST) Received: from shuber-nb-linux.eb.localhost (unknown [10.10.171.22]) by mail.embedded-brains.de (Postfix) with ESMTPSA id 6FED12A1610 for ; Wed, 1 Jul 2020 11:29:27 +0200 (CEST) To: gdb@sourceware.org From: Sebastian Huber Subject: Building GDB with GCC 10 (-fno-common by default) Message-ID: Date: Wed, 1 Jul 2020 11:29:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Authenticated-Sender: smtp-embedded@poldinet.de X-Virus-Scanned: Clear (ClamAV 0.102.3/25859/Tue Jun 30 15:38:05 2020) X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, BODY_8BITS, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jul 2020 09:29:14 -0000 Hello, could this build error of the powerpc-rtems target be an issue with the=20 new -fno-common default of GCC 10? make[3]: Entering directory=20 '/scratch/git-rtems-source-builder/rtems/build/powerpc-rtems6-gdb-4e394b2= -x86_64-linux-gnu-1/build/sim/ppc' gcc -O2 -g -pipe=20 -I/scratch/git-rtems-source-builder/rtems/build/tmp/sb-10000/6/rtems-powe= rpc/build/rtems/6/include=20 -g -O2 -I. -I../../../sourceware-mirror-binutils-gdb-4e394b2/sim/ppc=20 -I../../../sourceware-mirror-binutils-gdb-4e394b2/sim/ppc/../../include=20 -I../../bfd=20 -I../../../sourceware-mirror-binutils-gdb-4e394b2/sim/ppc/../../bfd=20 -I../../gdb=20 -I../../../sourceware-mirror-binutils-gdb-4e394b2/sim/ppc/../../gdb=20 -I../../../sourceware-mirror-binutils-gdb-4e394b2/sim/ppc/../../gdb/confi= g=20 -o igen igen.o table.o lf.o misc.o filter_host.o ld-decode.o ld-cache.o=20 filter.o ld-insn.o gen-model.o gen-itable.o gen-icache.o gen-semantics.o=20 gen-idecode.o gen-support.o /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld:= =20 ld-insn.o:/scratch/git-rtems-source-builder/rtems/build/powerpc-rtems6-gd= b-4e394b2-x86_64-linux-gnu-1/build/sim/ppc/../../../sourceware-mirror-bin= utils-gdb-4e394b2/sim/ppc/ld-insn.h:221:=20 multiple definition of `max_model_fields_len';=20 igen.o:/scratch/git-rtems-source-builder/rtems/build/powerpc-rtems6-gdb-4= e394b2-x86_64-linux-gnu-1/build/sim/ppc/../../../sourceware-mirror-binuti= ls-gdb-4e394b2/sim/ppc/ld-insn.h:221:=20 first defined here We have: sim/ppc/ld-insn.h:int max_model_fields_len; sim/ppc/ld-insn.c:=C2=A0 if (max_model_fields_len < len) sim/ppc/ld-insn.c:=C2=A0=C2=A0=C2=A0 max_model_fields_len =3D len; sim/ppc/ld-insn.c:=C2=A0=C2=A0=C2=A0 if (max_model_fields_len < len) sim/ppc/ld-insn.c:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 max_model_fields_len =3D= len; sim/ppc/gen-model.c:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 max_model_fields_len, sim/ppc/gen-model.c:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 max_model_= fields_len, Missing extern in ld-insn.h and no definition in a source file?