This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: undefined __aeabi_unwind_cpp_pr0 error


Hi !

I'm having the same kinds of errors, trying to compile u-boot with gcc from
current testing from emdebian
$ arm-linux-gnueabi-gcc -v
[...]
gcc version 4.3.3 (Debian 4.3.3-3)

I found some solutions :

For this :

kpremendra wrote:
> 
> /home/developer/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ld:
> ERROR: Source object
> /home/developer/x-tools/arm-unknown-linux-gnueabi/lib/gcc/arm-unknown-linux-gnueabi/4.3.2/libgcc.a(_udivsi3.o)
> has EABI version 4, but target .tmp_vmlinux1 has EABI version 0
> 
Look at the ABI you are using (gcc flags for compilation)
Here are some information : http://wiki.debian.org/ArmEabiPort

I had to replace 
PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu)
with
PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=aapcs-linux)
(removing is also OK)

For this :

kpremendra wrote:
> 
> /home/developer/devel/crosscompiler/targets/src/gcc-4.3.2/libgcc/../gcc/config/arm/lib1funcs.asm:1079:
> undefined reference to `raise'
> 
For this, you must either define a raise function, or, as I did for uboot,
define the raise symbol as an alias for an existing one.
I used what is done for the uboot version for openmoko :
PLATFORM_LDFLAGS += --defsym raise=hang


But for this :

kpremendra wrote:
> 
> /home/developer/x-tools/arm-unknown-linux-gnueabi/lib/gcc/arm-unknown-linux-gnueabi/4.3.2/libgcc.a(_divdi3.o):(.ARM.exidx+0x0):
> undefined reference to `__aeabi_unwind_cpp_pr0'
> /home/developer/x-tools/arm-unknown-linux-gnueabi/lib/gcc/arm-unknown-linux-gnueabi/4.3.2/libgcc.a(_udivdi3.o):(.ARM.exidx+0x0):
> undefined reference to `__aeabi_unwind_cpp_pr0'
> 
I'm still looking around for a solution.

If anybody has one, he's welcome to reply to this thread !
Thanks.
-- 
View this message in context: http://www.nabble.com/undefined-__aeabi_unwind_cpp_pr0-error-tp21885563p24900435.html
Sent from the gcc - Help mailing list archive at Nabble.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]