f4exb / cm256cc

Fast GF(256) Cauchy MDS Block Erasure Codec in C++
GNU General Public License v3.0
23 stars 8 forks source link

Missing include in unit_test/data.h #17

Closed loqs closed 1 year ago

loqs commented 1 year ago

Versions used: cm256cc 1.1.0 gcc 13.2.1 cmake 3.27.1

Steps to reproduce and outputs:

$ cmake -B build -S cm256cc-1.1.0
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Target architecture: x86_64
-- Use SSE2 SIMD instructions
-- Use SSSE3 SIMD instructions
-- Use SSE 4.1 SIMD instructions
-- Use SSE 4.2 SIMD instructions
-- Use AVX SIMD instructions
-- Use AVX2 SIMD instructions
-- Architecture supports SSSE3 - OK
-- Configuring done (2.2s)
-- Generating done (0.0s)
-- Build files have been written to: /build/cm256cc/src/build
$ cmake --build build --verbose
Change Dir: '/build/cm256cc/src/build'

Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile
/usr/bin/cmake -S/build/cm256cc/src/cm256cc-1.1.0 -B/build/cm256cc/src/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /build/cm256cc/src/build/CMakeFiles /build/cm256cc/src/build//CMakeFiles/progress.marks
/usr/bin/make  -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/build/cm256cc/src/build'
/usr/bin/make  -f CMakeFiles/cm256cc.dir/build.make CMakeFiles/cm256cc.dir/depend
make[2]: Entering directory '/build/cm256cc/src/build'
cd /build/cm256cc/src/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/cm256cc/src/cm256cc-1.1.0 /build/cm256cc/src/cm256cc-1.1.0 /build/cm256cc/src/build /build/cm256cc/src/build /build/cm256cc/src/build/CMakeFiles/cm256cc.dir/DependInfo.cmake "--color="
make[2]: Leaving directory '/build/cm256cc/src/build'
/usr/bin/make  -f CMakeFiles/cm256cc.dir/build.make CMakeFiles/cm256cc.dir/build
make[2]: Entering directory '/build/cm256cc/src/build'
[  5%] Building CXX object CMakeFiles/cm256cc.dir/gf256.cpp.o
[ 11%] Building CXX object CMakeFiles/cm256cc.dir/cm256.cpp.o
/usr/bin/c++ -DARCHITECTURE_x86_64=1 -DNO_RESTRICT -DUSE_AVX -DUSE_AVX2 -DUSE_SSE2 -DUSE_SSE4_1 -DUSE_SSE4_2 -DUSE_SSSE3 -Dcm256cc_EXPORTS -I/build/cm256cc/src/cm256cc-1.1.0/. -I/build/cm256cc/src/build -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/cm256cc/src=/usr/src/debug/cm256cc -flto=auto -msse2 -mssse3 -Wall -Wextra -O3 -ffast-math -ftree-vectorize  -fmax-errors=10 -O3 -DNDEBUG -msse4.1 -msse4.2 -mavx -mavx2 -std=c++11 -std=c++11 -fPIC -MD -MT CMakeFiles/cm256cc.dir/gf256.cpp.o -MF CMakeFiles/cm256cc.dir/gf256.cpp.o.d -o CMakeFiles/cm256cc.dir/gf256.cpp.o -c /build/cm256cc/src/cm256cc-1.1.0/gf256.cpp
/usr/bin/c++ -DARCHITECTURE_x86_64=1 -DNO_RESTRICT -DUSE_AVX -DUSE_AVX2 -DUSE_SSE2 -DUSE_SSE4_1 -DUSE_SSE4_2 -DUSE_SSSE3 -Dcm256cc_EXPORTS -I/build/cm256cc/src/cm256cc-1.1.0/. -I/build/cm256cc/src/build -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/cm256cc/src=/usr/src/debug/cm256cc -flto=auto -msse2 -mssse3 -Wall -Wextra -O3 -ffast-math -ftree-vectorize  -fmax-errors=10 -O3 -DNDEBUG -msse4.1 -msse4.2 -mavx -mavx2 -std=c++11 -std=c++11 -fPIC -MD -MT CMakeFiles/cm256cc.dir/cm256.cpp.o -MF CMakeFiles/cm256cc.dir/cm256.cpp.o.d -o CMakeFiles/cm256cc.dir/cm256.cpp.o -c /build/cm256cc/src/cm256cc-1.1.0/cm256.cpp
[ 17%] Linking CXX shared library libcm256cc.so
/usr/bin/cmake -E cmake_link_script CMakeFiles/cm256cc.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/cm256cc/src=/usr/src/debug/cm256cc -flto=auto -msse2 -mssse3 -Wall -Wextra -O3 -ffast-math -ftree-vectorize  -fmax-errors=10 -O3 -DNDEBUG -msse4.1 -msse4.2 -mavx -mavx2 -std=c++11 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -shared -Wl,-soname,libcm256cc.so.1 -o libcm256cc.so.1.1.0 CMakeFiles/cm256cc.dir/cm256.cpp.o CMakeFiles/cm256cc.dir/gf256.cpp.o  -Wl,-rpath,:::: 
/usr/bin/cmake -E cmake_symlink_library libcm256cc.so.1.1.0 libcm256cc.so.1 libcm256cc.so
make[2]: Leaving directory '/build/cm256cc/src/build'
[ 17%] Built target cm256cc
/usr/bin/make  -f CMakeFiles/cm256_test.dir/build.make CMakeFiles/cm256_test.dir/depend
/usr/bin/make  -f CMakeFiles/cm256_tx.dir/build.make CMakeFiles/cm256_tx.dir/depend
/usr/bin/make  -f CMakeFiles/cm256_rx.dir/build.make CMakeFiles/cm256_rx.dir/depend
make[2]: Entering directory '/build/cm256cc/src/build'
cd /build/cm256cc/src/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/cm256cc/src/cm256cc-1.1.0 /build/cm256cc/src/cm256cc-1.1.0 /build/cm256cc/src/build /build/cm256cc/src/build /build/cm256cc/src/build/CMakeFiles/cm256_tx.dir/DependInfo.cmake "--color="
make[2]: Entering directory '/build/cm256cc/src/build'
cd /build/cm256cc/src/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/cm256cc/src/cm256cc-1.1.0 /build/cm256cc/src/cm256cc-1.1.0 /build/cm256cc/src/build /build/cm256cc/src/build /build/cm256cc/src/build/CMakeFiles/cm256_test.dir/DependInfo.cmake "--color="
make[2]: Entering directory '/build/cm256cc/src/build'
cd /build/cm256cc/src/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/cm256cc/src/cm256cc-1.1.0 /build/cm256cc/src/cm256cc-1.1.0 /build/cm256cc/src/build /build/cm256cc/src/build /build/cm256cc/src/build/CMakeFiles/cm256_rx.dir/DependInfo.cmake "--color="
make[2]: Leaving directory '/build/cm256cc/src/build'
make[2]: Leaving directory '/build/cm256cc/src/build'
/usr/bin/make  -f CMakeFiles/cm256_rx.dir/build.make CMakeFiles/cm256_rx.dir/build
/usr/bin/make  -f CMakeFiles/cm256_tx.dir/build.make CMakeFiles/cm256_tx.dir/build
make[2]: Leaving directory '/build/cm256cc/src/build'
/usr/bin/make  -f CMakeFiles/cm256_test.dir/build.make CMakeFiles/cm256_test.dir/build
make[2]: Entering directory '/build/cm256cc/src/build'
make[2]: Entering directory '/build/cm256cc/src/build'
make[2]: Entering directory '/build/cm256cc/src/build'
[ 23%] Building CXX object CMakeFiles/cm256_rx.dir/unit_test/mainutils.cpp.o
[ 29%] Building CXX object CMakeFiles/cm256_rx.dir/unit_test/receive.cpp.o
[ 35%] Building CXX object CMakeFiles/cm256_rx.dir/unit_test/UDPSocket.cpp.o
/usr/bin/c++ -DARCHITECTURE_x86_64=1 -DNO_RESTRICT -DUSE_AVX -DUSE_AVX2 -DUSE_SSE2 -DUSE_SSE4_1 -DUSE_SSE4_2 -DUSE_SSSE3 -I/build/cm256cc/src/cm256cc-1.1.0/. -I/build/cm256cc/src/build -I/build/cm256cc/src/cm256cc-1.1.0 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/cm256cc/src=/usr/src/debug/cm256cc -flto=auto -msse2 -mssse3 -Wall -Wextra -O3 -ffast-math -ftree-vectorize  -fmax-errors=10 -O3 -DNDEBUG -msse4.1 -msse4.2 -mavx -mavx2 -std=c++11 -std=c++11 -MD -MT CMakeFiles/cm256_rx.dir/unit_test/mainutils.cpp.o -MF CMakeFiles/cm256_rx.dir/unit_test/mainutils.cpp.o.d -o CMakeFiles/cm256_rx.dir/unit_test/mainutils.cpp.o -c /build/cm256cc/src/cm256cc-1.1.0/unit_test/mainutils.cpp
[ 41%] Building CXX object CMakeFiles/cm256_test.dir/unit_test/cm256_test.cpp.o
[ 47%] Building CXX object CMakeFiles/cm256_rx.dir/unit_test/example0.cpp.o
/usr/bin/c++ -DARCHITECTURE_x86_64=1 -DNO_RESTRICT -DUSE_AVX -DUSE_AVX2 -DUSE_SSE2 -DUSE_SSE4_1 -DUSE_SSE4_2 -DUSE_SSSE3 -I/build/cm256cc/src/cm256cc-1.1.0/. -I/build/cm256cc/src/build -I/build/cm256cc/src/cm256cc-1.1.0 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/cm256cc/src=/usr/src/debug/cm256cc -flto=auto -msse2 -mssse3 -Wall -Wextra -O3 -ffast-math -ftree-vectorize  -fmax-errors=10 -O3 -DNDEBUG -msse4.1 -msse4.2 -mavx -mavx2 -std=c++11 -std=c++11 -MD -MT CMakeFiles/cm256_rx.dir/unit_test/receive.cpp.o -MF CMakeFiles/cm256_rx.dir/unit_test/receive.cpp.o.d -o CMakeFiles/cm256_rx.dir/unit_test/receive.cpp.o -c /build/cm256cc/src/cm256cc-1.1.0/unit_test/receive.cpp
[ 58%] Building CXX object CMakeFiles/cm256_tx.dir/unit_test/example0.cpp.o
[ 58%] Building CXX object CMakeFiles/cm256_tx.dir/unit_test/UDPSocket.cpp.o
[ 64%] Building CXX object CMakeFiles/cm256_tx.dir/unit_test/example1.cpp.o
[ 70%] Building CXX object CMakeFiles/cm256_rx.dir/unit_test/example1.cpp.o
/usr/bin/c++ -DARCHITECTURE_x86_64=1 -DNO_RESTRICT -DUSE_AVX -DUSE_AVX2 -DUSE_SSE2 -DUSE_SSE4_1 -DUSE_SSE4_2 -DUSE_SSSE3 -I/build/cm256cc/src/cm256cc-1.1.0/. -I/build/cm256cc/src/build -I/build/cm256cc/src/cm256cc-1.1.0 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/cm256cc/src=/usr/src/debug/cm256cc -flto=auto -msse2 -mssse3 -Wall -Wextra -O3 -ffast-math -ftree-vectorize  -fmax-errors=10 -O3 -DNDEBUG -msse4.1 -msse4.2 -mavx -mavx2 -std=c++11 -std=c++11 -MD -MT CMakeFiles/cm256_rx.dir/unit_test/UDPSocket.cpp.o -MF CMakeFiles/cm256_rx.dir/unit_test/UDPSocket.cpp.o.d -o CMakeFiles/cm256_rx.dir/unit_test/UDPSocket.cpp.o -c /build/cm256cc/src/cm256cc-1.1.0/unit_test/UDPSocket.cpp
/usr/bin/c++ -DARCHITECTURE_x86_64=1 -DNO_RESTRICT -DUSE_AVX -DUSE_AVX2 -DUSE_SSE2 -DUSE_SSE4_1 -DUSE_SSE4_2 -DUSE_SSSE3 -I/build/cm256cc/src/cm256cc-1.1.0/. -I/build/cm256cc/src/build -I/build/cm256cc/src/cm256cc-1.1.0 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/cm256cc/src=/usr/src/debug/cm256cc -flto=auto -msse2 -mssse3 -Wall -Wextra -O3 -ffast-math -ftree-vectorize  -fmax-errors=10 -O3 -DNDEBUG -msse4.1 -msse4.2 -mavx -mavx2 -std=c++11 -std=c++11 -MD -MT CMakeFiles/cm256_rx.dir/unit_test/example0.cpp.o -MF CMakeFiles/cm256_rx.dir/unit_test/example0.cpp.o.d -o CMakeFiles/cm256_rx.dir/unit_test/example0.cpp.o -c /build/cm256cc/src/cm256cc-1.1.0/unit_test/example0.cpp
/usr/bin/c++ -DARCHITECTURE_x86_64=1 -DNO_RESTRICT -DUSE_AVX -DUSE_AVX2 -DUSE_SSE2 -DUSE_SSE4_1 -DUSE_SSE4_2 -DUSE_SSSE3 -I/build/cm256cc/src/cm256cc-1.1.0/. -I/build/cm256cc/src/build -I/build/cm256cc/src/cm256cc-1.1.0 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/cm256cc/src=/usr/src/debug/cm256cc -flto=auto -msse2 -mssse3 -Wall -Wextra -O3 -ffast-math -ftree-vectorize  -fmax-errors=10 -O3 -DNDEBUG -msse4.1 -msse4.2 -mavx -mavx2 -std=c++11 -std=c++11 -MD -MT CMakeFiles/cm256_test.dir/unit_test/cm256_test.cpp.o -MF CMakeFiles/cm256_test.dir/unit_test/cm256_test.cpp.o.d -o CMakeFiles/cm256_test.dir/unit_test/cm256_test.cpp.o -c /build/cm256cc/src/cm256cc-1.1.0/unit_test/cm256_test.cpp
[ 76%] Building CXX object CMakeFiles/cm256_tx.dir/unit_test/transmit.cpp.o
/usr/bin/c++ -DARCHITECTURE_x86_64=1 -DNO_RESTRICT -DUSE_AVX -DUSE_AVX2 -DUSE_SSE2 -DUSE_SSE4_1 -DUSE_SSE4_2 -DUSE_SSSE3 -I/build/cm256cc/src/cm256cc-1.1.0/. -I/build/cm256cc/src/build -I/build/cm256cc/src/cm256cc-1.1.0 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/cm256cc/src=/usr/src/debug/cm256cc -flto=auto -msse2 -mssse3 -Wall -Wextra -O3 -ffast-math -ftree-vectorize  -fmax-errors=10 -O3 -DNDEBUG -msse4.1 -msse4.2 -mavx -mavx2 -std=c++11 -std=c++11 -MD -MT CMakeFiles/cm256_tx.dir/unit_test/UDPSocket.cpp.o -MF CMakeFiles/cm256_tx.dir/unit_test/UDPSocket.cpp.o.d -o CMakeFiles/cm256_tx.dir/unit_test/UDPSocket.cpp.o -c /build/cm256cc/src/cm256cc-1.1.0/unit_test/UDPSocket.cpp
/usr/bin/c++ -DARCHITECTURE_x86_64=1 -DNO_RESTRICT -DUSE_AVX -DUSE_AVX2 -DUSE_SSE2 -DUSE_SSE4_1 -DUSE_SSE4_2 -DUSE_SSSE3 -I/build/cm256cc/src/cm256cc-1.1.0/. -I/build/cm256cc/src/build -I/build/cm256cc/src/cm256cc-1.1.0 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/cm256cc/src=/usr/src/debug/cm256cc -flto=auto -msse2 -mssse3 -Wall -Wextra -O3 -ffast-math -ftree-vectorize  -fmax-errors=10 -O3 -DNDEBUG -msse4.1 -msse4.2 -mavx -mavx2 -std=c++11 -std=c++11 -MD -MT CMakeFiles/cm256_tx.dir/unit_test/example0.cpp.o -MF CMakeFiles/cm256_tx.dir/unit_test/example0.cpp.o.d -o CMakeFiles/cm256_tx.dir/unit_test/example0.cpp.o -c /build/cm256cc/src/cm256cc-1.1.0/unit_test/example0.cpp
/usr/bin/c++ -DARCHITECTURE_x86_64=1 -DNO_RESTRICT -DUSE_AVX -DUSE_AVX2 -DUSE_SSE2 -DUSE_SSE4_1 -DUSE_SSE4_2 -DUSE_SSSE3 -I/build/cm256cc/src/cm256cc-1.1.0/. -I/build/cm256cc/src/build -I/build/cm256cc/src/cm256cc-1.1.0 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/cm256cc/src=/usr/src/debug/cm256cc -flto=auto -msse2 -mssse3 -Wall -Wextra -O3 -ffast-math -ftree-vectorize  -fmax-errors=10 -O3 -DNDEBUG -msse4.1 -msse4.2 -mavx -mavx2 -std=c++11 -std=c++11 -MD -MT CMakeFiles/cm256_tx.dir/unit_test/example1.cpp.o -MF CMakeFiles/cm256_tx.dir/unit_test/example1.cpp.o.d -o CMakeFiles/cm256_tx.dir/unit_test/example1.cpp.o -c /build/cm256cc/src/cm256cc-1.1.0/unit_test/example1.cpp
[ 82%] Building CXX object CMakeFiles/cm256_tx.dir/unit_test/mainutils.cpp.o
/usr/bin/c++ -DARCHITECTURE_x86_64=1 -DNO_RESTRICT -DUSE_AVX -DUSE_AVX2 -DUSE_SSE2 -DUSE_SSE4_1 -DUSE_SSE4_2 -DUSE_SSSE3 -I/build/cm256cc/src/cm256cc-1.1.0/. -I/build/cm256cc/src/build -I/build/cm256cc/src/cm256cc-1.1.0 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/cm256cc/src=/usr/src/debug/cm256cc -flto=auto -msse2 -mssse3 -Wall -Wextra -O3 -ffast-math -ftree-vectorize  -fmax-errors=10 -O3 -DNDEBUG -msse4.1 -msse4.2 -mavx -mavx2 -std=c++11 -std=c++11 -MD -MT CMakeFiles/cm256_rx.dir/unit_test/example1.cpp.o -MF CMakeFiles/cm256_rx.dir/unit_test/example1.cpp.o.d -o CMakeFiles/cm256_rx.dir/unit_test/example1.cpp.o -c /build/cm256cc/src/cm256cc-1.1.0/unit_test/example1.cpp
/usr/bin/c++ -DARCHITECTURE_x86_64=1 -DNO_RESTRICT -DUSE_AVX -DUSE_AVX2 -DUSE_SSE2 -DUSE_SSE4_1 -DUSE_SSE4_2 -DUSE_SSSE3 -I/build/cm256cc/src/cm256cc-1.1.0/. -I/build/cm256cc/src/build -I/build/cm256cc/src/cm256cc-1.1.0 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/cm256cc/src=/usr/src/debug/cm256cc -flto=auto -msse2 -mssse3 -Wall -Wextra -O3 -ffast-math -ftree-vectorize  -fmax-errors=10 -O3 -DNDEBUG -msse4.1 -msse4.2 -mavx -mavx2 -std=c++11 -std=c++11 -MD -MT CMakeFiles/cm256_tx.dir/unit_test/transmit.cpp.o -MF CMakeFiles/cm256_tx.dir/unit_test/transmit.cpp.o.d -o CMakeFiles/cm256_tx.dir/unit_test/transmit.cpp.o -c /build/cm256cc/src/cm256cc-1.1.0/unit_test/transmit.cpp
/usr/bin/c++ -DARCHITECTURE_x86_64=1 -DNO_RESTRICT -DUSE_AVX -DUSE_AVX2 -DUSE_SSE2 -DUSE_SSE4_1 -DUSE_SSE4_2 -DUSE_SSSE3 -I/build/cm256cc/src/cm256cc-1.1.0/. -I/build/cm256cc/src/build -I/build/cm256cc/src/cm256cc-1.1.0 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/cm256cc/src=/usr/src/debug/cm256cc -flto=auto -msse2 -mssse3 -Wall -Wextra -O3 -ffast-math -ftree-vectorize  -fmax-errors=10 -O3 -DNDEBUG -msse4.1 -msse4.2 -mavx -mavx2 -std=c++11 -std=c++11 -MD -MT CMakeFiles/cm256_tx.dir/unit_test/mainutils.cpp.o -MF CMakeFiles/cm256_tx.dir/unit_test/mainutils.cpp.o.d -o CMakeFiles/cm256_tx.dir/unit_test/mainutils.cpp.o -c /build/cm256cc/src/cm256cc-1.1.0/unit_test/mainutils.cpp
In file included from /build/cm256cc/src/cm256cc-1.1.0/unit_test/example0.cpp:33:
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:37:9: error: ‘uint16_t’ does not name a type
   37 |         uint16_t i;
      |         ^~~~~~~~
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:33:1: note: ‘uint16_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   32 | #include <string.h>
  +++ |+#include <cstdint>
   33 | 
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:38:9: error: ‘uint16_t’ does not name a type
   38 |         uint16_t q;
      |         ^~~~~~~~
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:38:9: note: ‘uint16_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:42:9: error: ‘uint16_t’ does not name a type
   42 |         uint16_t frameIndex;
      |         ^~~~~~~~
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:42:9: note: ‘uint16_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:43:9: error: ‘uint8_t’ does not name a type
   43 |         uint8_t  blockIndex;
      |         ^~~~~~~
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:43:9: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:44:9: error: ‘uint8_t’ does not name a type
   44 |         uint8_t  filler;
      |         ^~~~~~~
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:44:9: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:64:9: error: ‘uint32_t’ does not name a type
   64 |         uint32_t m_centerFrequency;   //!<  4 center frequency in kHz
      |         ^~~~~~~~
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:64:9: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:65:9: error: ‘uint32_t’ does not name a type
   65 |         uint32_t m_sampleRate;        //!<  8 sample rate in Hz
      |         ^~~~~~~~
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:65:9: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:66:9: error: ‘uint8_t’ does not name a type
   66 |         uint8_t  m_sampleBytes;       //!<  9 MSB(4): indicators, LSB(4) number of bytes per sample
      |         ^~~~~~~
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:66:9: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:67:9: error: ‘uint8_t’ does not name a type
   67 |         uint8_t  m_sampleBits;        //!< 10 number of effective bits per sample
      |         ^~~~~~~
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:67:9: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:68:9: error: ‘uint8_t’ does not name a type
   68 |         uint8_t  m_nbOriginalBlocks;  //!< 11 number of blocks with original (protected) data
      |         ^~~~~~~
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:68:9: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
compilation terminated due to -fmax-errors=10.
make[2]: *** [CMakeFiles/cm256_rx.dir/build.make:104: CMakeFiles/cm256_rx.dir/unit_test/example0.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /build/cm256cc/src/cm256cc-1.1.0/unit_test/example0.cpp:33:
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:37:9: error: ‘uint16_t’ does not name a type
   37 |         uint16_t i;
      |         ^~~~~~~~
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:33:1: note: ‘uint16_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   32 | #include <string.h>
  +++ |+#include <cstdint>
   33 | 
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:38:9: error: ‘uint16_t’ does not name a type
   38 |         uint16_t q;
      |         ^~~~~~~~
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:38:9: note: ‘uint16_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:42:9: error: ‘uint16_t’ does not name a type
   42 |         uint16_t frameIndex;
      |         ^~~~~~~~
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:42:9: note: ‘uint16_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:43:9: error: ‘uint8_t’ does not name a type
   43 |         uint8_t  blockIndex;
      |         ^~~~~~~
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:43:9: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:44:9: error: ‘uint8_t’ does not name a type
   44 |         uint8_t  filler;
      |         ^~~~~~~
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:44:9: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:64:9: error: ‘uint32_t’ does not name a type
   64 |         uint32_t m_centerFrequency;   //!<  4 center frequency in kHz
      |         ^~~~~~~~
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:64:9: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:65:9: error: ‘uint32_t’ does not name a type
   65 |         uint32_t m_sampleRate;        //!<  8 sample rate in Hz
      |         ^~~~~~~~
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:65:9: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:66:9: error: ‘uint8_t’ does not name a type
   66 |         uint8_t  m_sampleBytes;       //!<  9 MSB(4): indicators, LSB(4) number of bytes per sample
      |         ^~~~~~~
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:66:9: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:67:9: error: ‘uint8_t’ does not name a type
   67 |         uint8_t  m_sampleBits;        //!< 10 number of effective bits per sample
      |         ^~~~~~~
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:67:9: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:68:9: error: ‘uint8_t’ does not name a type
   68 |         uint8_t  m_nbOriginalBlocks;  //!< 11 number of blocks with original (protected) data
      |         ^~~~~~~
/build/cm256cc/src/cm256cc-1.1.0/unit_test/data.h:68:9: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
compilation terminated due to -fmax-errors=10.
make[2]: *** [CMakeFiles/cm256_tx.dir/build.make:104: CMakeFiles/cm256_tx.dir/unit_test/example0.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 88%] Linking CXX executable cm256_test
/usr/bin/cmake -E cmake_link_script CMakeFiles/cm256_test.dir/link.txt --verbose=1
/usr/bin/c++ -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/cm256cc/src=/usr/src/debug/cm256cc -flto=auto -msse2 -mssse3 -Wall -Wextra -O3 -ffast-math -ftree-vectorize  -fmax-errors=10 -O3 -DNDEBUG -msse4.1 -msse4.2 -mavx -mavx2 -std=c++11 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -rdynamic CMakeFiles/cm256_test.dir/unit_test/cm256_test.cpp.o -o cm256_test  -Wl,-rpath,/build/cm256cc/src/build: libcm256cc.so.1.1.0 
make[2]: Leaving directory '/build/cm256cc/src/build'
[ 88%] Built target cm256_test
make[2]: Leaving directory '/build/cm256cc/src/build'
make[1]: *** [CMakeFiles/Makefile2:167: CMakeFiles/cm256_rx.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/build/cm256cc/src/build'
make[1]: *** [CMakeFiles/Makefile2:141: CMakeFiles/cm256_tx.dir/all] Error 2
make[1]: Leaving directory '/build/cm256cc/src/build'
make: *** [Makefile:136: all] Error 2

The issue can be rersolved by adding #include <cstdint> to unit_test/data.h as suggested in the gcc output.

loqs commented 1 year ago

Fixed by #18.