OpenRoberta / openroberta-lab

The programming environment »Open Roberta Lab« by Fraunhofer IAIS enables children and adolescents to program robots. A variety of different programming blocks are provided to program motors and sensors of the robot. Open Roberta Lab uses an approach of graphical programming so that beginners can seamlessly start coding. As a cloud-based application, the platform can be used without prior installation of specific software but runs in any popular browser, independent of operating system and device.
Apache License 2.0
124 stars 120 forks source link

Calliope list of strings comparison compiler error #966

Closed bjost2s closed 1 year ago

bjost2s commented 3 years ago

The following program cannot be compiled: image

rbudde commented 3 years ago

the complete error message :-). Note, that other types (bool, number) work fine. Strings (instead of list) work, too. The ++ operator is defined for ManagedString

1/3] Building the NEPOprog. In file included from /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/GattClient.h:22, from /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/BLE.h:23, from 
/opt/ora-cc-rsc/RobotMbed/libs2017//microbit-dal/inc/bluetooth/MicroBitBLEManager.h:42, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/MicroBit.h:69, from 
/tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:3: /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/ServiceDiscovery.h: In member function 'virtual ble_error_t 
ServiceDiscovery::reset()': /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/ServiceDiscovery.h:148:77: warning: implicitly-declared 'UUID& UUID::operator=(const UUID&)' is deprecated 
[-Wdeprecated-copy] 148 | matchingServiceUUID = UUID::ShortUUIDBytes_t(BLE_UUID_UNKNOWN); | ^ In file included from /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/GattService.h:20, 
from /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/GattServer.h:21, from /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/BLE.h:22, from 
/opt/ora-cc-rsc/RobotMbed/libs2017//microbit-dal/inc/bluetooth/MicroBitBLEManager.h:42, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/MicroBit.h:69, from 
/tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:3: /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/UUID.h:164:5: note: because 'UUID' has user-provided 'UUID::UUID(const 
UUID&)' 164 | UUID(const UUID &source) { | ^~~~ In file included from /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/GattClient.h:22, from 
/opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/BLE.h:23, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit-dal/inc/bluetooth/MicroBitBLEManager.h:42, from 
/opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/MicroBit.h:69, from /tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:3: 
/opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/ServiceDiscovery.h:150:77: warning: implicitly-declared 'UUID& UUID::operator=(const UUID&)' is deprecated [-Wdeprecated-copy] 150 | 
matchingCharacteristicUUID = UUID::ShortUUIDBytes_t(BLE_UUID_UNKNOWN); | ^ In file included from /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/GattService.h:20, from 
/opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/GattServer.h:21, from /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/BLE.h:22, from 
/opt/ora-cc-rsc/RobotMbed/libs2017//microbit-dal/inc/bluetooth/MicroBitBLEManager.h:42, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/MicroBit.h:69, from 
/tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:3: /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/UUID.h:164:5: note: because 'UUID' has user-provided 'UUID::UUID(const 
UUID&)' 164 | UUID(const UUID &source) { | ^~~~ In file included from /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/list:63, from 
/opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/NEPODefs.h:70, from /tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:4: 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_list.h: In instantiation of 'bool std::operator==(const std::__cxx11::list<_Tp, _Alloc>&, 
const std::__cxx11::list<_Tp, _Alloc>&) [with _Tp = ManagedString; _Alloc = std::allocator]': /tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:20:19: required from 
here /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_list.h:2004:56: error: no match for 'operator==' (operand types are 'const 
ManagedString' and 'const ManagedString') 2004 | while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) | ~~~~~~^~~~~~~~ In file included from 
/opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/MicroBit.h:43, from /tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:3: 
/opt/ora-cc-rsc/RobotMbed/libs2017//microbit-dal/inc/types/ManagedString.h:264:10: note: candidate: 'bool ManagedString::operator==(const ManagedString&)' 264 | bool operator== 
(const ManagedString& s); | ^~~~~~~~ /opt/ora-cc-rsc/RobotMbed/libs2017//microbit-dal/inc/types/ManagedString.h:264:10: note: passing 'const ManagedString*' as 'this' argument 
discards qualifiers In file included from /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/utility:70, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/array:38, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit-dal/inc/core/MicroBitCompat.h:36, from 
/opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/MicroBit.h:40, from /tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:3: 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_pair.h:448:5: note: candidate: 'template constexpr bool std::operator==(const 
std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)' 448 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_pair.h:448:5: note: template argument deduction/substitution failed: In file included from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/list:63, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/NEPODefs.h:70, from 
/tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:4: /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_list.h:2004:56: note: 
'const ManagedString' is not derived from 'const std::pair<_T1, _T2>' 2004 | while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) | ~~~~~~^~~~~~~~ In file included from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_algobase.h:67, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/char_traits.h:39, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/string:40, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/stdexcept:39, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/array:39, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit-dal/inc/core/MicroBitCompat.h:36, from 
/opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/MicroBit.h:40, from /tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:3: 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_iterator.h:325:5: note: candidate: 'template bool std::operator==(const 
std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)' 325 | operator==(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_iterator.h:325:5: note: template argument deduction/substitution failed: In file included 
from /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/list:63, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/NEPODefs.h:70, from 
/tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:4: /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_list.h:2004:56: note: 
'const ManagedString' is not derived from 'const std::reverse_iterator<_Iterator>' 2004 | while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) | ~~~~~~^~~~~~~~ In file 
included from /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_algobase.h:67, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/char_traits.h:39, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/string:40, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/stdexcept:39, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/array:39, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit-dal/inc/core/MicroBitCompat.h:36, from 
/opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/MicroBit.h:40, from /tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:3: 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_iterator.h:363:5: note: candidate: 'template bool std::operator==(const 
std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)' 363 | operator==(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_iterator.h:363:5: note: template argument deduction/substitution failed: In file included 
from /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/list:63, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/NEPODefs.h:70, from 
/tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:4: /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_list.h:2004:56: note: 
'const ManagedString' is not derived from 'const std::reverse_iterator<_Iterator>' 2004 | while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) | ~~~~~~^~~~~~~~ In file 
included from /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_algobase.h:67, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/char_traits.h:39, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/string:40, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/stdexcept:39, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/array:39, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit-dal/inc/core/MicroBitCompat.h:36, from 
/opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/MicroBit.h:40, from /tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:3: 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_iterator.h:1139:5: note: candidate: 'template bool std::operator==(const 
std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)' 1139 | operator==(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_iterator.h:1139:5: note: template argument deduction/substitution failed: In file included 
from /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/list:63, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/NEPODefs.h:70, from 
/tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:4: /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_list.h:2004:56: note: 
'const ManagedString' is not derived from 'const std::move_iterator<_IteratorL>' 2004 | while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) | ~~~~~~^~~~~~~~ In file 
included from /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_algobase.h:67, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/char_traits.h:39, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/string:40, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/stdexcept:39, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/array:39, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit-dal/inc/core/MicroBitCompat.h:36, from 
/opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/MicroBit.h:40, from /tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:3: 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_iterator.h:1145:5: note: candidate: 'template bool std::operator==(const 
std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorL>&)' 1145 | operator==(const move_iterator<_Iterator>& __x, | ^~~~~~~~ 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_iterator.h:1145:5: note: template argument deduction/substitution failed: In file included 
from /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/list:63, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/NEPODefs.h:70, from 
/tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:4: /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_list.h:2004:56: note: 
'const ManagedString' is not derived from 'const std::move_iterator<_IteratorL>' 2004 | while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) | ~~~~~~^~~~~~~~ In file 
included from /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/char_traits.h:40, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/string:40, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/stdexcept:39, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/array:39, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit-dal/inc/core/MicroBitCompat.h:36, from 
/opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/MicroBit.h:40, from /tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:3: 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/postypes.h:222:5: note: candidate: 'template bool std::operator==(const std::fpos<_StateT>&, 
const std::fpos<_StateT>&)' 222 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) | ^~~~~~~~ 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/postypes.h:222:5: note: template argument deduction/substitution failed: In file included from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/list:63, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/NEPODefs.h:70, from 
/tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:4: /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_list.h:2004:56: note: 
'const ManagedString' is not derived from 'const std::fpos<_StateT>' 2004 | while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) | ~~~~~~^~~~~~~~ In file included from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/string:41, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/stdexcept:39, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/array:39, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit-dal/inc/core/MicroBitCompat.h:36, from 
/opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/MicroBit.h:40, from /tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:3: 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/allocator.h:168:5: note: candidate: 'template bool std::operator==(const 
std::allocator<_CharT>&, const std::allocator<_T2>&)' 168 | operator==(const allocator<_T1>&, const allocator<_T2>&) | ^~~~~~~~ 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/allocator.h:168:5: note: template argument deduction/substitution failed: In file included 
from /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/list:63, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/NEPODefs.h:70, from 
/tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:4: /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_list.h:2004:56: note: 
'const ManagedString' is not derived from 'const std::allocator<_CharT>' 2004 | while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) | ~~~~~~^~~~~~~~ In file included from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/string:55, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/stdexcept:39, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/array:39, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit-dal/inc/core/MicroBitCompat.h:36, from 
/opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/MicroBit.h:40, from /tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:3: 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/basic_string.h:6141:5: note: candidate: 'template bool std::operator==(const 
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)' 6141 | operator==(const basic_string<_CharT, _Traits, _Alloc>& 
__lhs, | ^~~~~~~~ /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/basic_string.h:6141:5: note: template argument deduction/substitution 
failed: In file included from /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/list:63, from 
/opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/NEPODefs.h:70, from /tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:4: 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_list.h:2004:56: note: 'const ManagedString' is not derived from 'const 
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>' 2004 | while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) | ~~~~~~^~~~~~~~ In file included from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/string:55, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/stdexcept:39, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/array:39, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit-dal/inc/core/MicroBitCompat.h:36, from 
/opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/MicroBit.h:40, from /tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:3: 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/basic_string.h:6149:5: note: candidate: 'template typename __gnu_cxx::__enable_if::__value, 
bool>::__type std::operator==(const std::__cxx11::basic_string<_CharT>&, const std::__cxx11::basic_string<_CharT>&)' 6149 | operator==(const basic_string<_CharT>& __lhs, | 
^~~~~~~~ /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/basic_string.h:6149:5: note: template argument deduction/substitution failed: In file 
included from /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/list:63, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/NEPODefs.h:70, from 
/tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:4: /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_list.h:2004:56: note: 
'const ManagedString' is not derived from 'const std::__cxx11::basic_string<_CharT>' 2004 | while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) | ~~~~~~^~~~~~~~ In file 
included from /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/string:55, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/stdexcept:39, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/array:39, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit-dal/inc/core/MicroBitCompat.h:36, from 
/opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/MicroBit.h:40, from /tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:3: 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/basic_string.h:6163:5: note: candidate: 'template bool std::operator==(const _CharT*, const 
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)' 6163 | operator==(const _CharT* __lhs, | ^~~~~~~~ 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/basic_string.h:6163:5: note: template argument deduction/substitution failed: In file included 
from /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/list:63, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/NEPODefs.h:70, from 
/tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:4: /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_list.h:2004:56: note: 
mismatched types 'const _CharT*' and 'ManagedString' 2004 | while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) | ~~~~~~^~~~~~~~ In file included from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/string:55, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/stdexcept:39, from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/array:39, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit-dal/inc/core/MicroBitCompat.h:36, from 
/opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/MicroBit.h:40, from /tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:3: 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/basic_string.h:6175:5: note: candidate: 'template bool std::operator==(const 
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)' 6175 | operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/basic_string.h:6175:5: note: template argument deduction/substitution failed: In file included 
from /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/list:63, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/NEPODefs.h:70, from 
/tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:4: /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_list.h:2004:56: note: 
'const ManagedString' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>' 2004 | while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) | 
~~~~~~^~~~~~~~ In file included from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit-dal/inc/core/MicroBitCompat.h:36, from 
/opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/MicroBit.h:40, from /tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:3: 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/array:252:5: note: candidate: 'template bool std::operator==(const std::array<_Tp, _Nm>&, const 
std::array<_Tp, _Nm>&)' 252 | operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) | ^~~~~~~~ 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/array:252:5: note: template argument deduction/substitution failed: In file included from 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/list:63, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/NEPODefs.h:70, from 
/tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:4: /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_list.h:2004:56: note: 
'const ManagedString' is not derived from 'const std::array<_Tp, _Nm>' 2004 | while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) | ~~~~~~^~~~~~~~ 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_list.h:1991:5: note: candidate: 'template bool std::operator==(const 
std::__cxx11::list<_Tp, _Alloc>&, const std::__cxx11::list<_Tp, _Alloc>&)' 1991 | operator==(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) | ^~~~~~~~ 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_list.h:1991:5: note: template argument deduction/substitution failed: 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_list.h:2004:56: note: 'const ManagedString' is not derived from 'const 
std::__cxx11::list<_Tp, _Alloc>' 2004 | while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) | ~~~~~~^~~~~~~~ In file included from 
/opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/FunctionPointerWithContext.h:21, from /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/CallChainOfFunctionPointersWithContext.h:20, from 
/opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/Gap.h:25, from /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/BLE.h:21, from 
/opt/ora-cc-rsc/RobotMbed/libs2017//microbit-dal/inc/bluetooth/MicroBitBLEManager.h:42, from /opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/MicroBit.h:69, from 
/tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:3: /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/SafeBool.h:102:6: note: candidate: 'template void operator==(const 
SafeBool&, const SafeBool&)' 102 | void operator==(const SafeBool& lhs,const SafeBool& rhs) { | ^~~~~~~~ /opt/ora-cc-rsc/RobotMbed/libs2017//ble/ble/SafeBool.h:102:6: note: 
template argument deduction/substitution failed: In file included from /opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/list:63, from 
/opt/ora-cc-rsc/RobotMbed/libs2017//microbit/inc/NEPODefs.h:70, from /tmp/openrobertaTmp/-Ao08-WSr-o1/NEPOprog/source/NEPOprog.cpp:4: 
/opt/compiler/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/bits/stl_list.h:2004:56: note: 'const ManagedString' is not derived from 'const SafeBool' 2004 | 
while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) | ~~~~~~^~~~~~~~ Error in building !!!
PamoCurtis commented 1 year ago

Tested on dev server:

Program: Calliope_Issue966.xml.txt Error Message: Error_Msg_Calliope_Mini_2016_Issue966.txt

RaghuvirShirodkar commented 1 year ago

Ah it seems I missed updating the NEPODefs header file for Calliope Mini 2016 version. A pull request has been raised for the same in ora-cc-rsc repository.

PamoCurtis commented 1 year ago

Tested the pull request locally and works as intended now!

RaghuvirShirodkar commented 1 year ago

Tested successfully on test server with Calliope Mini 2016.