2010-08-02 07:51:46     arg_fr16 linking problem

Document created by Aaronwu Employee on Sep 26, 2013
Version 1Show Document
  • View in full screen mode

2010-08-02 07:51:46     arg_fr16 linking problem

David Brandt (DENMARK)

Message: 92047   

 

Hi,

 

I have a problem with using the arg_fr16 function from from the bfdsp library.

 

When I try to link my program I get the following undefined reference error:

 

 

 

bfin-elf-gcc -o main -mcpu=bf561 -mmulticore main.o link.lds -lbfdsp -lm

 

/opt/uClinux/bfin-elf/lib/gcc/bfin-elf/4.1.2/../../../../bfin-elf/lib/libbfdsp.a(arg16.o): In function `__arg_fr16':

 

arg16.c:(.text+0xe): undefined reference to `_atan2_fr16'

 

collect2: ld returned 1 exit status

 

make: *** [main] Error 1

 

 

 

Everything else compiles and links just fine without errors or warnings.

 

 

 

Any suggestions?

QuoteReplyEditDelete

 

 

2010-08-02 12:46:20     Re: arg_fr16 linking problem

Mike Frysinger (UNITED STATES)

Message: 92057   

 

there is a bug in the libbfdsp code.  ive fixed in svn trunk, but it requires recompiling the library.  you could workaround it by adding your own local atan2_fr16 function that merely forwards to the real _atan2_fr16.

 

maybe something like:

.globl _atan2_fr16

_atan2_fr16:

        jump __atan2_fr16;

QuoteReplyEditDelete

 

 

2010-08-03 03:37:37     Re: arg_fr16 linking problem

David Brandt (DENMARK)

Message: 92103   

 

It worked, thanks.

Attachments

    Outcomes