Script started on 2024-05-30 13:50:06-07:00 [TERM="xterm" TTY="/dev/pts/5" COLUMNS="80" LINES="51"] [?2004h]0;jlpoole@rpi5:/usr/local/srcjlpoole@rpi5 /usr/local/src $ cd m17-cxx-demod/ [?2004l [?2004h]0;jlpoole@rpi5:/usr/local/src/m17-cxx-demodjlpoole@rpi5 /usr/local/src/m17-cxx-demod $ cd build [?2004l [?2004h]0;jlpoole@rpi5:/usr/local/src/m17-cxx-demod/buildjlpoole@rpi5 /usr/local/src/m17-cxx-demod/build $ cmake .. [?2004l -- Build type not specified: defaulting to release. -- # Checking dependencies -- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY) CMake Error: Could not open file for write in copy operation /usr/local/src/m17-cxx-demod/build/m17cxxConfigVersion.cmake.tmp CMake Error: : System Error: Permission denied CMake Error at /usr/share/cmake/Modules/WriteBasicConfigVersionFile.cmake:64 (configure_file): configure_file Problem configuring file Call Stack (most recent call first): /usr/share/cmake/Modules/CMakePackageConfigHelpers.cmake:239 (write_basic_config_version_file) CMakeLists.txt:46 (write_basic_package_version_file)  CMake Error: Could not open file for write in copy operation /usr/local/src/m17-cxx-demod/build/m17cxxConfig.cmake.tmp CMake Error: : System Error: Permission denied CMake Error at /usr/share/cmake/Modules/CMakePackageConfigHelpers.cmake:344 (configure_file): configure_file Problem configuring file Call Stack (most recent call first): CMakeLists.txt:52 (configure_package_config_file)  CMake Error: Could not open file for write in copy operation /usr/local/src/m17-cxx-demod/build/cmake_uninstall.cmake.tmp CMake Error: : System Error: Permission denied CMake Error at CMakeLists.txt:65 (configure_file): configure_file Problem configuring file  -- Using install prefix: /usr/local -- Building version: 0.1 -- Configuring incomplete, errors occurred! CMake Error: Cannot open file for write: /usr/local/src/m17-cxx-demod/build/CMakeCache.txt.tmp38508 CMake Error: : System Error: Permission denied CMake Error: Unable to open cache file for save. /usr/local/src/m17-cxx-demod/build/CMakeCache.txt CMake Error: : System Error: Permission denied [?2004h]0;jlpoole@rpi5:/usr/local/src/m17-cxx-demod/buildjlpoole@rpi5 /usr/local/src/m17-cxx-demod/build $ sudo su [?2004l [?2004h]0;root@rpi5:/usr/local/src/m17-cxx-demod/buildrpi5 /usr/local/src/m17-cxx-demod/build # cmake .. [?2004l -- Build type not specified: defaulting to release. -- # Checking dependencies -- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY) -- Using install prefix: /usr/local -- Building version: 0.1 -- Configuring done (0.0s) -- Generating done (0.0s) -- Build files have been written to: /usr/local/src/m17-cxx-demod/build [?2004h]0;root@rpi5:/usr/local/src/m17-cxx-demod/buildrpi5 /usr/local/src/m17-cxx-demod/build # make [?2004l [ 50%] Built target m17-demod [ 75%] Building CXX object apps/CMakeFiles/m17-mod.dir/m17-mod.cpp.o In file included from /usr/local/src/m17-cxx-demod/apps/m17-mod.cpp:3: /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:213:47: error: ‘uint8_t’ was not declared in this scope 213 | constexpr bool get_bit_index(const std::array<uint8_t, N>& input, size_t index) | ^~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:12:1: note: ‘uint8_t’ is defined in header ‘’; did you forget to ‘#include ’? 11 | #include +++ |+#include  12 | /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:213:57: error: template argument 1 is invalid 213 | constexpr bool get_bit_index(const std::array& input, size_t index) | ^ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h: In function ‘constexpr bool mobilinkd::get_bit_index(const int&, size_t)’: /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:219:18: error: invalid types ‘const int[long unsigned int]’ for array subscript 219 | return (input[byte_index] & (1 << bit_index)) >> bit_index; | ^ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h: At global scope: /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:223:31: error: ‘uint8_t’ was not declared in this scope 223 | void set_bit_index(std::array<uint8_t, N>& input, size_t index) | ^~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:223:31: note: ‘uint8_t’ is defined in header ‘’; did you forget to ‘#include ’? /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:223:41: error: template argument 1 is invalid 223 | void set_bit_index(std::array& input, size_t index) | ^ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h: In function ‘void mobilinkd::set_bit_index(int&, size_t)’: /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:228:10: error: invalid types ‘int[long unsigned int]’ for array subscript 228 | input[byte_index] |= (1 << bit_index); | ^ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h: At global scope: /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:232:33: error: ‘uint8_t’ was not declared in this scope 232 | void reset_bit_index(std::array<uint8_t, N>& input, size_t index) | ^~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:232:33: note: ‘uint8_t’ is defined in header ‘’; did you forget to ‘#include ’? /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:232:43: error: template argument 1 is invalid 232 | void reset_bit_index(std::array& input, size_t index) | ^ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h: In function ‘void mobilinkd::reset_bit_index(int&, size_t)’: /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:237:10: error: invalid types ‘int[long unsigned int]’ for array subscript 237 | input[byte_index] &= ~(1 << bit_index); | ^ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h: At global scope: /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:241:34: error: ‘uint8_t’ was not declared in this scope 241 | void assign_bit_index(std::array<uint8_t, N>& input, size_t index, bool value) | ^~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:241:34: note: ‘uint8_t’ is defined in header ‘’; did you forget to ‘#include ’? /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:241:44: error: template argument 1 is invalid 241 | void assign_bit_index(std::array& input, size_t index, bool value) | ^ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h: In function ‘void mobilinkd::assign_bit_index(int&, size_t, bool)’: /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:243:29: error: no matching function for call to ‘set_bit_index(int&, size_t&)’ 243 | if (value) set_bit_index(input, index); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:223:6: note: candidate: ‘template void mobilinkd::set_bit_index(int&, size_t)’ 223 | void set_bit_index(std::array& input, size_t index) | ^~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:223:6: note:  template argument deduction/substitution failed: /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:243:29: note:  couldn’t deduce template parameter ‘N’ 243 | if (value) set_bit_index(input, index); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:244:25: error: no matching function for call to ‘reset_bit_index(int&, size_t&)’ 244 | else reset_bit_index(input, index); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:232:6: note: candidate: ‘template void mobilinkd::reset_bit_index(int&, size_t)’ 232 | void reset_bit_index(std::array& input, size_t index) | ^~~~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:232:6: note:  template argument deduction/substitution failed: /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:244:25: note:  couldn’t deduce template parameter ‘N’ 244 | else reset_bit_index(input, index); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h: At global scope: /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:249:40: error: ‘uint8_t’ was not declared in this scope 249 | size_t puncture_bytes(const std::array<uint8_t, IN>& in, | ^~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:249:40: note: ‘uint8_t’ is defined in header ‘’; did you forget to ‘#include ’? /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:249:51: error: template argument 1 is invalid 249 | size_t puncture_bytes(const std::array& in, | ^ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:250:16: error: ‘uint8_t’ was not declared in this scope 250 | std::array<uint8_t, OUT>& out, const std::array& p) | ^~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:250:16: note: ‘uint8_t’ is defined in header ‘’; did you forget to ‘#include ’? /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:250:28: error: template argument 1 is invalid 250 | std::array& out, const std::array& p) | ^ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h: In function ‘size_t mobilinkd::puncture_bytes(const int&, int&, const std::array&)’: /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:259:57: error: no matching function for call to ‘get_bit_index(const int&, size_t&)’ 259 | assign_bit_index(out, index++, get_bit_index(in, i)); | ~~~~~~~~~~~~~^~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:213:16: note: candidate: ‘template constexpr bool mobilinkd::get_bit_index(const int&, size_t)’ 213 | constexpr bool get_bit_index(const std::array& input, size_t index) | ^~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:213:16: note:  template argument deduction/substitution failed: /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:259:57: note:  couldn’t deduce template parameter ‘N’ 259 | assign_bit_index(out, index++, get_bit_index(in, i)); | ~~~~~~~~~~~~~^~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h: At global scope: /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:272:20: error: ‘uint8_t’ was not declared in this scope 272 | constexpr T to_int(uint8_t v) | ^~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:272:20: note: ‘uint8_t’ is defined in header ‘’; did you forget to ‘#include ’? /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:272:30: error: expected ‘;’ before ‘{’ token 272 | constexpr T to_int(uint8_t v) | ^ | ; 273 | { | ~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h: In function ‘constexpr auto mobilinkd::to_byte_array(std::array<_Tp, _Nm>)’: /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:283:16: error: ‘uint8_t’ was not declared in this scope 283 | std::array<uint8_t, (N + 7) / 8> out{}; | ^~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:283:16: note: ‘uint8_t’ is defined in header ‘’; did you forget to ‘#include ’? /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:283:36: error: template argument 1 is invalid 283 | std::array out{}; | ^ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:284:9: error: request for member ‘fill’ in ‘out’, which is of non-class type ‘int’ 284 | out.fill(0); | ^~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:289:12: error: invalid types ‘int[size_t {aka long unsigned int}]’ for array subscript 289 | out[i] |= (c << (7 - b)); | ^ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h: At global scope: /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:300:62: error: ‘uint8_t’ was not declared in this scope 300 | onstexpr void to_byte_array(std::array in, std::array<uint8_t, (N + 7) / 8>& out) | ^~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:300:62: note: ‘uint8_t’ is defined in header ‘’; did you forget to ‘#include ’? /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:300:82: error: template argument 1 is invalid 300 | _byte_array(std::array in, std::array& out) | ^ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h: In function ‘constexpr void mobilinkd::to_byte_array(std::array<_Tp, _Nm>, int&)’: /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:304:5: error: ‘uint8_t’ was not declared in this scope 304 | uint8_t tmp = 0; | ^~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:304:5: note: ‘uint8_t’ is defined in header ‘’; did you forget to ‘#include ’? /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:307:9: error: ‘tmp’ was not declared in this scope; did you mean ‘tm’? 307 | tmp |= (c << (7 - b)); | ^~~ | tm /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:310:16: error: invalid types ‘int[size_t {aka long unsigned int}]’ for array subscript 310 | out[i] = tmp; | ^ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:316:17: error: request for member ‘size’ in ‘out’, which is of non-class type ‘int’ 316 | if (i < out.size()) out[i] = tmp; | ^~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:316:28: error: invalid types ‘int[size_t {aka long unsigned int}]’ for array subscript 316 | if (i < out.size()) out[i] = tmp; | ^ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:316:34: error: ‘tmp’ was not declared in this scope; did you mean ‘tm’? 316 | if (i < out.size()) out[i] = tmp; | ^~~ | tm /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h: At global scope: /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:321:26: error: ‘uint16_t’ does not name a type 321 | static constexpr uint16_t MASK = 0x1FF; | ^~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:321:26: note: ‘uint16_t’ is defined in header ‘’; did you forget to ‘#include ’? /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:322:26: error: ‘uint8_t’ does not name a type 322 | static constexpr uint8_t TAP_1 = 8; // Bit 9 | ^~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:322:26: note: ‘uint8_t’ is defined in header ‘’; did you forget to ‘#include ’? /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:323:26: error: ‘uint8_t’ does not name a type 323 | static constexpr uint8_t TAP_2 = 4; // Bit 5 | ^~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:323:26: note: ‘uint8_t’ is defined in header ‘’; did you forget to ‘#include ’? /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:324:22: error: ‘uint8_t’ does not name a type 324 | static constexpr uint8_t LOCK_COUNT = 18; // 18 consecutive good bits. | ^~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:324:22: note: ‘uint8_t’ is defined in header ‘’; did you forget to ‘#include ’? /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:325:22: error: ‘uint8_t’ does not name a type 325 | static constexpr uint8_t UNLOCK_COUNT = 25; // bad bits in history required to unlock. | ^~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:325:22: note: ‘uint8_t’ is defined in header ‘’; did you forget to ‘#include ’? /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:327:5: error: ‘uint16_t’ does not name a type 327 | uint16_t state = 1; | ^~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:327:5: note: ‘uint16_t’ is defined in header ‘’; did you forget to ‘#include ’? /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:329:5: error: ‘uint8_t’ does not name a type 329 | uint8_t sync_count = 0; | ^~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:329:5: note: ‘uint8_t’ is defined in header ‘’; did you forget to ‘#include ’? /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:330:5: error: ‘uint32_t’ does not name a type 330 | uint32_t bit_count = 0; | ^~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:330:5: note: ‘uint32_t’ is defined in header ‘’; did you forget to ‘#include ’? /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:331:5: error: ‘uint32_t’ does not name a type 331 | uint32_t err_count = 0; | ^~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:331:5: note: ‘uint32_t’ is defined in header ‘’; did you forget to ‘#include ’? /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:332:16: error: ‘uint8_t’ was not declared in this scope 332 | std::array<uint8_t, 16> history; | ^~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:332:16: note: ‘uint8_t’ is defined in header ‘’; did you forget to ‘#include ’? /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:332:27: error: template argument 1 is invalid 332 | std::array history; | ^ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:332:10: error: ‘’ in namespace ‘std’ does not name a type 332 | std::array history; | ^~~~~~~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:397:5: error: ‘uint32_t’ does not name a type 397 | uint32_t errors() const { assert(synced); return err_count; } | ^~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:397:5: note: ‘uint32_t’ is defined in header ‘’; did you forget to ‘#include ’? /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:398:5: error: ‘uint32_t’ does not name a type 398 | uint32_t bits() const { assert(synced); return bit_count; } | ^~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:398:5: note: ‘uint32_t’ is defined in header ‘’; did you forget to ‘#include ’? /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h: In member function ‘void mobilinkd::PRBS9::count_errors(bool)’: /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:338:9: error: ‘bit_count’ was not declared in this scope; did you mean ‘hist_count’? 338 | bit_count += 1; | ^~~~~~~~~ | hist_count /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:339:24: error: ‘history’ was not declared in this scope 339 | hist_count -= (history[hist_pos >> 3] & (1 << (hist_pos & 7))) != 0; | ^~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:341:13: error: ‘err_count’ was not declared in this scope 341 | err_count += 1; | ^~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:344:31: error: ‘UNLOCK_COUNT’ was not declared in this scope 344 | if (hist_count >= UNLOCK_COUNT) synced = false; | ^~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h: In member function ‘bool mobilinkd::PRBS9::generate()’: /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:354:25: error: ‘state’ was not declared in this scope; did you mean ‘static’? 354 | bool result = ((state >> TAP_1) ^ (state >> TAP_2)) & 1; | ^~~~~ | static /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:354:34: error: ‘TAP_1’ was not declared in this scope 354 | bool result = ((state >> TAP_1) ^ (state >> TAP_2)) & 1; | ^~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:354:53: error: ‘TAP_2’ was not declared in this scope 354 | bool result = ((state >> TAP_1) ^ (state >> TAP_2)) & 1; | ^~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:355:43: error: ‘MASK’ was not declared in this scope 355 | state = ((state << 1) | result) & MASK; | ^~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h: In member function ‘bool mobilinkd::PRBS9::synchronize(bool)’: /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:364:31: error: ‘state’ was not declared in this scope; did you mean ‘static’? 364 | bool result = (bit ^ (state >> TAP_1) ^ (state >> TAP_2)) & 1; | ^~~~~ | static /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:364:40: error: ‘TAP_1’ was not declared in this scope 364 | bool result = (bit ^ (state >> TAP_1) ^ (state >> TAP_2)) & 1; | ^~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:364:59: error: ‘TAP_2’ was not declared in this scope 364 | bool result = (bit ^ (state >> TAP_1) ^ (state >> TAP_2)) & 1; | ^~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:365:40: error: ‘MASK’ was not declared in this scope 365 | state = ((state << 1) | bit) & MASK; | ^~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:367:13: error: ‘sync_count’ was not declared in this scope 367 | sync_count = 0; // error | ^~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:369:19: error: ‘sync_count’ was not declared in this scope 369 | if (++sync_count == LOCK_COUNT) { | ^~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:369:33: error: ‘LOCK_COUNT’ was not declared in this scope 369 | if (++sync_count == LOCK_COUNT) { | ^~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:371:17: error: ‘bit_count’ was not declared in this scope; did you mean ‘hist_count’? 371 | bit_count += LOCK_COUNT; | ^~~~~~~~~ | hist_count /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:372:17: error: ‘history’ was not declared in this scope 372 | history.fill(0); | ^~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h: In member function ‘void mobilinkd::PRBS9::reset()’: /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:403:9: error: ‘state’ was not declared in this scope; did you mean ‘static’? 403 | state = 1; | ^~~~~ | static /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:405:9: error: ‘sync_count’ was not declared in this scope 405 | sync_count = 0; | ^~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:406:9: error: ‘bit_count’ was not declared in this scope; did you mean ‘hist_count’? 406 | bit_count = 0; | ^~~~~~~~~ | hist_count /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:407:9: error: ‘err_count’ was not declared in this scope 407 | err_count = 0; | ^~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:408:9: error: ‘history’ was not declared in this scope 408 | history.fill(0); | ^~~~~~~ In file included from /usr/local/src/m17-cxx-demod/apps/m17-mod.cpp:15: /usr/local/src/m17-cxx-demod/include/m17cxx/M17Modulator.h: In member function ‘mobilinkd::M17Modulator::lich_segment_t mobilinkd::M17Modulator::make_lich_segment(std::array, uint8_t)’: /usr/local/src/m17-cxx-demod/include/m17cxx/M17Modulator.h:242:29: error: no matching function for call to ‘assign_bit_index(mobilinkd::M17Modulator::lich_segment_t&, size_t&, bool)’ 242 | assign_bit_index(result, i, (encoded & (1 << 23)) != 0); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:241:6: note: candidate: ‘template void mobilinkd::assign_bit_index(int&, size_t, bool)’ 241 | void assign_bit_index(std::array& input, size_t index, bool value) | ^~~~~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:241:6: note:  template argument deduction/substitution failed: /usr/local/src/m17-cxx-demod/include/m17cxx/M17Modulator.h:242:29: note:  couldn’t deduce template parameter ‘N’ 242 | assign_bit_index(result, i, (encoded & (1 << 23)) != 0); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/M17Modulator.h:250:29: error: no matching function for call to ‘assign_bit_index(mobilinkd::M17Modulator::lich_segment_t&, size_t&, bool)’ 250 | assign_bit_index(result, i, (encoded & (1 << 23)) != 0); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:241:6: note: candidate: ‘template void mobilinkd::assign_bit_index(int&, size_t, bool)’ 241 | void assign_bit_index(std::array& input, size_t index, bool value) | ^~~~~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:241:6: note:  template argument deduction/substitution failed: /usr/local/src/m17-cxx-demod/include/m17cxx/M17Modulator.h:250:29: note:  couldn’t deduce template parameter ‘N’ 250 | assign_bit_index(result, i, (encoded & (1 << 23)) != 0); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/M17Modulator.h:258:29: error: no matching function for call to ‘assign_bit_index(mobilinkd::M17Modulator::lich_segment_t&, size_t&, bool)’ 258 | assign_bit_index(result, i, (encoded & (1 << 23)) != 0); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:241:6: note: candidate: ‘template void mobilinkd::assign_bit_index(int&, size_t, bool)’ 241 | void assign_bit_index(std::array& input, size_t index, bool value) | ^~~~~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:241:6: note:  template argument deduction/substitution failed: /usr/local/src/m17-cxx-demod/include/m17cxx/M17Modulator.h:258:29: note:  couldn’t deduce template parameter ‘N’ 258 | assign_bit_index(result, i, (encoded & (1 << 23)) != 0); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/M17Modulator.h:266:29: error: no matching function for call to ‘assign_bit_index(mobilinkd::M17Modulator::lich_segment_t&, size_t&, bool)’ 266 | assign_bit_index(result, i, (encoded & (1 << 23)) != 0); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:241:6: note: candidate: ‘template void mobilinkd::assign_bit_index(int&, size_t, bool)’ 241 | void assign_bit_index(std::array& input, size_t index, bool value) | ^~~~~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:241:6: note:  template argument deduction/substitution failed: /usr/local/src/m17-cxx-demod/include/m17cxx/M17Modulator.h:266:29: note:  couldn’t deduce template parameter ‘N’ 266 | assign_bit_index(result, i, (encoded & (1 << 23)) != 0); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/M17Modulator.h: In member function ‘void mobilinkd::M17Modulator::send_link_setup(lich_t&)’: /usr/local/src/m17-cxx-demod/include/m17cxx/M17Modulator.h:310:35: error: no matching function for call to ‘puncture_bytes(std::array&, std::array&, const std::array&)’ 310 | auto size = puncture_bytes(encoded, punctured, P1); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:249:8: note: candidate: ‘template size_t mobilinkd::puncture_bytes(const int&, int&, const std::array&)’ 249 | size_t puncture_bytes(const std::array& in, | ^~~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:249:8: note:  template argument deduction/substitution failed: /usr/local/src/m17-cxx-demod/include/m17cxx/M17Modulator.h:310:35: note:  couldn’t deduce template parameter ‘IN’ 310 | auto size = puncture_bytes(encoded, punctured, P1); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/M17Modulator.h: In member function ‘mobilinkd::M17Modulator::payload_t mobilinkd::M17Modulator::make_payload(uint16_t, const codec_frame_t&)’: /usr/local/src/m17-cxx-demod/include/m17cxx/M17Modulator.h:355:35: error: no matching function for call to ‘puncture_bytes(std::array&, mobilinkd::M17Modulator::payload_t&, const std::array&)’ 355 | auto size = puncture_bytes(encoded, punctured, mobilinkd::P2); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:249:8: note: candidate: ‘template size_t mobilinkd::puncture_bytes(const int&, int&, const std::array&)’ 249 | size_t puncture_bytes(const std::array& in, | ^~~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:249:8: note:  template argument deduction/substitution failed: /usr/local/src/m17-cxx-demod/include/m17cxx/M17Modulator.h:355:35: note:  couldn’t deduce template parameter ‘IN’ 355 | auto size = puncture_bytes(encoded, punctured, mobilinkd::P2); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/local/src/m17-cxx-demod/apps/m17-mod.cpp:10: /usr/local/src/m17-cxx-demod/include/m17cxx/PolynomialInterleaver.h: In instantiation of ‘void mobilinkd::PolynomialInterleaver::interleave(bytes_t&) [with long unsigned int F1 = 45; long unsigned int F2 = 92; long unsigned int K = 368; bytes_t = std::array]’: /usr/local/src/m17-cxx-demod/include/m17cxx/M17Modulator.h:313:32: required from here /usr/local/src/m17-cxx-demod/include/m17cxx/PolynomialInterleaver.h:42:61: error: no matching function for call to ‘get_bit_index(mobilinkd::PolynomialInterleaver<45, 92, 368>::bytes_t&, size_t&)’ 42 | assign_bit_index(buffer, index(i), get_bit_index(data, i)); | ~~~~~~~~~~~~~^~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:213:16: note: candidate: ‘template constexpr bool mobilinkd::get_bit_index(const int&, size_t)’ 213 | constexpr bool get_bit_index(const std::array& input, size_t index) | ^~~~~~~~~~~~~ /usr/local/src/m17-cxx-demod/include/m17cxx/Util.h:213:16: note:  template argument deduction/substitution failed: /usr/local/src/m17-cxx-demod/include/m17cxx/PolynomialInterleaver.h:42:61: note:  couldn’t deduce template parameter ‘N’ 42 | assign_bit_index(buffer, index(i), get_bit_index(data, i)); | ~~~~~~~~~~~~~^~~~~~~~~ make[2]: *** [apps/CMakeFiles/m17-mod.dir/build.make:76: apps/CMakeFiles/m17-mod.dir/m17-mod.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:171: apps/CMakeFiles/m17-mod.dir/all] Error 2 make: *** [Makefile:136: all] Error 2 [?2004h]0;root@rpi5:/usr/local/src/m17-cxx-demod/buildrpi5 /usr/local/src/m17-cxx-demod/build # exit [?2004l exit [?2004h]0;jlpoole@rpi5:/usr/local/src/m17-cxx-demod/buildjlpoole@rpi5 /usr/local/src/m17-cxx-demod/build $ exit [?2004l exit Script done on 2024-05-30 13:51:12-07:00 [COMMAND_EXIT_CODE="2"]