I think that the new toolchain must have something, since this function: _gettimeofday, was not defined in the previous GNU.
So I think that some libraries must have it enabled. Is it possible to bypass the use of that GNU toolchain function, to use the custom version of such a function, so that the compiler does not generate a duplicity error?
In my case this is the error with 1.58-beta2 (with the 1.57 runs fine):
Code:
c:/users/w11pc/desktop/arduino-1.8.19 xd xd/hardware/tools/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\W11PC\AppData\Local\Temp\arduino_build_795882/..\arduino_cache_583586\core\core_bcca1fd6f87e4a2e726df32b2b3408ee.a(rtc.c.o): in function `_gettimeofday':
C:\Users\W11PC\Desktop\arduino-1.8.19 XD XD\hardware\teensy\avr\cores\teensy4/rtc.c:76: multiple definition of `_gettimeofday'; C:\Users\W11PC\AppData\Local\Temp\arduino_build_795882\sketch\00_T41_Frio_Servo1.ino.cpp.o:C:\Users\W11PC\Documents\Arduino\libraries\nmealib/nmea.h:22: first defined here
collect2.exe: error: ld returned 1 exit status
If I comment out the function in the nmea.h file, the compiler doesn't show the error with loader 1.58-beta2, but I get the error with loader 1.57
Code:
c:/arduino-1.8.19/hardware/tools/arm/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7e-m/fpu/fpv5-d16\libc.a(lib_a-gettimeofdayr.o): In function `_gettimeofday_r':
gettimeofdayr.c:(.text._gettimeofday_r+0x10): undefined reference to `_gettimeofday'
collect2.exe: error: ld returned 1 exit status