Fedora 32 - bladeRF compile

Having issues with the site, hardware, source code, or any other issues?

Moderator: robert.ghilduta

Post Reply
stachuman
Posts: 1
Joined: Sat May 02, 2020 10:23 am

Fedora 32 - bladeRF compile

Post by stachuman » Sat May 02, 2020 10:39 am

Dears,

Recently changed my environment from ubuntu to fedora 32 - and as under ubuntu I had no issue to recompile (ok, there were few - but after 2-3 hours -all solved).

Now I simply can't past the compilation of bladeRF - have run of option.

Followed carefully the guide to compile -

cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DINSTALL_UDEV_RULES=ON -DBLADERF_GROUP=bladerf -DTREAT_WARNINGS_AS_ERRORS=No ../

As it might be important - output is:

-- The C compiler identification is GNU 10.0.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Searching 16 bit integer - Using unsigned short
-- Check if the system is big endian - little endian
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.6.3")
-- Checking libusb version...
-- libusb version: 1.0.23

-- Looking for clock_gettime in c
-- Looking for clock_gettime in c - found
-- libad936x: Configuring build...
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- FindPatcher: found /usr/bin/patch
-- libad936x: Applying patch: 0001-0bba46e-nuand-modifications.patch
-- libad936x: Applying patch: 0002-0bba46e-pr-561.patch
-- libad936x: Applying patch: 0003-0bba46e-pr-573.patch
-- libad936x: Applying patch: 0004-0bba46e-pr-598.patch
-- libad936x: Applying patch: 0005-0bba46e-rm-ad9361_parse_fir.patch
-- libad936x: Applying patch: 0006-0bba46e-compilefix.patch
-- libad936x: Build configured
-- Checking libc version...
-- libc version: 2.31

--
-- libbladeRF version: 2.2.1-git-45521019
-- The CXX compiler identification is GNU 10.0.1
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- nuand bladeRF udev rules will be installed to '/etc/udev/rules.d' upon running 'make install'
--
-- Found libtecla: /usr/local/include, /usr/local/lib/libtecla.so
-- Found libedit: /usr/include, /usr/lib64/libedit.so
-- Will regenerate bladeRF-cli interactive help
-- libtecla OFF TRUE
-- libedit OFF TRUE
-- libtecla support enabled
-- Not building man page for bladeRF-cli. (BUILD_BLADERF_CLI_DOCUMENTATION is OFF)
-- Configured to build bladeRF-cli version: 1.8.0-git-45521019
-- Configuring done
-- Generating done
-- Build files have been written to: /home/staszek/bladeRF/host/build


(that's first interesting thing - without TREAT_WARNINGS_AS_ERRORS - I got following error error during compilation: " error: implicit conversion from ‘enum <anonymous>’ to ‘enum <anonymous>’ " )

yet with above switch - compilation stuck (well, in fact - linking) with error:

/usr/bin/ld: CMakeFiles/libbladerf_shared.dir/src/board/bladerf2/common.c.o:(.data.rel.local+0x0): multiple definition of `bladerf2_state_to_string'; CMakeFiles/libbladerf_shared.dir/src/board/bladerf2/bladerf2.c.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/libbladerf_shared.dir/src/board/bladerf2/rfic_fpga.c.o:(.bss+0x0): multiple definition of `bladerf2_state_to_string'; CMakeFiles/libbladerf_shared.dir/src/board/bladerf2/bladerf2.c.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/libbladerf_shared.dir/src/board/bladerf2/rfic_host.c.o:(.bss+0x0): multiple definition of `bladerf2_state_to_string'; CMakeFiles/libbladerf_shared.dir/src/board/bladerf2/bladerf2.c.o:(.bss+0x0): first defined here

That seems like incompatible compiler?!
I'm lost anyway :(

Would appreciate any help.

Thx!

Post Reply