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

Missing headers in eval.cpp and storage2.cpp #382

Open
barracuda156 opened this issue Aug 5, 2022 · 1 comment
Open

Missing headers in eval.cpp and storage2.cpp #382

barracuda156 opened this issue Aug 5, 2022 · 1 comment

Comments

@barracuda156
Copy link

barracuda156 commented Aug 5, 2022

Trying to build Akumuli 0.8.80 on 10.6.8 Rosetta (gcc12, cmake-devel @20220728-3.24.0-rc5), after setting -DDISABLE_EMBEDDED_ASM to bypass a failure on Intel-specific instructions, the build failed on the following:

/opt/local/var/macports/build/_opt_PPCRosettaPorts_databases_Akumuli/Akumuli/work/Akumuli-0.8.80/libakumuli/query_processing/eval.cpp:42:33: error: field 'indexes_' has incomplete type 'std::array<unsigned int, 58>'
   42 |     std::array<u32, MAX_VALUES> indexes_;
      |                                 ^~~~~~~~

/opt/local/var/macports/build/_opt_PPCRosettaPorts_databases_Akumuli/Akumuli/work/Akumuli-0.8.80/libakumuli/query_processing/eval.cpp:43:36: error: field 'values_' has incomplete type 'std::array<double, 58>'
   43 |     std::array<double, MAX_VALUES> values_;
@barracuda156 barracuda156 changed the title error: field 'indexes_' has incomplete type 'std::array<unsigned int, 58>' error: field has incomplete type std::array Aug 5, 2022
@barracuda156
Copy link
Author

Okay, eval.cpp misses a needed header. See: https://stackoverflow.com/questions/18145258/stdarray-incomplete-type-error-with-an-array-of-stdtuple
Adding #include <array> fixed the error.

Then storage2.cpp also misses a header, #include <stack>.

@barracuda156 barracuda156 changed the title error: field has incomplete type std::array Missing headers in eval.cpp and storage2.cpp Aug 5, 2022
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