oneAPI Registration, Download, Licensing and Installation
Support for Getting Started questions related to download, Installation and licensing for Intel oneAPI Toolkits and software development tools.
1698 Discussions

Failed to compile after upgrading visual studio 2022 to latest release 17.7.0

PC-1
Beginner
3,831 Views

Hello there,

I just upgrade my Visual Studio to latest release 2022, 17.7.0. Then I found I cannot compiler my projects that use Intel oneAPI base toolkit. 

I got a warning and an error:

warning:

C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.37.32822\modules\std.ixx(34,15): : warning : 'std' is a reserved name for a module [-Wreserved-module-identifier]
2>export module std;

error:

 C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.37.32822\modules\std.ixx(5,1): : error : missing 'module' declaration at end of global module fragment introduced here
2>module;

 

My operating system is win11 and Intel oneAPI base toolkit version is 2022.2. (latest). (I selected integrating oneAPI base toolkit to VS2022 during installation)

Could anyone help me with the issue.

Really thanks!

 

Best

 

PC

 

0 Kudos
1 Solution
RahulC_Intel
Employee
3,771 Views

Thank you for sharing the details. As we can see that you are using Visual Studio 2022 17.7.0 version, which is not compatible with Intel® oneAPI Base Toolkit.


Kindly refer to the link: https://www.intel.com/content/www/us/en/developer/articles/reference-implementation/intel-compilers-compatibility-with-microsoft-visual-studio-and-xcode.html


View solution in original post

0 Kudos
7 Replies
RahulC_Intel
Employee
3,815 Views

Hi Pengju, please share the below information with us:


  • OS build on which you are installing the software 
  • Is the installer an online or an offline package? 
  • Version of Microsoft Visual Studio installed along with it's build version 
  • Other versions of Intel® Parallel Studio XE or Intel® oneAPI already installed on the system 
  • Screenshots of the error screen 
  • Installation Log files
  • The default path for a log file for a oneAPI installation is: C:\Program Files (x86)\Intel\oneAPI\logs 
  • The default path for a log file for a Parallel Studio XE installation is: %temp%\pset_tmp_PSXE<version>_<username> 


We await for your response.


0 Kudos
PC-1
Beginner
3,772 Views

Hello, tj0077,

 

1. my OS Windows 11 Pro,  22H2, OS build: 22621.1992

2. I use online installer for both Visual Studio 2022 professional and Intel oneAPI base toolkit 2023.2.

3. Microsoft Visual Studio 2022 professional, version 17.7.0, build number: 17.7.34003.232
4. I only installed oneABI base toolkit on my system, the version is the latest version (2023.2) downloaded from Intel website. 

5. I'm on a business trip and currently cannot provide the screenshots. Anyway, no error messages showed during installation process. However, when I open a VS project (which previously can be built successfully) and build (x64), the output window shows the warning and the error :

warning:

C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.37.32822\modules\std.ixx(34,15): : warning : 'std' is a reserved name for a module [-Wreserved-module-identifier]
2>export module std;
error:

 C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.37.32822\modules\std.ixx(5,1): : error : missing 'module' declaration at end of global module fragment introduced here
2>module;
6. please find the attachment

Thanks for your help!

Best

PC

0 Kudos
RahulC_Intel
Employee
3,772 Views

Thank you for sharing the details. As we can see that you are using Visual Studio 2022 17.7.0 version, which is not compatible with Intel® oneAPI Base Toolkit.


Kindly refer to the link: https://www.intel.com/content/www/us/en/developer/articles/reference-implementation/intel-compilers-compatibility-with-microsoft-visual-studio-and-xcode.html


0 Kudos
PC-1
Beginner
3,747 Views

Thanks tj0077, I can now see it.

May I further ask a question? Do you know how to install VS2022 previous release, e.g. 17.6.4 which is compatible with oneAPI. Each time I use VS online installer and it automatically updates to latest version (17.7.0).

 

Best,

 

PC

0 Kudos
RahulC_Intel
Employee
3,706 Views

We would recommend you to contact Microsoft technical support team for Visual Studio related queries. They are the right team to equipped your query in a better way. 


Microsoft Support Link: https://visualstudio.microsoft.com/vs/support/


0 Kudos
PC-1
Beginner
3,686 Views

Thanks, really appreciate your help!

0 Kudos
RahulC_Intel
Employee
3,671 Views

Pengju, thank you for your confirmation. We are glad that the issue has been resolved.


If you have any further queries, please post a new question as this thread will no longer be monitored by Intel®.


0 Kudos
Reply