Forum Discussion
Altera_Forum
Honored Contributor
20 years agoinstall "Nios II Linux v1.4 released"
hi!
i've just tried to install the downloaded linux. there was an error message: "Cygwin extension were not installed properly. Please see README for instruction on how to install them manually" what does that mean? could not find a hint in README on how to install them manually. system : XP, quartus v51, nios v51. torsten15 Replies
- Altera_Forum
Honored Contributor
Welcome.
Follow this thread, it will save you. http://forum.niosforum.com/forum/index.php?showtopic=3174 (http://forum.niosforum.com/forum/index.php?showtopic=3174) - Altera_Forum
Honored Contributor
hi,
try to follow the thread on a debian distribution. does not run succesfully till the end. regards torsten - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by torsten grevsmuehl@Apr 21 2006, 04:43 PM hi,try to follow the thread on a debian distribution.
does not run succesfully till the end.
regards torsten
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14543)
--- quote end ---
--- Quote End --- I use Fedora Core 5 and Slackware 10.2 . Jdhar uses Ubuntu. Where do you fail? Please check if you have gcc3.xx ?
- Altera_Forum
Honored Contributor
Torsten,
I have built uClinux successfully on the Debian platform. There were small problems (which maybe Debian-related?), but basically it works OK for me. What fails exactly? Please post some details on this thread. - Altera_Forum
Honored Contributor
TO_BE_DONE
- Altera_Forum
Honored Contributor
The cross gcc is finished.
the problem is in making elf2flt . try remove toolchain_build_nios2/elf2flt dir, and make again. if still failed in making elf2flt, check those include headers. - Altera_Forum
Honored Contributor
hi!
sorry, it's me again. what include files should be checked at which location. what Makefile should i try again? could i have a problem with permissions etc.? regards grevsmuehl - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by torsten grevsmuehl@Apr 24 2006, 08:49 PM hi!sorry, it's me again.
what include files should be checked at which location.
what makefile should i try again?
could i have a problem with permissions etc.?
regards grevsmuehl
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14602)
--- quote end ---
--- Quote End --- Please check this first. /home/grev/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/bfd.h:38:22: ansidecl.h: No such file or directory /home/grev/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/bfd.h:39:20: symcat.h: No such file or directory On my FC5, there are /usr/include/ ansidecl.h and symcat.h . hootsmon, would you give some hints about Debian? Buildroot runs in user account. It does not need root account. So the user permissions should be Okay.
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by torsten grevsmuehl@Apr 24 2006, 06:58 PM make -j1 -c /home/grev/buildroot/toolchain_build_nios2/elf2flt allmake[1]: entering directory `/home/grev/buildroot/toolchain_build_nios2/elf2flt'
gcc -g -o2 -dpackage_name=\"\" -dpackage_tarname=\"\" -dpackage_version=\"\" -dpackage_string=\"\" -dpackage_bugreport=\"\" -dstdc_headers=1 -dhave_sys_types_h=1 -dhave_sys_stat_h=1 -dhave_stdlib_h=1 -dhave_string_h=1 -dhave_memory_h=1 -dhave_strings_h=1 -dhave_inttypes_h=1 -dhave_stdint_h=1 -dhave_unistd_h=1 -dhave_fcntl_h=1 -dhave_unistd_h=1 -dhave_vprintf=1 -dhave_dcgettext=1 -dtarget_nios2 -i/home/grev/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/ -o elf2flt /home/grev/buildroot/toolchain_build_nios2/elf2flt/elf2flt.c /home/grev/buildroot/toolchain_build_nios2/elf2flt/stubs.c /home/grev/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/libbfd.a /home/grev/buildroot/toolchain_build_nios2/binutils-2.15-build/libiberty/libiberty.a
in file included from /home/grev/buildroot/toolchain_build_nios2/elf2flt/elf2flt.c:52:
/home/grev/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/bfd.h:38:22: ansidecl.h: no such file or directory
/home/grev/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/bfd.h:39:20: symcat.h: no such file or directory
in file included from /home/grev/buildroot/toolchain_build_nios2/elf2flt/elf2flt.c:52:
/home/grev/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/bfd.h:834: error: parse error before "params"
/home/grev/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/bfd.h:838: error: parse error before "params" --- Quote End --- I see this exact behaviour on my Debian platform too, so now we can confirm this is definitely Debian related (I thought it might be). The good news is there's a 1-line workaround, but for now I have to work from memory, since I'm not at my Debian PC today. Basically, just hack elf2flt's Makefile, so that "ansidecl.h" is found in the include path. I don't know why only Debian need this. I will make a patch tomorrow, but in the meantime, give this a try.... 1) cd ~/buildroot/toolchain_build_nios2/elf2flt/ 2) find .. -name "ansidecl.h" -print * Note path for "ansidecl.h", I think its in current dir? 3) vi Makefile * search for "-I" * add another -I {path} so that ansidecl.h and friends are includable 4) make clean 5) make 6) make install 7) cd ~buildroot 8) make That should make buildroot OK. At this stage I recommend rebuilding busybox, as per step# 12 of hippo's buildroot guide. Good luck http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif
- Altera_Forum
Honored Contributor
Here is my patch to make elf2flt compile properly on Debian platform....
Thorsten, here's how to apply it.... 1) Save the patch into ~/download/elf2flt.diff 2) cd ~/buildroot 3) patch -p0 <~/download/elf2flt.diff 4) rm -rf toolchain_build_nios2/elf2flt 5) make Hippo, does this patch look allright to you? Will it have any affect on non-Debian users? Should something like this go in svn?Index: toolchain/elf2flt/elf2flt.mk =================================================================== --- toolchain/elf2flt/elf2flt.mk (original) +++ toolchain/elf2flt/elf2flt.mk (working copy) @@ -20,6 +20,7 @@ (cd $(ELF2FLT_DIR); rm -rf config.cache; $(ELF2FLT_DIR)/configure --with-bfd-include-dir=$(BINUTILS_DIR1)/bfd/ + --with-binutils-include-dir=$(BINUTILS_DIR)/include/ --target=$(REAL_GNU_TARGET_NAME) --with-libbfd=$(BINUTILS_DIR1)/bfd/libbfd.a --with-libiberty=$(BINUTILS_DIR1)/libiberty/libiberty.a \