Forum Discussion
Altera_Forum
Honored Contributor
20 years agobuildroot failed
Hello all, http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif
i followed the great thread ( http://forum.niosforum.com/forum/index.php?showtopic=3174 (http://forum.niosforum.com/forum/index.php?showtopic=3174) ) i downloaded fedora core 5 i installed " compat-gcc-32 " with yum ..and tested the gcc version .. i downloaed all the files .. i downloaded the attached files in that thread .. unzipped ..in the ~/download folder .. the build was replaced by the new one from the attachment :: the one having uClinux-dist-test-20051209.tar.bz2 .. then i executed it .. it start extracting ..unzipping ..generating .. compiling .. this long story .. stii it reached an error .. . i repeted the whole process several times.. same result .. the error was this : <div class='quotetop'>QUOTE </div> --- Quote Start --- /tarek/buildroot/toolchain_build_nios2/gcc-3.4.6-final/nios2-linux-uclibc/libstdc++-v3/include -I/home/tarek/buildroot/toolchain_build_nios2/gcc-3.4.6/libstdc++-v3/libsupc++ -g -Os -g -Os -fno-implicit-templates -Wall -W -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -c /home/tarek/buildroot/toolchain_build_nios2/gcc-3.4.6/libstdc++-v3/libsupc++/eh_alloc.cc -fPIC -DPIC -o eh_alloc.o /tmp/ccaOktFs.s: Assembler messages: /tmp/ccaOktFs.s:741: Internal error! Assertion failure in md_number_to_chars at /home/tarek/buildroot/toolchain_build_nios2/binutils-2.15/gas/config/tc-nios2.c line 1190. Please report this bug. make[4]: *** [eh_alloc.lo] Error 1 make[4]: Leaving directory `/home/tarek/buildroot/toolchain_build_nios2/gcc-3.4.6-final/nios2-linux-uclibc/libstdc++-v3/libsupc++' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/tarek/buildroot/toolchain_build_nios2/gcc-3.4.6-final/nios2-linux-uclibc/libstdc++-v3' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/tarek/buildroot/toolchain_build_nios2/gcc-3.4.6-final/nios2-linux-uclibc/libstdc++-v3' make[1]: *** [all-target-libstdc++-v3] Error 2 make[1]: Leaving directory `/home/tarek/buildroot/toolchain_build_nios2/gcc-3.4.6-final' make: *** [/home/tarek/buildroot/toolchain_build_nios2/gcc-3.4.6-final/.compiled] Error 2[/b] --- Quote End --- i tried to continue with the guide .. more errors showed up .. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/ohmy.gif pls help http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/blink.gif pleeeeeeeeease help http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/ohmy.gif thanks in advance6 Replies
- Altera_Forum
Honored Contributor
more info :
i also tried using thr original build script .. not the attached.. the one having : http://www.uclinux.org/pub/uclinux/dist/uc...0051110.tar.bz2 (http://www.uclinux.org/pub/uclinux/dist/uclinux-dist-20051110.tar.bz2) >>same error i tried yesterday on fedora core 4 >> same error note: i use x64 Linux os .. .. waiting for your help ! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/unsure.gif - Altera_Forum
Honored Contributor
pleeeeease help .. im in a great need to a clue ..
i deleted all files.. started from the begining .. it gave me a slightly different error .. having in common <div class='quotetop'>QUOTE </div> --- Quote Start --- Internal error! Assertion failure in md_number_to_chars at /home/tarek/buildroot/toolchain_build_nios2/binutils-2.15/gas ...[/b] --- Quote End --- but in another file.. i continued with the buildroot guide.. made an image for my 2c35 board .. it did not boot .. proecessor was NOT paused !! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/blink.gif still waiting.. pls help .. its my grad. project .. im spending hours to let the board talk out .. but it doesnt ! Thanks in advance http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif - Altera_Forum
Honored Contributor
Sorry, I didn't try them on x64 mode.
It would be easier to follow the new wiki, http://nioswiki.jot.com/wikihome/operating...ms/%c2%b5clinux (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux) You may try buildroot later. I had attached some backup snapshot of buildroot/uclibc/busybox on the wiki . - Altera_Forum
Honored Contributor
thanks ..
it worked .. and i booted http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif i had a little more problem.. i tried to compile a very simple program
i then added the executable " test " to the fs at " /usr/bin" recompiled .. then run .. after boot .. i typed "test" .. it said : <div class='quotetop'>QUOTE </div> --- Quote Start --- Bad Magic header[/b] --- Quote End --- or something like this .. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/blink.gif do any1 know what is the problem ?? http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif Hippo .. thanks again ..nios2-linux-uclib-gcc simple.c -o test - Altera_Forum
Honored Contributor
Please add -elf2flt flag, see
http://nioswiki.jot.com/wikihome/operating...ms/compilehello (http://nioswiki.jot.com/wikihome/operatingsystems/compilehello) - Altera_Forum
Honored Contributor
yup .. u did it http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif .. as always ..
thanks Hippo http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif