Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Pruthi__Gaurav
Beginner
114 Views

Encountering linking error with libipgo.a while compiling with Intel Compiler 12.0.5

Hi,

I encountered below error while I was trying to build my exe 'mktrack'

hidden symbol `_PGOPTI_Prof_Div_64_VP' in /home/gaurav/libs/lib64/libipgo.a(pgopti.o) is referenced by DSO

Even though the symbol is present in libipgo.a and not hidden when I checked:

bash-4.1$ nm libipgo.a | grep _PGOPTI_Prof_Div_64_VP
0000000000000ea0 T _PGOPTI_Prof_Div_64_VP

My library name is libovp20.lib and I am encountering err while linking my library with executable 'mktrack'

libovp20.so was created with following command:

gcc -o /home/gaurav/libs/lib64/libovp20.so -shared -z noexecstack -Wl,--disable-new-dtags  -L/home/gaurav/libs/lib64/ --whole-archive /home/gaurav/libs/lib64/libovp20.a -Wl,--no-whole-archive <other_libs> -lirc -lipgo


bash-4.1$ nm libovp20.so | grep _PGOPTI_Prof_Div_64_VP
0000000000597650 t _PGOPTI_Prof_Div_64_VP

 

I am encountering error while trying to execute below command:

/usr/local/packages/icc_remote/12.0.5.226/bin/icc  -o /home/gaurav/bin/mktrack -m64 -z noexecstack -Wl,--disable-new-dtags  -L/home/gaurav/libs/lib64/  -lovp20  -lrt -lresolv  -ldl -lm

 

Please help. I am stuck

 

Thanks,

-Gaurav

 

P.S.

libipgo.a placed at the location: /home/gaurav/libs/lib64/ is same as placed in /usr/local/packages/icc_remote/12.0.5.226/lib/intel64/

 

 

 

 

0 Kudos
1 Reply
Viet_H_Intel
Moderator
114 Views

ICC 12.0 version is too old and no longer supported. Please try the newer ones. 

Reply