Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

Raspberry pi compilation errors

sean_r_1
Beginner
292 Views

root@raspberrypi:~/tbb# make
Created ./build/linux_armv6l_gcc_cc4.6_libc2.13_kernel3.6.11+_release and ..._debug directories
make -C "./build/linux_armv6l_gcc_cc4.6_libc2.13_kernel3.6.11+_debug"  -r -f ../../build/Makefile.tbb cfg=debug
make[1]: Entering directory `/root/tbb/build/linux_armv6l_gcc_cc4.6_libc2.13_kernel3.6.11+_debug'
../../build/Makefile.tbb:39: CONFIG: cfg=debug arch=armv6l compiler=gcc target=linux runtime=cc4.6_libc2.13_kernel3.6.11+
g++ -o concurrent_hash_map.o -c -MMD -DTBB_USE_DEBUG  -g -O0 -DUSE_PTHREAD -fPIC -D__TBB_BUILD=1 -Wall -Wno-parentheses -Wno-non-virtual-dtor    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_hash_map.cpp
In file included from ../../include/tbb/tbb_machine.h:252:0,
                 from ../../include/tbb/spin_rw_mutex.h:33,
                 from ../../include/tbb/concurrent_hash_map.h:50,
                 from ../../src/tbb/concurrent_hash_map.cpp:29:
../../include/tbb/machine/gcc_armv7.h:39:2: error: #error compilation requires an ARMv7-a architecture.
make[1]: *** [concurrent_hash_map.o] Error 1
make[1]: Leaving directory `/root/tbb/build/linux_armv6l_gcc_cc4.6_libc2.13_kernel3.6.11+_debug'
make: *** [tbb] Error 2

 

0 Kudos
1 Reply
Vladimir_P_1234567890
292 Views

hello, try to add folowing defines to CPLUS_FLAGS

-DTBB_USE_GCC_BUILTINS=1 -D__TBB_64BIT_ATOMICS=0

--Vladimir

0 Kudos
Reply