Altera_Forum
Honored Contributor
21 years agoTrouble Linking N2 Legacy Port
I'm getting a linking error on a ~20 module project. I got everything to compile fine, but this is stumping me. I saw in search that someone else had posted the same exact link errors so maybe this has been solved?
I started with the example Makefile in the Peripherals_Test example and replaced the modules with my own. Do I need to add a lib or something? I searched the entire Nios2 tree for any file (.a or .o) that contained the missing symbols to no avail. TIA, Ken # 2004.09.27.16:57:13 --- Linking obj/scan.out /cygdrive/c/altera/kits/nios2/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc -lib/nios2-elf/3.3.3/../../../../nios2-elf/lib/mno-hw-mul/libc.a(closer.o): In f unction `_close_r': closer.o(.text+0x20): warning: _close is not implemented and will always fail ... /cygdrive/c/altera/kits/nios2/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc -lib/nios2-elf/3.3.3/../../../../nios2-elf/lib/mno-hw-mul/libc.a(readr.o): In fu nction `_read_r': readr.o(.text+0x2c): warning: _read is not implemented and will always fail /cygdrive/c/altera/kits/nios2/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc -lib/nios2-elf/3.3.3/../../../../nios2-elf/lib/mno-hw-mul/libc.a(writer.o): In f unction `_write_r': writer.o(.text+0x2c): warning: _write is not implemented and will always fail collect2: ld returned 1 exit status