eosio.cdt
eosio.cdt copied to clipboard
cdt1.8.1 compile issue
error encountered when compile the contracts with cdt 1.8.1, any idea?
/usr/local/Cellar/eosio.cdt/1.8.1/opt/eosio.cdt/bin/../include/boost/pfr/detail/core17_generated.hpp:38:9: error: type 'swaps_row' decomposes into 2 elements, but only 1 names were provided auto& [a] = val; ^ /usr/local/Cellar/eosio.cdt/1.8.1/opt/eosio.cdt/bin/../include/boost/pfr/detail/core17_generated.hpp:1032:30: note: in instantiation of function template specialization 'boost::pfr::detail::tie_as_tuple<swaps_row>' requested here return boost::pfr::detail::tie_as_tuple(val, fields_count_tag{});
Hi crazybits,
Some more info would be helpful.
- This looks like MacOS. Is it 10.14, 10.15, or 11.x (BigSur) ?
- This looks like a Boost error, could you determine the Boost version? Should be able to do this by looking at the output of
cat /usr/local/include/boost/version.hpp
? - Are are these the eosio.contracts in https://github.com/EOSIO/eosio.contracts ?
Hi crazybits,
Some more info would be helpful.
- This looks like MacOS. Is it 10.14, 10.15, or 11.x (BigSur) ?
- This looks like a Boost error, could you determine the Boost version? Should be able to do this by looking at the output of
cat /usr/local/include/boost/version.hpp
?- Are are these the eosio.contracts in https://github.com/EOSIO/eosio.contracts ?
- MacOS Catalina(10.15.7)
- boost version is 1.73
- it is my own contract, compiled with cdt 1.71 without error before.
@crazybits Have you tried building CDT in Linux (or Linux docker) and then compile your contract?
Hello! I have kinda the same issue when compiling a contract
/usr/opt/eosio.cdt/1.8.1/bin/../include/boost/pfr/detail/core17_generated.hpp:38:9: error: type 'info' decomposes into 7 elements, but only 1 names were provided
auto& [a] = val;
But it compiles fine when compiled with cdt 1.7.1
Any updates on that?
@tlacloc Could you share the contract code so the issue can be reproduced?