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

Compiling error help needed

Praveen
Beginner
377 Views
In linux FC 9
while trying to compile a program with this command

g++ -02 -DNDEBUG -m32 -o 1.cpp -ltbb

I got This

"/opt/intel/tbb/tbb20_020oss/em64t/cc4.1.0_libc2.4_kernel2.6.16.21/lib/libtbb.so: file not recognised : File Format Not recognised returned 1exit status "


What is this error Can any one please please help ?

Thanks in advance
0 Kudos
1 Solution
Alexey-Kukanov
Employee
377 Views
Are you compilinga 32-bit binary on a 64-bit system?

If so, set the environment for TBB to reference 32-bit libraries, by sourcing a tbbvars.sh (or csh) file from one of directories under linux/ia32 (and not em64t, which seems to be the default).

View solution in original post

0 Kudos
5 Replies
Alexey-Kukanov
Employee
378 Views
Are you compilinga 32-bit binary on a 64-bit system?

If so, set the environment for TBB to reference 32-bit libraries, by sourcing a tbbvars.sh (or csh) file from one of directories under linux/ia32 (and not em64t, which seems to be the default).

0 Kudos
Praveen
Beginner
377 Views
Are you compilinga 32-bit binary on a 64-bit system?

If so, set the environment for TBB to reference 32-bit libraries, by sourcing a tbbvars.sh (or csh) file from one of directories under linux/ia32 (and not em64t, which seems to be the default).

Thank you very much. Finally I Got it
0 Kudos
Praveen
Beginner
377 Views
Are you compilinga 32-bit binary on a 64-bit system?

If so, set the environment for TBB to reference 32-bit libraries, by sourcing a tbbvars.sh (or csh) file from one of directories under linux/ia32 (and not em64t, which seems to be the default).

been struggling with this for 4 days. I am Using Intel Pentium Dual CPU E2180 @ 2.00GHz. I thought it is EM64T. so i sourced that file in the EM64t Directory.

Does the above processor belong to EM64t category?? If it belonged to that category then why did the above mentioned problem occur??


0 Kudos
Alexey-Kukanov
Employee
377 Views
Quoting - Praveen
I am Using Intel Pentium Dual CPU E2180 @ 2.00GHz. I thought it is EM64T. so i sourced that file in the EM64t Directory.

Does the above processor belong to EM64t category?? If it belonged to that category then why did the above mentioned problem occur??


The -m32 option in command line tells that the resulting binary should be 32-bit. While the processor does support Intel 64 architecture (also known as EM64T), your operation system can be 32-bit, or else the compiler is configured to build 32-bit programs.
0 Kudos
Praveen
Beginner
377 Views

The -m32 option in command line tells that the resulting binary should be 32-bit. While the processor does support Intel 64 architecture (also known as EM64T), your operation system can be 32-bit, or else the compiler is configured to build 32-bit programs.

My OS is 32 bit. And the gcc i is not configured to build it.

Thank you once again for clearing that up



0 Kudos
Reply