[Bug bootstrap/78660] New: 7.0 bootstrap fail on mips64el-unknow-linux: configure-stage2-target-libgcc' failed

paul.hua.gm at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Dec 3 09:46:00 GMT 2016


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

            Bug ID: 78660
           Summary: 7.0 bootstrap fail on mips64el-unknow-linux:
                    configure-stage2-target-libgcc' failed
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: paul.hua.gm at gmail dot com
  Target Milestone: ---

checking for mips64el-unknown-linux-gcc...
/home/xuchenghua/GCC/test/gcc-r243216_obj/./gcc/xgcc
-B/home/xuchenghua/GCC/test/gcc-r243216_obj/./gcc/
-B/home/xuchenghua/toolchain/gcc-trunk-r243216/mips64el-unknown-linux/bin/
-B/home/xuchenghua/toolchain/gcc-trunk-r243216/mips64el-unknown-linux/lib/
-isystem
/home/xuchenghua/toolchain/gcc-trunk-r243216/mips64el-unknown-linux/include
-isystem
/home/xuchenghua/toolchain/gcc-trunk-r243216/mips64el-unknown-linux/sys-include
checking for suffix of object files... configure: error: in
`/home/xuchenghua/GCC/test/gcc-r243216_obj/mips64el-unknown-linux/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
Makefile:16964: recipe for target 'configure-stage2-target-libgcc' failed
make[2]: *** [configure-stage2-target-libgcc] Error 1
make[2]: Leaving directory '/home/xuchenghua/GCC/test/gcc-r243216_obj'
Makefile:21741: recipe for target 'stage2-bubble' failed
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory '/home/xuchenghua/GCC/test/gcc-r243216_obj'
Makefile:930: recipe for target 'all' failed
make: *** [all] Error 2


config with:
../../gcc_git_trunk/configure
--prefix=/home/xuchenghua/toolchain/gcc-trunk-r243216 --enable-bootstrap
--enable-shared --enable-threads=posix --enable-checking=release
--enable-multilib--with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id --enable-languages=c,c++,fortran --enable-plugin
--enable-initfini-array --disable-libgcj --with-arch=loongson3a --with-abi=64
--with-multilib-list=32,n32,64 --enable-gnu-indirect-function
--with-long-double-128 --build=mips64el-unknown-linux
--target=mips64el-unknown-linux --with-pkgversion="gcc trunk r243216 mips64el
o32 n32 n64" --disable-werror

The stage2 cc1 error:
 /home/xuchenghua/GCC/test/gcc-r243216_obj/gcc/cc1 -fpreprocessed conftest.i
-mel -quiet -dumpbase conftest.c -minterlink-mips16 -march=loongson3a -mabi=64
-mllsc -mips64r2 -mno-shared -auxbase conftest -g -O2 -version -o conftest.s
GNU C11 (gcc trunk r243216 mips64el o32 n32 n64) version 7.0.0 20161203
(experimental) (mips64el-unknown-linux)
        compiled by GNU C version 7.0.0 20161203 (experimental), GMP version
6.0.0, MPFR version 3.1.2, MPC version 1.0.2, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C11 (gcc trunk r243216 mips64el o32 n32 n64) version 7.0.0 20161203
(experimental) (mips64el-unknown-linux)
        compiled by GNU C version 7.0.0 20161203 (experimental), GMP version
6.0.0, MPFR version 3.1.2, MPC version 1.0.2, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 0eecc65de03f9d4164676d34867098d5
conftest.c:11:2: error: invalid storage class for function ‘main’
  main ()
  ^~~~

But stage1 cc1 ok for build this:

 /home/xuchenghua/GCC/test/gcc-r243216_obj/prev-gcc/cc1 -fpreprocessed
conftest.i -mel -quiet -dumpbase conftest.c -minterlink-mips16
-march=loongson3a -mabi=64 -mllsc -mips64r2 -mno-shared -auxbase conftest -g
-O2 -version -o conftest.s
GNU C11 (gcc trunk r243216 mips64el o32 n32 n64) version 7.0.0 20161203
(experimental) (mips64el-unknown-linux)
        compiled by GNU C version 4.9.3 20150626 (Red Hat 4.9.3-5), GMP version
6.0.0, MPFR version 3.1.2, MPC version 1.0.2, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C11 (gcc trunk r243216 mips64el o32 n32 n64) version 7.0.0 20161203
(experimental) (mips64el-unknown-linux)
        compiled by GNU C version 4.9.3 20150626 (Red Hat 4.9.3-5), GMP version
6.0.0, MPFR version 3.1.2, MPC version 1.0.2, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072

The *.i:
$ cat conftest.i 

# 1 "conftest.c"
# 1 "/home/xuchenghua/GCC/test/gcc-r243216_obj/mips64el-unknown-linux/libgcc//"
# 1 "<built-in>"
# 1 "<command-line>"
# 31 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 32 "<command-line>" 2
# 1 "conftest.c"
# 10 "conftest.c"
 int
 main ()
 {

   ;
   return 0;
 }


More information about the Gcc-bugs mailing list