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

Compilation Error for POD Type

Joymallya_C_Intel
503 Views

Hey,

I am trying to build onnxruntime (https://github.com/microsoft/onnxruntime) with Intel C++ compiler. I am getting an error (image attached) related to “static assertion” . I have also attached the source code causing it. I have found a stack overflow post which says this is bug for Intel compiler because MSVC can handle this. But the post is 3 years old. So I am expecting that there might  be something I am missing. I am using “parallel studio xe 2019.4.064”. kindly look into this and let me know.

Stack overflow post - https://stackoverflow.com/questions/35764069/static-assert-and-intel-c-compiler

https://software.intel.com/en-us/forums/intel-c-compiler/topic/610395

Thanks,

Joy

0 Kudos
2 Replies
Viet_H_Intel
Moderator
503 Views

It may not be the same issue that posted 3 years ago. What VS are you using? Can you create a pre-processed file for investigation?

 

0 Kudos
Joymallya_C_Intel
503 Views

I am using VS 15 2017. Steps to reproduce the issue :-

git clone https://github.com/microsoft/onnxruntime.git
cd onnxruntime
git submodule update –-init -–recursive
mkdir build
cd build
cmake -A x64 -G "Visual Studio 15 2017" -T "Intel C++ Compiler 19.0" ..\cmake
msbuild "onnxruntime.sln" /t:Rebuild /p:Configuration=Release /m

I think some template type is considered as POD while using MSVC but not ICC.

 

0 Kudos
Reply