http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45941

           Summary: Failed compile on Loongson2f
           Product: gcc
           Version: 4.5.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: wenheping2...@hotmail.com


Hi,

   I am doing a LFS on Loongson2f, successed in gcc-4.5.1 pass1 but failed in
pass 2, here is the configure line:


../gcc-4.5.1/configure  --prefix=/tools --disable-multilib 
--libexecdir=/tools/lib --with-local-prefix=/tools  --enable-long-long
--enable-c99 --enable-shared  --enable-threads=posix --disable-nls 
--enable-__cxa_atexit --enable-languages=c  --disable-libstdcxx-pch
--disable-bootstrap  --with-abi=${MABI} --with-gmp-include=$(pwd)/gmp
--with-gmp-lib=$(pwd)/gmp/.libs


   then the result of running make:

   m...@debian:/64_system/build/gcc-build$ make
make[1]: Entering directory `/64_system/build/gcc-build'
make[2]: Entering directory `/64_system/build/gcc-build/libiberty'
make[3]: Entering directory `/64_system/build/gcc-build/libiberty/testsuite'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/64_system/build/gcc-build/libiberty/testsuite'
make[2]: Leaving directory `/64_system/build/gcc-build/libiberty'
make[2]: Entering directory `/64_system/build/gcc-build/fixincludes'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/64_system/build/gcc-build/fixincludes'
make[2]: Entering directory `/64_system/build/gcc-build/gmp'
make  all-recursive
make[3]: Entering directory `/64_system/build/gcc-build/gmp'
Making all in tests
make[4]: Entering directory `/64_system/build/gcc-build/gmp/tests'
Making all in .
make[5]: Entering directory `/64_system/build/gcc-build/gmp/tests'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/64_system/build/gcc-build/gmp/tests'
Making all in devel
make[5]: Entering directory `/64_system/build/gcc-build/gmp/tests/devel'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/64_system/build/gcc-build/gmp/tests/devel'
Making all in mpn
make[5]: Entering directory `/64_system/build/gcc-build/gmp/tests/mpn'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/64_system/build/gcc-build/gmp/tests/mpn'
Making all in mpz
make[5]: Entering directory `/64_system/build/gcc-build/gmp/tests/mpz'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/64_system/build/gcc-build/gmp/tests/mpz'
Making all in mpq
make[5]: Entering directory `/64_system/build/gcc-build/gmp/tests/mpq'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/64_system/build/gcc-build/gmp/tests/mpq'
Making all in mpf
make[5]: Entering directory `/64_system/build/gcc-build/gmp/tests/mpf'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/64_system/build/gcc-build/gmp/tests/mpf'
Making all in rand
make[5]: Entering directory `/64_system/build/gcc-build/gmp/tests/rand'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/64_system/build/gcc-build/gmp/tests/rand'
Making all in misc
make[5]: Entering directory `/64_system/build/gcc-build/gmp/tests/misc'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/64_system/build/gcc-build/gmp/tests/misc'
Making all in cxx
make[5]: Entering directory `/64_system/build/gcc-build/gmp/tests/cxx'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/64_system/build/gcc-build/gmp/tests/cxx'
Making all in mpbsd
make[5]: Entering directory `/64_system/build/gcc-build/gmp/tests/mpbsd'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/64_system/build/gcc-build/gmp/tests/mpbsd'
make[4]: Leaving directory `/64_system/build/gcc-build/gmp/tests'
Making all in mpn
make[4]: Entering directory `/64_system/build/gcc-build/gmp/mpn'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/64_system/build/gcc-build/gmp/mpn'
Making all in mpz
make[4]: Entering directory `/64_system/build/gcc-build/gmp/mpz'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/64_system/build/gcc-build/gmp/mpz'
Making all in mpq
make[4]: Entering directory `/64_system/build/gcc-build/gmp/mpq'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/64_system/build/gcc-build/gmp/mpq'
Making all in mpf
make[4]: Entering directory `/64_system/build/gcc-build/gmp/mpf'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/64_system/build/gcc-build/gmp/mpf'
Making all in printf
make[4]: Entering directory `/64_system/build/gcc-build/gmp/printf'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/64_system/build/gcc-build/gmp/printf'
Making all in scanf
make[4]: Entering directory `/64_system/build/gcc-build/gmp/scanf'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/64_system/build/gcc-build/gmp/scanf'
Making all in cxx
make[4]: Entering directory `/64_system/build/gcc-build/gmp/cxx'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/64_system/build/gcc-build/gmp/cxx'
Making all in mpbsd
make[4]: Entering directory `/64_system/build/gcc-build/gmp/mpbsd'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/64_system/build/gcc-build/gmp/mpbsd'
Making all in demos
make[4]: Entering directory `/64_system/build/gcc-build/gmp/demos'
Making all in calc
make[5]: Entering directory `/64_system/build/gcc-build/gmp/demos/calc'
make  all-am
make[6]: Entering directory `/64_system/build/gcc-build/gmp/demos/calc'
make[6]: Nothing to be done for `all-am'.
make[6]: Leaving directory `/64_system/build/gcc-build/gmp/demos/calc'
make[5]: Leaving directory `/64_system/build/gcc-build/gmp/demos/calc'
Making all in expr
make[5]: Entering directory `/64_system/build/gcc-build/gmp/demos/expr'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/64_system/build/gcc-build/gmp/demos/expr'
make[5]: Entering directory `/64_system/build/gcc-build/gmp/demos'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/64_system/build/gcc-build/gmp/demos'
make[4]: Leaving directory `/64_system/build/gcc-build/gmp/demos'
Making all in tune
make[4]: Entering directory `/64_system/build/gcc-build/gmp/tune'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/64_system/build/gcc-build/gmp/tune'
Making all in doc
make[4]: Entering directory `/64_system/build/gcc-build/gmp/doc'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/64_system/build/gcc-build/gmp/doc'
make[4]: Entering directory `/64_system/build/gcc-build/gmp'
make[4]: Leaving directory `/64_system/build/gcc-build/gmp'
make[3]: Leaving directory `/64_system/build/gcc-build/gmp'
make[2]: Leaving directory `/64_system/build/gcc-build/gmp'
make[2]: Entering directory `/64_system/build/gcc-build/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/64_system/build/gcc-build/intl'
make[2]: Entering directory `/64_system/build/gcc-build/mpfr'
Making all in tests
make[3]: Entering directory `/64_system/build/gcc-build/mpfr/tests'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/64_system/build/gcc-build/mpfr/tests'
make[3]: Entering directory `/64_system/build/gcc-build/mpfr'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/64_system/build/gcc-build/mpfr'
make[2]: Leaving directory `/64_system/build/gcc-build/mpfr'
make[2]: Entering directory `/64_system/build/gcc-build/mpc'
make  all-recursive
make[3]: Entering directory `/64_system/build/gcc-build/mpc'
Making all in src
make[4]: Entering directory `/64_system/build/gcc-build/mpc/src'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/64_system/build/gcc-build/mpc/src'
Making all in tests
make[4]: Entering directory `/64_system/build/gcc-build/mpc/tests'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/64_system/build/gcc-build/mpc/tests'
Making all in doc
make[4]: Entering directory `/64_system/build/gcc-build/mpc/doc'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/64_system/build/gcc-build/mpc/doc'
make[4]: Entering directory `/64_system/build/gcc-build/mpc'
make[4]: Leaving directory `/64_system/build/gcc-build/mpc'
make[3]: Leaving directory `/64_system/build/gcc-build/mpc'
make[2]: Leaving directory `/64_system/build/gcc-build/mpc'
make[2]: Entering directory
`/64_system/build/gcc-build/build-mips64el-unknown-linux-gnu/libiberty'
make[3]: Entering directory
`/64_system/build/gcc-build/build-mips64el-unknown-linux-gnu/libiberty/testsuite'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/64_system/build/gcc-build/build-mips64el-unknown-linux-gnu/libiberty/testsuite'
make[2]: Leaving directory
`/64_system/build/gcc-build/build-mips64el-unknown-linux-gnu/libiberty'
make[2]: Entering directory
`/64_system/build/gcc-build/build-mips64el-unknown-linux-gnu/fixincludes'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/64_system/build/gcc-build/build-mips64el-unknown-linux-gnu/fixincludes'
make[2]: Entering directory `/64_system/build/gcc-build/zlib'
true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2"
"CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-g -O2 -minterlink-mips16"
"INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644"
"INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c"
"LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-g -O2 -minterlink-mips16"
"MAKE=make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 "
"PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/bash" "EXPECT=expect"
"RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/tools"
"infodir=/tools/share/info" "libdir=/tools/lib" "prefix=/tools"
"tooldir=/tools/mips64el-unknown-linux-gnu" "AR=ar" "AS=as" "CC=gcc" "CXX=g++"
"LD=/64_system/tools/bin/../lib/gcc/mips64el-unknown-linux-gnu/4.5.1/../../../../mips64el-unknown-linux-gnu/bin/ld"
"LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all
multi-do # make
make[2]: Leaving directory `/64_system/build/gcc-build/zlib'
make[2]: Entering directory `/64_system/build/gcc-build/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[2]: Leaving directory `/64_system/build/gcc-build/libcpp'
make[2]: Entering directory `/64_system/build/gcc-build/libdecnumber'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/64_system/build/gcc-build/libdecnumber'
make[2]: Entering directory `/64_system/build/gcc-build/gcc'
gcc -c  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H -I. -I.
-I../../gcc-4.5.1/gcc -I../../gcc-4.5.1/gcc/. -I../../gcc-4.5.1/gcc/../include
-I../../gcc-4.5.1/gcc/../libcpp/include -I/64_system/build/gcc-build/gmp
-I/64_system/build/gcc-build/./mpfr -I/64_system/build/gcc-4.5.1/mpfr
-I/64_system/build/gcc-4.5.1/mpc/src  -I../../gcc-4.5.1/gcc/../libdecnumber
-I../../gcc-4.5.1/gcc/../libdecnumber/dpd -I../libdecnumber    
../../gcc-4.5.1/gcc/lto-streamer-in.c -o lto-streamer-in.o
gcc: Internal error: Bus error (program cc1)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [lto-streamer-in.o] Error 1
make[2]: Leaving directory `/64_system/build/gcc-build/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/64_system/build/gcc-build'
make: *** [all] Error 2


   who can offer me some idea to resolv the problem ?
   Thanks at advance.


wen

Reply via email to