This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Installing Nios2 Gcc (problem in libgcc.a)
- From: kiehn <kiehn at uol dot com dot br>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 15 Feb 2012 20:31:51 -0200
- Subject: Installing Nios2 Gcc (problem in libgcc.a)
As I said yesterday, here go more details about my problem. Just remembering, I started all again, following orientations given at http://www.alterawik.com/wiki/CrossGcc, and, when I made the last make, I got this:
lcr@lcr01:~/cross/build$ make
make[1]: Entering directory `/home/lcr/cross/build'
make[2]: Entering directory `/home/lcr/cross/build/libiberty'
make[3]: Entering directory `/home/lcr/cross/build/libiberty/testsuite'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/lcr/cross/build/libiberty/testsuite'
make[2]: Leaving directory `/home/lcr/cross/build/libiberty'
make[2]: Entering directory `/home/lcr/cross/build/fixincludes'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/lcr/cross/build/fixincludes'
make[2]: Entering directory `/home/lcr/cross/build/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/lcr/cross/build/intl'
make[2]: Entering directory `/home/lcr/cross/build/build-x86_64-unknown-linux-gnu/libiberty'
make[3]: Entering directory `/home/lcr/cross/build/build-x86_64-unknown-linux-gnu/libiberty/testsuite'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/lcr/cross/build/build-x86_64-unknown-linux-gnu/libiberty/testsuite'
make[2]: Leaving directory `/home/lcr/cross/build/build-x86_64-unknown-linux-gnu/libiberty'
make[2]: Entering directory `/home/lcr/cross/build/build-x86_64-unknown-linux-gnu/fixincludes'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/lcr/cross/build/build-x86_64-unknown-linux-gnu/fixincludes'
make[2]: Entering directory `/home/lcr/cross/build/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[2]: Leaving directory `/home/lcr/cross/build/libcpp'
make[2]: Entering directory `/home/lcr/cross/build/gcc'
make \
CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute " \
CONFIG_H="tconfig.h auto-host.h ../../src/gcc-4.1/gcc/../include/ansidecl.h" TM_H="tm.h options.h ../../src/gcc-4.1/gcc/config/elfos.h ../../src/gcc-4.1/gcc/config/nios2/nios2.h ../../src/gcc-4.1/gcc/defaults.h insn-constants.h insn-flags.h options.h" \
INCLUDES="-I. -I. -I../../src/gcc-4.1/gcc -I../../src/gcc-4.1/gcc/. -I../../src/gcc-4.1/gcc/../include -I../../src/gcc-4.1/gcc/../libcpp/include " \
MAKEOVERRIDES= \
-f libgcc.mk all
make[3]: Entering directory `/home/lcr/cross/build/gcc'
make GCC_FOR_TARGET="/home/lcr/cross/build/./gcc/xgcc -B/home/lcr/cross/build/./gcc/ -nostdinc -B/home/lcr/cross/build/nios2-elf/newlib/ -isystem /home/lcr/cross/build/nios2-elf/newlib/targ-include -isystem /home/lcr/cross/src/gcc-4.1/newlib/libc/include -B/usr/local/nios2-elf/nios2-elf/bin/ -B/usr/local/nios2-elf/nios2-elf/lib/ -isystem /usr/local/nios2-elf/nios2-elf/include -isystem /usr/local/nios2-elf/nios2-elf/sys-include" \
AR_FOR_TARGET="nios2-elf-ar" \
AR_CREATE_FOR_TARGET="nios2-elf-ar rc" \
AR_EXTRACT_FOR_TARGET="nios2-elf-ar x" \
AR_FLAGS_FOR_TARGET="" \
CC="gcc" CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute " \
BUILD_PREFIX="" \
BUILD_PREFIX_1="loser-" \
LANGUAGES="" \
LIBGCC2_CFLAGS="-O2 -O2 -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -O2 -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc " \
MULTILIB_CFLAGS="" T= crtbegin.o crtend.o crti.o crtn.o crtbeginS.o crtbeginT.o crtendS.o
make[4]: Entering directory `/home/lcr/cross/build/gcc'
/home/lcr/cross/build/./gcc/xgcc -B/home/lcr/cross/build/./gcc/ -nostdinc -B/home/lcr/cross/build/nios2-elf/newlib/ -isystem /home/lcr/cross/build/nios2-elf/newlib/targ-include -isystem /home/lcr/cross/src/gcc-4.1/newlib/libc/include -B/usr/local/nios2-elf/nios2-elf/bin/ -B/usr/local/nios2-elf/nios2-elf/lib/ -isystem /usr/local/nios2-elf/nios2-elf/include -isystem /usr/local/nios2-elf/nios2-elf/sys-include -O2 -O2 -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../src/gcc-4.1/gcc -I../../src/gcc-4.1/gcc/. -I../../src/gcc-4.1/gcc/../include -I../../src/gcc-4.1/gcc/../libcpp/include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -Dinhibit_libc \
-c ../../src/gcc-4.1/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
../../src/gcc-4.1/gcc/crtstuff.c: In function 'frame_dummy':
../../src/gcc-4.1/gcc/crtstuff.c:323: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[4]: *** [crtbegin.o] Error 1
make[4]: Leaving directory `/home/lcr/cross/build/gcc'
make[3]: *** [extra] Error 2
make[3]: Leaving directory `/home/lcr/cross/build/gcc'
make[2]: *** [libgcc.a] Error 2
make[2]: Leaving directory `/home/lcr/cross/build/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/lcr/cross/build'
make: *** [all] Error 2
The libgcc.a is still there, but now it's in "good" company...
Kiehn