Opened 14 years ago
Closed 9 years ago
#2255 closed Bugs (fixed)
Compilation error during arm cross compile - boost 1.36
Reported by: | 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)
follow-up: 2 comment:1 by , 14 years ago
comment:2 by , 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 , 12 years ago
Component: | thread → smart_ptr |
---|---|
Owner: | changed from | to
comment:4 by , 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:6 by , 12 years ago
Have not tested with the latest release. Hence, cannot confirm if its been fixed.
comment:7 by , 9 years ago
Severity: | Showstopper → Problem |
---|
comment:8 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
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.