You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/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?
The text was updated successfully, but these errors were encountered:
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
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?
The text was updated successfully, but these errors were encountered: