public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/109562] New: Failed to build native GCC 12.2.0 on RISC-V64 linux machine
@ 2023-04-20  2:40 winterjasmine1 at hotmail dot com
  2023-04-20  2:44 ` [Bug target/109562] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: winterjasmine1 at hotmail dot com @ 2023-04-20  2:40 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109562

            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=54885&action=edit
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-dev
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=c,c++,fortran --prefix=$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 ‘{’ 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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug target/109562] Failed to build native GCC 12.2.0 on RISC-V64 linux machine
  2023-04-20  2:40 [Bug target/109562] New: Failed to build native GCC 12.2.0 on RISC-V64 linux machine winterjasmine1 at hotmail dot com
@ 2023-04-20  2:44 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-04-20  2:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109562

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>/usr/include/stdio.h:189:24: error: expected ‘,’ or ‘;’ before ‘__attr_dealloc’
Hmm, --disable-multilib is not working ....

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-20  2:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-20  2:40 [Bug target/109562] New: Failed to build native GCC 12.2.0 on RISC-V64 linux machine winterjasmine1 at hotmail dot com
2023-04-20  2:44 ` [Bug target/109562] " pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).