Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
2417 Discussions

libtbb.so.2 not compiled with -fPIC for Linux x86-64?

benexocortex_com
Beginner
160 Views
Hi,

I am using TBB under Linux and I just ran into the issue that libtbb.so.2 is not compiled using the -fPIC option -- or in otherwords, the libtbb.so.2 contains text relocations.

Text relocations are explained here:

http://people.redhat.com/drepper/textrelocs.html

You can verify that libtbb.so.2 contains text relocations via running this command line:

[root@mtl-siqa23]# eu-findtextrel libtbb.so.2

Text relocations can result in SELinux policy warnings or errors. It is best these days to use the -fPIC option to avoid having text relocations.

I am somewhat new to Linux development, so maybe someone has a workaround or is there something I am not understanding?

If I am understanding correctly, it would be great if libtbb.so.2 was recompiled such that there were no text relocations.

I am using the commercial version of TBB and thus I understand that I can't just take the source to the open source TBB version and recompile it myself using the -fPIC option for my commercial use. (Although if that was allowed, it would be really nice.)

Best regards,
Ben Houston
http://www.exocortex.com
0 Kudos
1 Reply
Vladimir_P_Intel2
160 Views
Hi,

This issue was fixed in TBB 2.2 update 1 by compiler upgrade.

--Vladimir
Reply