olikraus / u8g2

U8glib library for monochrome displays, version 2
Other
4.91k stars 1.02k forks source link

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

Open staltux opened 1 month ago

staltux commented 1 month ago

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 commented 1 month ago

sounds strange, MUI_PROGMEM should be active only with AVR: https://github.com/olikraus/u8g2/blob/3e86287a55e819bc8be66a5c2674f07e5e140ff1/csrc/mui.h#L109-L113

What is your target controller? AVR?