LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Compiling error with intel cpp compiler and open mp (http://www.linuxquestions.org/questions/linux-newbie-8/compiling-error-with-intel-cpp-compiler-and-open-mp-632016/)

lucifer1987 03-31-2008 04:56 PM

Compiling error with intel cpp compiler and open mp
 
counter.c(8): (col. 1) remark: OpenMP DEFINED REGION WAS PARALLELIZED.
ld: skipping incompatible /usr/lib/libm.so when searching for -lm
ld: skipping incompatible /usr/lib/libm.a when searching for -lm
ld: skipping incompatible /usr/bin/../lib/libm.so when searching for -lm
ld: skipping incompatible /usr/bin/../lib/libm.a when searching for -lm
ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
ld: skipping incompatible /usr/bin/../lib/libpthread.so when searching for -lpthread
ld: skipping incompatible /usr/bin/../lib/libpthread.a when searching for -lpthread
ld: skipping incompatible /usr/lib/libc.so when searching for -lc
ld: skipping incompatible /usr/lib/libc.a when searching for -lc
ld: skipping incompatible /usr/bin/../lib/libc.so when searching for -lc
ld: skipping incompatible /usr/bin/../lib/libc.a when searching for -lc
ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl
ld: skipping incompatible /usr/lib/libdl.a when searching for -ldl
ld: skipping incompatible /usr/bin/../lib/libdl.so when searching for -ldl
ld: skipping incompatible /usr/bin/../lib/libdl.a when searching for -ldl
ld: skipping incompatible /usr/lib/libc.so when searching for -lc
ld: skipping incompatible /usr/lib/libc.a when searching for -lc
ld: skipping incompatible /usr/bin/../lib/libc.so when searching for -lc
ld: skipping incompatible /usr/bin/../lib/libc.a when searching for -lc
ld: i386:x86-64 architecture of input file `/usr/lib/crt1.o' is incompatible with i386 output
ld: i386:x86-64 architecture of input file `/usr/lib/crti.o' is incompatible with i386 output
ld: i386:x86-64 architecture of input file `/usr/lib/crtn.o' is incompatible with i386 output

these are errors when i am compiling my source file . i can not find any solution please help me i am compiling an openmp source file a have project an i have to solve this problem till thursday.
i have an ubuntu 7.10 and intel cpp compiler 10.1.012

Tischbein 03-31-2008 06:33 PM

ld: i386:x86-64 architecture of input file `/usr/lib/crtn.o' is incompatible with i386

Ok, so we have a mix of 32 bit and 64 bit binaries. Can you tell us a little more about your project, e.g. can you confirm that you trying to build a 32 bit binary on a 64bit machine? Have you used that compiler before? If you write a hello world OpenMP program, does it work?

Good luck, Entenbein.

lucifer1987 04-01-2008 11:49 AM

Quote:

Originally Posted by Tischbein (Post 3106458)
ld: i386:x86-64 architecture of input file `/usr/lib/crtn.o' is incompatible with i386

Ok, so we have a mix of 32 bit and 64 bit binaries. Can you tell us a little more about your project, e.g. can you confirm that you trying to build a 32 bit binary on a 64bit machine? Have you used that compiler before? If you write a hello world OpenMP program, does it work?

Good luck, Entenbein.

Actually it is an homework and we will multiple two matrices with openmp.
i tried hello world and it gave me the error. this is the first time i am using intel compiler and linux.
Thank you


All times are GMT -5. The time now is 02:45 AM.