Unable to build under Arch Linux/AUR failure
freq-mod opened this issue · 1 comments
freq-mod commented
[ 80%] Building CXX object CMakeFiles/smf-dsp.dir/sources/player/seeker.cc.o
In file included from /home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc:6:
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.h:27:22: error: ‘size_t’ has not been declared
27 | void reserve(size_t capacity);
| ^~~~~~
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.h:38:49: error: ‘size_t’ was not declared in this scope; did you mean ‘std::size_t’?
38 | std::unordered_map<uint32_t /*raw_id*/, size_t /*index*/> index_of;
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/11.1.0/type_traits:38,
from /usr/include/c++/11.1.0/unordered_map:38,
from /home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.h:7,
from /home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc:6:
/usr/include/c++/11.1.0/x86_64-pc-linux-gnu/bits/c++config.h:280:33: note: ‘std::size_t’ declared here
280 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
In file included from /home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc:6:
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.h:38:65: error: template argument 2 is invalid
38 | std::unordered_map<uint32_t /*raw_id*/, size_t /*index*/> index_of;
| ^
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.h:38:65: error: template argument 5 is invalid
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc:34:18: error: ‘size_t’ does not name a type
34 | static constexpr size_t initial_capacity = 256;
| ^~~~~~
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc:7:1: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
6 | #include "seeker.h"
+++ |+#include <cstddef>
7 |
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc: In constructor ‘Seek_State::Seek_State()’:
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc:38:22: error: ‘initial_capacity’ was not declared in this scope
38 | storage_.reserve(initial_capacity);
| ^~~~~~~~~~~~~~~~
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc: In member function ‘void Seek_State::add_reset_all_controllers(unsigned int)’:
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc:149:18: error: ‘initial_capacity’ was not declared in this scope
149 | temp.reserve(initial_capacity);
| ^~~~~~~~~~~~~~~~
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc: In member function ‘void Seek_State::Storage::clear()’:
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc:323:14: error: request for member ‘clear’ in ‘((Seek_State::Storage*)this)->Seek_State::Storage::index_of’, which is of non-class type ‘int’
323 | index_of.clear();
| ^~~~~
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc: At global scope:
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc:326:6: error: variable or field ‘reserve’ declared void
326 | void Seek_State::Storage::reserve(size_t capacity)
| ^~~~~~~~~~
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc:326:6: error: ‘struct Seek_State::Storage’ is private within this context
In file included from /home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc:6:
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.h:25:12: note: declared private here
25 | struct Storage {
| ^~~~~~~
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc:326:35: error: ‘size_t’ was not declared in this scope; did you mean ‘std::size_t’?
326 | void Seek_State::Storage::reserve(size_t capacity)
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/11.1.0/type_traits:38,
from /usr/include/c++/11.1.0/unordered_map:38,
from /home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.h:7,
from /home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc:6:
/usr/include/c++/11.1.0/x86_64-pc-linux-gnu/bits/c++config.h:280:33: note: ‘std::size_t’ declared here
280 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc: In member function ‘void Seek_State::Storage::put(uint32_t, uint32_t)’:
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc:336:24: error: request for member ‘find’ in ‘((Seek_State::Storage*)this)->Seek_State::Storage::index_of’, which is of non-class type ‘int’
336 | auto it = index_of.find(raw_id);
| ^~~~
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc:337:24: error: request for member ‘end’ in ‘((Seek_State::Storage*)this)->Seek_State::Storage::index_of’, which is of non-class type ‘int’
337 | if (it != index_of.end())
| ^~~
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc:340:9: error: ‘size_t’ was not declared in this scope; did you mean ‘std::size_t’?
340 | size_t index = assoc.size();
| ^~~~~~
| std::size_t
In file included from /usr/include/c++/11.1.0/type_traits:38,
from /usr/include/c++/11.1.0/unordered_map:38,
from /home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.h:7,
from /home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc:6:
/usr/include/c++/11.1.0/x86_64-pc-linux-gnu/bits/c++config.h:280:33: note: ‘std::size_t’ declared here
280 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc:342:17: error: invalid types ‘int[uint32_t {aka unsigned int}]’ for array subscript
342 | index_of[raw_id] = index;
| ^
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc:342:28: error: ‘index’ was not declared in this scope
342 | index_of[raw_id] = index;
| ^~~~~
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc: In member function ‘const uint32_t* Seek_State::Storage::find(uint32_t) const’:
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc:358:24: error: request for member ‘find’ in ‘((const Seek_State::Storage*)this)->Seek_State::Storage::index_of’, which is of non-class type ‘const int’
358 | auto it = index_of.find(raw_id);
| ^~~~
/home/anon/smf-dsp-git/src/smf-dsp/sources/player/seeker.cc:359:28: error: request for member ‘end’ in ‘((const Seek_State::Storage*)this)->Seek_State::Storage::index_of’, which is of non-class type ‘const int’
359 | return (it != index_of.end()) ? &assoc[it->second].value : nullptr;
| ^~~
make[2]: *** [CMakeFiles/smf-dsp.dir/build.make:188: CMakeFiles/smf-dsp.dir/sources/player/seeker.cc.o] Błąd 1
jpcima commented
Fixed it in the latest.