Actions
| Post | |
| Subscribe | |
| Unsubscribe |
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [arm-gnu] Some problems with undefined reference to `__aeabi_unwind_cpp_*'
- To: "Carlos O'Donell" <carlos@xxxxxxxxxxxxxxxx>
- Subject: Re: [arm-gnu] Some problems with undefined reference to `__aeabi_unwind_cpp_*'
- From: Julien Iguchi-Cartigny <kartoch@xxxxxxxxx>
- Date: Fri, 29 Jan 2010 22:01:47 +0100
Carlos, Thank you, your post solves my problem: i use now the EABI version and I change my build files to use gcc for linking (with -Wl option). I've still a problem, but it seems related to eglibc. samples/example_terminal_eb40a/build/at91-debug-ice/terminal_irq.o:samples/example_terminal_eb40a/terminal_irq.s:41: undefined reference to `terminal_1' /home/kartoch/works/embedded/tools/arm-2009q3/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/libc.a(lib_a-sbrkr.o): In function `_sbrk_r': sbrkr.c:(.text+0x18): undefined reference to `_sbrk' /home/kartoch/works/embedded/tools/arm-2009q3/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/libc.a(lib_a-writer.o): In function `_write_r': writer.c:(.text+0x20): undefined reference to `_write' /home/kartoch/works/embedded/tools/arm-2009q3/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/libc.a(lib_a-closer.o): In function `_close_r': closer.c:(.text+0x18): undefined reference to `_close' /home/kartoch/works/embedded/tools/arm-2009q3/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/libc.a(lib_a-lseekr.o): In function `_lseek_r': lseekr.c:(.text+0x20): undefined reference to `_lseek' /home/kartoch/works/embedded/tools/arm-2009q3/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/libc.a(lib_a-readr.o): In function `_read_r': readr.c:(.text+0x20): undefined reference to `_read' collect2: ld returned 1 exit status scons: *** [samples/example_terminal_eb40a/build/at91-debug-ice/term_com] Error 1 These functions are described as syscall by newlib documentation [1]. With newlib, you can have arm or event nosys version of these functions. Do you know if eglibc has the same lib provided or I need to provides my own implementation (not difficult but I would like to know if eglibc provides something equivalent...) ? Cheers, Julien. [1] http://sourceware.org/newlib/libc.html#Syscalls On Fri, Jan 29, 2010 at 4:00 PM, Carlos O'Donell <carlos@xxxxxxxxxxxxxxxx> wrote: > Julien Iguchi-Cartigny wrote: >> >> arm-none-linux-gnueabi-ld -o >> Does anyone has an idea about it ? > > It appears you are building examples for the ATMEL EB40A which is an > embedded board. You should be using Sourcery G++ Lite for ARM EABI. > > We strongly recommend against linking directly, allow the compiler to link > the final application for you e.g. Use 'arm-none-eabi-gcc' instead of > 'arm-none-eabi-ld'. > > Cheers, > Carlos. > -- > Carlos O'Donell > CodeSourcery > carlos@xxxxxxxxxxxxxxxx > (650) 331-3385 x716 > -- "Trouble-a-cat limited"
- Follow-Ups:
- Re: [arm-gnu] Some problems with undefined reference to `__aeabi_unwind_cpp_*'
- From: Julien Iguchi-Cartigny
- Re: [arm-gnu] Some problems with undefined reference to `__aeabi_unwind_cpp_*'
- References:
- [arm-gnu] Some problems with undefined reference to `__aeabi_unwind_cpp_*'
- From: Julien Iguchi-Cartigny
- Re: [arm-gnu] Some problems with undefined reference to `__aeabi_unwind_cpp_*'
- From: Carlos O'Donell
- [arm-gnu] Some problems with undefined reference to `__aeabi_unwind_cpp_*'
- Prev by Date: Re: [arm-gnu] Some problems with undefined reference to `__aeabi_unwind_cpp_*'
- Next by Date: Re: [arm-gnu] Some problems with undefined reference to `__aeabi_unwind_cpp_*'
- Previous by thread: Re: [arm-gnu] Some problems with undefined reference to `__aeabi_unwind_cpp_*'
- Next by thread: Re: [arm-gnu] Some problems with undefined reference to `__aeabi_unwind_cpp_*'
- Index(es):