Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Yagarto lib link problem
PostPosted: Tue Jul 27, 2010 4:48 pm 
Offline

Joined: Mon Feb 22, 2010 2:14 pm
Posts: 1
Hi, there,
I am working on a SAM7X project with yagarto.
gcc generates all the obj files without problem. but it complains when it comes to link, compile msg says a few file IO function missing from the libs. here's the detail,
make all
arm-elf-gcc -g -Os -v -lgcc -nostartfiles -Wl,--gc-sections -T"./flash.lds" -o bin/MINIBOT_CCB-at91sam7x256-flash.elf obj/flash_cpu_a.o obj/flash_os_cpu_a.o obj/flash_cstartup.o obj/flash_bsp.o obj/flash_lib_mem.o obj/flash_lib_str.o obj/flash_os_cpu_c.o obj/flash_os_dbg.o obj/flash_os_dcc.o obj/flash_os_core.o obj/flash_os_flag.o obj/flash_os_mbox.o obj/flash_os_mem.o obj/flash_os_mutex.o obj/flash_os_q.o obj/flash_os_sem.o obj/flash_os_task.o obj/flash_os_time.o obj/flash_os_tmr.o obj/flash_app.o obj/flash_Console.o obj/flash_flashdev.o obj/flash_fpga.o obj/flash_misc.o obj/flash_motor.o obj/flash_Protocol.o obj/flash_xmodem.o obj/flash_MiniIp.o obj/flash_can.o obj/flash_emac.o obj/flash_dm9161.o obj/flash_pio_it.o obj/flash_pio.o obj/flash_rstc.o obj/flash_tfs.o obj/flash_tfsapi.o obj/flash_tfsclean.o
Using built-in specs.
Target: arm-elf
Configured with: gcc-4.4.2/configure --target=arm-elf --prefix=/home/yagarto/install --disable-nls --disable-shared --disable-threads --with-gcc --with-gnu-ld --with-gnu-as --with-dwarf2 --enable-languages=c,c++ --enable-interwork --enable-multilib --with-newlib --with-headers=newlib-1.18.0/newlib/libc/include --disable-libssp --disable-libstdcxx-pch --disable-libmudflap --disable-libgomp -v
Thread model: single
gcc version 4.4.2 (GCC)
COMPILER_PATH=d:/program files/yagarto/bin/libexec/gcc/arm-elf/4.4.2/;d:/program files/yagarto/bin/libexec/gcc/;d:/program files/yagarto/bin/lib/gcc/arm-elf/4.4.2/arm-elf/bin/
LIBRARY_PATH=d:/program files/yagarto/bin/lib/gcc/arm-elf/4.4.2/;d:/program files/yagarto/bin/lib/gcc/;d:/program files/yagarto/bin/lib/gcc/arm-elf/4.4.2/arm-elf/lib/
COLLECT_GCC_OPTIONS='-g' '-Os' '-v' '-nostartfiles' '-T./flash.lds' '-o' 'bin/MINIBOT_CCB-at91sam7x256-flash.elf'
d:/program files/yagarto/bin/libexec/gcc/arm-elf/4.4.2/collect2.exe -X -o bin/MINIBOT_CCB-at91sam7x256-flash.elf -Ld:/program files/yagarto/bin/lib/gcc/arm-elf/4.4.2 -Ld:/program files/yagarto/bin/lib/gcc -Ld:/program files/yagarto/bin/lib/gcc/arm-elf/4.4.2/arm-elf/lib -lgcc --gc-sections obj/flash_cpu_a.o obj/flash_os_cpu_a.o obj/flash_cstartup.o obj/flash_bsp.o obj/flash_lib_mem.o obj/flash_lib_str.o obj/flash_os_cpu_c.o obj/flash_os_dbg.o obj/flash_os_dcc.o obj/flash_os_core.o obj/flash_os_flag.o obj/flash_os_mbox.o obj/flash_os_mem.o obj/flash_os_mutex.o obj/flash_os_q.o obj/flash_os_sem.o obj/flash_os_task.o obj/flash_os_time.o obj/flash_os_tmr.o obj/flash_app.o obj/flash_Console.o obj/flash_flashdev.o obj/flash_fpga.o obj/flash_misc.o obj/flash_motor.o obj/flash_Protocol.o obj/flash_xmodem.o obj/flash_MiniIp.o obj/flash_can.o obj/flash_emac.o obj/flash_dm9161.o obj/flash_pio_it.o obj/flash_pio.o obj/flash_rstc.o obj/flash_tfs.o obj/flash_tfsapi.o obj/flash_tfsclean.o --start-group -lgcc -lg -lc --end-group -T./flash.lds
d:/program files/yagarto/bin/lib/gcc/arm-elf/4.4.2/arm-elf/lib\libg.a(lib_a-sbrkr.o): In function `_sbrk_r':
C:\msys\1.0\home\yagarto\newlib-build\arm-elf\newlib\libc\reent/newlib-1.18.0/newlib/libc/reent/sbrkr.c:60: undefined reference to `_sbrk'
d:/program files/yagarto/bin/lib/gcc/arm-elf/4.4.2/arm-elf/lib\libg.a(lib_a-writer.o): In function `_write_r':
C:\msys\1.0\home\yagarto\newlib-build\arm-elf\newlib\libc\reent/newlib-1.18.0/newlib/libc/reent/writer.c:58: undefined reference to `_write'
d:/program files/yagarto/bin/lib/gcc/arm-elf/4.4.2/arm-elf/lib\libg.a(lib_a-closer.o): In function `_close_r':
C:\msys\1.0\home\yagarto\newlib-build\arm-elf\newlib\libc\reent/newlib-1.18.0/newlib/libc/reent/closer.c:53: undefined reference to `_close'
d:/program files/yagarto/bin/lib/gcc/arm-elf/4.4.2/arm-elf/lib\libg.a(lib_a-fstatr.o): In function `_fstat_r':
C:\msys\1.0\home\yagarto\newlib-build\arm-elf\newlib\libc\reent/newlib-1.18.0/newlib/libc/reent/fstatr.c:62: undefined reference to `_fstat'
d:/program files/yagarto/bin/lib/gcc/arm-elf/4.4.2/arm-elf/lib\libg.a(lib_a-isattyr.o): In function `_isatty_r':
C:\msys\1.0\home\yagarto\newlib-build\arm-elf\newlib\libc\reent/newlib-1.18.0/newlib/libc/reent/isattyr.c:58: undefined reference to `_isatty'
d:/program files/yagarto/bin/lib/gcc/arm-elf/4.4.2/arm-elf/lib\libg.a(lib_a-lseekr.o): In function `_lseek_r':
C:\msys\1.0\home\yagarto\newlib-build\arm-elf\newlib\libc\reent/newlib-1.18.0/newlib/libc/reent/lseekr.c:58: undefined reference to `_lseek'
d:/program files/yagarto/bin/lib/gcc/arm-elf/4.4.2/arm-elf/lib\libg.a(lib_a-readr.o): In function `_read_r':
C:\msys\1.0\home\yagarto\newlib-build\arm-elf\newlib\libc\reent/newlib-1.18.0/newlib/libc/reent/readr.c:58: undefined reference to `_read'
collect2: ld returned 1 exit status
make: *** [flash] Error 1

