Skip to content
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

internal compiler error: in type_hash_canon, at tree.c:7158 #2440

Open
staltux opened this issue May 7, 2024 · 1 comment
Open

internal compiler error: in type_hash_canon, at tree.c:7158 #2440

staltux opened this issue May 7, 2024 · 1 comment

Comments

@staltux
Copy link

staltux commented May 7, 2024

Lib version 2.34.22, installed from arduino ide

Internal error compiling with arduino-mk
Compile just fine in arduino IDE

In file included from /home/staltux/Arduino/libraries/U8g2/src/clib/mui.c:75:0:
/home/staltux/Arduino/libraries/U8g2/src/clib/mui.h:141:1: internal compiler error: in type_hash_canon, at tree.c:7158
typedef const char fds_t MUI_PROGMEM;

--edit--
a similar error ocurr with the old u8glib, but there is a workaround in the internet changing the defination of PROGMEM
the similar problem and the workaround can be seeing here
https://forum.arduino.cc/t/u8glib-h-compiling-error/578808/11

@olikraus
Copy link
Owner

sounds strange, MUI_PROGMEM should be active only with AVR:

u8g2/csrc/mui.h

Lines 109 to 113 in 3e86287

#if defined(__GNUC__) && defined(__AVR__)
# define mui_pgm_read(adr) pgm_read_byte_near(adr)
# define mui_pgm_wread(adr) pgm_read_word_near(adr)
# define MUI_PROGMEM PROGMEM
#endif

What is your target controller? AVR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants