boatbod / op25

Fork of osmocom OP25 by boatbod
319 stars 100 forks source link

Ubuntu 18.04.4 LTS Build failures #53

Closed ananteris closed 3 years ago

ananteris commented 4 years ago

Build fails to resolve internal headers with cmake 3.10.2

user@moonworm:~/HAM/op25$ sudo ./install.sh Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease Hit:2 http://us.archive.ubuntu.com/ubuntu bionic InRelease Hit:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease Hit:4 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease Reading package lists... Done Reading package lists... Done E: You must put some 'source' URIs in your sources.list Reading package lists... Done Building dependency tree
Reading state information... Done build-essential is already the newest version (12.4ubuntu1). doxygen is already the newest version (1.8.13-10). pkg-config is already the newest version (0.29.1-0ubuntu2). python-numpy is already the newest version (1:1.13.3-2ubuntu1). python-waitress is already the newest version (1.0.1-1). gnuplot-x11 is already the newest version (5.2.2+dfsg1-2ubuntu1). gnuradio is already the newest version (3.7.11-10). gnuradio-dev is already the newest version (3.7.11-10). gr-osmosdr is already the newest version (0.1.4-14build1). libhackrf-dev is already the newest version (2018.01.1-2). libitpp-dev is already the newest version (4.3.1-8). librtlsdr-dev is already the newest version (0.5.3-13). libuhd-dev is already the newest version (3.10.3.0-2). swig is already the newest version (3.0.12-1). cmake is already the newest version (3.10.2-1ubuntu2.18.04.1). git is already the newest version (1:2.17.1-1ubuntu0.7). libpcap-dev is already the newest version (1.8.1-6ubuntu1.18.04.1). python-requests is already the newest version (2.18.4-2ubuntu0.1). 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. mkdir: cannot create directory ‘build’: File exists -- Build type not specified: defaulting to release. -- Boost version: 1.65.1 -- Found the following Boost libraries: -- filesystem -- system -- Found GNURADIO_RUNTIME: /usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so
Checking for GNU Radio Module: RUNTIME

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

-- -- Checking for module SWIG -- Found SWIG version 3.0.12. CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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-op25". Use the target name directly with add_custom_command, or use the generator expression $, as appropriate.

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

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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): op25/gr-op25/python/CMakeLists.txt:44 (GR_ADD_TEST) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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 "/home/user/HAM/op25/op25/gr-op25/python/qa_fsk4_demod_ff.py". Call Stack (most recent call first): op25/gr-op25/python/CMakeLists.txt:44 (GR_ADD_TEST) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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-op25". Use the target name directly with add_custom_command, or use the generator expression $, as appropriate.

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

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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): op25/gr-op25/python/CMakeLists.txt:45 (GR_ADD_TEST) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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 "/home/user/HAM/op25/op25/gr-op25/python/qa_fsk4_slicer_fb.py". Call Stack (most recent call first): op25/gr-op25/python/CMakeLists.txt:45 (GR_ADD_TEST) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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-op25". Use the target name directly with add_custom_command, or use the generator expression $, as appropriate.

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

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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): op25/gr-op25/python/CMakeLists.txt:46 (GR_ADD_TEST) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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 "/home/user/HAM/op25/op25/gr-op25/python/qa_decoder_ff.py". Call Stack (most recent call first): op25/gr-op25/python/CMakeLists.txt:46 (GR_ADD_TEST) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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-op25". Use the target name directly with add_custom_command, or use the generator expression $, as appropriate.

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

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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): op25/gr-op25/python/CMakeLists.txt:47 (GR_ADD_TEST) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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 "/home/user/HAM/op25/op25/gr-op25/python/qa_decoder_bf.py". Call Stack (most recent call first): op25/gr-op25/python/CMakeLists.txt:47 (GR_ADD_TEST) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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-op25". Use the target name directly with add_custom_command, or use the generator expression $, as appropriate.

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

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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): op25/gr-op25/python/CMakeLists.txt:48 (GR_ADD_TEST) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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 "/home/user/HAM/op25/op25/gr-op25/python/qa_pcap_source_b.py". Call Stack (most recent call first): op25/gr-op25/python/CMakeLists.txt:48 (GR_ADD_TEST) This warning is for project developers. Use -Wno-dev to suppress it.

-- Build type not specified: defaulting to release. -- Boost version: 1.65.1 -- Found the following Boost libraries: -- filesystem -- system -- Found GNURADIO_RUNTIME: /usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so
Checking for GNU Radio Module: RUNTIME

Call Stack (most recent call first): op25/gr-op25_repeater/lib/CMakeLists.txt:112 (GR_ADD_TEST) This warning is for project developers. Use -Wno-dev to suppress it.

