Forum Topic - Intel TBB support:
   
Intel TBB support  
Hi,
I try to compile a 2.1 version of the Intel TBB

using following source:
http://www.threadingbuildingblocks.org/ver.php?fid=122

A patch for the Neutrino 4.3.1 exists, and can be applied:
http://www.threadingbuildingblocks.org/ver.php?fid=123

After defining a GNU_LIBC_VERSION (first error)

make shows the following error:
------------------------------------------------------------------------------------
# make
getconf: Can't find GNU_LIBC_VERSION
egrep: illegal option -- o
egrep: illegal option -- o
cd "./build/qnx_ia32_qcc_cc_libc_kernel6.4.1_release" && sh ../../build/generate
_tbbvars.sh qnx_ia32_qcc_cc_libc_kernel6.4.1_release
cd "./build/qnx_ia32_qcc_cc_libc_kernel6.4.1_debug" && sh ../../build/generate_t
bbvars.sh qnx_ia32_qcc_cc_libc_kernel6.4.1_debug
make -C "./build/qnx_ia32_qcc_cc_libc_kernel6.4.1_debug"  -r -f ../../build/Make
file.tbb cfg=debug tbb_root=../..
make[1]: Entering directory `/home/tbb21_009oss/build/qnx_ia32_qcc_cc_libc_kerne
l6.4.1_debug'
../../build/Makefile.tbb:39: CONFIG: cfg=debug arch=ia32 compiler=qcc os=qnx run
time=cc_libc_kernel6.4.1
egrep: illegal option -- o
egrep: illegal option -- o
egrep: illegal option -- o
egrep: illegal option -- o
sh ../../build/generate_tbbvars.sh
egrep: illegal option -- o
egrep: illegal option -- o
QCC -fPIC -o libtbb_debug.so. concurrent_hash_map.o concurrent_queue.o concurren
t_vector.o itt_notify.o cache_aligned_allocator.o pipeline.o queuing_mutex.o que
uing_rw_mutex.o spin_rw_mutex.o spin_mutex.o task.o tbb_misc.o mutex.o recursive
_mutex.o tbb_thread.o concurrent_vector_v2.o concurrent_queue_v2.o spin_rw_mutex
_v2.o     -shared -Wl,-soname=libtbb_debug.so. -m32  tbb.def
tbb.def: file not recognized: File truncated
cc: /usr/qnx641/host/qnx6/x86/usr/bin/ntox86-ld error 1
make[1]: *** [libtbb_debug.so.] Error 1
make[1]: Leaving directory `/home/tbb21_009oss/build/qnx_ia32_qcc_cc_libc_kernel
6.4.1_debug'
make: *** [tbb] Error 2
------------------------------------------------------------------------------------

Are there any suggestions?

Regards, Mario
Re: Intel TBB support  
On 27-Jul-09, at 11:54 AM, Mario Shraiki wrote:

> Hi,
> I try to compile a 2.1 version of the Intel TBB
>
> using following source:
> http://www.threadingbuildingblocks.org/ver.php?fid=122
>
> A patch for the Neutrino 4.3.1 exists, and can be applied:
> http://www.threadingbuildingblocks.org/ver.php?fid=123
>
> After defining a GNU_LIBC_VERSION (first error)


Try the attached patch, it's a little more up to date when patching  
and should allow your build to complete.

Just untar the source, apply the patch and type 'make OS=QNX' (this  
works on my Linux host)
--
Cheers,
    Adam

   QNX Software Systems
   [ amallory@qnx.com ]
   ---------------------------------------------------
   With a PC, I always felt limited by the software available.
   On Unix, I am limited only by my knowledge.
       --Peter J. Schoenster




Re: Intel TBB support  
Seems the attachment isn't making it through via. email, so I've added it here manually.
Attachment: Text new.patch 26.69 KB
Re: Intel TBB support  
Hi Adam,
thanks for the patch !
Everything works fine now.

Regards, Mario


Summary:
1. I used following src:
http://www.threadingbuildingblocks.org/ver.php?fid=122
2. Applied your patch in the main directory of the extracted src using 
patch -p0 < new.patch 
3. Compiled it using
make OS=QNX

Re: Intel TBB support  
Ok great.  I've submitted the patch to the TBB project to update.
-Adam

On 8-Aug-09, at 9:18 AM, Mario Shraiki wrote:

> Hi Adam,
> thanks for the patch !
> Everything works fine now.
>
> Regards, Mario
>
>
> Summary:
> 1. I used following src:
> http://www.threadingbuildingblocks.org/ver.php?fid=122
> 2. Applied your patch in the main directory of the extracted src using
> patch -p0 < new.patch
> 3. Compiled it using
> make OS=QNX
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post35515
>