-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Compilation error with 2.5.1 release #348
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
Comments
I have only tried the release versions of the board package downloaded via the Arduino boards manager and these work OK. I avoid copies direct from the latest library development tweaks on Github as they tend to be buggy. This appears to be down to type casting of pointer types ans is likely to break other libraries. I will keep an eye on the situation and see if the problem propagates to a realese copy. |
Yes, it was more a head up as rollback the change I mentioned solve the issue currently, but this change was done on purpose, so if no one raise it will be in release, and I am not skilled to discuss why they do this change |
OK, I will leave this open for now and see if the issue migrates to the ESP8266 board package. |
Hi Bodmer, Yes it looks like 2.5.1 suffers: [Starting] Verify sketch - ESP8266-12_SofpApSetup_V3.2.ino
C:\Users\user\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'virtual int16_t TFT_eSPI::drawChar(uint16_t, int32_t, int32_t, uint8_t)': C:\Users\user\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:4262:84: error: invalid conversion from 'uint32_t {aka unsigned int}' to 'const void*' [-fpermissive]
C:\Users\user\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.1/tools/sdk/libc/xtensa-lx106-elf/include/sys/pgmspace.h:114:57: note: in definition of macro 'pgm_read_dword'
C:\Users\user\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.1/tools/sdk/libc/xtensa-lx106-elf/include/sys/pgmspace.h:85:72: error: initializing argument 1 of 'uint32_t pgm_read_dword_unaligned(const void*)' [-fpermissive] attribute((optimize("-O3"), always_inline)) static inline uint32_t pgm_read_dword_unaligned(const void *addr) {
C:\Users\user\Documents\Arduino\libraries\TFT_eSPI\Extensions/Sprite.cpp: In member function 'virtual int16_t TFT_eSprite::drawChar(uint16_t, int32_t, int32_t, uint8_t)': C:\Users\user\Documents\Arduino\libraries\TFT_eSPI\Extensions/Sprite.cpp:1682:84: error: invalid conversion from 'uint32_t {aka unsigned int}' to 'const void*' [-fpermissive]
C:\Users\user\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.1/tools/sdk/libc/xtensa-lx106-elf/include/sys/pgmspace.h:114:57: note: in definition of macro 'pgm_read_dword'
C:\Users\user\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.1/tools/sdk/libc/xtensa-lx106-elf/include/sys/pgmspace.h:85:72: error: initializing argument 1 of 'uint32_t pgm_read_dword_unaligned(const void*)' [-fpermissive] attribute((optimize("-O3"), always_inline)) static inline uint32_t pgm_read_dword_unaligned(const void *addr) {
exit status 1 |
see #361 |
Thank you |
Sorry for the delay but I am currently travelling, so no much free time to test. I am sorry to say the sample
looks like pgm issue is still there - should I open new ticket ? or can you reopen this ticket as it is not actually solved ? |
Thanks, have updated Sprite.cpp, I forgot that one! |
thank you |
First - thank you for your great library
with latest esp8266 core GIT compilation failed with sample like
UTFT_demo.ino
, no issue on ESP32.It seems due to this recent commit :
esp8266/Arduino@885276e
It is out of my knowledge to know why they did this but may be the library need some update to handle this.
The text was updated successfully, but these errors were encountered: