- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I really need some help. This might be a simple solution but I dont know how to fix it.
Thanks, I am getting the following error messages when linking: Info: Linking sss_6_15_B.elf nios2-elf-g++ -T'../sss_6_15_B_bsp/linker.x' -msys-crt0='../sss_6_15_B_bsp/obj/HAL/src/crt0.o' -msys-lib=hal_bsp -L../superloop_iniche_lib -L../superloop_tse_lib -L../sss_6_15_B_bsp -u write -u read -Wl,-Map=sss_6_15_B.map -DSUPERLOOP -DALT_INICHE -DALTERA_TRIPLE_SPEED_MAC -O2 -g -Wall -mno-hw-div -mhw-mul -mno-hw-mulx -o sss_6_15_B.elf obj/demo_control.o obj/iniche_init.o obj/neek_support/alt_2_wire.o obj/neek_support/alt_eeprom.o obj/neek_support/alt_tpo_lcd.o obj/neek_support/alt_video_display.o obj/neek_support/get_neek_mac.o obj/neek_support/gfx_character_rom.o obj/neek_support/gfx_display.o obj/network_utilities.o obj/simple_socket_server.o -lsuperloop_iniche -lsuperloop_tse -lm ../superloop_iniche_lib/libsuperloop_iniche.a(alt_iniche_close.o)(.text+0x4): In function `close': iniche/src/alt_iniche_close.c:60: undefined reference to `alt_close' ../superloop_iniche_lib/libsuperloop_iniche.a(alt_iniche_close.o)(.text+0x8):iniche/src/alt_iniche_close.c:60: undefined reference to `alt_close' ../superloop_iniche_lib/libsuperloop_iniche.a(alt_iniche_fcntl.o)(.text+0x18): In function `fcntl': iniche/src/alt_iniche_fcntl.c:65: undefined reference to `alt_fcntl' ../superloop_iniche_lib/libsuperloop_iniche.a(alt_iniche_read.o)(.text+0x14): In function `read': iniche/src/alt_iniche_read.c:61: undefined reference to `alt_read' ../superloop_iniche_lib/libsuperloop_iniche.a(alt_iniche_read.o)(.text+0x18):iniche/src/alt_iniche_read.c:61: undefined reference to `alt_read' ../superloop_iniche_lib/libsuperloop_iniche.a(alt_iniche_write.o)(.text+0xc): In function `write': iniche/src/alt_iniche_write.c:62: undefined reference to `alt_write' ../superloop_iniche_lib/libsuperloop_iniche.a(alt_iniche_write.o)(.text+0x10):iniche/src/alt_iniche_write.c:62: undefined reference to `alt_write' collect2: ld returned 1 exit status make: *** [sss_6_15_B.elf] Error 1Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I had faced to this problem (Nios II 8.1). You are using Superloop InterNiche, aren't you ? In order to compile with "success", I modified in alt_iniche_*.c the functions that cause errors. I remember using ALT_CLOSE() instead of alt_close(). I mean I used some macros which are defined in Altera's include. Something like that. I think there are conflicts between your modified iniche's code and altera's code. My solution is a dirty one.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, I am trying/corverting the superloop into Nios2 EDS 9.1 into the 3c25 kit. It has been a challenge. Last night I was able to compile/link/download the project succesfully but I did not have time to run it (telnet, ftt, ping). I will try it today.
My fix is a dirty one too... I modified the following files located: ..\\superloop_iniche_lib\iniche\src. alt_iniche_close.c //int close (int fd) int alt_close (int fd) alt_iniche_read.c //int read (int fd, void *ptr, size_t len) int alt_read (int fd, void *ptr, size_t len) alt_iniche_write.c //int write (int fd, const void *ptr, size_t len) int alt_write (int fd, const void *ptr, size_t len) alt_iniche_fctnl.c //int fcntl (int file, int cmd, ...) int alt_fcntl (int file, int cmd, ...)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page