-- -- Checking for module SWIG -- Found SWIG version 3.0.12. CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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-op25_repeater". Use the target name directly with add_custom_command, or use the generator expression $, as appropriate.

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

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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): op25/gr-op25_repeater/python/CMakeLists.txt:44 (GR_ADD_TEST) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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 "/home/user/HAM/op25/op25/gr-op25_repeater/python/qa_vocoder.py". Call Stack (most recent call first): op25/gr-op25_repeater/python/CMakeLists.txt:44 (GR_ADD_TEST) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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-op25_repeater". Use the target name directly with add_custom_command, or use the generator expression $, as appropriate.

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

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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): op25/gr-op25_repeater/python/CMakeLists.txt:45 (GR_ADD_TEST) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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 "/home/user/HAM/op25/op25/gr-op25_repeater/python/qa_gardner_costas_cc.py". Call Stack (most recent call first): op25/gr-op25_repeater/python/CMakeLists.txt:45 (GR_ADD_TEST) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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-op25_repeater". Use the target name directly with add_custom_command, or use the generator expression $, as appropriate.

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

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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): op25/gr-op25_repeater/python/CMakeLists.txt:46 (GR_ADD_TEST) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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 "/home/user/HAM/op25/op25/gr-op25_repeater/python/qa_p25_frame_assembler.py". Call Stack (most recent call first): op25/gr-op25_repeater/python/CMakeLists.txt:46 (GR_ADD_TEST) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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-op25_repeater". Use the target name directly with add_custom_command, or use the generator expression $, as appropriate.

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

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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): op25/gr-op25_repeater/python/CMakeLists.txt:47 (GR_ADD_TEST) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/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 "/home/user/HAM/op25/op25/gr-op25_repeater/python/qa_fsk4_slicer_fb.py". Call Stack (most recent call first): op25/gr-op25_repeater/python/CMakeLists.txt:47 (GR_ADD_TEST) This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring done -- Generating done -- Build files have been written to: /home/user/HAM/op25/build [ 20%] Built target gnuradio-op25 [ 22%] Built target test-op25 [ 22%] Built target op25_swig_swig_doc [ 24%] Built target _op25_swig_swig_tag Scanning dependencies of target op25_swig_op25_gr_op25_swig_798d9 [ 25%] Building CXX object op25/gr-op25/swig/CMakeFiles/op25_swig_op25_gr_op25_swig_798d9.dir/op25_swig_op25_gr_op25_swig_798d9.cpp.o [ 25%] Linking CXX executable op25_swig_op25_gr_op25_swig_798d9 Swig source [ 26%] Built target op25_swig_op25_gr_op25_swig_798d9 Scanning dependencies of target _op25_swig [ 26%] Building CXX object op25/gr-op25/swig/CMakeFiles/_op25_swig.dir/op25_swigPYTHON_wrap.cxx.o [ 27%] Linking CXX shared module _op25_swig.so [ 29%] Built target _op25_swig [ 29%] Generating op25_swig.pyc [ 30%] Generating op25_swig.pyo [ 31%] Built target pygen_op25_gr_op25_swig_87807 [ 33%] Built target pygen_op25_gr_op25_python_9560c [ 33%] Built target pygen_op25_gr_op25_apps_383eb [ 50%] Built target imbe_vocoder [ 51%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/ysf_tx_sb_impl.cc.o /home/user/HAM/op25/op25/gr-op25_repeater/lib/ysf_tx_sb_impl.cc:32:10: fatal error: op25_imbe_frame.h: No such file or directory

include

      ^~~~~~~~~~~~~~~~~~~

compilation terminated. op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/build.make:110: recipe for target 'op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/ysf_tx_sb_impl.cc.o' failed make[2]: [op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/ysf_tx_sb_impl.cc.o] Error 1 CMakeFiles/Makefile2:719: recipe for target 'op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/all' failed make[1]: [op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2 [ 20%] Built target gnuradio-op25 [ 22%] Built target test-op25 [ 22%] Built target op25_swig_swig_doc [ 24%] Built target _op25_swig_swig_tag [ 26%] Built target op25_swig_op25_gr_op25_swig_798d9 [ 29%] Built target _op25_swig [ 31%] Built target pygen_op25_gr_op25_swig_87807 [ 33%] Built target pygen_op25_gr_op25_python_9560c [ 33%] Built target pygen_op25_gr_op25_apps_383eb [ 50%] Built target imbe_vocoder [ 51%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/ysf_tx_sb_impl.cc.o /home/user/HAM/op25/op25/gr-op25_repeater/lib/ysf_tx_sb_impl.cc:32:10: fatal error: op25_imbe_frame.h: No such file or directory

include

      ^~~~~~~~~~~~~~~~~~~

compilation terminated. op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/build.make:110: recipe for target 'op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/ysf_tx_sb_impl.cc.o' failed make[2]: [op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/ysf_tx_sb_impl.cc.o] Error 1 CMakeFiles/Makefile2:719: recipe for target 'op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/all' failed make[1]: [op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2

ananteris commented 4 years ago

Build was also attempted with a working cmake 3.10.3 in /usr/local and it failed with the same error.