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
3.0.3 Compilation problems #18346
Comments
ca2bf55 is the culprit commit. |
Except this is a clear bug of the compiler - the initializer is a constant expression. |
I've seen a few (ancient) compilers didn't like constant expressions. The C89 standard says it is allowed in 6.5.7 but doesn't admit it in foot note 54 in 6.4 which defines constant expressions. It doesn't appear to mandate that constant expressions are evaluated at compiler time (they can be). C99 mandates that they are evaluated at compile time. |
I think the answer to the original question is your compiler is at fault. |
I think the reason is that the compiler I'm using doesn't recognize this form of initialization |
Yes, and that's a serious deficiency of the compiler as it is just a preprocessor macro expanding to a simple constant expression |
crypto/bn/bn_dh.c:34:5: error: initializer element is not constant
crypto/bn/bn_dh.c:34:5: error: (near initialization for 'modp_1536_p[0]')
Error when compiling 3.0.3, 1.X version does not have this problem,The compiler used is the ARM cross compiler
The text was updated successfully, but these errors were encountered: