Hello!

Sorry for my English 

I want build toolchain from tutorial in this page 
http://openrisc.net/toolchain-build.html Building the easy way 

My operation system: 
Ubuntu 10.10
GNU/Linux kernel 2.6.35-32

My steps:
1. Download toolchain:
$ git clone git://openrisc.net/jonas/toolchain
2. Go to the new folder:
$ cd toolchain
3. Update sources:
$ git submodule update --init
4. Build toolchain:
$ make -j2 PREFIX=/media/elements/opencores/toolchain

But after some time an error occurs during compilation except.c

I will be grateful for any help!

gcc  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -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  gcov.o intl.o version.o errors.o ../libcpp/libcpp.a  
../libiberty/libiberty.a ../libdecnumber/libdecnumber.a  -o gcov
gcc  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -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  gcov-dump.o version.o errors.o \
                ../libcpp/libcpp.a   ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a  -o gcov-dump
gcc  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -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  -o cc1plus-dummy \
              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 incpath.o c-ppoutput.o c-cppbuiltin.o prefix.o c-gimplify.o
c-omp.o dummy-checksum.o main.o  libbackend.a ../libcpp/libcpp.a
../libdecnumber/libdecnumber.a ../libcpp/libcpp.a   ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a    -lmpc -lmpfr -lgmp -rdynamic -ldl  -lz 
/cp/except.o: In function `nothrow_libfn_p':
/media/elements/opencores/temp/toolchain/gcc-build/gcc/../../gcc/gcc/cp/except.c:947:
undefined reference to `libc_name_p'
collect2: ld returned 1 exit status
make[3]: *** [cc1plus-dummy] Error 1/
make[3]: *** Waiting for unfinished jobs....
rm gfdl.pod cpp.pod gcc.pod fsf-funding.pod
make[3]: Leaving directory
`/media/elements/opencores/temp/toolchain/gcc-build/gcc'
make[2]: *** [all-gcc] Error 2
make[2]: Leaving directory
`/media/elements/opencores/temp/toolchain/gcc-build'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/media/elements/opencores/temp/toolchain/gcc-build'
Installing: gcc
make[1]: Entering directory
`/media/elements/opencores/temp/toolchain/gcc-build'
make[2]: Entering directory
`/media/elements/opencores/temp/toolchain/gcc-build'
/bin/sh ../gcc/mkinstalldirs /media/elements/opencores/toolchain
/media/elements/opencores/toolchain
make[3]: Entering directory
`/media/elements/opencores/temp/toolchain/gcc-build/fixincludes'
rm -rf
/media/elements/opencores/toolchain/libexec/gcc/or32-linux/4.5.1-or32-1.0rc1/install-tools
make[3]: Entering directory
`/media/elements/opencores/temp/toolchain/gcc-build/intl'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory
`/media/elements/opencores/temp/toolchain/gcc-build/intl'
/bin/sh ../../gcc/fixincludes/../mkinstalldirs
/media/elements/opencores/toolchain/libexec/gcc/or32-linux/4.5.1-or32-1.0rc1/install-tools
 
mkdir -p --
/media/elements/opencores/toolchain/libexec/gcc/or32-linux/4.5.1-or32-1.0rc1/install-tools
/bin/sh ../../gcc/fixincludes/../mkinstalldirs
/media/elements/opencores/toolchain/lib/gcc/or32-linux/4.5.1-or32-1.0rc1/install-tools/include
/usr/bin/install -c -m 644 ../../gcc/fixincludes/README-fixinc \
         
/media/elements/opencores/toolchain/lib/gcc/or32-linux/4.5.1-or32-1.0rc1/install-tools/include/README
/usr/bin/install -c fixinc.sh
/media/elements/opencores/toolchain/libexec/gcc/or32-linux/4.5.1-or32-1.0rc1/install-tools/fixinc.sh
/usr/bin/install -c fixincl \
         
/media/elements/opencores/toolchain/libexec/gcc/or32-linux/4.5.1-or32-1.0rc1/install-tools/fixincl
/usr/bin/install -c mkheaders
/media/elements/opencores/toolchain/libexec/gcc/or32-linux/4.5.1-or32-1.0rc1/install-tools/mkheaders
make[3]: Leaving directory
`/media/elements/opencores/temp/toolchain/gcc-build/fixincludes'
make[3]: Entering directory
`/media/elements/opencores/temp/toolchain/gcc-build/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[3]: Entering directory
`/media/elements/opencores/temp/toolchain/gcc-build/libdecnumber'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory
`/media/elements/opencores/temp/toolchain/gcc-build/libdecnumber'
make[3]: Entering directory
`/media/elements/opencores/temp/toolchain/gcc-build/libiberty'
make[4]: Entering directory
`/media/elements/opencores/temp/toolchain/gcc-build/libiberty/testsuite'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/media/elements/opencores/temp/toolchain/gcc-build/libiberty/testsuite'
make[4]: Entering directory
`/media/elements/opencores/temp/toolchain/gcc-build/libiberty/testsuite'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory
`/media/elements/opencores/temp/toolchain/gcc-build/libiberty/testsuite'
/bin/sh ../../gcc/libiberty/../mkinstalldirs
/media/elements/opencores/toolchain/lib/`gcc -g -O2
-print-multi-os-directory`
/usr/bin/install -c -m 644 ./libiberty.a
/media/elements/opencores/toolchain/lib/`gcc -g -O2
-print-multi-os-directory`/./libiberty.an
( cd /media/elements/opencores/toolchain/lib/`gcc -g -O2
-print-multi-os-directory` ; chmod 644 ./libiberty.an ;ranlib ./libiberty.an
)
mv -f /media/elements/opencores/toolchain/lib/`gcc -g -O2
-print-multi-os-directory`/./libiberty.an
/media/elements/opencores/toolchain/lib/`gcc -g -O2
-print-multi-os-directory`/./libiberty.a
if test -n ""; then \
          case "" in \
            /*)    thd=;; \
            *)     thd=/media/elements/opencores/toolchain/include/;; \
          esac; \
          /bin/sh ../../gcc/libiberty/../mkinstalldirs ${thd}; \
          for h in ../../gcc/libiberty/../include/ansidecl.h
../../gcc/libiberty/../include/demangle.h
../../gcc/libiberty/../include/dyn-string.h
../../gcc/libiberty/../include/fibheap.h
../../gcc/libiberty/../include/floatformat.h
../../gcc/libiberty/../include/hashtab.h
../../gcc/libiberty/../include/libiberty.h
../../gcc/libiberty/../include/objalloc.h
../../gcc/libiberty/../include/partition.h
../../gcc/libiberty/../include/safe-ctype.h
../../gcc/libiberty/../include/sort.h
../../gcc/libiberty/../include/splay-tree.h; do \
            /usr/bin/install -c -m 644 $h ${thd}; \
          done; \
        fi
make[3]: Leaving directory
`/media/elements/opencores/temp/toolchain/gcc-build/libiberty'
//bin/sh: line 3: cd: or32-linux/libstdc++-v3: No such file or directory
make[2]: *** [install-target-libstdc++-v3] Error 1/
make[2]: *** Waiting for unfinished jobs....



--
View this message in context: 
http://openrisc.2316802.n4.nabble.com/Problems-in-the-build-toolchain-tp4488061p4488061.html
Sent from the OpenRISC mailing list archive at Nabble.com.
_______________________________________________
OpenRISC mailing list
[email protected]
http://lists.openrisc.net/listinfo/openrisc

Reply via email to