New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coreclr build fails with error : __declspec attribute 'selectany' is not supported #9325
Comments
|
cc @janvorli |
|
@sam0302 it is a bug in the clang 5.0 compiler, it seems that they are going to fix it for 5.1 release. |
|
Thanks jan, I got a patch fix for 1st error : SELECTANY issue here: https://reviews.llvm.org/D33852 |
|
You silent the 2nd error by adding (void)__param;right before the following line src/pal/src/loader/module.cpp:1178 WARN("Call to DllMain (%p) got an unhandled exception; ignoring.\n", module->pDllMain); |
|
If this fixes the error for you, it would be great if you can submit CoreCLR PR with the fix. |
|
I tried the above changes of adding (void)__param; However this does not fix the issue... /src/pal/src/loader/module.cpp:1176:5: error: lambda capture '__param' is not used [-Werror,-Wunused-lambda-capture] |
|
@sam0302 I am sorry for misleading you. This is not a correct fix. The right way to do that is to modify the PAL_EXCEPT macro. Can you please add the (void)__param;to the PAL_EXCEPT macro definition right before the line https://github.com/dotnet/coreclr/blob/master/src/pal/inc/pal.h#L5924? The thing is that the __param can be used by the dispositionExpression, but in many cases the dispositionExpression is just a constant and so it is unused. |
I am trying to build coreclr using yocto for Raspberry pi platform. I am using the bitbake layer from https://github.com/Tragetaschen/meta-aspnet.
I am getting compilation issue as below:
also below error
2.
Please suggest what could be the issue
The text was updated successfully, but these errors were encountered: