From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by sourceware.org (Postfix) with ESMTPS id 8A3DF398E462 for ; Fri, 21 May 2021 15:19:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8A3DF398E462 Received: by mail-lj1-x230.google.com with SMTP id p20so24378326ljj.8 for ; Fri, 21 May 2021 08:19:07 -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:from:date:message-id:subject:to; bh=fghtiLgh4k8rktt1Wp22GTV4HriIXHBGII96RvzsFXU=; b=cP9KmfJKT/Mq8ibYQVqYKaKLC16o7FeGHQwEnHPljURVras+Tmu8JCiehKXuSEFf7S 1Hhf9Mu3laEYQ35xHKLFnIn/8/UwZ3JnClx/I0hFNzFJ3XsS6yhW1Y/WqJRmUgmjr55S DO1FXoAXQRLlGcuGkDH02ZhfZH8ZbSCf9ItJD9bNjdTCt1VKWS20HyXgvlF+Rgg3pziT Du62+uQhvb69P+v0VdsGTvXlaL3Ssi9WqNVUTYIzBeQ8mdbAyVghri7A2oQVGPlTjBo1 T9TKyBu8MG5lsjupLKdu/P79y55YLFMkGphIom47wFfLt8VYLpSuglBzw45Rk/5tT9bU 4JYg== X-Gm-Message-State: AOAM530iYcsNRonK/FHXJc+aVuzcMYgLWk+/O7IZD9t2dzHKmAdY3Pma fISB7Z+RFz/g34tdv13sz0apKeKe1ems0uPKPPgYngsCzBslNw== X-Google-Smtp-Source: ABdhPJziDOnXHbP2ctwGxM/oiMpP7U+pQrFTShW1eH4j7q8qaxPtMy1zRSxWNqWQukgpVy8p3ih9+upJzRMj4zZXjNs= X-Received: by 2002:a2e:8512:: with SMTP id j18mr7593627lji.196.1621610345525; Fri, 21 May 2021 08:19:05 -0700 (PDT) MIME-Version: 1.0 From: Joel Sherrill Date: Fri, 21 May 2021 10:18:54 -0500 Message-ID: Subject: GDB Master Fails to Build on CentOS 7 To: Eli Zaretskii via Gdb X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, 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 15:19:09 -0000 Hi This appears to be due to the older gcc apparently not defaulting to C99. Either the code needs to change or -std=3Dc99 needs to be passed by the bui= ld machinery. ibtool: compile: gcc -O2 -g -pipe -I/home/joel/rtems-work/rtems-source-builder/rtems/build/tmp/sb-1001/7/rtem= s-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