Project

General

Profile

Bug #3663

Can't compile gr-osmosdr on macOS Mojave

Added by sevyls 27 days ago. Updated 27 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
10/19/2018
Due date:
% Done:

0%


Description

Hi,

I am unable to build gr-osmosdr on macOS Mojave.

I did checkout the master branch and did the following:


$ brew install gnuradio

$ git clone https://github.com/osmocom/gr-osmosdr.git

$ mkdir build

$ cd build 

$ cmake .. -DGnuradio_DIR=$(brew --prefix gnuradio)/lib/cmake/gnuradio
-- Build type not specified: defaulting to release.
-- Extracting version information from git describe...
-- Configuring Boost C++ Libraries...
-- Boost version: 1.67.0
-- Found the following Boost libraries:
--   thread
--   system
--   chrono
--   date_time
--   atomic
Checking for GNU Radio Module: RUNTIME
-- Checking for module 'gnuradio-runtime'
--   No package 'gnuradio-runtime' found
 * INCLUDES=/usr/local/Cellar/gnuradio/3.7.13.4/include
 * LIBS=/usr/local/Cellar/gnuradio/3.7.13.4/lib/libgnuradio-runtime.dylib
GNURADIO_RUNTIME_FOUND = TRUE
Checking for GNU Radio Module: BLOCKS
-- Checking for module 'gnuradio-blocks'
--   No package 'gnuradio-blocks' found
 * INCLUDES=/usr/local/Cellar/gnuradio/3.7.13.4/include
 * LIBS=/usr/local/Cellar/gnuradio/3.7.13.4/lib/libgnuradio-blocks.dylib
GNURADIO_BLOCKS_FOUND = TRUE
Checking for GNU Radio Module: PMT
-- Checking for module 'gnuradio-runtime'
--   No package 'gnuradio-runtime' found
 * INCLUDES=/usr/local/Cellar/gnuradio/3.7.13.4/include
 * LIBS=/usr/local/Cellar/gnuradio/3.7.13.4/lib/libgnuradio-pmt.dylib
GNURADIO_PMT_FOUND = TRUE
-- Checking for module 'gnuradio-iqbalance'
--   No package 'gnuradio-iqbalance' found
-- Could NOT find GNURADIO_IQBALANCE (missing: GNURADIO_IQBALANCE_LIBRARIES GNURADIO_IQBALANCE_INCLUDE_DIRS) 
-- Checking for module 'gnuradio-uhd'
--   No package 'gnuradio-uhd' found
-- gnuradio-uhd not found.
-- Could NOT find GNURADIO_UHD (missing: GNURADIO_UHD_LIBRARIES GNURADIO_UHD_INCLUDE_DIRS) 
-- Checking for module 'gnuradio-fcd'
--   No package 'gnuradio-fcd' found
-- gnuradio-fcd not found.
-- Could NOT find GNURADIO_FCD (missing: GNURADIO_FCD_LIBRARIES GNURADIO_FCD_INCLUDE_DIRS) 
-- Checking for module 'gnuradio-fcdproplus'
--   No package 'gnuradio-fcdproplus' found
-- gnuradio-fcdproplus not found.
-- Could NOT find GNURADIO_FCDPP (missing: GNURADIO_FCDPP_LIBRARIES GNURADIO_FCDPP_INCLUDE_DIRS) 
-- Checking for module 'libosmosdr'
--   No package 'libosmosdr' found
-- libosmosdr not found.
-- Checking for module 'librtlsdr'
--   No package 'librtlsdr' found
-- librtlsdr not found.
-- Checking for module 'libmirisdr'
--   No package 'libmirisdr' found
-- libmirisdr not found.
-- Checking for module 'libhackrf'
--   No package 'libhackrf' found
-- Could NOT find LIBHACKRF (missing: LIBHACKRF_LIBRARIES LIBHACKRF_INCLUDE_DIRS) 
-- Checking for module 'libairspy'
--   No package 'libairspy' found
-- Could NOT find LIBAIRSPY (missing: LIBAIRSPY_LIBRARIES LIBAIRSPY_INCLUDE_DIRS) 
CMake Warning at CMakeLists.txt:172 (find_package):
  By not providing "FindVolk.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Volk", but
  CMake did not find one.

  Could not find a package configuration file provided by "Volk" with any of
  the following names:

    VolkConfig.cmake
    volk-config.cmake

  Add the installation prefix of "Volk" to CMAKE_PREFIX_PATH or set
  "Volk_DIR" to a directory containing one of the above files.  If "Volk" 
  provides a separate development package or SDK, be sure it has been
  installed.

