Forum Discussion
Altera_Forum
Honored Contributor
14 years agounable to link an executable image
Hi, I'm jus triying to compile and link a simple "hello world" application with gcc nios2-linux-gnu-gcc (version 4.1.2) but gcc does not reconize -elf2flt parameter as we can see in the compi...
Altera_Forum
Honored Contributor
14 years agoThanks jofasa,
got it... with this solution, the elf2flt function will work properly.I try to do the DEBUG Apps " nios2-linux-uclibc-gcc -g hello.c -o hello -elf2flt" again and it should work this time.. do you think this is also the reason why I couldnt run properly the make gcc elf2flt gdb-host on building the toolchain? some clarification.. ALL of below should be all in my .bash_profile.. correct? /******************************* PATH_TOOLCHAIN_NIOS2=/opt/nios2-toolchain/build_nios2/staging_dir/bin/ PATH=$PATH:$PATH_TOOLCHAIN_NIOS2 export PATH M_ARCH=nios2nommu M_SYSPTF=$M_DIR_BASE/ptf/NIOS.ptf M_TOOLCHAIN=/opt/nios2-toolchain/build_nios2/staging_dir/bin/nios2-linux- make ARCH=${M_ARCH} CROSS_COMPILE=${M_TOOLCHAIN} vendor_hwselect SYSPTF=${M_SYSPTF} make ARCH=${M_ARCH} CROSS_COMPILE=${M_TOOLCHAIN}