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

error build with arduino ide #61

Open
cybortd opened this issue Jun 18, 2024 · 0 comments
Open

error build with arduino ide #61

cybortd opened this issue Jun 18, 2024 · 0 comments

Comments

@cybortd
Copy link

cybortd commented Jun 18, 2024

hi, i got a problem with compile code in arduino ide
here 's my log :c:\users\dang quang vinh\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\new:168:46: note: initializing argument 2 of 'void* operator new(std::size_t, void*)'
inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
~~~~~~^~~
In file included from c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/lib/core/TLVReader.h:31,
from c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/lib/core/TLVBackingStore.h:32,
from c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/lib/core/TLV.h:32,
from c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/app/MessageDef/InvokeRequestMessage.h:23,
from c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/app/CommandSender.h:30,
from c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/app/DeviceProxy.h:29,
from c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/esp_matter_core.h:17,
from c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/esp_matter_attribute.h:18,
from c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/esp_matter.h:22,
from c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/Matter.h:11,
from C:\Users\Dang Quang VInh\AppData\Local\Temp.arduinoIDE-unsaved2024518-11668-17gq2we.gby2\Light\Light.ino:1:
c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/lib/core/Optional.h:97:17: error: binding reference of type 'chip::Optionalchip::ReliableMessageProtocolConfig&' to 'const chip::Optionalchip::ReliableMessageProtocolConfig' discards qualifiers
return this;
^~~~
c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/lib/core/Optional.h: In instantiation of 'void chip::Optional::SetValue(const T&) const [with T = chip::app::AttributeAccessToken]':
c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/app/WriteHandler.h:103:99: required from here
c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/lib/core/Optional.h:136:19: error: assignment of member 'chip::Optionalchip::app::AttributeAccessToken::mHasValue' in read-only object
mHasValue = true;
~~~~~~~~~~^~~~~~
c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/lib/core/Optional.h:137:22: error: invalid conversion from 'const void
' to 'void*' [-fpermissive]
new (&mValue.mData) T(value);
~~~~~~~^~~~~
In file included from c:\users\dang quang vinh\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\bits\stl_construct.h:59,
from c:\users\dang quang vinh\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\bits\stl_tempbuf.h:60,
from c:\users\dang quang vinh\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\bits\stl_algo.h:62,
from c:\users\dang quang vinh\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\algorithm:62,
from C:\Users\Dang Quang VInh\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\cores\esp32/Arduino.h:172,
from C:\Users\Dang Quang VInh\AppData\Local\Temp\arduino\sketches\7953C0B8B4BABB203336987CB930E3A7\sketch\Light.ino.cpp:1:
c:\users\dang quang vinh\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\new:168:46: note: initializing argument 2 of 'void* operator new(std::size_t, void*)'
inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
~~~~~~^~~
In file included from c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/esp_matter_core.h:21,
from c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/esp_matter_attribute.h:18,
from c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/esp_matter.h:22,
from c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/Matter.h:11,
from C:\Users\Dang Quang VInh\AppData\Local\Temp.arduinoIDE-unsaved2024518-11668-17gq2we.gby2\Light\Light.ino:1:
c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/esp_matter_attribute_utils.h: In instantiation of 'nullable::nullable(T) [with T = short unsigned int]':
c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/esp_matter_feature.h:43:88: required from here
c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/esp_matter_attribute_utils.h:181:62: error: 'IsNullValue' is not a member of 'chip::app::NumericAttributeTraits<short unsigned int, false>'
if (chip::app::NumericAttributeTraits::IsNullValue(value)) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/esp_matter_attribute_utils.h: In instantiation of 'nullable::nullable(T) [with T = unsigned char]':
c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/esp_matter_feature.h:43:88: required from here
c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/esp_matter_attribute_utils.h:181:62: error: 'IsNullValue' is not a member of 'chip::app::NumericAttributeTraits<unsigned char, false>'
c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/esp_matter_attribute_utils.h: In instantiation of 'nullable::nullable(T) [with T = short int]':
c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/esp_matter_cluster.h:351:106: required from here
c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/esp_matter_attribute_utils.h:181:62: error: 'IsNullValue' is not a member of 'chip::app::NumericAttributeTraits<short int, false>'
c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/esp_matter_attribute_utils.h: In instantiation of 'void nullable::operator=(T) [with T = unsigned char]':
C:\Users\Dang Quang VInh\AppData\Local\Temp.arduinoIDE-unsaved2024518-11668-17gq2we.gby2\Light\Light.ino:73:50: required from here
c:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter\src/esp_matter_attribute_utils.h:215:62: error: 'IsNullValue' is not a member of 'chip::app::NumericAttributeTraits<unsigned char, false>'
if (chip::app::NumericAttributeTraits::IsNullValue(value)) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
Multiple libraries were found for "Matter.h"
Used: C:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter
Not used: C:\Users\Dang Quang VInh\Documents\Arduino\libraries\esp32-arduino-matter
Using library ESP32 Arduino Matter at version 1.0.0-beta.7 in folder: C:\Users\Dang Quang VInh\Documents\Arduino\libraries\ESP32_Arduino_Matter
exit status 1

Compilation error: exit status 1
how can i fix it
tks

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

1 participant