--- include/tbb/tbb_config.h.orig 2014-08-26 13:28:59.000000000 +0200 +++ include/tbb/tbb_config.h 2014-09-10 20:19:15.000000000 +0200 @@ -481,6 +481,10 @@ However these functions are not defined anywhere. It seems that this problem was fixed later on and RHEL got an updated version of gcc 4.1.2. **/ #define __TBB_GCC_64BIT_ATOMIC_BUILTINS_BROKEN 1 +#elif __TBB_x86_32 && __TBB_GCC_VERSION == 40201 && !__clang__ && __FreeBSD__ + /** Symbol '__sync_val_compare_and_swap_8' not defined + on FreeBSD 8.4/i386 and 9.2/i386 with base gcc **/ + #define __TBB_GCC_64BIT_ATOMIC_BUILTINS_BROKEN 1 #endif #if __GNUC__ && __TBB_x86_64 && __INTEL_COMPILER == 1200