Community
cancel
Showing results for 
Search instead for 
Did you mean: 
mikeitexpert
New Contributor I
451 Views

Updated VS2019 now getting using is_always_equal _CXX17_DEPRECATE_OLD_ALLOCATOR_MEMBERS = true_type

I just recently updated VS2019 and started getting the below error as I compile my code using the below line:

icl -I"C:/Program Files (x86)/IntelSWTools/sw_dev_tools/compilers_and_libraries_2020.2.254/windows/compiler/include"  -I/../boost_1_73_0 -I./some-internal-include-path -Qstd=c++17 -fast -Qipo -Qipo -Qopenmp-simd -Qparallel  -Qopt-dynamic-align -fp:fast=2   -Qdiag-error-limit:3                 -O3 -MD -arch:sse2 -Qopenmp -Fo:DEBUG/obj/my_program.obj -c my_program.cpp
Intel(R) C++ Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 19.1.2.254 Build 20200623
Copyright (C) 1985-2020 Intel Corporation.  All rights reserved.

my_program.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include\xmemory(782): error: attribute does not apply to any entity
      using is_always_equal _CXX17_DEPRECATE_OLD_ALLOCATOR_MEMBERS = true_type;
                            ^

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include\xmemory(844): error: attribute does not apply to any entity
      using is_always_equal _CXX17_DEPRECATE_OLD_ALLOCATOR_MEMBERS = true_type;

 

Any clue is much appreciate it.

 

0 Kudos
14 Replies
GouthamK_Intel
Moderator
396 Views

Hi Mike,

>>"I just recently updated VS2019 and started getting the below error as I compile my code using the below line:"

Could you please let us know the latest version of VS2019 which you have currently updated to? Can you please confirm whether you could successfully compile and run the code before you updated the VS2019?

If yes, provide the below details so that we can investigate further.

Prev. VS2019 Version (in which code was working):

Updated VS2019 Version:

If possible, share a small reproducer along with steps to reproduce the issue.

Have a Good day.


Thanks & Regards

Goutham


mikeitexpert
New Contributor I
369 Views

I don't remember the previous version however, MSVC\14.28.29910 is the current version.

unfortunately I can't share the code ... I try to reproduce the error.

Regards,

GouthamK_Intel
Moderator
316 Views

Hi Mike,

Could you please let us know the Intel Product version(Intel Parallel Studio XE / Intel oneAPI Toolkits) which you are currently using?

Also, if possible, please share minimal reproducer code.


Regards

Goutham


mikeitexpert
New Contributor I
308 Views

Product / Compiler I am using comes as part of Intel System Studio 2019.

Intel(R) C++ Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 19.1.2.254 Build 20200623

Here is a C++ snippet to reproduce the error ...

 

 

#include <cstdio>
#include <iostream>

int main(){
	std::cout << "Hello I am compiled by C++17 STD. How is that going?"  << std::endl;
}

 

 

 

Here is the compiler error message ... 

c:\temp>icl /Qstd:c++17 test_cpp17.cpp
Intel(R) C++ Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 19.1.2.254 Build 20200623
Copyright (C) 1985-2020 Intel Corporation.  All rights reserved.

test_cpp17.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include\xmemory(782): error: attribute does not apply to any entity
      using is_always_equal _CXX17_DEPRECATE_OLD_ALLOCATOR_MEMBERS = true_type;
                            ^

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include\xmemory(844): error: attribute does not apply to any entity
      using is_always_equal _CXX17_DEPRECATE_OLD_ALLOCATOR_MEMBERS = true_type;
                            ^

compilation aborted for test_cpp17.cpp (code 2)

c:\temp>

 

Look forward to hearing from. 

Regards

 

GouthamK_Intel
Moderator
280 Views

Hi Mike,

>>"Intel(R) C++ Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 19.1.2.254 Build 20200623"

We can see that you are currently using an older version of the Intel compiler, which is not compatible with the latest Visual Studio version. Either you can downgrade the Visual Studio to the supported version or upgrade the Intel compiler.

Please find the details of Intel® Compilers Compatibility with Microsoft Visual Studio* and Xcode*.

https://software.intel.com/content/www/us/en/develop/articles/intel-compilers-compatibility-with-mic...

We recommend you upgrade to Intel oneAPI to get the latest Intel compilers along with new additional features.

We can see that you are an Intel® System Studio User, so you can install Intel® oneAPI Base & IoT Toolkit, which is equivalent to Intel System Studio. Please find the below link for more detail regarding the same.

https://software.intel.com/content/www/us/en/develop/tools/oneapi/commercial-base-iot.html#linklist_...

Please let us know if this helps. Have a Good day.


Thanks & Regards

Goutham


mikeitexpert
New Contributor I
261 Views

Do you really believe Intel C++ Compiler 19.2 cannot handle the C++17?

GouthamK_Intel
Moderator
211 Views

Hi Mike,

>>"Do you really believe Intel C++ Compiler 19.2 cannot handle the C++17?"

C++ 17 should be supported by Intel C++ Compiler 19.2.


Regards

Goutham


mikeitexpert
New Contributor I
202 Views

Then I would guess there is no point doing an upgrade. 

How about you tell which version/build of VS2019 I need to downgrade to? (although I am pretty sure a blackbelt most likely has a better answer.)

Regards 

GouthamK_Intel
Moderator
161 Views

Hi Mike,

Could you please confirm which compiler version you are currently using? Also, let us know which build of VS 2019 you are currently using.

Please find the details of Intel® Compilers Compatibility with Microsoft Visual Studio below.

https://software.intel.com/content/www/us/en/develop/articles/intel-compilers-compatibility-with-mic...


Regards

Goutham


Viet_H_Intel
Moderator
124 Views

Hi Mike,


As Goutham mentioned, you are using the compiler ( v19.1.2.254 Build 20200623), which isn't supported on MSVC(14.28.29910, update Mar-2021). Please use supported MSVC versions as Goutham pointed out and let us know if the issue still occurs.


Thanks,


mikeitexpert
New Contributor I
111 Views

I updated to MSVS 16.9 and the issue still exists ...

 

mikeitexpert_0-1619540961476.png

 

Viet_H_Intel
Moderator
109 Views

VS2019 v19.6.2 released on Mar-16-2021. Can you try ones that mentioned Intel® Compilers compatibility with Microsoft Visual Studio* and...


VS 2019 v16.8.2 or VS 2019 v16.9.0 Preview 3.


Thanks,


Viet_H_Intel
Moderator
37 Views

Hi Mike,


Can we close this thread as resolved?


Thanks,


Viet_H_Intel
Moderator
17 Views

Let's close this thread.If you require additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only.

Thanks,


Reply