Opened 14 years ago

Closed 9 years ago

#2255 closed Bugs (fixed)

Compilation error during arm cross compile - boost 1.36

Reported by: Priya B <priya@…> Owned by: Peter Dimov
Milestone: Boost 1.37.0 Component: smart_ptr
Version: Boost 1.36.0 Severity: Problem
Keywords: __sync_add_and_fetch_4 arm Cc:

Description

I get the following error while cross compiling the boost 1.36 release for arm. The compiler used is codesourcery's 2007q3 gcc based ( 4.2.1) compiler. The compiler error is displayed as follows ../libboost_thread_gcc-mt.so: undefined reference to sync_add_and_fetch_4

This error was supposed to be fixed in 1.36 ( I don't recall the previous ticket number ). Looking at the logs, Peter Dimov was the person incharge of the fix.

Your help is much appreciated.

Change History (8)

comment:1 by anonymous, 14 years ago

I found out that it was the new code in the exception directory that was causing this problem. Excluding the exceptions ( using BOOST_EXCEPTION_DISABLE flag), seem to fix the problem. Hopefully the exception libraries will be fixed in the next version of boost.

in reply to:  1 comment:2 by zoulei198547@…, 14 years ago

Replying to anonymous:

I found out that it was the new code in the exception directory that was causing this problem. Excluding the exceptions ( using BOOST_EXCEPTION_DISABLE flag), seem to fix the problem. Hopefully the exception libraries will be fixed in the next version of boost.

Could you tell me how to do this ?

comment:3 by Anthony Williams, 12 years ago

Component: threadsmart_ptr
Owner: changed from Anthony Williams to Peter Dimov

comment:4 by anonymous, 12 years ago

We used a command line as below to exclude exceptions ./bjam --with-thread --with-system --with-filesystem --with-date_time variant=release variant=debug cxxflags=-DBOOST_EXCEPTION_DISABLE stage

Hope this helps

  • Priya

comment:5 by Peter Dimov, 12 years ago

Is this bug still relevant?

comment:6 by anonymous, 12 years ago

Have not tested with the latest release. Hence, cannot confirm if its been fixed.

comment:7 by viboes, 9 years ago

Severity: ShowstopperProblem

comment:8 by Peter Dimov, 9 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.