
Hi, I'm tring to cross compile boost 1.37 to arm, I found that I need to add "__arm__" definition to get compile correctly, but I don't know where do I define __arm__ macro will be global to all. Defautly, the arch is defined as __i386__ when I do cross compile with arm toolchain. regards, Leslie _________________________________________________________________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE

leslie lige wrote:
Hi,
I'm tring to cross compile boost 1.37 to arm, I found that I need to add "__arm__" definition to get compile correctly, but I don't know where do I define __arm__ macro will be global to all. Defautly, the arch is defined as __i386__ when I do cross compile with arm toolchain.
You don't have to define __arm__ macro, it appears like you're doing something wrong -- like not actually using a cross-compiler. What exactly did you do? You can find some instructions at: http://www.boost.org/boost-build2/doc/html/bbv2/tasks/crosscompile.html - Volodya

Thanks for your reply, sorry for give the wrong information, indeed, I'm cross compiling boost for blackfin not arm, but I'm trying use arm settings for cross compile, this works when I'm building Qt 4.4.x on blackfin. But in boost cross compilation, if I don't manually define __arm__, the compilation will never reach source like: #ifdef __arm__ And my current problem is while building gnash to blackfin, the linker said there has no reference of: _sync_fetch_and_add_4, I can grep _sync_fetch_and_add_4 in libboost_thread-gcc41-mt-1_37.a. So confused here... BR Leslie
To: boost-users@lists.boost.org From: vladimir@codesourcery.com Date: Tue, 16 Dec 2008 12:18:08 +0300 Subject: Re: [Boost-users] boost compile to arm
leslie lige wrote:
Hi,
I'm tring to cross compile boost 1.37 to arm, I found that I need to add "__arm__" definition to get compile correctly, but I don't know where do I define __arm__ macro will be global to all. Defautly, the arch is defined as __i386__ when I do cross compile with arm toolchain.
You don't have to define __arm__ macro, it appears like you're doing something wrong -- like not actually using a cross-compiler. What exactly did you do? You can find some instructions at:
http://www.boost.org/boost-build2/doc/html/bbv2/tasks/crosscompile.html
- Volodya
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us

leslie lige wrote:
Thanks for your reply, sorry for give the wrong information, indeed, I'm cross compiling boost for blackfin not arm, but I'm trying use arm settings for cross compile, this works when I'm building Qt 4.4.x on blackfin. But in boost cross compilation, if I don't manually define __arm__, the compilation will never reach source like: #ifdef __arm__
Please say exactly what you did -- specific commands, specific config files etc.
And my current problem is while building gnash to blackfin, the linker said there has no reference of: _sync_fetch_and_add_4, I can grep _sync_fetch_and_add_4 in libboost_thread-gcc41-mt-1_37.a.
This is known issue -- gcc does not define this intrinsic, and Boost code makes use of it. Search mailing list archives -- I think it was discussed and a patch was posted. I do not know if that patch is available in SVN HEAD - Volodya
participants (2)
-
leslie lige
-
Vladimir Prus