I get the following error for all TBB versions when making with gcc 4.1.1 on RedHat 4.4 for x86-64:
gmake[1]: Entering directory `/opt/TBB/tbb20_014oss_src/build/linux_em64t_gcc_cc4.1.1_libc2.3.4_kernel2.6.9_release'
../../build/Makefile.tbb:38: CONFIG: cfg=release arch=em64t compiler=gcc os=linux runtime=cc4.1.1_libc2.3.4_kernel2.6.9
sh ../../build/generate_tbbvars.sh
g++ concurrent_hash_map.o concurrent_queue.o concurrent_vector.o itt_notify.o cache_aligned_allocator.o pipeline.o queuing_mutex.o queuing_rw_mutex.o spin_rw_mutex.o spin_mutex.o task.o tbb_misc.o mutex.o -lpthread -lrt -ldl -fPIC -o libtbb.so -shared -m64
/opt/amd/gnutools-4.1.1/bin/ld: /opt/amd/gnutools-4.1.1/lib/gcc/x86_64-redhat-linux/4.1.1-amd-rhel4/libstdc++.a(stdexcept.o): relocation R_X86_64_32S against `vtable for std::logic_error' can not be used when making a shared object; recompile with -fPIC
/opt/amd/gnutools-4.1.1/lib/gcc/x86_64-redhat-linux/4.1.1-amd-rhel4/libstdc++.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
gmake[1]: *** [libtbb.so] Error 1
A web search for "TBB -fPIC" or "TBB R_X86_64_32S" produces no hits.
I'm sure this is simple, dumb problem, but it's got me stumped.
Thanks.
basic error when making with gcc
For more complete information about compiler optimizations, see our Optimization Notice.


