[U-Boot-Users] gcc-4.1.2 undefined reference to `raise'

Wolfgang Denk wd at denx.de
Wed Apr 25 14:55:49 CEST 2007


In message <20070425110718.GB32704 at anita.doom> you wrote:
> 
> In order to clean up my scb9328/i.MX stuff I am trying to make my
> u-boot-1.2.0 compile with gcc-4.1.2. I use the same tree for a pxa270
> port iwth gcc-4.1.2 but switching to arm920t i.MX parts triggers a bug
> in u-boot or in my crosstoolchain:

The latter, me thinks.

> /usr/local/arm/gcc-4.1.2/lib/gcc/arm-linux-uclibcgnueabi/4.1.2/libgcc.a(_dvmd_lnx.o): In function `__div0':
> /usr/src/br/buildroot-20070206/toolchain_build_arm_nofpu/gcc-4.1.2-20070128/gcc/config/arm/lib1funcs.asm:1000: undefined reference to `raise'
> 

The code is the __div0() function in your _dvmd_lnx.S file: part of
your toolchain.

> triggering this? I suspect some division parts and disabled some, but...
> To no help until now.

I think it's a waste of efforts trying to avoid the use of libgcc
funtions - they just have to work. Fix your tools...

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office:  Kirchenstr. 5,       D-82194 Groebenzell,            Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
...though his invention worked superbly -- his theory was a crock  of
sewage from beginning to end.         - Vernor Vinge, "The Peace War"




More information about the U-Boot mailing list