test_txrx_hwloop.c / bladeRF build error on Raspberry Pi 4 B (bullseye 32bit)

Discussions related to embedded firmware, driver, and user mode application software development
Post Reply
denis.vasyukov
Posts: 1
Joined: Fri Nov 03, 2023 6:19 am

test_txrx_hwloop.c / bladeRF build error on Raspberry Pi 4 B (bullseye 32bit)

Post by denis.vasyukov »

I have the following error during the build:

Code: Select all

/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
A year ago it was building just fine...
stabilitytruthful
Posts: 2
Joined: Thu Feb 01, 2024 12:32 am

Re: test_txrx_hwloop.c / bladeRF build error on Raspberry Pi 4 B (bullseye 32bit)

Post by stabilitytruthful »

Why don't you contact support directly. Any problemsbasketball stars will be resolved faster.
Nanisa2
Posts: 1
Joined: Wed May 29, 2024 3:02 am

Re: test_txrx_hwloop.c / bladeRF build error on Raspberry Pi 4 B (bullseye 32bit)

Post by Nanisa2 »

Are you prepared to play the game bitlife - Life Simulator and experience an interesting virtual life? Before your life is over, start your life over and make the right choices little by little, year by year, until you eventually become a model citizen.
Jason967
Posts: 1
Joined: Thu May 30, 2024 11:39 pm

Re: test_txrx_hwloop.c / bladeRF build error on Raspberry Pi 4 B (bullseye 32bit)

Post by Jason967 »

The error you get while building the code is due to a change in the way the compiler handles warnings. Specifically, the current compiler is warning that the comparison >= 0 with variable c will always be true due to the data type of variable c. This error is raised to an error because the -Werror option is enabled, which turns all warnings into errors. slice master
Post Reply