-- Checking for module 'libbladeRF'
--   No package 'libbladeRF' found
-- libbladeRF not found.
-- Could NOT find SoapySDR (missing: SoapySDR_DIR)
-- Checking for module 'libfreesrp'
--   No package 'libfreesrp' found
-- libfreesrp not found.
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- 
-- Checking for module SWIG
-- Disabling SWIG because version check failed.
-- 
-- The build system will automatically enable all components.
-- Use -DENABLE_DEFAULT=OFF to disable components by default.
-- 
-- Configuring Python support support...
--   Dependency PYTHONLIBS_FOUND = TRUE
--   Dependency SWIG_FOUND = FALSE
--   Dependency SWIG_VERSION_CHECK = FALSE
--   Disabling Python support support.
--   Override with -DENABLE_PYTHON=ON/OFF
-- 
-- Configuring high resolution timing...
--   High resolution timing supported through mach_absolute_time.
-- 
-- Configuring Osmocom IQ Imbalance Correction support...
--   Dependency GNURADIO_IQBALANCE_FOUND = FALSE
--   Disabling Osmocom IQ Imbalance Correction support.
--   Override with -DENABLE_IQBALANCE=ON/OFF
-- 
-- Configuring sysmocom OsmoSDR support...
--   Dependency LIBOSMOSDR_FOUND = FALSE
--   Disabling sysmocom OsmoSDR support.
--   Override with -DENABLE_OSMOSDR=ON/OFF
-- 
-- Configuring FUNcube Dongle support...
--   Dependency GNURADIO_FCD_FOUND = FALSE
--   Disabling FUNcube Dongle support.
--   Override with -DENABLE_FCD=ON/OFF
-- 
-- Configuring FUNcube Dongle Pro+ support...
--   Dependency GNURADIO_FCDPP_FOUND = FALSE
--   Disabling FUNcube Dongle Pro+ support.
--   Override with -DENABLE_FCDPP=ON/OFF
-- 
-- Configuring IQ File Source & Sink support...
--   Dependency GNURADIO_BLOCKS_FOUND = TRUE
--   Enabling IQ File Source & Sink support.
--   Override with -DENABLE_FILE=ON/OFF
-- 
-- Configuring Osmocom RTLSDR support...
--   Dependency LIBRTLSDR_FOUND = FALSE
--   Disabling Osmocom RTLSDR support.
--   Override with -DENABLE_RTL=ON/OFF
-- 
-- Configuring RTLSDR TCP Client support...
--   Dependency GNURADIO_BLOCKS_FOUND = TRUE
--   Enabling RTLSDR TCP Client support.
--   Override with -DENABLE_RTL_TCP=ON/OFF
-- 
-- Configuring Ettus USRP Devices support...
--   Dependency UHD_FOUND = TRUE
--   Dependency GNURADIO_UHD_FOUND = FALSE
--   Disabling Ettus USRP Devices support.
--   Override with -DENABLE_UHD=ON/OFF
-- 
-- Configuring Osmocom MiriSDR support...
--   Dependency LIBMIRISDR_FOUND = FALSE
--   Disabling Osmocom MiriSDR support.
--   Override with -DENABLE_MIRI=ON/OFF
-- 
-- Configuring HackRF & rad1o Badge support...
--   Dependency LIBHACKRF_FOUND = FALSE
--   Disabling HackRF & rad1o Badge support.
--   Override with -DENABLE_HACKRF=ON/OFF
-- 
-- Configuring nuand bladeRF support...
--   Dependency LIBBLADERF_FOUND = FALSE
--   Disabling nuand bladeRF support.
--   Override with -DENABLE_BLADERF=ON/OFF
-- 
-- Configuring RFSPACE Receivers support...
--   Enabling RFSPACE Receivers support.
--   Override with -DENABLE_RFSPACE=ON/OFF
-- 
-- Configuring AIRSPY Receiver support...
--   Dependency LIBAIRSPY_FOUND = FALSE
--   Disabling AIRSPY Receiver support.
--   Override with -DENABLE_AIRSPY=ON/OFF
-- 
-- Configuring SoapySDR support support...
--   Dependency SoapySDR_FOUND = 0
--   Disabling SoapySDR support support.
--   Override with -DENABLE_SOAPY=ON/OFF
-- 
-- Configuring Red Pitaya SDR support...
--   Enabling Red Pitaya SDR support.
--   Override with -DENABLE_REDPITAYA=ON/OFF
-- 
-- Configuring FreeSRP support support...
--   Dependency LIBFREESRP_FOUND = FALSE
--   Disabling FreeSRP support support.
--   Override with -DENABLE_FREESRP=ON/OFF
-- 
-- ######################################################
-- # Gnuradio enabled components                         
-- ######################################################
--   * IQ File Source & Sink
--   * RTLSDR TCP Client
--   * RFSPACE Receivers
--   * Red Pitaya SDR
-- 
-- ######################################################
-- # Gnuradio disabled components                        
-- ######################################################
--   * Python support
--   * Osmocom IQ Imbalance Correction
--   * sysmocom OsmoSDR
--   * FUNcube Dongle
--   * FUNcube Dongle Pro+
--   * Osmocom RTLSDR
--   * Ettus USRP Devices
--   * Osmocom MiriSDR
--   * HackRF & rad1o Badge
--   * nuand bladeRF
--   * AIRSPY Receiver
--   * SoapySDR support
--   * FreeSRP support
-- 
-- Building for version: v0.1.4-127-g4d83c606 / 0.1.5git
-- Using install prefix: /usr/local
-- Configuring done
CMake Warning (dev):
  Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run "cmake
  --help-policy CMP0042" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  MACOSX_RPATH is not specified for the following targets:

   gnuradio-osmosdr

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /Users/aussmich/Projekte/gr-osmosdr/build