The following is the search dir print out,
arm-elf-gcc -print-search-dirs,
install: d:\program files\yagarto\bin\lib/gcc/arm-elf/4.4.2/
programs: =d:/program files/yagarto/bin/libexec/gcc/arm-elf/4.4.2/;d:/program
files/yagarto/bin/libexec/gcc/;d:/program files/yagarto/bin/lib/gcc/arm-e
lf/4.4.2/arm-elf/bin/arm-elf/4.4.2/;d:/program files/yagarto/bin/
lib/gcc/arm-elf/4.4.2/arm-elf/bin/
libraries: =d:/program files/yagarto/bin/lib/gcc/arm-elf/4.4.2/;d:/program fi
les/yagarto/bin/lib/gcc/;d:/program files/yagarto/bin/lib/gcc/arm-elf/4.4.
2/arm-elf/lib/arm-elf/4.4.2/;d:/program files/yagarto/bin/lib/gcc
/arm-elf/4.4.2/arm-elf/lib/

anyone facing the same problem before? any hints?

Thanks
Ray


Top
 Profile  
 
 Post subject: Re: Yagarto lib link problem
PostPosted: Thu Nov 04, 2010 7:07 pm 
Offline

Joined: Thu Nov 04, 2010 6:58 pm
Posts: 2
Hi Ray,

I got the same problem. I tried to create an Eclipse managed project (Yagarto toolchain) using the TWI example from C:\Atmel\at91sam9m10-ek-softpack-1.9\at91sam9m10-ek that comes with the M10-G45 kit.

Please let the forum know if you found out more about it.

Günter


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: