sqfmi / Watchy

Watchy - An Open Source E-Ink Smartwatch
http://www.sqfmi.com
MIT License
1.85k stars 322 forks source link

Version 1.4.1 of Basic example doesn't build on Arduino IDE 2 #170

Closed EchedelleLR closed 2 years ago

EchedelleLR commented 2 years ago

Before proceeding, I am a noob here and not a C/C++ programmer/developer.

WARNING: library Rtc_Pcf8563 claims to run on avr architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s).
In file included from /home/echedey/Arduino/libraries/Watchy/src/WatchyRTC.h:4,
                 from /home/echedey/Arduino/libraries/Watchy/src/Watchy.h:14,
                 from /home/echedey/Projects/Independent/Arduino/Basic/Basic.ino:1:
/home/echedey/Arduino/libraries/Watchy/src/config.h:19:6: warning: #warning Hardware revision is not defined at the project level. Using hard-coded value [-Wcpp]
     #warning Hardware revision is not defined at the project level. Using hard-coded value
      ^~~~~~~
In file included from /home/echedey/Arduino/libraries/Watchy/src/WatchyRTC.h:4,
                 from /home/echedey/Arduino/libraries/Watchy/src/WatchyRTC.cpp:1:
/home/echedey/Arduino/libraries/Watchy/src/config.h:19:6: warning: #warning Hardware revision is not defined at the project level. Using hard-coded value [-Wcpp]
     #warning Hardware revision is not defined at the project level. Using hard-coded value
      ^~~~~~~
In file included from /home/echedey/Arduino/libraries/Watchy/src/BLE.h:13,
                 from /home/echedey/Arduino/libraries/Watchy/src/BLE.cpp:1:
/home/echedey/Arduino/libraries/Watchy/src/config.h:19:6: warning: #warning Hardware revision is not defined at the project level. Using hard-coded value [-Wcpp]
     #warning Hardware revision is not defined at the project level. Using hard-coded value
      ^~~~~~~
In file included from /home/echedey/Arduino/libraries/Watchy/src/WatchyRTC.h:4,
                 from /home/echedey/Arduino/libraries/Watchy/src/Watchy.h:14,
                 from /home/echedey/Arduino/libraries/Watchy/src/Watchy.cpp:1:
/home/echedey/Arduino/libraries/Watchy/src/config.h:19:6: warning: #warning Hardware revision is not defined at the project level. Using hard-coded value [-Wcpp]
     #warning Hardware revision is not defined at the project level. Using hard-coded value
      ^~~~~~~
In file included from /home/echedey/Arduino/libraries/Rtc_Pcf8563/src/Rtc_Pcf8563.cpp:62:
/home/echedey/Arduino/libraries/Rtc_Pcf8563/src/Rtc_Pcf8563.cpp: In member function 'char* Rtc_Pcf8563::version()':
/home/echedey/Arduino/libraries/Rtc_Pcf8563/src/Rtc_Pcf8563.h:51:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
 #define RTCC_VERSION  "Pcf8563 v1.0.3"
                       ^~~~~~~~~~~~~~~~
/home/echedey/Arduino/libraries/Rtc_Pcf8563/src/Rtc_Pcf8563.cpp:380:10: note: in expansion of macro 'RTCC_VERSION'
   return RTCC_VERSION;
          ^~~~~~~~~~~~
WARNING: library Rtc_Pcf8563 claims to run on avr architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s).
In file included from /home/echedey/Arduino/libraries/Watchy/src/WatchyRTC.h:4,
                 from /home/echedey/Arduino/libraries/Watchy/src/Watchy.h:14,
                 from /home/echedey/Projects/Independent/Arduino/Basic/Basic.ino:1:
/home/echedey/Arduino/libraries/Watchy/src/config.h:19:6: warning: #warning Hardware revision is not defined at the project level. Using hard-coded value [-Wcpp]
     #warning Hardware revision is not defined at the project level. Using hard-coded value
      ^~~~~~~
/home/echedey/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: error in /home/echedey/.var/app/cc.arduino.IDE2/cache/arduino-sketch-BE9023AED3AE6B33364F02F209402F7D/core/core.a(Esp.cpp.o)(.eh_frame); no .eh_frame_hdr table will be created
/home/echedey/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /home/echedey/.var/app/cc.arduino.IDE2/cache/arduino-sketch-BE9023AED3AE6B33364F02F209402F7D/core/core.a(IPAddress.cpp.o): bad reloc symbol index (0x2800 >= 0x4c) for offset 0 in section `.eh_frame'
/home/echedey/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /home/echedey/.var/app/cc.arduino.IDE2/cache/arduino-sketch-BE9023AED3AE6B33364F02F209402F7D/core/core.a(IPv6Address.cpp.o): bad reloc symbol index (0x1100 >= 0x53) for offset 0 in section `.eh_frame'
/home/echedey/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /home/echedey/.var/app/cc.arduino.IDE2/cache/arduino-sketch-BE9023AED3AE6B33364F02F209402F7D/core/core.a(base64.cpp.o): bad reloc symbol index (0x787863 >= 0x2d) for offset 0x5f007645 in section `.eh_frame'
/home/echedey/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /home/echedey/.var/app/cc.arduino.IDE2/cache/arduino-sketch-BE9023AED3AE6B33364F02F209402F7D/core/core.a(cbuf.cpp.o): bad reloc symbol index (0x3600 >= 0x3e) for offset 0 in section `.eh_frame'
/home/echedey/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /home/echedey/.var/app/cc.arduino.IDE2/cache/arduino-sketch-BE9023AED3AE6B33364F02F209402F7D/core/core.a(main.cpp.o): bad reloc symbol index (0x534500 >= 0x2d) for offset 0x5f736e6f in section `.eh_frame'
/home/echedey/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /home/echedey/.var/app/cc.arduino.IDE2/cache/arduino-sketch-BE9023AED3AE6B33364F02F209402F7D/core/core.a(MD5Builder.cpp.o): bad reloc symbol index (0x1400 >= 0x3e) for offset 0 in section `.eh_frame'
/home/echedey/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: error in /home/echedey/.var/app/cc.arduino.IDE2/cache/arduino-sketch-BE9023AED3AE6B33364F02F209402F7D/core/core.a(Print.cpp.o)(.eh_frame); no .eh_frame_hdr table will be created
/home/echedey/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: error in /home/echedey/.var/app/cc.arduino.IDE2/cache/arduino-sketch-BE9023AED3AE6B33364F02F209402F7D/core/core.a(Stream.cpp.o)(.eh_frame); no .eh_frame_hdr table will be created
/home/echedey/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /home/echedey/.var/app/cc.arduino.IDE2/cache/arduino-sketch-BE9023AED3AE6B33364F02F209402F7D/core/core.a(StreamString.cpp.o): bad reloc symbol index (0x100 >= 0x4f) for offset 0 in section `.eh_frame'
/home/echedey/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: corrupt input: /home/echedey/.var/app/cc.arduino.IDE2/cache/arduino-sketch-BE9023AED3AE6B33364F02F209402F7D/core/core.a(esp32-hal-i2c-slave.c.o)
collect2: error: ld returned 1 exit status

Compilation error: exit status 1
/home/echedey/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /home/echedey/.var/app/cc.arduino.IDE2/cache/arduino-sketch-BE9023AED3AE6B33364F02F209402F7D/libraries/Watchy/bma.cpp.o:(.literal._ZN6BMA4235beginEPFthhPhtES2_PFvjEh+0x8): undefined reference to `Serial'
/home/echedey/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /home/echedey/.var/app/cc.arduino.IDE2/cache/arduino-sketch-BE9023AED3AE6B33364F02F209402F7D/libraries/WiFiManager/WiFiManager.cpp.o:(.literal._ZN11WiFiManager14handleUpdatingEv+0x14): undefined reference to `HardwareSerial::setDebugOutput(bool)'
/home/echedey/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /home/echedey/.var/app/cc.arduino.IDE2/cache/arduino-sketch-BE9023AED3AE6B33364F02F209402F7D/libraries/WiFiManager/WiFiManager.cpp.o: in function `WiFiManager::handleUpdating()':
/home/echedey/Arduino/libraries/WiFiManager/WiFiManager.cpp:3749: undefined reference to `HardwareSerial::setDebugOutput(bool)'
/home/echedey/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /home/echedey/.var/app/cc.arduino.IDE2/cache/arduino-sketch-BE9023AED3AE6B33364F02F209402F7D/libraries/GxEPD2/GxEPD2_EPD.cpp.o:(.literal._ZN10GxEPD2_EPD4initEjbtb+0x8): undefined reference to `HardwareSerial::begin(unsigned long, unsigned int, signed char, signed char, bool, unsigned long, unsigned char)'
/home/echedey/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /home/echedey/.var/app/cc.arduino.IDE2/cache/arduino-sketch-BE9023AED3AE6B33364F02F209402F7D/libraries/GxEPD2/GxEPD2_EPD.cpp.o: in function `GxEPD2_EPD::init(unsigned int, bool, unsigned short, bool)':
/home/echedey/Arduino/libraries/GxEPD2/src/GxEPD2_EPD.cpp:52: undefined reference to `HardwareSerial::begin(unsigned long, unsigned int, signed char, signed char, bool, unsigned long, unsigned char)'
collect2: error: ld returned 1 exit status

Compilation error: exit status 1
EchedelleLR commented 2 years ago

It seems to work will stable (futurely deprecated) Arduino version so this may be an Arduino issue.

Closing meanwhile.