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

            Bug ID: 118983
           Summary: I'm using the gcc comes from the Ubuntu 20.04, but it
                    faied to compile a C program
           Product: gcc
           Version: 9.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: wzis at hotmail dot com
  Target Milestone: ---

root@ubuntu20:/u/gwz/myapp/wzsg# gcc -Wall -Wextra  -O -D Ubuntu=1 -D Linux=1
-DWZIS_INTL=1 -D Debian=1 -m64 -w -c wzsgcreg.c -I.
wzsgcreg.c: In function ‘main’:
wzsgcreg.c:237:6: internal compiler error: in subspan, at input.h:68
  237 |      st.st_size, ptime, line);
      |      ^~
0x7fbbfbca9082 __libc_start_main
        ../csu/libc-start.c:308
Please submit a full bug report
root@ubuntu20:/u/gwz/myapp/wzsg# gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I also tried on another Ubuntu 20.04 VM with the GCC 10, but also got the same
issue:

root@nuc:/u/gwz/myapp/wzsg# gcc-10 -Wall -Wextra  -O -D Ubuntu=1 -D Linux=1
-DWZIS_INTL=1 -D Debian=1 -m64 -w -c wzsgcreg.c -I.
wzsgcreg.c: In function ‘main’:
wzsgcreg.c:237:6: internal compiler error: in subspan, at input.h:69
  237 |      st.st_size, ptime, line);
      |      ^~
0x7f15972a0082 __libc_start_main
        ../csu/libc-start.c:308
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-10/README.Bugs> for instructions.
root@nuc:/u/gwz/myapp/wzsg# gcc-10 --version
gcc-10 (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Reply via email to