make VERBOSE=1
/usr/local/Cellar/cmake/3.12.3/bin/cmake -H/Users/user/Projekte/gr-osmosdr -B/Users/user/Projekte/gr-osmosdr/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/Cellar/cmake/3.12.3/bin/cmake -E cmake_progress_start /Users/user/Projekte/gr-osmosdr/build/CMakeFiles /Users/user/Projekte/gr-osmosdr/build/CMakeFiles/progress.marks
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/Makefile2 all
/Library/Developer/CommandLineTools/usr/bin/make -f lib/CMakeFiles/gnuradio-osmosdr.dir/build.make lib/CMakeFiles/gnuradio-osmosdr.dir/depend
cd /Users/user/Projekte/gr-osmosdr/build && /usr/local/Cellar/cmake/3.12.3/bin/cmake -E cmake_depends "Unix Makefiles" /Users/user/Projekte/gr-osmosdr /Users/user/Projekte/gr-osmosdr/lib /Users/user/Projekte/gr-osmosdr/build /Users/user/Projekte/gr-osmosdr/build/lib /Users/user/Projekte/gr-osmosdr/build/lib/CMakeFiles/gnuradio-osmosdr.dir/DependInfo.cmake --color=
/Library/Developer/CommandLineTools/usr/bin/make -f lib/CMakeFiles/gnuradio-osmosdr.dir/build.make lib/CMakeFiles/gnuradio-osmosdr.dir/build
[  7%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/source_impl.cc.o
cd /Users/user/Projekte/gr-osmosdr/build/lib && /Library/Developer/CommandLineTools/usr/bin/c++  -DBOOST_ALL_DYN_LINK -DHAVE_CONFIG_H=1 -Dgnuradio_osmosdr_EXPORTS -I/Users/user/Projekte/gr-osmosdr/build/lib -I/Users/user/Projekte/gr-osmosdr/include -I/Users/user/Projekte/gr-osmosdr/lib -I/usr/local/include -I/usr/local/Cellar/gnuradio/3.7.13.4/include -I/Users/user/Projekte/gr-osmosdr/lib/file -I/Users/user/Projekte/gr-osmosdr/lib/rtl_tcp -I/Users/user/Projekte/gr-osmosdr/lib/rfspace -I/Users/user/Projekte/gr-osmosdr/lib/redpitaya  -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -fPIC   -o CMakeFiles/gnuradio-osmosdr.dir/source_impl.cc.o -c /Users/user/Projekte/gr-osmosdr/lib/source_impl.cc
[ 15%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/sink_impl.cc.o
cd /Users/user/Projekte/gr-osmosdr/build/lib && /Library/Developer/CommandLineTools/usr/bin/c++  -DBOOST_ALL_DYN_LINK -DHAVE_CONFIG_H=1 -Dgnuradio_osmosdr_EXPORTS -I/Users/user/Projekte/gr-osmosdr/build/lib -I/Users/user/Projekte/gr-osmosdr/include -I/Users/user/Projekte/gr-osmosdr/lib -I/usr/local/include -I/usr/local/Cellar/gnuradio/3.7.13.4/include -I/Users/user/Projekte/gr-osmosdr/lib/file -I/Users/user/Projekte/gr-osmosdr/lib/rtl_tcp -I/Users/user/Projekte/gr-osmosdr/lib/rfspace -I/Users/user/Projekte/gr-osmosdr/lib/redpitaya  -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -fPIC   -o CMakeFiles/gnuradio-osmosdr.dir/sink_impl.cc.o -c /Users/user/Projekte/gr-osmosdr/lib/sink_impl.cc
[ 23%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/ranges.cc.o
cd /Users/user/Projekte/gr-osmosdr/build/lib && /Library/Developer/CommandLineTools/usr/bin/c++  -DBOOST_ALL_DYN_LINK -DHAVE_CONFIG_H=1 -Dgnuradio_osmosdr_EXPORTS -I/Users/user/Projekte/gr-osmosdr/build/lib -I/Users/user/Projekte/gr-osmosdr/include -I/Users/user/Projekte/gr-osmosdr/lib -I/usr/local/include -I/usr/local/Cellar/gnuradio/3.7.13.4/include -I/Users/user/Projekte/gr-osmosdr/lib/file -I/Users/user/Projekte/gr-osmosdr/lib/rtl_tcp -I/Users/user/Projekte/gr-osmosdr/lib/rfspace -I/Users/user/Projekte/gr-osmosdr/lib/redpitaya  -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -fPIC   -o CMakeFiles/gnuradio-osmosdr.dir/ranges.cc.o -c /Users/user/Projekte/gr-osmosdr/lib/ranges.cc
[ 30%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/device.cc.o
cd /Users/user/Projekte/gr-osmosdr/build/lib && /Library/Developer/CommandLineTools/usr/bin/c++  -DBOOST_ALL_DYN_LINK -DHAVE_CONFIG_H=1 -Dgnuradio_osmosdr_EXPORTS -I/Users/user/Projekte/gr-osmosdr/build/lib -I/Users/user/Projekte/gr-osmosdr/include -I/Users/user/Projekte/gr-osmosdr/lib -I/usr/local/include -I/usr/local/Cellar/gnuradio/3.7.13.4/include -I/Users/user/Projekte/gr-osmosdr/lib/file -I/Users/user/Projekte/gr-osmosdr/lib/rtl_tcp -I/Users/user/Projekte/gr-osmosdr/lib/rfspace -I/Users/user/Projekte/gr-osmosdr/lib/redpitaya  -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -fPIC   -o CMakeFiles/gnuradio-osmosdr.dir/device.cc.o -c /Users/user/Projekte/gr-osmosdr/lib/device.cc
[ 38%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/time_spec.cc.o
cd /Users/user/Projekte/gr-osmosdr/build/lib && /Library/Developer/CommandLineTools/usr/bin/c++  -DBOOST_ALL_DYN_LINK -DHAVE_CONFIG_H=1 -Dgnuradio_osmosdr_EXPORTS -DHAVE_MACH_ABSOLUTE_TIME -I/Users/user/Projekte/gr-osmosdr/build/lib -I/Users/user/Projekte/gr-osmosdr/include -I/Users/user/Projekte/gr-osmosdr/lib -I/usr/local/include -I/usr/local/Cellar/gnuradio/3.7.13.4/include -I/Users/user/Projekte/gr-osmosdr/lib/file -I/Users/user/Projekte/gr-osmosdr/lib/rtl_tcp -I/Users/user/Projekte/gr-osmosdr/lib/rfspace -I/Users/user/Projekte/gr-osmosdr/lib/redpitaya  -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -fPIC   -o CMakeFiles/gnuradio-osmosdr.dir/time_spec.cc.o -c /Users/user/Projekte/gr-osmosdr/lib/time_spec.cc
[ 46%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/file/file_source_c.cc.o
cd /Users/user/Projekte/gr-osmosdr/build/lib && /Library/Developer/CommandLineTools/usr/bin/c++  -DBOOST_ALL_DYN_LINK -DHAVE_CONFIG_H=1 -Dgnuradio_osmosdr_EXPORTS -I/Users/user/Projekte/gr-osmosdr/build/lib -I/Users/user/Projekte/gr-osmosdr/include -I/Users/user/Projekte/gr-osmosdr/lib -I/usr/local/include -I/usr/local/Cellar/gnuradio/3.7.13.4/include -I/Users/user/Projekte/gr-osmosdr/lib/file -I/Users/user/Projekte/gr-osmosdr/lib/rtl_tcp -I/Users/user/Projekte/gr-osmosdr/lib/rfspace -I/Users/user/Projekte/gr-osmosdr/lib/redpitaya  -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -fPIC   -o CMakeFiles/gnuradio-osmosdr.dir/file/file_source_c.cc.o -c /Users/user/Projekte/gr-osmosdr/lib/file/file_source_c.cc
[ 53%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/file/file_sink_c.cc.o
cd /Users/user/Projekte/gr-osmosdr/build/lib && /Library/Developer/CommandLineTools/usr/bin/c++  -DBOOST_ALL_DYN_LINK -DHAVE_CONFIG_H=1 -Dgnuradio_osmosdr_EXPORTS -I/Users/user/Projekte/gr-osmosdr/build/lib -I/Users/user/Projekte/gr-osmosdr/include -I/Users/user/Projekte/gr-osmosdr/lib -I/usr/local/include -I/usr/local/Cellar/gnuradio/3.7.13.4/include -I/Users/user/Projekte/gr-osmosdr/lib/file -I/Users/user/Projekte/gr-osmosdr/lib/rtl_tcp -I/Users/user/Projekte/gr-osmosdr/lib/rfspace -I/Users/user/Projekte/gr-osmosdr/lib/redpitaya  -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -fPIC   -o CMakeFiles/gnuradio-osmosdr.dir/file/file_sink_c.cc.o -c /Users/user/Projekte/gr-osmosdr/lib/file/file_sink_c.cc
[ 61%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/rtl_tcp/rtl_tcp_source_c.cc.o
cd /Users/user/Projekte/gr-osmosdr/build/lib && /Library/Developer/CommandLineTools/usr/bin/c++  -DBOOST_ALL_DYN_LINK -DHAVE_CONFIG_H=1 -Dgnuradio_osmosdr_EXPORTS -I/Users/user/Projekte/gr-osmosdr/build/lib -I/Users/user/Projekte/gr-osmosdr/include -I/Users/user/Projekte/gr-osmosdr/lib -I/usr/local/include -I/usr/local/Cellar/gnuradio/3.7.13.4/include -I/Users/user/Projekte/gr-osmosdr/lib/file -I/Users/user/Projekte/gr-osmosdr/lib/rtl_tcp -I/Users/user/Projekte/gr-osmosdr/lib/rfspace -I/Users/user/Projekte/gr-osmosdr/lib/redpitaya  -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -fPIC   -o CMakeFiles/gnuradio-osmosdr.dir/rtl_tcp/rtl_tcp_source_c.cc.o -c /Users/user/Projekte/gr-osmosdr/lib/rtl_tcp/rtl_tcp_source_c.cc
/Users/user/Projekte/gr-osmosdr/lib/rtl_tcp/rtl_tcp_source_c.cc:301:9: error: 
      expected expression
  cmd = { 0x09, htonl(direct_samp) };
        ^
/Users/user/Projekte/gr-osmosdr/lib/rtl_tcp/rtl_tcp_source_c.cc:307:9: error: 
      expected expression
  cmd = { 0x0a, htonl(offset_tune) };
        ^
/Users/user/Projekte/gr-osmosdr/lib/rtl_tcp/rtl_tcp_source_c.cc:311:9: error: 
      expected expression
  cmd = { 0x0e, htonl(bias_tee) };
        ^
/Users/user/Projekte/gr-osmosdr/lib/rtl_tcp/rtl_tcp_source_c.cc:570:9: error: 
      expected expression
  cmd = { 0x08, htonl(automatic) };
        ^
4 errors generated.
make[2]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/rtl_tcp/rtl_tcp_source_c.cc.o] Error 1
make[1]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/all] Error 2
make: *** [all] Error 2

My Compiler:

/Library/Developer/CommandLineTools/usr/bin/c++ -v
Apple LLVM version 10.0.0 (clang-1000.10.44.2)
Target: x86_64-apple-darwin18.0.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

Please assist.

History

#1 Updated by sevyls 27 days ago

May have something to do with the default c++ std used when running clang as default compiler

#2 Updated by sevyls 27 days ago

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)