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

error: expected a declaration

dpo
Beginner
1,251 Views

Hi there,

 

My question is in two parts.

 

1. I'm compiling a mixed Fortran/C project with the Intel classic compilers 2022.3.1 on macOS. One of the header files includes the standard header /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_pthread/_pthread_types.h, but that raises the error message

 

In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h(80),
from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_types.h(27),
from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h(71),
from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h(64),
from ccutest.c(6):
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_pthread/_pthread_types.h(34): error: expected a declaration
// pthread opaque structures
^
 
The error is a bit puzzling because that line is simply a comment, and the same version of the compiler for Linux does not raise an error.
 
This is all happening on a GitHub Actions virtual machine. The error can be seen in context here: https://github.com/ralna/CUTEst/actions/runs/3451981688/jobs/5761578364#step:11:91
 
2. The second part of my question is about installing the HPC Toolkit in a GitHub Actions workflow. Above, I'm using version 2022.3.1. Locally, I use 2022.2.1 and I'm not observing that error. I wanted to download the HPC Toolkit 2022.2.1 in the Action workflow but can't find a direct download URL for macOS on the Intel website (I can only find a "Download" button that doesn't reveal a URL). In my current workflow, I am using
 
 
(which I found from the official Intel GitHub Actions example). Where can I find the URL for other versions of the HPC Toolkit?
 
Thank you in advance.
0 Kudos
8 Replies
Soumya_M_Intel
Moderator
1,213 Views

Hi dpo,


Thanks for posting your concern on the forum. As for the first query, kindly post it in one of the two below forums as they will be able to assist you better.


Intel® Fortran Compiler: https://community.intel.com/t5/Intel-Fortran-Compiler/bd-p/fortran-compiler


Intel® C++ Compiler: https://community.intel.com/t5/Intel-C-Compiler/bd-p/c-compiler


Our team focuses on support regarding the getting started queries (registration, licensing, installation, etc) for the Intel® oneAPI Toolkits, Intel® Parallel Studio XE and Intel® System Studio. Due to that, it is out of our team's scope. However, our internal team will get back to you on the above forums in a timely manner to resolve your concern.


Proceeding to the second query, kindly note that the latest version of the product is available for free download. However, access to prior versions of product toolkits are available via their paid license's repository. 

 

If you already have the license, you may refer to the below link for detailed guide on how to navigate and find the product version. 

 

Linkhttps://www.intel.com/content/www/us/en/developer/articles/troubleshooting/older-version-product.html

 

However, if you wish to purchase, you may check with our resellers as they will be able to assist you better regarding purchase related concerns. You may visit the below link to find their contact info.

 

Linkhttps://www.intel.com/content/www/us/en/developer/tools/resellers.html

 

Hope you have a nice day ahead!

 

Regards,

Soumya


0 Kudos
dpo
Beginner
1,204 Views

@Soumya_M_Intel Thank you for your reply. I'm quite confused though. The present forum looks like it is the Intel C++ compiler forum. Clicking on the link you provided takes me right back to this very forum. The top of the page indicates that I'm in

Intel Communities / Developer Software Forums / Software Development Tools / Intel® C++ Compiler

 

Thank you in advance for any clarification.

 

 

 

0 Kudos
Soumya_M_Intel
Moderator
1,194 Views

Hi dpo,


Thanks for getting back to us on the thread. I apologize for the misunderstanding caused. Yes, you are correct. It was misrouted in our internal interface. I will move your concern to the correct team. Just to avoid any further confusions, please note the thread or forum will not change on your end. The correct team will get back to you in this thread in a timely manner.


Hope you have a nice day ahead!


Regards,

Soumya


0 Kudos
PriyanshuK_Intel
Moderator
1,159 Views

Hi,


Thank you for posting on Intel Communities.


Could you please provide us with the below details to investigate more on your issue?

 1. The OS version.

 2. Sample reproducer and steps to reproduce the issue.


As to answer your second query, kindly note that the latest version of the product is available for free download. However, access to prior versions of product toolkits are available via their paid license's repository.


If you already have the license, you may refer to the below link for detailed guide on how to navigate and find the product version. 

For more information you can refer this link: https://www.intel.com/content/www/us/en/developer/articles/troubleshooting/older-version-product.html


Thanks,

Priyanshu.


0 Kudos
dpo
Beginner
1,148 Views

Hello,

 

I provided a link to a full GitHub Actions log. It contains all the details. The macOS version is 12.6.1. Here is the line where the error manifests itself: https://github.com/ralna/CUTEst/actions/runs/3451981688/jobs/5761578364#step:11:91.

 

It results from a header file eventually including _pthread_types.h.

 

In the meantime, I was able to verify that the error does not occur with version 2022.2.0 of the compilers.

 

0 Kudos
PriyanshuK_Intel
Moderator
1,066 Views

Hi,


We are working on your issue , Meanwhile could you please provide the steps to reproduce your issue?


Thanks,

Priyanshu.


0 Kudos
PriyanshuK_Intel
Moderator
1,004 Views

Hi,


We haven't heard back from you. Could you please provide an update on your issue?


Thanks & Regards

Priyanshu.



0 Kudos
PriyanshuK_Intel
Moderator
926 Views

Hi,


We have not heard back from you. This thread will no longer be monitored by Intel. If you need further assistance, Please post a new question.


Thanks, 

Priyanshu.


0 Kudos
Reply