From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) by sourceware.org (Postfix) with ESMTPS id 259023846400 for ; Fri, 21 May 2021 16:19:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 259023846400 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rtems.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=joel.sherrill@gmail.com Received: by mail-lf1-f48.google.com with SMTP id b26so14477168lfq.4 for ; Fri, 21 May 2021 09:19:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=aY7OV40yA4uIaNWJp/JVy10fBQJV9OSMsfZffhojcMk=; b=KHB3FO7ej7u1EmAPv25LVMAWkjGjAvSETSFrrMb0qEb09/KC67K6unLQUwvSz0+npM XW4HomDwIH+agqK55eLr9SpRVjSL8/hoe8/wyked+v2Uo2f8BE7nHx+4d+Pyy2S6aDWK qlrwbpEf24POlQAO4bssNdyMh3CoendHB7TSsX8KA3uIWR67UpTGqphPho9xEZ8pRG7p 1Q9qFRLryEhvqPSDBYXi2rm3vsX7AGOgfEHKg49vjsG08ov3zqOEBW/tf1w1iZXbCqII e7mR14gg6tYxf8xKVG9Dt/GuP/HVtn9zIu3vxG5q+/G+bmm9I24JN07PQ7IsG5p9wJVC 1Pbg== X-Gm-Message-State: AOAM530ZmtHwWuoS2+Q95E/oEnbtskP06tukTPz/zBryOfiEuz5U05ga 0mxGE8VbwnmP6H4cfJc+xqzjcAxPXlcElA== X-Google-Smtp-Source: ABdhPJw+3lGv613xjGDb/UCP3i0oXEOdLT9GhNqjwJuvjoIcndjGQT8bf2LtARakqrgEvXJm22sbBw== X-Received: by 2002:ac2:4186:: with SMTP id z6mr2721510lfh.16.1621613975714; Fri, 21 May 2021 09:19:35 -0700 (PDT) Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com. [209.85.167.48]) by smtp.gmail.com with ESMTPSA id p16sm531461lfc.113.2021.05.21.09.19.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 May 2021 09:19:35 -0700 (PDT) Received: by mail-lf1-f48.google.com with SMTP id v8so25531714lft.8 for ; Fri, 21 May 2021 09:19:35 -0700 (PDT) X-Received: by 2002:ac2:482c:: with SMTP id 12mr2786417lft.507.1621613975267; Fri, 21 May 2021 09:19:35 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Reply-To: joel@rtems.org From: Joel Sherrill Date: Fri, 21 May 2021 11:19:24 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: GDB Master Fails to Build on CentOS 7 To: Simon Marchi Cc: Eli Zaretskii via Gdb X-Spam-Status: No, score=-3031.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE, KAM_DMARC_STATUS, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Fri, 21 May 2021 16:19:39 -0000 On Fri, May 21, 2021 at 10:31 AM Simon Marchi wrote: > > > On 2021-05-21 11:18 a.m., Joel Sherrill via Gdb wrote: > > Hi > > > > This appears to be due to the older gcc apparently not defaulting to C9= 9. > > Either the code needs to change or -std=3Dc99 needs to be passed by the > build > > machinery. > > > > ibtool: compile: gcc -O2 -g -pipe > > > -I/home/joel/rtems-work/rtems-source-builder/rtems/build/tmp/sb-1001/7/rt= ems-powerpc/home/joel/rtems-work/tools/7/include > > -DHAVE_CONFIG_H -I. > -I../../sourceware-mirror-binutils-gdb-ed29efb/opcodes > > -I. -I../../sourceware-mirror-binutils-gdb-ed29efb/opcodes -I../bfd > > -I../../sourceware-mirror-binutils-gdb-ed29efb/opcodes/../include > > -I../../sourceware-mirror-binutils-gdb-ed29efb/opcodes/../bfd -W -Wall > > -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT ppc-dis.lo > -MD > > -MP -MF .deps/ppc-dis.Tpo -c > > ../../sourceware-mirror-binutils-gdb-ed29efb/opcodes/ppc-dis.c -o > ppc-dis.o > > ../../sourceware-mirror-binutils-gdb-ed29efb/opcodes/ppc-dis.c: In > function > > =E2=80=98print_insn_powerpc=E2=80=99: > > ../../sourceware-mirror-binutils-gdb-ed29efb/opcodes/ppc-dis.c:1071:8: > > error: =E2=80=98for=E2=80=99 loop initial declarations are only allowed= in C99 mode > > for (int i =3D 0; i < 2; i++) > > > > Thanks. > > > > --joel > > RTEMS > > > > This should normally be fixed by this commit: > > > https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Da8d6316b67= d52eaa1b7b311084ddff71a66f7cc0 Hmm.. looks like my bad. The package recipe for rtems-binutils-gdb-head actually uses a specific hash and that's set to ed29efb. Looks like I need to bump our hash. Thanks. --joel > > > Simon >