From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 28F193858D37; Thu, 20 Apr 2023 02:40:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 28F193858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681958411; bh=9HCvb1kksfWKtXBnpwNjxBE5KMSwnPxuJAk1GGjnCSY=; h=From:To:Subject:Date:From; b=kgnzO0YKqDMcPz7/epyBOsfMFSPdNUCflpzm/ftF2vR39lCYRSz02lzbY2beVEGv2 ejq3F1OKWBQTGc+HchDEYTVD2/oxnP5/nJxLm2Vf8f1WELEB4QuIzj8ROOaVFahi74 /tBQxb4JNZ35urJTuRYzfWtNYSfVeaE3KU6AW8gQ= From: "winterjasmine1 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/109562] New: Failed to build native GCC 12.2.0 on RISC-V64 linux machine Date: Thu, 20 Apr 2023 02:40:10 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: winterjasmine1 at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109562 Bug ID: 109562 Summary: Failed to build native GCC 12.2.0 on RISC-V64 linux machine Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: winterjasmine1 at hotmail dot com Target Milestone: --- Created attachment 54885 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54885&action=3Dedit error log when building GCC 12.2.0 natively on RISC-V linux machine Failed to build native GCC 12.2.0 on RISC-V64 linux machine. Steps: ``` $sudo apt-get install autoconf automake autotools-dev curl python3 libmpc-d= ev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev $ cd gcc-12.2.0 $ contrib/download_prerequisites $ mkdir build && cd build $ ../configure --enable-languages=3Dc,c++,fortran --prefix=3D$HOME/opt/gcc-= 12.2.0 --disable-multilib $ make -j4 ``` error info: ``` /usr/include/stdio.h:592:14: error: old-style parameter declarations in prototyped function definition 592 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) | ^~~~~ ../../../libgcc/libgcc2.c:2457: error: expected =E2=80=98{=E2=80=99 at end = of input ../../../libgcc/libgcc2.c:2457: warning: control reaches end of non-void function [-Wreturn-type] make[3]: *** [Makefile:501: _ashrdi3.o] Error 1 ``` The full error log is attached.=