Fix array vs pointer error in declaration of circuitpython_help_text#686
Conversation
|
@jepler We build with gcc 7.3.1 from https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads ( We need the |
|
Thanks, I see that failure on travis-ci now. Oddly, I don't replicate the Do you think there's any point in revising this pull request? If not, please feel free to close it up. Do you think there's any point in opening a documentation pull request? I do not find these toolchain requirements listed in the docs, even after grepping for the URLs you cited above. (some of the other |
|
For instance, a revised patch might use the Linux kernel trick for checking whether a particular argument is accepted by the compiler or not, similar to |
|
I agree we should list the toolchain requirements. That is an oversight: thanks for pointing that out. A PR to document that would be great, if you are willing, or we can just do it in a future PR of ours. I submitted a gcc bug report for the bogus LTO mismatch warning. It is now fixed in gcc, but will not show up for a while: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81440. You may also run into other issues with the older gcc, such as code size. Right now we have a few kbytes free on the non-Express builds, but we may try squeezing more stuff in later. At one time we only had a few tens or hundreds of bytes free, so the better optimization on the newer compilers was very helpful. |
Building with gcc 5.4.1 (Debian Stretch) with the unsupported
-Wno-error=lto-type-mismatch flag removed, the following diagnostic
occurs:
../../py/builtin.h:121:19: error: type of 'circuitpython_help_text' does not match original declaration [-Werror]
extern const char MICROPY_PY_BUILTINS_HELP_TEXT[];
^
../../shared-bindings/help.c:38:13: note: previously declared here
const char *circuitpython_help_text =
^
lto1: all warnings being treated as errors
lto-wrapper: fatal error: /usr/bin/arm-none-eabi-gcc returned 1 exit status
15db2ee to
002797a
Compare
|
Thanks for the pointer to the upstream bug. I've revised THIS pull request so that it only changes the declaration, and does NOT modify the compiler flags. |
tannewt
left a comment
There was a problem hiding this comment.
Thanks for the tweak! Glad to see more people building CircuitPython locally.
.. removing the need for -Wno-error=lto-type-mismatch, which is
not available in gcc 5.4.1 (debian stretch) while building the atmel-samd port.
The specific error that occurred was: