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

Error at compilation: Convolution.h:5:10: fatal error: bit: No such file or directory #20

Open
janekska opened this issue Apr 20, 2022 · 4 comments

Comments

@janekska
Copy link

What I am doing wrong or missing?

root@raspberrypi:/home/pi/m17-cxx-demod/build# cmake ..
-- Build type not specified: defaulting to release.
-- # Checking dependencies
-- Found GTest: /usr/lib/arm-linux-gnueabihf/libgtest.a
-- Using install prefix: /usr/local
-- Building version: 0.1
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/m17-cxx-demod/build
root@raspberrypi:/home/pi/m17-cxx-demod/build# make
Scanning dependencies of target m17-demod
[  2%] Building CXX object apps/CMakeFiles/m17-demod.dir/m17-demod.cpp.o
In file included from /home/pi/m17-cxx-demod/include/m17cxx/Trellis.h:8,
                 from /home/pi/m17-cxx-demod/include/m17cxx/M17FrameDecoder.h:7,
                 from /home/pi/m17-cxx-demod/include/m17cxx/M17Demodulator.h:11,
                 from /home/pi/m17-cxx-demod/apps/m17-demod.cpp:3:
/home/pi/m17-cxx-demod/include/m17cxx/Convolution.h:5:10: fatal error: bit: No such file or directory
 #include <bit>
          ^~~~~
compilation terminated.
make[2]: *** [apps/CMakeFiles/m17-demod.dir/build.make:63: apps/CMakeFiles/m17-demod.dir/m17-demod.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:196: apps/CMakeFiles/m17-demod.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

@mobilinkd
Copy link
Owner

mobilinkd commented Apr 24, 2022 via email

@janekska
Copy link
Author

Hm, I used compiler packages provided by apt... on my raspberry/raspbian.
How could I check it?

@marrem
Copy link

marrem commented Apr 30, 2022

Same thing here on Raspbian GNU/Linux 10.

pi@mpw:~/src/m17-cxx-demod/build $ gcc --version
gcc (Raspbian 8.3.0-6+rpi1) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
pi@mpw:~/src/m17-cxx-demod/build $ make
[ 25%] Building CXX object apps/CMakeFiles/m17-mod.dir/m17-mod.cpp.o
In file included from /home/pi/src/m17-cxx-demod/include/m17cxx/Trellis.h:8,
                 from /home/pi/src/m17-cxx-demod/apps/m17-mod.cpp:8:
/home/pi/src/m17-cxx-demod/include/m17cxx/Convolution.h:5:10: fatal error: bit: No such file or directory
 #include <bit>

What file does #include <bit> look for. I've looked for bit.h in debian package search. Found it in Linux headers, but after installing that, it didn't solve the problem.

@srcejon
Copy link

srcejon commented Jul 24, 2022

You appear to be missing a standard C++20 header. Does your compiler support C++20?

BTW, readme.md says "It also requires a modern C++17 compiler"

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

4 participants