Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

icpx 2023 sanitizers are missing

MicPac
Beginner
525 Views

Hi,

I'm trying to use icpx with -fsanitize=address

and I've got a link error

 

the libraries libclang_rt.asan* are missing

 

With 2021.4 version, the last I used, it was working... and very useful

/opt/intel/oneapi/compiler/latest/linux/bin/icpx -DSANITIZER_ADDR_AVAILABLE -fno-omit-frame-pointer -fsanitize=address -std=c++17 -MD -MT CMakeFiles/cmTC_b4b66.dir/src.cxx.o -MF CMakeFiles/cmTC_b4b66.dir/src.cxx.o.d -o CMakeFiles/cmTC_b4b66.dir/src.cxx.o -c /workspaces/snle3g-ipt/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_b4b66
/opt/cmake-3.24.3-linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b4b66.dir/link.txt --verbose=1
/opt/intel/oneapi/compiler/latest/linux/bin/icpx -fno-omit-frame-pointer -fsanitize=address CMakeFiles/cmTC_b4b66.dir/src.cxx.o -o cmTC_b4b66
/usr/bin/ld: cannot find /opt/intel/oneapi/compiler/2023.0.0/linux/lib/clang/16.0.0/lib/linux/libclang_rt.asan_static-x86_64.a: No such file or directory
/usr/bin/ld: cannot find /opt/intel/oneapi/compiler/2023.0.0/linux/lib/clang/16.0.0/lib/linux/libclang_rt.asan-x86_64.a: No such file or directory
/usr/bin/ld: cannot find /opt/intel/oneapi/compiler/2023.0.0/linux/lib/clang/16.0.0/lib/linux/libclang_rt.asan_cxx-x86_64.a: No such file or directory

 

Do you plan to add the sanitizers to icpx again ?

 

best regards,

Mic

0 Kudos
1 Solution
MicPac
Beginner
451 Views

Hi,

Thank you for your reply

 

yes, it works with 2023.2

best regards,

Mic

View solution in original post

0 Kudos
3 Replies
SeshaP_Intel
Moderator
480 Views

Hi,


Thank you for posting in Intel Communities.


Could you please try the latest oneAPI 2023.2 version and let us know the results?

If the issue still persists, please provide the following details you were using so that we can investigate the issue at our end.

1. Source code with detailed steps you have followed

2. Operating system details 


Thanks and Regards,

Pendyala Sesha Srinivas


0 Kudos
MicPac
Beginner
452 Views

Hi,

Thank you for your reply

 

yes, it works with 2023.2

best regards,

Mic

0 Kudos
SeshaP_Intel
Moderator
444 Views

Hi,


Thanks for the confirmation. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel


Thanks and Regards,

Pendyala Sesha Srinivas


0 Kudos
Reply