Open aentinger opened 1 year ago
That patch was inherited by https://github.com/arduino/ArduinoCore-mbed/commit/2042db15a90339714f0654416f26c6e389c71aba , which unfortunately doesn't link the underlying issue :disappointed:
I wish it was fixed, it's driving me crazy. Worst part is it's not even my code crashing the build:
In file included from C:\Users\PsychoX\.platformio\packages\framework-arduino-mbed\cores\arduino/mbed/rtos/include/rtos/Kernel.h:27,
from C:\Users\PsychoX\.platformio\packages\framework-arduino-mbed\cores\arduino/mbed/rtos/include/rtos/Mutex.h:30,
from C:\Users\PsychoX\.platformio\packages\framework-arduino-mbed\cores\arduino/mbed/drivers/usb/include/usb/internal/AsyncOp.h:21,
from C:\Users\PsychoX\.platformio\packages\framework-arduino-mbed\cores\arduino/mbed/drivers/usb/include/usb/internal/OperationList.h:22,
from C:\Users\PsychoX\.platformio\packages\framework-arduino-mbed\cores\arduino\USB\USBCDC.h:26,
from C:\Users\PsychoX\.platformio\packages\framework-arduino-mbed\cores\arduino\USB\PluggableUSBSerial.h:22,
from C:\Users\PsychoX\.platformio\packages\framework-arduino-mbed\cores\arduino\USB\USBSerial.cpp:23:
c:\users\psychox\.platformio\packages\toolchain-gccarmnoneeabi@1.90201.191206\arm-none-eabi\include\c++\9.2.1\chrono:263:38: error: macro "abs" passed 2 arguments, but takes just 1
263 | abs(duration<_Rep, _Period> __d)
| ^
In file included from C:\Users\PsychoX\.platformio\packages\framework-arduino-mbed\cores\arduino\USB\USBSerial.cpp:18:
C:\Users\PsychoX\.platformio\packages\framework-arduino-mbed\cores\arduino/Arduino.h:63: note: macro "abs" defined here
63 | #define abs(x) ((x)>0?(x):-(x))
|
void setup() {
}
void loop() {
}
Workaround:
Additional context
Additional reports