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

test_txrx_hwloop.c / bladeRF build error on Raspberry Pi 4 B (bullseye 32bit, bookworm 64 bit) #952

Closed
denisvasyukov opened this issue Nov 6, 2023 · 1 comment

Comments

@denisvasyukov
Copy link

I have the following error during the build:

/home/pi/bladeRF/host/libraries/libbladeRF_test/test_timestamps/src/test_txrx_hwloop.c: In function ‘main’: /home/pi/bladeRF/host/libraries/libbladeRF_test/test_timestamps/src/test_txrx_hwloop.c:104:74: error: comparison is always true due to limited range of data type [-Werror=type-limits] 104 | while ((c = getopt_long(argc, argv, optstr, long_options, &opt_ind)) >= 0) { | ^~ cc1: all warnings being treated as errors make[2]: *** [libraries/libbladeRF_test/test_timestamps/CMakeFiles/libbladeRF_test_txrx_hwloop.dir/build.make:82: libraries/libbladeRF_test/test_timestamps/CMakeFiles/libbladeRF_test_txrx_hwloop.dir/src/test_txrx_hwloop.c.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:1378: libraries/libbladeRF_test/test_timestamps/CMakeFiles/libbladeRF_test_txrx_hwloop.dir/all] Error 2 make: *** [Makefile:149: all] Error 2

this happens for all the last commits since 31 May 2023 at least.
One commit that still works is from 17 Oct 2022.
Is there a solution for it?

@ptef
Copy link

ptef commented Nov 24, 2023

Hi, this is caused by -Werror=type-limits added automatically by -Wextra.
I solved this by removing -Wextra from libraries/libbladeRF_test/test_timestamps/CMakeFiles/libbladeRF_test_txrx_hwloop.dir/flags.make file

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

2 participants