Raspberry pi compilation errors

Raspberry pi compilation errors

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

 

2 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.

hello, try to add folowing defines to CPLUS_FLAGS

-DTBB_USE_GCC_BUILTINS=1 -D__TBB_64BIT_ATOMICS=0

--Vladimir

Connectez-vous pour laisser un commentaire.