arduino / nicla-sense-me-fw

Arduino Nicla Sense ME resources (libraries, bootloader, host pc utilities)
GNU Affero General Public License v3.0
47 stars 27 forks source link

BHY2 example sketch compilation broken under Windows #143

Closed aliphys closed 2 months ago

aliphys commented 2 months ago

Issue

Cannot compile any example sketches for the Nicla Sense ME under Windows. A series of undefined references are given together leading to an eventual exit 1 status error

Windows 11 ``` PS C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2> arduino-cli compile -b arduino:mbed_nicla:nicla_sense .\examples\Standalone -u -p COM9 --library .\ C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\sketch\Standalone.ino.cpp.o: In function `Sensor::toString()': C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/Sensor.h:53: undefined reference to `arduino::String::String(char const*)' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\sketch\Standalone.ino.cpp.o: In function `Sensor::toString()': C:\Users\Ali Jahangiri\AppData\Local\Arduino15\packages\arduino\hardware\mbed_nicla\4.1.6\cores\arduino/api/String.h:238: undefined reference to `arduino::String::String(char const*)' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\sketch\Standalone.ino.cpp.o: In function `Sensor::toString()': C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/Sensor.h:55: undefined reference to `arduino::String::String(float, unsigned char)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/Sensor.h:55: undefined reference to `arduino::operator+(arduino::StringSumHelper const&, arduino::String const&)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/Sensor.h:55: undefined reference to `arduino::operator+(arduino::StringSumHelper const&, char const*)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/Sensor.h:55: undefined reference to `arduino::String::String(arduino::String const&)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/Sensor.h:55: undefined reference to `arduino::String::~String()' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\sketch\Standalone.ino.cpp.o: In function `Sensor::toString()': C:\Users\Ali Jahangiri\AppData\Local\Arduino15\packages\arduino\hardware\mbed_nicla\4.1.6\cores\arduino/api/String.h:234: undefined reference to `arduino::String::~String()' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\sketch\Standalone.ino.cpp.o: In function `DataXYZ::toString()': C:\Users\Ali Jahangiri\AppData\Local\Arduino15\packages\arduino\hardware\mbed_nicla\4.1.6\cores\arduino/api/String.h:238: undefined reference to `arduino::String::String(char const*)' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\sketch\Standalone.ino.cpp.o: In function `DataXYZ::toString()': C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:14: undefined reference to `arduino::String::String(int, unsigned char)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:14: undefined reference to `arduino::operator+(arduino::StringSumHelper const&, arduino::String const&)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:15: undefined reference to `arduino::operator+(arduino::StringSumHelper const&, char const*)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:15: undefined reference to `arduino::String::String(int, unsigned char)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:15: undefined reference to `arduino::operator+(arduino::StringSumHelper const&, arduino::String const&)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:16: undefined reference to `arduino::operator+(arduino::StringSumHelper const&, char const*)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:16: undefined reference to `arduino::String::String(int, unsigned char)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:16: undefined reference to `arduino::operator+(arduino::StringSumHelper const&, arduino::String const&)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:16: undefined reference to `arduino::operator+(arduino::StringSumHelper const&, char const*)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:16: undefined reference to `arduino::String::String(arduino::String const&)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:16: undefined reference to `arduino::String::~String()' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:15: undefined reference to `arduino::String::~String()' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:14: undefined reference to `arduino::String::~String()' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\sketch\Standalone.ino.cpp.o: In function `DataXYZ::toString()': C:\Users\Ali Jahangiri\AppData\Local\Arduino15\packages\arduino\hardware\mbed_nicla\4.1.6\cores\arduino/api/String.h:234: undefined reference to `arduino::String::~String()' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\sketch\Standalone.ino.cpp.o: In function `DataQuaternion::toString()': C:\Users\Ali Jahangiri\AppData\Local\Arduino15\packages\arduino\hardware\mbed_nicla\4.1.6\cores\arduino/api/String.h:238: undefined reference to `arduino::String::String(char const*)' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\sketch\Standalone.ino.cpp.o: In function `DataQuaternion::toString()': C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:40: undefined reference to `arduino::String::String(float, unsigned char)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:40: undefined reference to `arduino::operator+(arduino::StringSumHelper const&, arduino::String const&)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:41: undefined reference to `arduino::operator+(arduino::StringSumHelper const&, char const*)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:41: undefined reference to `arduino::String::String(float, unsigned char)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:41: undefined reference to `arduino::operator+(arduino::StringSumHelper const&, arduino::String const&)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:42: undefined reference to `arduino::operator+(arduino::StringSumHelper const&, char const*)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:42: undefined reference to `arduino::String::String(float, unsigned char)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:42: undefined reference to `arduino::operator+(arduino::StringSumHelper const&, arduino::String const&)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:43: undefined reference to `arduino::operator+(arduino::StringSumHelper const&, char const*)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:43: undefined reference to `arduino::String::String(float, unsigned char)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:43: undefined reference to `arduino::operator+(arduino::StringSumHelper const&, arduino::String const&)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:44: undefined reference to `arduino::operator+(arduino::StringSumHelper const&, char const*)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:44: undefined reference to `arduino::String::String(float, unsigned char)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:44: undefined reference to `arduino::operator+(arduino::StringSumHelper const&, arduino::String const&)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:45: undefined reference to `arduino::operator+(arduino::StringSumHelper const&, char const*)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:45: undefined reference to `arduino::String::String(arduino::String const&)' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:44: undefined reference to `arduino::String::~String()' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:43: undefined reference to `arduino::String::~String()' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:42: undefined reference to `arduino::String::~String()' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:41: undefined reference to `arduino::String::~String()' C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/sensors/DataParser.h:40: undefined reference to `arduino::String::~String()' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\sketch\Standalone.ino.cpp.o: In function `DataQuaternion::toString()': C:\Users\Ali Jahangiri\AppData\Local\Arduino15\packages\arduino\hardware\mbed_nicla\4.1.6\cores\arduino/api/String.h:234: undefined reference to `arduino::String::~String()' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\Arduino_BHY2\BoschSensortec.cpp.o: In function `BoschSensortec::configureSensor(SensorConfigurationPacket&)': C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\src/BoschSensortec.cpp:112: undefined reference to `arduino::Print::println(char const*)' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\BLEDevice.cpp.o: In function `BLEDevice::address() const': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src/BLEDevice.cpp:82: undefined reference to `arduino::String::String(char const*)' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\BLEDevice.cpp.o: In function `BLEDevice::localName() const': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src/BLEDevice.cpp:130: undefined reference to `arduino::String::String(char const*)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src/BLEDevice.cpp:137: undefined reference to `arduino::String::reserve(unsigned int)' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\BLEDevice.cpp.o: In function `BLEDevice::localName() const': C:\Users\Ali Jahangiri\AppData\Local\Arduino15\packages\arduino\hardware\mbed_nicla\4.1.6\cores\arduino/api/String.h:125: undefined reference to `arduino::String::concat(char)' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\BLEDevice.cpp.o: In function `BLEDevice::advertisedServiceUuid(int) const': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src/BLEDevice.cpp:158: undefined reference to `arduino::String::String(char const*)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src/BLEDevice.cpp:176: undefined reference to `arduino::String::operator=(char const*)' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\local\BLELocalDevice.cpp.o: In function `BLELocalDevice::begin()': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\local/BLELocalDevice.cpp:119: undefined reference to `delay' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\local\BLELocalDevice.cpp.o: In function `BLELocalDevice::address() const': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\local/BLELocalDevice.cpp:270: undefined reference to `arduino::String::String(char const*)' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\local\BLELocalDevice.cpp.o: In function `BLELocalDevice::scanForName(arduino::String, bool)': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\local/BLELocalDevice.cpp:372: undefined reference to `arduino::String::String(arduino::String const&)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\local/BLELocalDevice.cpp:372: undefined reference to `arduino::String::~String()' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\local\BLELocalDevice.cpp.o: In function `BLELocalDevice::scanForUuid(arduino::String, bool)': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\local/BLELocalDevice.cpp:377: undefined reference to `arduino::String::String(arduino::String const&)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\local/BLELocalDevice.cpp:377: undefined reference to `arduino::String::~String()' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\local\BLELocalDevice.cpp.o: In function `BLELocalDevice::scanForAddress(arduino::String, bool)': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\local/BLELocalDevice.cpp:382: undefined reference to `arduino::String::String(arduino::String const&)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\local/BLELocalDevice.cpp:382: undefined reference to `arduino::String::~String()' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\remote\BLERemoteAttribute.cpp.o: In function `BLERemoteAttribute::~BLERemoteAttribute()': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\remote/BLERemoteAttribute.cpp:30: undefined reference to `arduino::String::~String()' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\remote\BLERemoteAttribute.cpp.o: In function `BLERemoteAttribute::BLERemoteAttribute(unsigned char const*, unsigned char)': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\remote/BLERemoteAttribute.cpp:26: undefined reference to `arduino::String::String(char const*)' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\remote\BLERemoteService.cpp.o: In function `BLERemoteService::BLERemoteService(unsigned char const*, unsigned char, unsigned short, unsigned short)': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\remote/BLERemoteService.cpp:25: undefined reference to `arduino::String::String(char const*)' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\remote\BLERemoteService.cpp.o: In function `BLERemoteService::~BLERemoteService()': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\remote/BLERemoteService.cpp:29: undefined reference to `arduino::String::~String()' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\utility\ATT.cpp.o: In function `ATTClass::connect(unsigned char, unsigned char*)': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/ATT.cpp:124: undefined reference to `millis' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/ATT.cpp:124: undefined reference to `millis' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\utility\ATT.cpp.o: In function `ATTClass::disconnect(unsigned char, unsigned char*)': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/ATT.cpp:150: undefined reference to `millis' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/ATT.cpp:150: undefined reference to `millis' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\utility\ATT.cpp.o: In function `ATTClass::sendReq(unsigned short, void*, int, unsigned char*)': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/ATT.cpp:1776: undefined reference to `millis' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\utility\ATT.cpp.o:C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/ATT.cpp:1776: more undefined references to `millis' follow C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\utility\GAP.cpp.o: In function `GAPClass::scanForName(arduino::String, bool)': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/GAP.cpp:111: undefined reference to `arduino::String::operator=(arduino::String const&)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/GAP.cpp:112: undefined reference to `arduino::String::operator=(char const*)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/GAP.cpp:113: undefined reference to `arduino::String::operator=(char const*)' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\utility\GAP.cpp.o: In function `GAPClass::scanForUuid(arduino::String, bool)': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/GAP.cpp:120: undefined reference to `arduino::String::operator=(char const*)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/GAP.cpp:121: undefined reference to `arduino::String::operator=(arduino::String const&)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/GAP.cpp:122: undefined reference to `arduino::String::operator=(char const*)' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\utility\GAP.cpp.o: In function `GAPClass::scanForAddress(arduino::String, bool)': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/GAP.cpp:129: undefined reference to `arduino::String::operator=(char const*)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/GAP.cpp:130: undefined reference to `arduino::String::operator=(char const*)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/GAP.cpp:131: undefined reference to `arduino::String::operator=(arduino::String const&)' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\utility\GAP.cpp.o: In function `GAPClass::matchesScanFilter(BLEDevice const&)': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/GAP.cpp:258: undefined reference to `arduino::String::equalsIgnoreCase(arduino::String const&) const' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/GAP.cpp:258: undefined reference to `arduino::String::~String()' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\utility\GAP.cpp.o: In function `GAPClass::matchesScanFilter(BLEDevice const&)': C:\Users\Ali Jahangiri\AppData\Local\Arduino15\packages\arduino\hardware\mbed_nicla\4.1.6\cores\arduino/api/String.h:154: undefined reference to `arduino::String::equals(arduino::String const&) const' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\utility\GAP.cpp.o: In function `GAPClass::matchesScanFilter(BLEDevice const&)': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/GAP.cpp:260: undefined reference to `arduino::String::~String()' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/GAP.cpp:262: undefined reference to `arduino::String::equalsIgnoreCase(arduino::String const&) const' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/GAP.cpp:262: undefined reference to `arduino::String::~String()' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\utility\GAP.cpp.o: In function `GAPClass::GAPClass()': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/GAP.cpp:36: undefined reference to `arduino::String::String(char const*)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/GAP.cpp:36: undefined reference to `arduino::String::String(char const*)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/GAP.cpp:36: undefined reference to `arduino::String::String(char const*)' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\utility\GAP.cpp.o: In function `GAPClass::~GAPClass()': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/GAP.cpp:40: undefined reference to `arduino::String::~String()' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/GAP.cpp:40: undefined reference to `arduino::String::~String()' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/GAP.cpp:40: undefined reference to `arduino::String::~String()' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\utility\HCI.cpp.o: In function `HCIClass::poll(unsigned long)': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/HCI.cpp:144: undefined reference to `arduino::Print::println(char const*)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/HCI.cpp:189: undefined reference to `arduino::Print::println(unsigned char, int)' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\utility\HCI.cpp.o: In function `HCIClass::leAddResolvingAddress(unsigned char, unsigned char*, unsigned char*, unsigned char*)': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/HCI.cpp:485: undefined reference to `arduino::Print::print(char const*)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/HCI.cpp:487: undefined reference to `arduino::Print::print(char const*)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/HCI.cpp:489: undefined reference to `arduino::Print::print(char const*)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/HCI.cpp:491: undefined reference to `arduino::Print::print(char const*)' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\utility\HCI.cpp.o: In function `HCIClass::sendCommand(unsigned short, unsigned char, void*)': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/HCI.cpp:700: undefined reference to `millis' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/HCI.cpp:700: undefined reference to `millis' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\utility\HCI.cpp.o: In function `HCIClass::leReadPeerResolvableAddress(unsigned char, unsigned char*, unsigned char*)': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/HCI.cpp:515: undefined reference to `arduino::Print::print(char const*)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/HCI.cpp:516: undefined reference to `arduino::Print::println(int, int)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/HCI.cpp:522: undefined reference to `arduino::Print::print(char const*)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/HCI.cpp:523: undefined reference to `arduino::Print::println(unsigned char, int)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/HCI.cpp:524: undefined reference to `arduino::Print::print(char const*)' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\utility\HCI.cpp.o: In function `HCIClass::tryResolveAddress(unsigned char*, unsigned char*)': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/HCI.cpp:565: undefined reference to `arduino::Print::println(char const*)' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\utility\HCI.cpp.o: In function `HCIClass::dumpPkt(char const*, unsigned char, unsigned char*)': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/HCI.cpp:1467: undefined reference to `arduino::Print::print(char const*)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/HCI.cpp:1473: undefined reference to `arduino::Print::print(char const*)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/HCI.cpp:1476: undefined reference to `arduino::Print::print(unsigned char, int)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/HCI.cpp:1479: undefined reference to `arduino::Print::println()' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\utility\btct.cpp.o: In function `BluetoothCryptoToolbox::printBytes(unsigned char*, unsigned char)': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/btct.cpp:34: undefined reference to `arduino::Print::print(char const*)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/btct.cpp:36: undefined reference to `arduino::Print::print(unsigned char, int)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/btct.cpp:38: undefined reference to `arduino::Print::print(char)' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\ArduinoBLE\utility\btct.cpp.o: In function `BluetoothCryptoToolbox::AES_128(unsigned char*, unsigned char*, unsigned char*)': C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/btct.cpp:267: undefined reference to `arduino::Print::print(char const*)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/btct.cpp:268: undefined reference to `arduino::Print::println(int, int)' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/btct.cpp:270: undefined reference to `delay' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/btct.cpp:273: undefined reference to `delay' C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE\src\utility/btct.cpp:276: undefined reference to `arduino::Print::println(char const*)' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\Wire\Wire.cpp.o: In function `arduino::MbedI2C::receiveThd()': C:\Users\Ali Jahangiri\AppData\Local\Arduino15\packages\arduino\hardware\mbed_nicla\4.1.6\libraries\Wire/Wire.cpp:178: undefined reference to `yield' C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\A92DAE7597793E3DEA4926DFE63DBE12\libraries\Wire\Wire.cpp.o:(.rodata._ZTVN7arduino7MbedI2CE+0xc): undefined reference to `arduino::Print::write(unsigned char const*, unsigned int)' C:\Users\Ali Jahangiri\AppData\Local\Arduino15\packages\arduino\hardware\mbed_nicla\4.1.6\variants\NICLA/libs/libmbed.a(mbed_boot_gcc_arm.o): In function `__wrap_main': mbed_boot_gcc_arm.c:(.text.__wrap_main+0x0): undefined reference to `main' collect2.exe: error: ld returned 1 exit status Multiple libraries were found for "Arduino_BHY2.h" Used: C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2 Not used: C:\Users\Ali Jahangiri\Documents\Arduino\libraries\Arduino_BHY2 Used library Version Path Arduino_BHY2 1.0.7 C:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2 ArduinoBLE 1.3.7 C:\Users\Ali Jahangiri\Documents\Arduino\libraries\ArduinoBLE Wire C:\Users\Ali Jahangiri\AppData\Local\Arduino15\packages\arduino\hardware\mbed_nicla\4.1.6\libraries\Wire Nicla_Sense_System 1.0 C:\Users\Ali Jahangiri\AppData\Local\Arduino15\packages\arduino\hardware\mbed_nicla\4.1.6\libraries\Nicla_System Used platform Version Path arduino:mbed_nicla 4.1.6 C:\Users\Ali Jahangiri\AppData\Local\Arduino15\packages\arduino\hardware\mbed_nicla\4.1.6 Error during build: exit status 1 ```

The same error occurs when compiling examples in the IDE, using the latest version of the released libraries.

image

Note that the examples compile, under WSL.

image

WSL in Windows 11 (Ubuntu) ``` user@ALIS-DELL:/mnt/c/GitHub/Arduino/nicla-sense-me-fw/Arduino_BHY2$ arduino-cli compile -b arduino:mbed_nicla:nicla_sense ./examples/Standalone --library ./ Sketch uses 312416 bytes (59%) of program storage space. Maximum is 527616 bytes. Global variables use 38616 bytes (60%) of dynamic memory, leaving 25672 bytes for local variables. Maximum is 64288 bytes. Used library Version Path Arduino_BHY2 1.0.7 /mnt/c/GitHub/Arduino/nicla-sense-me-fw/Arduino_BHY2 ArduinoBLE 1.3.7 /home/user/Arduino/libraries/ArduinoBLE Wire /home/user/.arduino15/packages/arduino/hardware/mbed_nicla/4.1.5/libraries/Wire Nicla_Sense_System 1.0 /home/user/.arduino15/packages/arduino/hardware/mbed_nicla/4.1.5/libraries/Nicla_System Used platform Version Path arduino:mbed_nicla 4.1.5 /home/user/.arduino15/packages/arduino/hardware/mbed_nicla/4.1.5 ```
aliphys commented 2 months ago

Closing this issue since this was possibly a glitch in the (staging) release of 4.1.6 of the mbed core. All sketch compilation for the Nicla Sense ME was affected (on my Windows 11 machine) see https://github.com/arduino/ArduinoCore-mbed/issues/943