Intel® oneAPI Base Toolkit
Support for the core tools and libraries within the base toolkit that are used to build and deploy high-performance data-centric applications.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
358 Discussions

oneAPI Compiler Warnings Treated As Error

MZ0xF
Beginner
543 Views

Hello, 

I am upgrading our intel compiler from the classic one(19.0) to OneAPI 2021.1.1.

OS - Win10.

IDE - Visual Studio 2019 16.8.4.

 

I am receiving the following errors:

error : unused parameter 'regionSequence' [-Werror,-Wunused-parameter].

error: argument unused during compilation: '-arch:SSE2' [-Werror,-Wunused-command-line-argument].

 

The compiler settings are:

"icl.exe /nologo /Zp16 /W3 /D_WINDOWS /D__Native /DkNativeProcessCodeCompilation=1 /Qstd=c++17 /QxSSE3 /QaxSSE4.2"

 

 

Thanks,

Max.

 

0 Kudos
4 Replies
AbhishekD_Intel
Moderator
509 Views

Hi,


Thanks for reaching out to us.

Will you please try using ICX.exe as some of the errors you have mentioned are fixed in the compiler.

Try with ICX and send us the logs so that we will get more insight into this issue.

Also please send us a small reproducer for this issue with your configurations, so that we can try it out on our end and will try to resolve this issue.


Warm Regards,

Abhishek


MZ0xF
Beginner
464 Views

ICX didn't help.

If someone encounters the issue just make new .cpp file with:


extern "C" extern inline const wchar_t* wmemchr(wchar_t const* _S, wchar_t _C, size_t _N)
{
for (; 0 < _N; ++_S, --_N)
if (*_S == _C)
return _S;
return 0;
}

extern "C" extern inline int wmemcmp(wchar_t const* _S1, wchar_t const* _S2, size_t _N)
{
for (; 0 < _N; ++_S1, ++_S2, --_N)
if (*_S1 != *_S2)
return *_S1 < *_S2 ? -1 : 1;

return 0;
}

 

and add it to your source files(compile it together).

AbhishekD_Intel
Moderator
483 Views

Hi,


Please give us an update on the provided details.


Thank You


AbhishekD_Intel
Moderator
472 Views

Hi,


We haven't heard back from you for a long time, so we are assuming that the provided details helped you to solve your issue.

We will no longer monitor this thread, please post a new thread if you have any issues.


Warm Regards,

Abhishek


Reply