Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

cdt1.8.1 compile issue #1183

Open
crazybits opened this issue Aug 1, 2021 · 5 comments
Open

cdt1.8.1 compile issue #1183

crazybits opened this issue Aug 1, 2021 · 5 comments

Comments

@crazybits
Copy link

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{});

@praphael
Copy link
Contributor

praphael commented Aug 2, 2021

Hi crazybits,

Some more info would be helpful.

  1. This looks like MacOS. Is it 10.14, 10.15, or 11.x (BigSur) ?
  2. 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 ?
  3. Are are these the eosio.contracts in https://github.com/EOSIO/eosio.contracts ?

@crazybits
Copy link
Author

crazybits commented Aug 5, 2021

Hi crazybits,

Some more info would be helpful.

  1. This looks like MacOS. Is it 10.14, 10.15, or 11.x (BigSur) ?
  2. 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 ?
  3. Are are these the eosio.contracts in https://github.com/EOSIO/eosio.contracts ?
  1. MacOS Catalina(10.15.7)
  2. boost version is 1.73
  3. it is my own contract, compiled with cdt 1.71 without error before.

@bogniq
Copy link
Collaborator

bogniq commented Sep 17, 2021

@crazybits Have you tried building CDT in Linux (or Linux docker) and then compile your contract?

@tlacloc
Copy link

tlacloc commented Dec 13, 2021

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?

@bogniq
Copy link
Collaborator

bogniq commented Dec 13, 2021

@tlacloc Could you share the contract code so the issue can be reproduced?

@bogniq bogniq closed this as completed Dec 13, 2021
@bogniq bogniq reopened this Dec 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants