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

Compile error. #1

Open
britus opened this issue Mar 10, 2022 · 0 comments
Open

Compile error. #1

britus opened this issue Mar 10, 2022 · 0 comments

Comments

@britus
Copy link

britus commented Mar 10, 2022

Hi there are compile errors:
The source has never been compiled successfully.
Used boost: boost_1_53_0, boost_1_64_0, boost_1_68_0

g++ -c -o DLL430_v3/src/TI/DLL430/EEM/CycleCounter.o DLL430_v3/src/TI/DLL430/EEM/CycleCounter.cpp -fPIC -Os -I./Bios/include -I./HalObjectDb/include -I./DLL430_v3/include -I./DLL430_v3/include/DLL430 -I./DLL430_v3/src -I./DLL430_v3/src/TI/DLL430 -I/projects/bsl430/libMSP430/../boost_1_51_0 -DUNIX -DNDEBUG
In file included from DLL430_v3/src/TI/DLL430/EEM/CycleCounter.h:45,
from DLL430_v3/src/TI/DLL430/EEM/CycleCounter.cpp:39:
./DLL430_v3/src/TI/DLL430/TemplateDeviceDb/MSP430Defaults.h: In constructor ‘TI::DLL430::TemplateDeviceDb::FunctionMappingX::FunctionMappingX()’:
./DLL430_v3/src/TI/DLL430/TemplateDeviceDb/MSP430Defaults.h:131:41: error: ambiguous overload for ‘operator=’ (operand types are ‘TI::DLL430::TemplateDeviceDb::FunctionMappingImpl::FunctionMapping’ {aka ‘std::map<long unsigned int, short unsigned int>’} and ‘boost::assign_detail::generic_list<std::pair<hal_id, hal_id> >’)
131 | (ID_WaitForStorage,ID_WaitForStorageX);
| ^
In file included from /usr/include/c++/9/map:61,
from ./DLL430_v3/include/DLL430/PortInfo.h:46,
from ./DLL430_v3/src/TI/DLL430/IoChannel.h:43,
from ./DLL430_v3/src/TI/DLL430/DeviceInfo.h:48,
from DLL430_v3/src/TI/DLL430/EEM/CycleCounter.cpp:38:
/usr/include/c++/9/bits/stl_map.h:317:7: note: candidate: ‘std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(const std::map<_Key, _Tp, _Compare, _Alloc>&) [with _Key = long unsigned int; _Tp = short unsigned int; _Compare = std::less; _Alloc = std::allocator<std::pair<const long unsigned int, short unsigned int> >]’
317 | operator=(const map&) = default;
| ^~~~~~~~
/usr/include/c++/9/bits/stl_map.h:321:7: note: candidate: ‘std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(std::map<_Key, _Tp, _Compare, _Alloc>&&) [with _Key = long unsigned int; _Tp = short unsigned int; _Compare = std::less; _Alloc = std::allocator<std::pair<const long unsigned int, short unsigned int> >]’
321 | operator=(map&&) = default;
| ^~~~~~~~
/usr/include/c++/9/bits/stl_map.h:335:7: note: candidate: ‘std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(std::initializer_list<std::pair<const _Key, _Tp> >) [with _Key = long unsigned int; _Tp = short unsigned int; _Compare = std::less; _Alloc = std::allocator<std::pair<const long unsigned int, short unsigned int> >]’
335 | operator=(initializer_list<value_type> __l)
| ^~~~~~~~
In file included from DLL430_v3/src/TI/DLL430/EEM/CycleCounter.h:45,
from DLL430_v3/src/TI/DLL430/EEM/CycleCounter.cpp:39:
./DLL430_v3/src/TI/DLL430/TemplateDeviceDb/MSP430Defaults.h: In constructor ‘TI::DLL430::TemplateDeviceDb::FunctionMappingXv2::FunctionMappingXv2()’:
./DLL430_v3/src/TI/DLL430/TemplateDeviceDb/MSP430Defaults.h:155:41: error: ambiguous overload for ‘operator=’ (operand types are ‘TI::DLL430::TemplateDeviceDb::FunctionMappingImpl::FunctionMapping’ {aka ‘std::map<long unsigned int, short unsigned int>’} and ‘boost::assign_detail::generic_list<std::pair<hal_id, hal_id> >’)
155 | (ID_WaitForStorage,ID_WaitForStorageX);
| ^
In file included from /usr/include/c++/9/map:61,
from ./DLL430_v3/include/DLL430/PortInfo.h:46,
from ./DLL430_v3/src/TI/DLL430/IoChannel.h:43,
from ./DLL430_v3/src/TI/DLL430/DeviceInfo.h:48,
from DLL430_v3/src/TI/DLL430/EEM/CycleCounter.cpp:38:
/usr/include/c++/9/bits/stl_map.h:317:7: note: candidate: ‘std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(const std::map<_Key, _Tp, _Compare, _Alloc>&) [with _Key = long unsigned int; _Tp = short unsigned int; _Compare = std::less; _Alloc = std::allocator<std::pair<const long unsigned int, short unsigned int> >]’
317 | operator=(const map&) = default;
| ^~~~~~~~
/usr/include/c++/9/bits/stl_map.h:321:7: note: candidate: ‘std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(std::map<_Key, _Tp, _Compare, _Alloc>&&) [with _Key = long unsigned int; _Tp = short unsigned int; _Compare = std::less; _Alloc = std::allocator<std::pair<const long unsigned int, short unsigned int> >]’
321 | operator=(map&&) = default;
| ^~~~~~~~
/usr/include/c++/9/bits/stl_map.h:335:7: note: candidate: ‘std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(std::initializer_list<std::pair<const _Key, _Tp> >) [with _Key = long unsigned int; _Tp = short unsigned int; _Compare = std::less; _Alloc = std::allocator<std::pair<const long unsigned int, short unsigned int> >]’
335 | operator=(initializer_list<value_type> __l)
| ^~~~~~~~
In file included from DLL430_v3/src/TI/DLL430/EEM/CycleCounter.h:45,
from DLL430_v3/src/TI/DLL430/EEM/CycleCounter.cpp:39:
./DLL430_v3/src/TI/DLL430/TemplateDeviceDb/MSP430Defaults.h: In constructor ‘TI::DLL430::TemplateDeviceDb::FunctionMappingXv2FRAM::FunctionMappingXv2FRAM()’:
./DLL430_v3/src/TI/DLL430/TemplateDeviceDb/MSP430Defaults.h:180:41: error: ambiguous overload for ‘operator=’ (operand types are ‘TI::DLL430::TemplateDeviceDb::FunctionMappingImpl::FunctionMapping’ {aka ‘std::map<long unsigned int, short unsigned int>’} and ‘boost::assign_detail::generic_list<std::pair<hal_id, hal_id> >’)
180 | (ID_WaitForStorage,ID_WaitForStorageX);
| ^
In file included from /usr/include/c++/9/map:61,
from ./DLL430_v3/include/DLL430/PortInfo.h:46,
from ./DLL430_v3/src/TI/DLL430/IoChannel.h:43,
from ./DLL430_v3/src/TI/DLL430/DeviceInfo.h:48,
from DLL430_v3/src/TI/DLL430/EEM/CycleCounter.cpp:38:
/usr/include/c++/9/bits/stl_map.h:317:7: note: candidate: ‘std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(const std::map<_Key, _Tp, _Compare, _Alloc>&) [with _Key = long unsigned int; _Tp = short unsigned int; _Compare = std::less; _Alloc = std::allocator<std::pair<const long unsigned int, short unsigned int> >]’
317 | operator=(const map&) = default;
| ^~~~~~~~
/usr/include/c++/9/bits/stl_map.h:321:7: note: candidate: ‘std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(std::map<_Key, _Tp, _Compare, _Alloc>&&) [with _Key = long unsigned int; _Tp = short unsigned int; _Compare = std::less; _Alloc = std::allocator<std::pair<const long unsigned int, short unsigned int> >]’
321 | operator=(map&&) = default;
| ^~~~~~~~
/usr/include/c++/9/bits/stl_map.h:335:7: note: candidate: ‘std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(std::initializer_list<std::pair<const _Key, _Tp> >) [with _Key = long unsigned int; _Tp = short unsigned int; _Compare = std::less; _Alloc = std::allocator<std::pair<const long unsigned int, short unsigned int> >]’
335 | operator=(initializer_list<value_type> __l)
| ^~~~~~~~
make: *** [Makefile:65: DLL430_v3/src/TI/DLL430/EEM/CycleCounter.o] Fehler 1

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