2008-05-20 09:42:18     link error

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

2008-05-20 09:42:18     link error

Slava Zhuiko (RUSSIAN FEDERATION)

Message: 56053    hi! After adding the next portion of code to my current project I got the following error message: undefined reference to `___sync_fetch_and_add_4'. Thanks in advance.

QuoteReplyEditDelete

 

 

2008-05-20 19:06:54     Re: link error

Mike Frysinger (UNITED STATES)

Message: 56070   

 

afaik, the Blackfin compiler should not be generating references to that function

 

please post the source code that you're compiling and the command you're using to compile it, as well as information about your setup ... you should be using the 2008R1 release

QuoteReplyEditDelete

 

 

2008-05-21 02:41:15     Re: link error

Slava Zhuiko (RUSSIAN FEDERATION)

Message: 56073    downgrading boost back to 1.34 solved the problem

QuoteReplyEditDelete

 

 

2008-05-21 03:57:11     Re: link error

Slava Zhuiko (RUSSIAN FEDERATION)

Message: 56076   

 

#include <boost/format.hpp>

 

int main()

{

       boost::format f("%d\n");

       f %-123;

       return 0;

}

 

bfin-linux-uclibc-g++ -funsigned-char -O2 -DNDEBUG -DBOOST_NO_INTRINSIC_WCHAR_T -mfdpic -o test main.cpp

 

boost 1.35, uClinux 2008R1

QuoteReplyEditDelete

 

 

2008-05-21 14:23:00     Re: link error

Mike Frysinger (UNITED STATES)

Message: 56099   

 

newer boost calls the gcc builtin __sync_fetch_and_add, but we dont implement any of those builtins at the moment ... i'll open a tracker item to get it done

QuoteReplyEditDelete

 

 

2009-07-14 07:50:21     Re: link error

Marius Kotsbak (NORWAY)

Message: 77210   

 

A workaround that seems to work is to add

 

  #define BOOST_SP_USE_PTHREADS

 

before including the boost headers. Then it works with Boost 1.39.

Attachments

    Outcomes