Hi all,

I have problems building gr-bluetooth on Debian jessie because of
missing file errors, although gnuradio and other packages were locally
compiled in their respective recent versions.

$ git clone https://github.com/greatscottgadgets/gr-bluetooth.git
$ cd gr-bluetooth && mkdir build && cd build
$ cmake ..
  [ throws some seemingly harmless warnings, see cmake-output.log ]
$ make
  [ full output in make-output-1.log ]
/data/projects/gnuradio/gr-bluetooth/swig/gr_bluetooth.i:5: Error:
Unable to find 'gnuradio.i'
swig/CMakeFiles/gr_bluetooth_swig_2d0df.dir/build.make:97: recipe for
target 'swig/gr_bluetooth_swig_2d0df' failed
make[2]: *** [swig/gr_bluetooth_swig_2d0df] Error 1
...

If I rerun make, I get a different error:
$ make
  [ full output in make-output-2.log ]
[ 70%] Building CXX object
swig/CMakeFiles/_gr_bluetooth.dir/gr_bluetoothPYTHON_wrap.cxx.o
c++: error:
/data/projects/gnuradio/gr-bluetooth/build/swig/gr_bluetoothPYTHON_wrap.cxx:
No such file or directory
c++: fatal error: no input files
...

I tried to by myself but could not fix the errors since I'm quite new to
gnuradio and don't understand the cmake build system and dependencies
involved (py/cxx/swig/...).

Also note that gr-bluetooth did not see any commits for 2 years.

Anyone with an idea what the reason could be and how to fix it?

Cheers!
-- The CXX compiler identification is GNU 4.9.2
-- The C compiler identification is GNU 4.9.2
-- 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
-- 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
-- Build type not specified: defaulting to release.
-- Boost version: 1.55.0
-- Found the following Boost libraries:
--   filesystem
--   system
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28") 
Checking for GNU Radio Module: RUNTIME
-- checking for module 'gnuradio-runtime'
--   found gnuradio-runtime, version 3.7.9.2
 * INCLUDES=/usr/local/include
 * LIBS=/usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so
-- Found GNURADIO_RUNTIME: /usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so  
GNURADIO_RUNTIME_FOUND = TRUE
Checking for GNU Radio Module: BLOCKS
-- checking for module 'gnuradio-blocks'
--   found gnuradio-blocks, version 3.7.9.2
 * INCLUDES=/usr/local/include
 * LIBS=/usr/local/lib/libgnuradio-blocks.so;/usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so
-- Found GNURADIO_BLOCKS: /usr/local/lib/libgnuradio-blocks.so;/usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so  
GNURADIO_BLOCKS_FOUND = TRUE
Checking for GNU Radio Module: FILTER
-- checking for module 'gnuradio-filter'
--   found gnuradio-filter, version 3.7.9.2
 * INCLUDES=/usr/local/include
 * LIBS=/usr/local/lib/libgnuradio-filter.so;/usr/local/lib/libgnuradio-fft.so;/usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so
-- Found GNURADIO_FILTER: /usr/local/lib/libgnuradio-filter.so;/usr/local/lib/libgnuradio-fft.so;/usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so  
GNURADIO_FILTER_FOUND = TRUE
-- checking for module 'cppunit'
--   found cppunit, version 1.13.2
-- Found CPPUNIT: /usr/lib/x86_64-linux-gnu/libcppunit.so;dl  
-- Found LIBBTBB: /usr/local/lib/libbtbb.so  
-- 
-- Checking for module SWIG
-- Found SWIG version 2.0.12.
-- Found SWIG: /usr/bin/swig2.0  
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found version "2.7.9") 
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.9", minimum required is "2") 
-- 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 size_t
-- Check size of size_t - done
-- Check size of unsigned int
-- Check size of unsigned int - done
-- Check size of unsigned long
-- Check size of unsigned long - done
-- Check size of unsigned long long
-- Check size of unsigned long long - done
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.9", minimum required is "2") 
-- Performing Test HAVE_WNO_UNUSED_BUT_SET_VARIABLE
-- Performing Test HAVE_WNO_UNUSED_BUT_SET_VARIABLE - Success
CMake Warning (dev) at /usr/local/lib/cmake/gnuradio/GrTest.cmake:45 (get_target_property):
  Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The LOCATION property should not be read from target "gnuradio-bluetooth".
  Use the target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
  python/CMakeLists.txt:44 (GR_ADD_TEST)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/local/lib/cmake/gnuradio/GrTest.cmake:45 (get_target_property):
  Policy CMP0045 is not set: Error on non-existent target in
  get_target_property.  Run "cmake --help-policy CMP0045" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  get_target_property() called with non-existent target "/usr/bin/python2".
Call Stack (most recent call first):
  python/CMakeLists.txt:44 (GR_ADD_TEST)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/local/lib/cmake/gnuradio/GrTest.cmake:45 (get_target_property):
  Policy CMP0045 is not set: Error on non-existent target in
  get_target_property.  Run "cmake --help-policy CMP0045" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  get_target_property() called with non-existent target
  "/data/projects/gnuradio/gr-bluetooth/python/qa_gr_bluetooth_multi_sniffer.py".
