When I execute ./toolchain.sh, the result is (sample of the end):
Code: Select all
gcc -c -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -DHAVE_CONFIG_H -I. -Icp -I../../gcc -I../../gcc/cp -I../../gcc/../include -I../../gcc/../libcpp/include ../../gcc/cp/cp-gimplify.c -o cp/cp-gimplify.o
gcc -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -DHAVE_CONFIG_H -o cc1plus \
cp/cp-lang.o stub-objc.o cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parser.o cp/ptree.o cp/rtti.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o cp/search.o cp/semantics.o cp/tree.o cp/repo.o cp/dump.o cp/optimize.o cp/mangle.o cp/cp-objcp-common.o cp/name-lookup.o cp/cxx-pretty-print.o cp/cp-gimplify.o tree-mudflap.o attribs.o c-common.o c-format.o c-pragma.o c-semantics.o c-lex.o c-dump.o c-pretty-print.o c-opts.o c-pch.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-gimplify.o tree-inline.o main.o libbackend.a ../libcpp/libcpp.a ../libcpp/libcpp.a ../libiberty/libiberty.a
/usr/bin/ld: libbackend.a(tree-cfg.o): bad reloc symbol index (0x271 >= 0x15c) for offset 0x1529 in section `.debug_info'
libbackend.a: ne peut lire les symboles: Mauvaise valeur
collect2: ld a retourné 1 code d'état d'exécution
gmake[1]: *** [cc1plus] Erreur 1
gmake[1]: Leaving directory `/tmp/pspdev/gcc-4.0.1/build-psp-c++/gcc'
gmake: *** [all-gcc] Erreur 2
ERROR BUILDING GCC (C++)
[root@localhost psptoolchain]#
./toolchain.sh -p
./toolchain.sh -d
./toolchain.sh -b
./toolchain.sh -g
./toolchain.sh -n
one by one, but I have ERROR BUILDING GCC (C++) with ./toolchain.sh
I'm under Fedora 4 Kernel 2.6.13-1.1526-FC4smp.
ThanX for your helps.