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

AVR GCC fails to compile the library #28

Open
zezic opened this issue Mar 3, 2021 · 2 comments
Open

AVR GCC fails to compile the library #28

zezic opened this issue Mar 3, 2021 · 2 comments

Comments

@zezic
Copy link

zezic commented Mar 3, 2021

When trying to build the project using this lib with arduino-makefile I got this:

/usr/share/arduino/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=105  -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino//cores/arduino -I/home/zezic/Work/Toolchanger/toolchanger/Arduino_Boards/sparkfun/avr/variants/promicro    -I/home/zezic/Work/Toolchanger/toolchanger/libs-arduino/SPI/src    -I/home/zezic/Work/Toolchanger/toolchanger/libs-arduino/Wire/src    -I/home/zezic/Work/Toolchanger/toolchanger/libs/U8glib_Arduino/src -Wall -ffunction-sections -fdata-sections -Os -DUSB_VID=0x1b4f -DUSB_PID=0x9206 -fpermissive -fno-exceptions -std=gnu++11 -fno-threadsafe-statics -flto main.cpp -o build-promicro-16MHzatmega32U4/main.cpp.o
In file included from /home/zezic/Work/Toolchanger/toolchanger/libs/U8glib_Arduino/src/U8glib.h:42:0,
                 from main.cpp:4:
/home/zezic/Work/Toolchanger/toolchanger/libs/U8glib_Arduino/src/clib/u8g.h:123:25: internal compiler error: in type_hash_canon, at tree.c:6953
 typedef uint8_t PROGMEM u8g_pgm_uint8_t;
                         ^

/home/zezic/Work/Toolchanger/toolchanger/libs/U8glib_Arduino/src/clib/u8g.h:123:25: internal compiler error: Segmentation fault
avr-g++: internal compiler error: Segmentation fault (program cc1plus)

It compiles if I do the next change, but I've not checked the functionality yet:

-typedef uint8_t PROGMEM u8g_pgm_uint8_t;
+typedef uint8_t u8g_pgm_uint8_t;
@olikraus
Copy link
Owner

olikraus commented Mar 7, 2021

U8glib is not supported any more. Did you try u8g2?

@zezic
Copy link
Author

zezic commented Mar 7, 2021

Thank you for pointing me in the right direction! Would be nice to have a notice about new version to inform other repository visitors.
It seems like u8g2 works fine for me except the only one thing – I don't have yield function implemented in my Arduino core library. Probably, I'll have to add a header with empty implementation in it to be able to compile the lib without modifications.

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