Call Stack (most recent call first):
  python/CMakeLists.txt:44 (GR_ADD_TEST)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found Doxygen: /usr/bin/doxygen (found version "1.8.8") 
-- Configuring done
-- Generating done
-- Build files have been written to: /data/projects/gnuradio/gr-bluetooth/build
Scanning dependencies of target gnuradio-bluetooth
[  5%] Building CXX object lib/CMakeFiles/gnuradio-bluetooth.dir/tun.cc.o
[ 10%] Building CXX object lib/CMakeFiles/gnuradio-bluetooth.dir/multi_block.cc.o
[ 15%] Building CXX object lib/CMakeFiles/gnuradio-bluetooth.dir/multi_hopper_impl.cc.o
[ 20%] Building CXX object lib/CMakeFiles/gnuradio-bluetooth.dir/multi_LAP_impl.cc.o
[ 25%] Building CXX object lib/CMakeFiles/gnuradio-bluetooth.dir/multi_sniffer_impl.cc.o
[ 30%] Building CXX object lib/CMakeFiles/gnuradio-bluetooth.dir/multi_UAP_impl.cc.o
[ 35%] Building CXX object lib/CMakeFiles/gnuradio-bluetooth.dir/packet_impl.cc.o
/data/projects/gnuradio/gr-bluetooth/lib/packet_impl.cc: In constructor ‘gr::bluetooth::le_packet_impl::le_packet_impl(char*, int, double)’:
/data/projects/gnuradio/gr-bluetooth/lib/packet_impl.cc:1563:56: warning: iteration 39u invokes undefined behavior [-Waggressive-loop-optimizations]
         d_pdu[pi] = air_to_host8(&d_link_symbols[i], 8);
                                                        ^
/data/projects/gnuradio/gr-bluetooth/lib/packet_impl.cc:1562:7: note: containing loop
       for( pi=0, i=56; i<MAX_SYMBOLS; pi++, i+=8 ) {
       ^
[ 40%] Building CXX object lib/CMakeFiles/gnuradio-bluetooth.dir/piconet_impl.cc.o
Linking CXX shared library libgnuradio-bluetooth.so
[ 40%] Built target gnuradio-bluetooth
Scanning dependencies of target gr_bluetooth_swig_doc
[ 40%] Built target gr_bluetooth_swig_doc
Scanning dependencies of target _gr_bluetooth_swig_tag
[ 45%] Building CXX object swig/CMakeFiles/_gr_bluetooth_swig_tag.dir/_gr_bluetooth_swig_tag.cpp.o
Linking CXX executable _gr_bluetooth_swig_tag
[ 45%] Built target _gr_bluetooth_swig_tag
[ 50%] Generating gr_bluetooth.tag
Scanning dependencies of target gr_bluetooth_swig_2d0df
[ 55%] Building CXX object swig/CMakeFiles/gr_bluetooth_swig_2d0df.dir/gr_bluetooth_swig_2d0df.cpp.o
Linking CXX executable gr_bluetooth_swig_2d0df
Swig source
/data/projects/gnuradio/gr-bluetooth/swig/gr_bluetooth.i:5: Error: Unable to find 'gnuradio.i'
swig/CMakeFiles/gr_bluetooth_swig_2d0df.dir/build.make:97: recipe for target 'swig/gr_bluetooth_swig_2d0df' failed
make[2]: *** [swig/gr_bluetooth_swig_2d0df] Error 1
CMakeFiles/Makefile2:249: recipe for target 'swig/CMakeFiles/gr_bluetooth_swig_2d0df.dir/all' failed
make[1]: *** [swig/CMakeFiles/gr_bluetooth_swig_2d0df.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
[ 40%] Built target gnuradio-bluetooth
[ 40%] Built target gr_bluetooth_swig_doc
[ 45%] Built target _gr_bluetooth_swig_tag
[ 55%] Built target gr_bluetooth_swig_2d0df
[ 60%] Generating gr_bluetooth.py
[ 65%] Generating gr_bluetoothPYTHON_wrap.cxx
Scanning dependencies of target _gr_bluetooth
[ 65%] Generating gr_bluetoothPYTHON_wrap.cxx
[ 70%] Building CXX object swig/CMakeFiles/_gr_bluetooth.dir/gr_bluetoothPYTHON_wrap.cxx.o
c++: error: /data/projects/gnuradio/gr-bluetooth/build/swig/gr_bluetoothPYTHON_wrap.cxx: No such file or directory
c++: fatal error: no input files
compilation terminated.
swig/CMakeFiles/_gr_bluetooth.dir/build.make:62: recipe for target 'swig/CMakeFiles/_gr_bluetooth.dir/gr_bluetoothPYTHON_wrap.cxx.o' failed
make[2]: *** [swig/CMakeFiles/_gr_bluetooth.dir/gr_bluetoothPYTHON_wrap.cxx.o] Error 4
CMakeFiles/Makefile2:179: recipe for target 'swig/CMakeFiles/_gr_bluetooth.dir/all' failed
make[1]: *** [swig/CMakeFiles/_gr_bluetooth.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to