Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Error during compiling #10

Open
dive76 opened this issue Sep 28, 2022 · 1 comment
Open

Error during compiling #10

dive76 opened this issue Sep 28, 2022 · 1 comment

Comments

@dive76
Copy link

dive76 commented Sep 28, 2022

I am getting the following:

[ 58%] Building CXX object src/lib/CMakeFiles/packet_writer.dir/file_writer.cc.o
[ 59%] Linking CXX static library libpacket_writer.a
[ 59%] Built target packet_writer
[ 60%] Building CXX object src/lib/CMakeFiles/unzip.dir/unzip.cc.o
[ 60%] Linking CXX executable unzip
[ 60%] Built target unzip
[ 60%] Building CXX object src/lib/CMakeFiles/version.dir/version.cc.o
[ 62%] Linking CXX static library libversion.a
[ 62%] Built target version
[ 62%] Building C object vendor/libcorrect/src/reed-solomon/CMakeFiles/correct-reed-solomon.dir/polynomial.c.o
[ 63%] Building C object vendor/libcorrect/src/reed-solomon/CMakeFiles/correct-reed-solomon.dir/reed-solomon.c.o
[ 63%] Building C object vendor/libcorrect/src/reed-solomon/CMakeFiles/correct-reed-solomon.dir/encode.c.o
[ 64%] Building C object vendor/libcorrect/src/reed-solomon/CMakeFiles/correct-reed-solomon.dir/decode.c.o
[ 64%] Built target correct-reed-solomon
[ 64%] Building C object vendor/libcorrect/src/convolutional/CMakeFiles/correct-convolutional.dir/bit.c.o
[ 65%] Building C object vendor/libcorrect/src/convolutional/CMakeFiles/correct-convolutional.dir/metric.c.o
[ 65%] Building C object vendor/libcorrect/src/convolutional/CMakeFiles/correct-convolutional.dir/history_buffer.c.o
/home/lars/goestools/vendor/libcorrect/src/convolutional/history_buffer.c: In function ‘history_buffer_search’:
/home/lars/goestools/vendor/libcorrect/src/convolutional/history_buffer.c:57:12: warning: ‘bestpath’ may be used uninitialized in this function [-Wmaybe-uninitialized]
57 | return bestpath;
| ^~~~~~~~
[ 65%] Building C object vendor/libcorrect/src/convolutional/CMakeFiles/correct-convolutional.dir/error_buffer.c.o
[ 67%] Building C object vendor/libcorrect/src/convolutional/CMakeFiles/correct-convolutional.dir/lookup.c.o
[ 67%] Building C object vendor/libcorrect/src/convolutional/CMakeFiles/correct-convolutional.dir/convolutional.c.o
[ 68%] Building C object vendor/libcorrect/src/convolutional/CMakeFiles/correct-convolutional.dir/encode.c.o
[ 68%] Building C object vendor/libcorrect/src/convolutional/CMakeFiles/correct-convolutional.dir/decode.c.o
[ 68%] Built target correct-convolutional
[ 69%] Building C object vendor/libcorrect/src/convolutional/sse/CMakeFiles/correct-convolutional-sse.dir/lookup.c.o
[ 69%] Building C object vendor/libcorrect/src/convolutional/sse/CMakeFiles/correct-convolutional-sse.dir/convolutional.c.o
[ 69%] Building C object vendor/libcorrect/src/convolutional/sse/CMakeFiles/correct-convolutional-sse.dir/encode.c.o
[ 70%] Building C object vendor/libcorrect/src/convolutional/sse/CMakeFiles/correct-convolutional-sse.dir/decode.c.o
[ 70%] Built target correct-convolutional-sse
[ 70%] Linking C static library lib/libcorrect.a
[ 70%] Built target correct_static
[ 71%] Building CXX object src/decoder/CMakeFiles/compute_sync_words.dir/compute_sync_words.cc.o
[ 71%] Linking CXX executable compute_sync_words
[ 71%] Built target compute_sync_words
[ 73%] Building CXX object src/decoder/CMakeFiles/packetizer.dir/correlator.cc.o
[ 73%] Building CXX object src/decoder/CMakeFiles/packetizer.dir/derandomizer.cc.o
In file included from /home/lars/goestools/src/decoder/derandomizer.cc:1:
/home/lars/goestools/src/decoder/derandomizer.h:14:27: error: ‘size_t’ has not been declared
14 | void run(uint8_t* data, size_t len);
| ^~~~~~
/home/lars/goestools/src/decoder/derandomizer.cc:33:6: error: no declaration matches ‘void decoder::Derandomizer::run(uint8_t*, size_t)’
33 | void Derandomizer::run(uint8_t* data, size_t len) {
| ^~~~~~~~~~~~
In file included from /home/lars/goestools/src/decoder/derandomizer.cc:1:
/home/lars/goestools/src/decoder/derandomizer.h:14:8: note: candidate is: ‘void decoder::Derandomizer::run(uint8_t*, int)’
14 | void run(uint8_t* data, size_t len);
| ^~~
/home/lars/goestools/src/decoder/derandomizer.h:10:7: note: ‘class decoder::Derandomizer’ defined here
10 | class Derandomizer {
| ^~~~~~~~~~~~
make[2]: *** [src/decoder/CMakeFiles/packetizer.dir/build.make:90: src/decoder/CMakeFiles/packetizer.dir/derandomizer.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1704: src/decoder/CMakeFiles/packetizer.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
lars@SatPC:~/goestools/build$

I am running on Ubuntu 22.04.1 LTS .

@YD1RUH
Copy link

YD1RUH commented Jan 4, 2023

adding

#include <cstddef>

in

/src/decoder/derandomizer.h
/src/decoder/derandomizer.cc

run make again, and solve

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants