boatbod / op25

Fork of osmocom OP25 by boatbod
327 stars 99 forks source link

OP25 STOPS WITH CMAKE 2 ERRORS #25

Closed simplio closed 3 years ago

simplio commented 5 years ago

I am having the worse time trying to get OP25 to completely build. I am not sure if cmake is the issue. CMAKE v3.13.3. LUBUNTU 18.10 is the distro. I am begging for help to make this work.

Here is the screen output

ddejr@ddejr-pc:~$ git clone git://github.com/boatbod/op25 Cloning into 'op25'... remote: Enumerating objects: 231, done. remote: Counting objects: 100% (231/231), done. remote: Compressing objects: 100% (154/154), done. remote: Total 4574 (delta 131), reused 155 (delta 74), pack-reused 4343 Receiving objects: 100% (4574/4574), 1.29 MiB | 1.67 MiB/s, done. Resolving deltas: 100% (3002/3002), done. ddejr@ddejr-pc:~$ cd op25 ddejr@ddejr-pc:~/op25$ mkdir build ddejr@ddejr-pc:~/op25$ cd build ddejr@ddejr-pc:~/op25/build$ cmake ../ -- The CXX compiler identification is GNU 8.3.0 -- The C compiler identification is GNU 8.3.0 -- 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 -- 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 -- Build type not specified: defaulting to release. -- Boost version: 1.67.0 -- Found the following Boost libraries: -- filesystem -- system -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") -- Checking for module 'gnuradio-runtime' -- Found gnuradio-runtime, version 3.7.13 -- Found GNURADIO_RUNTIME: /usr/lib/i386-linux-gnu/libgnuradio-runtime.so
-- Checking for module 'cppunit' -- Found cppunit, version 1.14.0 -- Found CPPUNIT: /usr/lib/i386-linux-gnu/libcppunit.so;dl
-- Found SWIG: /usr/bin/swig3.0 (found version "3.0.12") -- Found PythonLibs: /usr/lib/i386-linux-gnu/libpython2.7.so (found suitable version "2.7.16", minimum required is "2") -- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.16", minimum required is "2") -- Found Doxygen: /usr/bin/doxygen (found version "1.8.13") found components: doxygen dot CMake Warning (dev) at /usr/local/lib/python2.7/dist-packages/cmake/data/share/cmake-3.13/Modules/UseSWIG.cmake:564 (message): Policy CMP0078 is not set. Run "cmake --help-policy CMP0078" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): cmake/Modules/GrSwig.cmake:159 (SWIG_ADD_LIBRARY) op25/gr-op25/swig/CMakeLists.txt:42 (GR_SWIG_MAKE) This warning is for project developers. Use -Wno-dev to suppress it.

-- Build type not specified: defaulting to release. -- Boost version: 1.67.0 -- Found the following Boost libraries: -- filesystem -- system -- AMBE Tone Synthesis Enabled CMake Warning (dev) at /usr/local/lib/python2.7/dist-packages/cmake/data/share/cmake-3.13/Modules/UseSWIG.cmake:564 (message): Policy CMP0078 is not set. Run "cmake --help-policy CMP0078" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): cmake/Modules/GrSwig.cmake:159 (SWIG_ADD_LIBRARY) op25/gr-op25_repeater/swig/CMakeLists.txt:42 (GR_SWIG_MAKE) This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring done -- Generating done -- Build files have been written to: /home/ddejr/op25/build ddejr@ddejr-pc:~/op25/build$ make Scanning dependencies of target gnuradio-op25 [ 1%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/fsk4_demod_ff_impl.cc.o
[ 1%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/fsk4_slicer_fb_impl.cc.o
[ 2%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/decoder_bf_impl.cc.o
[ 3%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/decoder_ff_impl.cc.o
[ 4%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/abstract_data_unit.cc.o
[ 4%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/data_unit.cc.o
[ 5%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/hdu.cc.o
[ 6%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/ldu1.cc.o
[ 7%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/ldu2.cc.o
[ 7%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/pdu.cc.o
[ 8%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/tdu.cc.o
[ 9%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/tsbk.cc.o
[ 10%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/data_unit_handler.cc.o
[ 10%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/logfile_du_handler.cc.o
[ 11%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/p25cai_du_handler.cc.o
[ 12%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/snapshot_du_handler.cc.o
[ 13%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/imbe_decoder.cc.o
[ 13%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/imbe_decoder_factory.cc.o
[ 14%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/dummy_imbe_decoder.cc.o
[ 15%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/offline_imbe_decoder.cc.o
[ 16%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/voice_data_unit.cc.o
[ 16%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/voice_du_handler.cc.o
[ 17%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/pcap_source_b_impl.cc.o
[ 18%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/software_imbe_decoder.cc.o
[ 19%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/vc55_imbe_decoder.cc.o
[ 19%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/value_string.cc.o
[ 20%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/pickle.cc.o
[ 21%] Linking CXX shared library libgnuradio-op25.so [ 21%] Built target gnuradio-op25 Scanning dependencies of target test-op25 [ 22%] Building CXX object op25/gr-op25/lib/CMakeFiles/test-op25.dir/test_op25.cc.o
[ 23%] Building CXX object op25/gr-op25/lib/CMakeFiles/test-op25.dir/qa_op25.cc.o
[ 23%] Linking CXX executable test-op25 [ 23%] Built target test-op25 Scanning dependencies of target _op25_swig_doc_tag [ 24%] Building CXX object op25/gr-op25/swig/CMakeFiles/_op25_swig_doc_tag.dir/_op25_swig_doc_tag.cpp.o
[ 24%] Linking CXX executable _op25_swig_doc_tag [ 24%] Built target _op25_swig_doc_tag Scanning dependencies of target _op25_swig_swig_tag [ 25%] Building CXX object op25/gr-op25/swig/CMakeFiles/_op25_swig_swig_tag.dir/_op25_swig_swig_tag.cpp.o
[ 26%] Linking CXX executable _op25_swig_swig_tag [ 26%] Built target _op25_swig_swig_tag Scanning dependencies of target op25_swig_swig_compilation [ 27%] Generating doxygen xml for op25_swig_doc docs [ 28%] Generating op25_swig_doc.i [ 29%] Generating op25_swig.tag [ 29%] Swig compile op25_swig.i for python [ 29%] Built target op25_swig_swig_compilation Scanning dependencies of target _op25_swig [ 30%] Building CXX object op25/gr-op25/swig/CMakeFiles/_op25_swig.dir/CMakeFiles/_op25_swig.dir/op25_swigPYTHON_wrap.cxx.o
[ 31%] Linking CXX shared module _op25_swig.so [ 31%] Built target _op25_swig Scanning dependencies of target pygen_op25_gr_op25_swig_ac751 [ 32%] Generating op25_swig.pyc [ 33%] Generating op25_swig.pyo [ 33%] Built target pygen_op25_gr_op25_swig_ac751 Scanning dependencies of target pygen_op25_gr_op25_python_b78db [ 33%] Generating init.pyc [ 34%] Generating init.pyo [ 34%] Built target pygen_op25_gr_op25_python_b78db Scanning dependencies of target pygen_op25_gr_op25_apps_383eb [ 34%] Built target pygen_op25_gr_op25_apps_383eb Scanning dependencies of target imbe_vocoder [ 34%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/aux_sub.cc.o
[ 35%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/basicop2.cc.o
[ 36%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/ch_decode.cc.o
[ 37%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/ch_encode.cc.o
[ 37%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/dc_rmv.cc.o
[ 38%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/decode.cc.o
[ 39%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/dsp_sub.cc.o
[ 40%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/encode.cc.o
[ 40%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/imbe_vocoder.cc.o
[ 41%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/math_sub.cc.o
[ 42%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/pe_lpf.cc.o
[ 43%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/pitch_est.cc.o
[ 43%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/pitch_ref.cc.o
[ 44%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/qnt_sub.cc.o
[ 45%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/rand_gen.cc.o
[ 46%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/sa_decode.cc.o
[ 46%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/sa_encode.cc.o
[ 47%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/sa_enh.cc.o
[ 48%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/tbls.cc.o
[ 49%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/uv_synt.cc.o
[ 49%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/v_synt.cc.o
[ 50%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/v_uv_det.cc.o
[ 51%] Linking CXX static library libimbe_vocoder.a [ 51%] Built target imbe_vocoder Scanning dependencies of target gnuradio-op25_repeater [ 52%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/ambe_encoder_sb_impl.cc.o
[ 52%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/dmr_bs_tx_bb_impl.cc.o
In file included from /home/ddejr/op25/op25/gr-op25_repeater/lib/dmr_bs_tx_bb_impl.cc:28: /home/ddejr/op25/op25/gr-op25_repeater/lib/crc16.h: In function ‘uint8_t crc7(const uint8_t, unsigned int)’: /home/ddejr/op25/op25/gr-op25_repeater/lib/crc16.h:31:20: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat=] fprintf (stderr, "crc8: buffer length %u exceeds maximum %lu\n", len+K, sizeof(buf)); ^~~~~~~~~~ /home/ddejr/op25/op25/gr-op25_repeater/lib/crc16.h: In function ‘uint8_t crc8(const uint8_t, unsigned int)’: /home/ddejr/op25/op25/gr-op25_repeater/lib/crc16.h:55:20: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat=] fprintf (stderr, "crc8: buffer length %u exceeds maximum %lu\n", len+K, sizeof(buf)); ^~~~~~~~~~ [ 53%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/ysf_tx_sb_impl.cc.o
[ 54%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/dstar_tx_sb_impl.cc.o
[ 55%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/vocoder_impl.cc.o
[ 55%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/gardner_costas_cc_impl.cc.o
[ 56%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25_frame_assembler_impl.cc.o
[ 57%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/frame_assembler_impl.cc.o
[ 58%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/fsk4_slicer_fb_impl.cc.o
[ 58%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/bch.cc.o
[ 59%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/rs.cc.o
[ 60%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25_framer.cc.o
/home/ddejr/op25/op25/gr-op25_repeater/lib/p25_framer.cc: In member function ‘bool p25_framer::nid_codeword(uint64_t)’: /home/ddejr/op25/op25/gr-op25_repeater/lib/p25_framer.cc:112:20: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Wformat=] fprintf(stderr, "p25_framer::nid_codeword: duid/parity check fail: nid=%016lx, ec=%d\n", nid_word, ec); ^~~~~~~~~~~~~~~ ~~~~ [ 61%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25p1_fdma.cc.o
/home/ddejr/op25/op25/gr-op25_repeater/lib/p25p1_fdma.cc: In member function ‘void gr::op25_repeater::p25p1_fdma::process_HDU(const bit_vector&)’: /home/ddejr/op25/op25/gr-op25_repeater/lib/p25p1_fdma.cc:275:20: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] fprintf (stderr, ", gly_errs=%lu, rs_errs=%d\n", gly_errs, ec); ^~~~~~~~ ~~ /home/ddejr/op25/op25/gr-op25_repeater/lib/p25p1_fdma.cc: In member function ‘void gr::op25_repeater::p25p1_fdma::process_TDU15(const bit_vector&)’: /home/ddejr/op25/op25/gr-op25_repeater/lib/p25p1_fdma.cc:396:20: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] fprintf (stderr, ", gly_errs=%lu\n", gly_errs); ^~~~~~ ~~~~ /home/ddejr/op25/op25/gr-op25_repeater/lib/p25p1_fdma.cc: In member function ‘void gr::op25_repeater::p25p1_fdma::process_voice(const bit_vector&)’: /home/ddejr/op25/op25/gr-op25_repeater/lib/p25p1_fdma.cc:620:21: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] fprintf(stderr, "%s IMBE %s errs %lu\n", logts.get(), s, errs); // print to log in one operation ^~~~~~~ ~~~~ [ 61%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25p1_voice_encode.cc.o
[ 62%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25p1_voice_decode.cc.o
[ 63%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25p2_framer.cc.o
[ 64%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25p2_isch.cc.o
[ 64%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25p2_duid.cc.o
[ 65%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25p2_sync.cc.o
[ 66%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25p2_tdma.cc.o
/home/ddejr/op25/op25/gr-op25_repeater/lib/p25p2_tdma.cc: In function ‘uint16_t crc12(const uint8_t, unsigned int)’: /home/ddejr/op25/op25/gr-op25_repeater/lib/p25p2_tdma.cc:46:20: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat=] fprintf (stderr, "crc12: buffer length %u exceeds maximum %lu\n", len+K, sizeof(buf)); ^~~~~~~~~~~ /home/ddejr/op25/op25/gr-op25_repeater/lib/p25p2_tdma.cc: In member function ‘void p25p2_tdma::handle_voice_frame(const uint8_t)’: /home/ddejr/op25/op25/gr-op25_repeater/lib/p25p2_tdma.cc:558:19: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 11 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] fprintf(stderr, "%s AMBE %02x %02x %02x %02x %02x %02x %02x errs %lu\n", logts.get(), ^~~~~~~~~~~~~~~ p_cw[0], p_cw[1], p_cw[2], p_cw[3], p_cw[4], p_cw[5], p_cw[6], errs);

/home/ddejr/op25/op25/gr-op25_repeater/lib/p25p2_tdma.cc:612:19: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘std::deque<float>::size_type’ {aka ‘unsigned int’} [-Wformat=]
   fprintf(stderr, "%s p25p2_tdma::handle_voice_frame(): residual audio sample buffer non-zero (len=%lu)\n", logts.get(), software_decoder.audio()->size());
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 67%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25p2_vf.cc.o                                                  
[ 67%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/imbe_decoder.cc.o                                              
[ 68%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/software_imbe_decoder.cc.o                                     
[ 69%] Building C object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/ambe.c.o                                                         
[ 70%] Building C object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/mbelib.c.o                                                       
[ 70%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/ambe_encoder.cc.o                                              
[ 71%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/rx_sync.cc.o                                                   
In file included from /home/ddejr/op25/op25/gr-op25_repeater/lib/rx_sync.cc:41:
/home/ddejr/op25/op25/gr-op25_repeater/lib/crc16.h: In function ‘uint8_t crc7(const uint8_t*, unsigned int)’:
/home/ddejr/op25/op25/gr-op25_repeater/lib/crc16.h:31:20: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat=]
   fprintf (stderr, "crc8: buffer length %u exceeds maximum %lu\n", len+K, sizeof(buf));
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ddejr/op25/op25/gr-op25_repeater/lib/crc16.h: In function ‘uint8_t crc8(const uint8_t*, unsigned int)’:
/home/ddejr/op25/op25/gr-op25_repeater/lib/crc16.h:55:20: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat=]
   fprintf (stderr, "crc8: buffer length %u exceeds maximum %lu\n", len+K, sizeof(buf));
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ddejr/op25/op25/gr-op25_repeater/lib/rx_sync.cc: In member function ‘void gr::op25_repeater::rx_sync::codeword(const uint8_t*, gr::op25_repeater::codeword_types, int)’:
/home/ddejr/op25/op25/gr-op25_repeater/lib/rx_sync.cc:239:20: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 11 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
    fprintf(stderr, "%s AMBE %02x %02x %02x %02x %02x %02x %02x errs %lu\n", logts.get(d_msgq_id),
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            p_cw[0], p_cw[1], p_cw[2], p_cw[3], p_cw[4], p_cw[5], p_cw[6], errs);

/home/ddejr/op25/op25/gr-op25_repeater/lib/rx_sync.cc:252:21: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 11 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] fprintf(stderr, "%s ambe %02x %02x %02x %02x %02x %02x %02x errs %lu\n", logts.get(d_msgq_id), ^~~~~~~~~~~~~~~ p_cw[0], p_cw[1], p_cw[2], p_cw[3], p_cw[4], p_cw[5], p_cw[6], errs);

/home/ddejr/op25/op25/gr-op25_repeater/lib/rx_sync.cc:292:20: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 15 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
    fprintf(stderr, "%s IMBE %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x errs %lu\n",
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ddejr/op25/op25/gr-op25_repeater/lib/rx_sync.cc:295:59:
             p_cw[6], p_cw[7], p_cw[8], p_cw[9], p_cw[10], errs);

[ 72%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/hamming.cc.o
[ 72%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/golay2087.cc.o
[ 73%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/bptc19696.cc.o
[ 74%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/dmr_cai.cc.o
In file included from /home/ddejr/op25/op25/gr-op25_repeater/lib/dmr_cai.cc:37: /home/ddejr/op25/op25/gr-op25_repeater/lib/crc16.h: In function ‘uint8_t crc7(const uint8_t, unsigned int)’: /home/ddejr/op25/op25/gr-op25_repeater/lib/crc16.h:31:20: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat=] fprintf (stderr, "crc8: buffer length %u exceeds maximum %lu\n", len+K, sizeof(buf)); ^~~~~~~~~~ /home/ddejr/op25/op25/gr-op25_repeater/lib/crc16.h: In function ‘uint8_t crc8(const uint8_t, unsigned int)’: /home/ddejr/op25/op25/gr-op25_repeater/lib/crc16.h:55:20: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat=] fprintf (stderr, "crc8: buffer length %u exceeds maximum %lu\n", len+K, sizeof(buf)); ^~~~~~~~~~ [ 75%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/dmr_slot.cc.o
In file included from /home/ddejr/op25/op25/gr-op25_repeater/lib/dmr_slot.cc:40: /home/ddejr/op25/op25/gr-op25_repeater/lib/crc16.h: In function ‘uint8_t crc7(const uint8_t, unsigned int)’: /home/ddejr/op25/op25/gr-op25_repeater/lib/crc16.h:31:20: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat=] fprintf (stderr, "crc8: buffer length %u exceeds maximum %lu\n", len+K, sizeof(buf)); ^~~~~~~~~~ /home/ddejr/op25/op25/gr-op25_repeater/lib/crc16.h: In function ‘uint8_t crc8(const uint8_t, unsigned int)’: /home/ddejr/op25/op25/gr-op25_repeater/lib/crc16.h:55:20: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat=] fprintf (stderr, "crc8: buffer length %u exceeds maximum %lu\n", len+K, sizeof(buf)); ^~~~~~~~~~ /home/ddejr/op25/op25/gr-op25_repeater/lib/dmr_slot.cc: In member function ‘bool dmr_slot::decode_csbk(uint8_t)’: /home/ddejr/op25/op25/gr-op25_repeater/lib/dmr_slot.cc:268:21: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 10 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Wformat=] fprintf(stderr, "%s Slot(%d), CC(%x), CSBK LB(%d), PF(%d), CSBKO(%02x), FID(%02x), DATA(%08lx)\n", logts.get(d_msgq_id), d_chan, get_slot_cc(), csbk_lb, csbk_pf, csbk_o, csbk_fid, csbk_data); ^~~~~~~~~~~~~~~~~ ~~~~~ /home/ddejr/op25/op25/gr-op25_repeater/lib/dmr_slot.cc: In member function ‘bool dmr_slot::decode_mbc_continue(uint8_t)’: /home/ddejr/op25/op25/gr-op25_repeater/lib/dmr_slot.cc:336:20: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘std::vector::size_type’ {aka ‘unsigned int’} [-Wformat=] fprintf(stderr, "%s Slot(%d), CC(%x), MBC CONT LB(%d), data size=%lu\n", logts.get(d_msgq_id), d_chan, get_slot_cc(), mbc_lb, d_mbc.size()); ^~~~~~~~~~~~~ ~~~~~~ [ 75%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/op25_audio.cc.o
/home/ddejr/op25/op25/gr-op25_repeater/lib/op25_audio.cc: In member function ‘ssize_t op25_audio::do_send(const void*, size_t, int, bool) const’: /home/ddejr/op25/op25/gr-op25_repeater/lib/op25_audio.cc:193:33: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] fprintf(stderr, "op25_audio::do_send(length %lu): error(%d): %s\n", len, errno, strerror(errno)); ^~~~~~~~~~~~ ~ /home/ddejr/op25/op25/gr-op25_repeater/lib/op25_audio.cc:201:37: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] fprintf(stderr, "op25_audio::write(length %lu): error(%d): %s\n", len, errno, strerror(errno)); ^~~~~~~~~~~~ ~~~ /home/ddejr/op25/op25/gr-op25_repeater/lib/op25_audio.cc:204:37: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] fprintf(stderr, "op25_audio::write(length %lu): error, write rc zero\n", len); ^~~~~~~~~~~~~ ~ [ 76%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/op25_timer.cc.o
[ 77%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/CCITTChecksumReverse.cpp.o
[ 78%] Linking CXX shared library libgnuradio-op25_repeater.so [ 78%] Built target gnuradio-op25_repeater Scanning dependencies of target op25-d2460 [ 79%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/op25-d2460.dir/d2460.cc.o
[ 79%] Building C object op25/gr-op25_repeater/lib/CMakeFiles/op25-d2460.dir/ambe.c.o
[ 80%] Building C object op25/gr-op25_repeater/lib/CMakeFiles/op25-d2460.dir/mbelib.c.o
[ 81%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/op25-d2460.dir/ambe_encoder.cc.o
[ 82%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/op25-d2460.dir/software_imbe_decoder.cc.o
[ 82%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/op25-d2460.dir/imbe_decoder.cc.o
[ 83%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/op25-d2460.dir/p25p2_vf.cc.o
[ 84%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/op25-d2460.dir/rs.cc.o
[ 85%] Linking CXX executable op25-d2460 [ 85%] Built target op25-d2460 Scanning dependencies of target scan4sync [ 85%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/scan4sync.dir/scan4sync.cc.o
/home/ddejr/op25/op25/gr-op25_repeater/lib/scan4sync.cc: In function ‘int main(int, char)’: /home/ddejr/op25/op25/gr-op25_repeater/lib/scan4sync.cc:85:11: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Wformat=] printf("%s [%06lx] matched [%06lx] with %d errs at sym %lu (dist=%lu)\n", SYNCS[sync], SYNC_MAGICS[sync], cw, s_errs, fpos, fpos-last_fpos); ^~~~~~~~~~~~~~~ ~~~~~~~ /home/ddejr/op25/op25/gr-op25_repeater/lib/scan4sync.cc:85:11: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Wformat=] /home/ddejr/op25/op25/gr-op25_repeater/lib/scan4sync.cc:85:11: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] /home/ddejr/op25/op25/gr-op25_repeater/lib/scan4sync.cc:85:11: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] [ 86%] Linking CXX executable scan4sync [ 86%] Built target scan4sync Scanning dependencies of target BER [ 86%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/BER.dir/BER.cc.o
/home/ddejr/op25/op25/gr-op25_repeater/lib/BER.cc: In function ‘int main(int, char
)’: /home/ddejr/op25/op25/gr-op25_repeater/lib/BER.cc:81:11: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] printf("Pattern sync at %lu, errs %d\n", p_start, s_errs); ^~~~~~~~ ~~~ /home/ddejr/op25/op25/gr-op25_repeater/lib/BER.cc:95:9: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] printf("Pattern length: %lu bits\n", p_len); ^~~~~~~~ ~ /home/ddejr/op25/op25/gr-op25_repeater/lib/BER.cc:96:9: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘std::vector::size_type’ {aka ‘unsigned int’} [-Wformat=] printf("Symbols file: %lu bits\n", rx_syms.size()); ^~~~~~ ~~~~~~ /home/ddejr/op25/op25/gr-op25_repeater/lib/BER.cc:144:10: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] printf("Pattern match (%lu) bit errs=%lu, BER=%lf%%\n", r_start, chunk_bit_errs, chunk_ber); ^~~~~~~~~~~ ~~~ /home/ddejr/op25/op25/gr-op25_repeater/lib/BER.cc:144:10: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] /home/ddejr/op25/op25/gr-op25_repeater/lib/BER.cc:165:9: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] printf("Max bit errs=%lu, Max BER=%lf%%\n", max_bit_errs, max_ber); ^~~~~~~~~ ~~~~~~ /home/ddejr/op25/op25/gr-op25_repeater/lib/BER.cc:166:9: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] printf("Total bit errs=%lu, Total BER=%lf%%\n", total_bit_errs, total_ber); ^~~~~~~~~ ~~~~ [ 87%] Linking CXX executable BER [ 87%] Built target BER Scanning dependencies of target test-op25_repeater [ 88%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/test-op25_repeater.dir/test_op25_repeater.cc.o
[ 89%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/test-op25_repeater.dir/qa_op25_repeater.cc.o
[ 90%] Linking CXX executable test-op25_repeater [ 90%] Built target test-op25_repeater Scanning dependencies of target pygen_op25_gr_op25_repeater_swig_a9103 make[2]: No rule to make target 'op25/gr-op25_repeater/swig/op25_repeater_swig.py', needed by 'op25/gr-op25_repeater/swig/op25_repeater_swig.pyc'. Stop. make[1]: [CMakeFiles/Makefile2:954: op25/gr-op25_repeater/swig/CMakeFiles/pygen_op25_gr_op25_repeater_swig_a9103.dir/all] Error 2 make: [Makefile:130: all] Error 2 ddejr@ddejr-pc:~/op25/build$ make [ 21%] Built target gnuradio-op25 [ 23%] Built target test-op25 [ 24%] Built target _op25_swig_doc_tag [ 26%] Built target _op25_swig_swig_tag [ 29%] Built target op25_swig_swig_compilation [ 31%] Built target _op25_swig [ 33%] Built target pygen_op25_gr_op25_swig_ac751 [ 34%] Built target pygen_op25_gr_op25_python_b78db [ 34%] Built target pygen_op25_gr_op25_apps_383eb [ 51%] Built target imbe_vocoder [ 78%] Built target gnuradio-op25_repeater [ 85%] Built target op25-d2460 [ 86%] Built target scan4sync [ 87%] Built target BER [ 90%] Built target test-op25_repeater make[2]: No rule to make target 'op25/gr-op25_repeater/swig/op25_repeater_swig.py', needed by 'op25/gr-op25_repeater/swig/op25_repeater_swig.pyc'. Stop. make[1]: [CMakeFiles/Makefile2:954: op25/gr-op25_repeater/swig/CMakeFiles/pygen_op25_gr_op25_repeater_swig_a9103.dir/all] Error 2 make: [Makefile:130: all] Error 2 ddejr@ddejr-pc:~/op25/build$

same result using "./install.sh" method

sirrkitt commented 5 years ago

I'm getting the same exact issue trying to compile on a raspberry pi 3. It doesn't matter if I follow the build instructions or just use the script.

thetoivonen commented 5 years ago

Have you tried running the script with sudo?

sirrkitt commented 5 years ago

Have you tried running the script with sudo?

Tried running the script with sudo and with root and still got the same results.

I went ahead and checked out older commits and was able to get it to build. Specifically with c292bc1 and e5e8fe so something after those is causing the issue.

It's possible it's an issue with the osmocom source, because I get the same error if I clone that repo and try to build too.

chazanov commented 5 years ago

Same error for me (w ArchLinux):

[ 93%] Building CXX object op25/gr-op25_repeater/swig/CMakeFiles/_op25_repeater_swig_swig_tag.dir/_op25_repeater_swig_swig_tag.cpp.o
[ 93%] Linking CXX executable _op25_repeater_swig_swig_tag
[ 93%] Built target _op25_repeater_swig_swig_tag
Scanning dependencies of target pygen_op25_gr_op25_repeater_swig_107e3
make[2]: *** No rule to make target 'op25/gr-op25_repeater/swig/op25_repeater_swig.py', needed by 'op25/gr-op25_repeater/swig/op25_repeater_swig.pyc'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:893: op25/gr-op25_repeater/swig/CMakeFiles/pygen_op25_gr_op25_repeater_swig_107e3.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
k9wkj commented 5 years ago

same here [ 93%] Built target _op25_repeater_swig_doc_tag make[2]: *** No rule to make target 'op25/gr-op25_repeater/swig/op25_repeater_swig.py', needed by 'op25/gr-op25_repeater/swig/op25_repeater_swig.pyc'. Stop. make[1]: *** [CMakeFiles/Makefile2:1028: op25/gr-op25_repeater/swig/CMakeFiles/pygen_op25_gr_op25_repeater_swig_6e23b.dir/all] Error 2 make: *** [Makefile:130: all] Error 2

whether script or by hand I tried bumping back to the commit levels sirrkitt had success with but no profit or joy

this on a freshly upgraded to Buster _Linux desk 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5+deb10u2 (2019-08-08) x8664 GNU/Linux

simplio commented 5 years ago

I ended up doing a full removal of CMAKE 3.13.3 then installing CMAKE 3.10.3 from source. worked.

k9wkj commented 5 years ago

I stepped back in CMAKE versions to see when it would start compling right
and just as simplio I had to go back to cmake-3.10.3 to get it working
now I can reinstall 3.13 from the repo
I guess it would just be a matter of pointing things to the version I want to use
but I am not that smart so yes something is amiss

gofaster commented 5 years ago

You don't have to uninstall the cmake that comes with your distribution. Just get the source for cmake 3.10.3, compile it but don't run 'make install'.
When configuring op25 build, run cmake with the explicit path to the cmake 3.10.3 binary; instead of calling the distro's cmake in the path. If you use the install.sh script, edit the 'cmake ../' line to do the same.

simplio commented 5 years ago

Probably not just Cmake maybe GNU make as well because of the warnings that pop up when there shouldn't be during making the o files or CMAKE didn't do something right. Shouldn't be errors nor warnings. If we knew the intended version or original version of Cmake make and Fortran used since OP25 was created maybe everyone can get things working a little better.

I am convinced with each update of Cmake things start breaking.

mathstuf commented 5 years ago

I do see changes in the SWIG modules between 3.12.4 and 3.13.0. I'll try bisecting it here once I've gotten a working 3.12-based build and reproduced the 3.13 error.

mathstuf commented 5 years ago

Notes:

Running with Ninja as the generator shows this warning:

CMake Warning (dev):
  Policy CMP0058 is not set: Ninja requires custom command byproducts to be
  explicit.  Run "cmake --help-policy CMP0058" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  This project specifies custom command DEPENDS on files in the build tree
  that are not specified as the OUTPUT or BYPRODUCTS of any
  add_custom_command or add_custom_target:

   op25/gr-op25/swig/op25_swig_doc.i
   op25/gr-op25_repeater/swig/op25_repeater_swig_doc.i

  For compatibility with versions of CMake that did not have the BYPRODUCTS
  option, CMake is generating phony rules for such files to convince 'ninja'
  to build.

  Project authors should add the missing BYPRODUCTS or OUTPUT options to the
  custom commands that produce these files.
This warning is for project developers.  Use -Wno-dev to suppress it.

Which is a problem that should be addressed, but doesn't seem directly related to the files mentioned in this issue. Other than that, the build with ninja completes. So not the dependency issue I thought it might be.

Looking at the difference, it seems to be a bug in UseSwig.cmake. Specifically, this logic:

  if(CMAKE_GENERATOR MATCHES "Make")
    __swig_compute_timestamp(${name} ${SWIG_MODULE_${name}_LANGUAGE}
      "${infile}" "${workingdir}" swig_generated_timestamp)
    set(swig_custom_output "${swig_generated_timestamp}")
    set(swig_custom_products
      BYPRODUCTS "${swig_generated_file_fullname}" ${swig_extra_generated_files})
    set(swig_timestamp_command
      COMMAND ${CMAKE_COMMAND} -E touch "${swig_generated_timestamp}")

The BYPRODUCTS list means nothing to non-Ninja generators, so it is meaningless if the generator matches Make. I think the fix may be to remove the IMPLICIT_DEPENDS CXX call and just add the outputs to the list of outputs (which is what I've usually done before). Removing BYPRODUCTS works at first glance, but likely will run afoul of the mentioned issue https://gitlab.kitware.com/cmake/cmake/issues/16830 in practice. Removing IMPLICIT_DEPENDS is likely to work, but also mean that the SWIG code is not built when it needs to be.

So, the solutions seem to involve, on the CMake side of things:

On the op25 side:

mathstuf commented 5 years ago

Actually, reading the comments again, it seems that 3.10 is the most recent working version. Between it and 3.11, I see this commit:

commit 2ee10119eac2802a234543581b1303d91b944afa
Author: Felix Schwitzer <flx107809@gmail.com>
Date:   Mon Nov 6 22:10:18 2017 +0100

    swig: fix incremental build in case of removed interface files

    Commit v3.8.0-rc1~123^2 (UseSWIG: Automatically scan dependencies of SWIG files
    for Makefiles, 2016-12-21) introduced automatic dependency scanning for files
    `%include`d in a swig interface definition file. This works fine as long as no
    such file is removed. But removing a dependent file breaks an incremental build
    and `make` complains about a missing dependency, see #16830.

    Integrate the approach proposed in the issue above into the SWIG-module, do the
    workaround in a conditional step as it arises only for Makefile generators. For
    other generators use the implementation before that commit.

    Fixes: #17433.

Links:

I'll file a new CMake issue to track this.

mathstuf commented 5 years ago

Upstream issue to track this: https://gitlab.kitware.com/cmake/cmake/issues/20067

mathstuf commented 4 years ago

34 should fix this on the OP25 side (CMake still has an issue, but this workaround exists).

aschuhardt commented 4 years ago

I'm still running into this issue... I tried downgrading to cmake 3.10, and didn't have any luck.


warning: gnuradio-3.8.1.0-3 is up to date -- reinstalling
error: target not found: gnuradio-dev
error: target not found: gr-osmosdr
error: target not found: librtlsdr-dev
error: target not found: libuhd-dev
error: target not found: libhackrf-dev
error: target not found: libitpp-dev
error: target not found: libpcap-dev
warning: cmake-3.18.3-1 is up to date -- reinstalling
warning: git-2.28.0-1 is up to date -- reinstalling
warning: swig-4.0.2-1 is up to date -- reinstalling
error: target not found: build-essential
warning: pkgconf-1.7.3-1 is up to date -- reinstalling
warning: doxygen-1.8.20-1 is up to date -- reinstalling
warning: python-numpy-1.19.2-1 is up to date -- reinstalling
warning: python-requests-2.24.0-1 is up to date -- reinstalling
error: target not found: gnuplot-x11
-- The CXX compiler identification is Clang 10.0.1
-- The C compiler identification is Clang 10.0.1
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Build type not specified: defaulting to release.
-- Boost 1.35 found.
-- Found Boost components:
   filesystem;system
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.7.3")
-- Checking for module 'gnuradio-runtime'
--   Found gnuradio-runtime, version 3.8.1
-- Found GNURADIO_RUNTIME: /lib/libgnuradio-runtime.so
-- Checking for module 'cppunit'
--   Found cppunit, version 1.15.1
-- Found CPPUNIT: /usr/lib/libcppunit.so;dl
-- Found LOG4CPP: /usr/lib/liblog4cpp.so
-- Checking for module 'gmp'
--   Found gmp, version 6.2.0
-- Found GMP: /usr/lib/libgmpxx.so
-- Checking for module 'mpir >= 3.0'
--   Package 'mpir', required by 'virtual:world', not found
-- Found MPIR: /usr/lib/libmpirxx.so
-- Found MPLIB: /usr/lib/libgmpxx.so
-- Found VOLK: Volk::volk
CMake Warning (dev) at /usr/lib64/cmake/gnuradio/GnuradioConfig.cmake:48 (if):
  if given arguments:

    "ON"

  An argument named "ON" appears in a conditional statement.  Policy CMP0012
  is not set: if() recognizes numbers and boolean constants.  Run "cmake
  --help-policy CMP0012" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.
Call Stack (most recent call first):
  op25/gr-op25/CMakeLists.txt:97 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in /usr/lib64/cmake/gnuradio/GnuradioConfig.cmake:
  Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH
  and POP.  Run "cmake --help-policy CMP0011" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The included script

    /usr/lib64/cmake/gnuradio/GnuradioConfig.cmake

  affects policy settings.  CMake is implying the NO_POLICY_SCOPE option for
  compatibility, so the effects are applied to the including context.
Call Stack (most recent call first):
  op25/gr-op25/CMakeLists.txt:97 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

--
-- Checking for module SWIG
-- Found SWIG version 4.0.2.
-- Found SWIG: /usr/bin/swig
-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is at least version "2")
-- PYTHON_EXECUTABLE not set - using default python3
-- Use -DPYTHON_EXECUTABLE=/path/to/python2 to build for python2.
-- Found PythonInterp: /usr/bin/python (found version "3.8.5")
-- Found PythonLibs: /usr/lib/libpython3.8.so (found suitable exact version "3.8.5")
-- User set python executable /usr/bin/python
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.20") found components:  doxygen dot
-- Build type not specified: defaulting to release.
-- Boost 1.35 found.
-- Found Boost components:
   filesystem;system
-- Checking for module 'mpir >= 3.0'
--   Package 'mpir', required by 'virtual:world', not found
CMake Warning (dev) at /usr/lib64/cmake/gnuradio/GnuradioConfig.cmake:48 (if):
  if given arguments:

    "ON"

  An argument named "ON" appears in a conditional statement.  Policy CMP0012
  is not set: if() recognizes numbers and boolean constants.  Run "cmake
  --help-policy CMP0012" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.
Call Stack (most recent call first):
  op25/gr-op25_repeater/CMakeLists.txt:97 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in /usr/lib64/cmake/gnuradio/GnuradioConfig.cmake:
  Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH
  and POP.  Run "cmake --help-policy CMP0011" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The included script

    /usr/lib64/cmake/gnuradio/GnuradioConfig.cmake

  affects policy settings.  CMake is implying the NO_POLICY_SCOPE option for
  compatibility, so the effects are applied to the including context.
Call Stack (most recent call first):
  op25/gr-op25_repeater/CMakeLists.txt:97 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- AMBE Tone Synthesis Enabled
--
-- Checking for module SWIG
-- Found SWIG version 4.0.2.
-- Found PythonLibs: /usr/lib/libpython3.8.so (found suitable version "3.8.5", minimum required is "2")
-- User set python executable /usr/bin/python
-- Found PythonLibs: /usr/lib/libpython3.8.so (found suitable exact version "3.8.5")
-- User set python executable /usr/bin/python
-- User set python executable /usr/bin/python
-- Configuring done
-- Generating done
-- Build files have been written to: /home/aschuhardt/op25/build
make[1]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Entering directory '/home/aschuhardt/op25/build'
Scanning dependencies of target scan4sync
Scanning dependencies of target BER
Scanning dependencies of target pygen_op25_gr_op25_python_48794
make[2]: Leaving directory '/home/aschuhardt/op25/build'
Scanning dependencies of target pygen_op25_gr_op25_apps_383eb
make[2]: Leaving directory '/home/aschuhardt/op25/build'
Scanning dependencies of target op25_repeater_swig_swig_doc
Scanning dependencies of target pygen_op25_gr_op25_repeater_python_17b1c
make[2]: Leaving directory '/home/aschuhardt/op25/build'
Scanning dependencies of target gnuradio-op25
make[2]: Leaving directory '/home/aschuhardt/op25/build'
make[2]: Leaving directory '/home/aschuhardt/op25/build'
make[2]: Leaving directory '/home/aschuhardt/op25/build'
Scanning dependencies of target pygen_op25_gr_op25_repeater_apps_63aff
make[2]: Entering directory '/home/aschuhardt/op25/build'
Scanning dependencies of target imbe_vocoder
make[2]: Leaving directory '/home/aschuhardt/op25/build'
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Entering directory '/home/aschuhardt/op25/build'
[  1%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/scan4sync.dir/scan4sync.cc.o
[  1%] Generating __init__.pyc
[  2%] Generating __init__.pyc
[  3%] Generating __init__.pyo
[  3%] Built target pygen_op25_gr_op25_apps_383eb
[  3%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/BER.dir/BER.cc.o
[  4%] Generating __init__.pyo
[  4%] Built target op25_repeater_swig_swig_doc
[  4%] Built target pygen_op25_gr_op25_repeater_apps_63aff
make[2]: Leaving directory '/home/aschuhardt/op25/build'
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Leaving directory '/home/aschuhardt/op25/build'
Scanning dependencies of target op25_repeater_swig_swig_compilation
make[2]: Entering directory '/home/aschuhardt/op25/build'
[  6%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/fsk4_slicer_fb_impl.cc.o
[  6%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/fsk4_demod_ff_impl.cc.o
[  7%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/decoder_bf_impl.cc.o
[  8%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/decoder_ff_impl.cc.o
make[2]: Leaving directory '/home/aschuhardt/op25/build'
make[2]: Entering directory '/home/aschuhardt/op25/build'
[  9%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/aux_sub.cc.o
[ 10%] Swig source op25_repeater_swig.i
make[2]: Leaving directory '/home/aschuhardt/op25/build'
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 11%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/ch_decode.cc.o
[ 11%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/basicop2.cc.o
[ 11%] Built target pygen_op25_gr_op25_repeater_python_17b1c
[ 11%] Built target pygen_op25_gr_op25_python_48794
Deprecated command line option: -modern. This option is now always on.
[ 12%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/ch_encode.cc.o
[ 12%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/abstract_data_unit.cc.o
[ 13%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/dc_rmv.cc.o
[ 15%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/data_unit.cc.o
[ 15%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/decode.cc.o
[ 16%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/dsp_sub.cc.o
[ 16%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/encode.cc.o
[ 17%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/imbe_vocoder.cc.o
[ 18%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/math_sub.cc.o
[ 19%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/hdu.cc.o
[ 20%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/pe_lpf.cc.o
[ 21%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/pitch_est.cc.o
[ 22%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/pitch_ref.cc.o
[ 23%] Linking CXX executable scan4sync
[ 23%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/qnt_sub.cc.o
[ 24%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/rand_gen.cc.o
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 24%] Built target scan4sync
[ 25%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/sa_decode.cc.o
[ 26%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/ldu1.cc.o
[ 27%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/ldu2.cc.o
[ 28%] Linking CXX executable BER
[ 29%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/sa_encode.cc.o
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 29%] Built target BER
[ 30%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/sa_enh.cc.o
[ 31%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/tbls.cc.o
[ 31%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/uv_synt.cc.o
[ 32%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/pdu.cc.o
[ 33%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/v_synt.cc.o
[ 34%] Building CXX object op25/gr-op25_repeater/lib/imbe_vocoder/CMakeFiles/imbe_vocoder.dir/v_uv_det.cc.o
[ 34%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/tdu.cc.o
[ 35%] Linking CXX static library libimbe_vocoder.a
[ 36%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/tsbk.cc.o
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 36%] Built target imbe_vocoder
make[2]: Entering directory '/home/aschuhardt/op25/build'
[ 37%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/data_unit_handler.cc.o
Scanning dependencies of target op25-d2460
make[2]: Leaving directory '/home/aschuhardt/op25/build'
make[2]: Entering directory '/home/aschuhardt/op25/build'
[ 38%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/op25-d2460.dir/d2460.cc.o
[ 39%] Building C object op25/gr-op25_repeater/lib/CMakeFiles/op25-d2460.dir/ambe.c.o
[ 39%] Building C object op25/gr-op25_repeater/lib/CMakeFiles/op25-d2460.dir/mbelib.c.o
make[2]: Entering directory '/home/aschuhardt/op25/build'
Scanning dependencies of target gnuradio-op25_repeater
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 40%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/logfile_du_handler.cc.o
make[2]: Entering directory '/home/aschuhardt/op25/build'
[ 40%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/ambe_encoder_sb_impl.cc.o
[ 41%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/dmr_bs_tx_bb_impl.cc.o
[ 42%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/ysf_tx_sb_impl.cc.o
[ 43%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/dstar_tx_sb_impl.cc.o
[ 44%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/op25-d2460.dir/ambe_encoder.cc.o
[ 45%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/op25-d2460.dir/software_imbe_decoder.cc.o
[ 46%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/p25cai_du_handler.cc.o
[ 47%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/op25-d2460.dir/imbe_decoder.cc.o
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 47%] Built target op25_repeater_swig_swig_compilation
[ 48%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/op25-d2460.dir/p25p2_vf.cc.o
[ 49%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/op25-d2460.dir/rs.cc.o
[ 50%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/snapshot_du_handler.cc.o
[ 50%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/imbe_decoder.cc.o
[ 51%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/imbe_decoder_factory.cc.o
[ 51%] Linking CXX executable op25-d2460
[ 52%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/dummy_imbe_decoder.cc.o
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 52%] Built target op25-d2460
[ 53%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/offline_imbe_decoder.cc.o
[ 54%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/voice_data_unit.cc.o
[ 55%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/voice_du_handler.cc.o
[ 55%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/pcap_source_b_impl.cc.o
[ 56%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/vocoder_impl.cc.o
[ 57%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/software_imbe_decoder.cc.o
[ 58%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/vc55_imbe_decoder.cc.o
[ 59%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/value_string.cc.o
[ 60%] Building CXX object op25/gr-op25/lib/CMakeFiles/gnuradio-op25.dir/pickle.cc.o
[ 61%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/gardner_costas_cc_impl.cc.o
[ 61%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25_frame_assembler_impl.cc.o
[ 62%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/frame_assembler_impl.cc.o
[ 63%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/analog_udp_impl.cc.o
[ 64%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/rmsagc_ff_impl.cc.o
[ 65%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/fsk4_slicer_fb_impl.cc.o
[ 66%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/bch.cc.o
[ 66%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/rs.cc.o
[ 67%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25_framer.cc.o
[ 68%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25p1_fdma.cc.o
[ 69%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25p1_voice_encode.cc.o
[ 70%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25p1_voice_decode.cc.o
[ 71%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25p2_framer.cc.o
[ 71%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25p2_isch.cc.o
[ 72%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25p2_duid.cc.o
[ 73%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25p2_sync.cc.o
/home/aschuhardt/op25/op25/gr-op25_repeater/lib/frame_assembler_impl.cc:76:17: warning: delete called on 'gr::op25_repeater::rx_base' that is abstract but has non-virtual destructor [-Wdelete-abstract-non-virtual-dtor]
                delete d_sync;
                ^
[ 74%] Linking CXX shared library libgnuradio-op25.so
[ 75%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25p2_tdma.cc.o
[ 76%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25p2_vf.cc.o
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 76%] Built target gnuradio-op25
make[2]: Entering directory '/home/aschuhardt/op25/build'
Scanning dependencies of target test-op25
make[2]: Leaving directory '/home/aschuhardt/op25/build'
make[2]: Entering directory '/home/aschuhardt/op25/build'
[ 76%] Building CXX object op25/gr-op25/lib/CMakeFiles/test-op25.dir/test_op25.cc.o
[ 77%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/imbe_decoder.cc.o
[ 77%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/software_imbe_decoder.cc.o
[ 78%] Building C object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/ambe.c.o
[ 79%] Building CXX object op25/gr-op25/lib/CMakeFiles/test-op25.dir/qa_op25.cc.o
[ 80%] Building C object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/mbelib.c.o
[ 81%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/ambe_encoder.cc.o
[ 82%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/rx_sync.cc.o
[ 83%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/rx_smartnet.cc.o
1 warning generated.
[ 83%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/rx_subchannel.cc.o
[ 84%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/hamming.cc.o
[ 85%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/golay2087.cc.o
[ 86%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/bptc19696.cc.o
[ 87%] Linking CXX executable test-op25
[ 88%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/trellis.cc.o
[ 89%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/dmr_cai.cc.o
[ 89%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/dmr_slot.cc.o
[ 90%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/op25_audio.cc.o
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 90%] Built target test-op25
[ 91%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/op25_timer.cc.o
[ 92%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/CCITTChecksumReverse.cpp.o
/home/aschuhardt/op25/op25/gr-op25_repeater/lib/rx_sync.cc:238:10: warning: enumeration values 'RX_TYPE_DSTAR', 'RX_TYPE_YSF', and 'RX_N_TYPES' not handled in switch [-Wswitch]
                switch(proto) {
                       ^
/home/aschuhardt/op25/op25/gr-op25_repeater/lib/rx_sync.cc:262:10: warning: enumeration values 'RX_TYPE_DSTAR', 'RX_TYPE_YSF', and 'RX_N_TYPES' not handled in switch [-Wswitch]
                switch(proto) {
                       ^
/home/aschuhardt/op25/op25/gr-op25_repeater/lib/rx_smartnet.cc:182:17: warning: array index 6 is past the end of the array (which contains 6 elements) [-Warray-bounds]
                d_pkt.raw_data[6] = 0;
                ^              ~
/home/aschuhardt/op25/op25/gr-op25_repeater/lib/rx_smartnet.h:58:13: note: array 'raw_data' declared here
            uint8_t raw_data[6];
            ^
1 warning generated.
2 warnings generated.
[ 93%] Linking CXX shared library libgnuradio-op25_repeater.so
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 93%] Built target gnuradio-op25_repeater
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Entering directory '/home/aschuhardt/op25/build'
Scanning dependencies of target test-op25_repeater
Scanning dependencies of target op25_repeater_swig
make[2]: Leaving directory '/home/aschuhardt/op25/build'
make[2]: Entering directory '/home/aschuhardt/op25/build'
[ 95%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/test-op25_repeater.dir/qa_op25_repeater.cc.o
[ 95%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/test-op25_repeater.dir/test_op25_repeater.cc.o
make[2]: Leaving directory '/home/aschuhardt/op25/build'
make[2]: Entering directory '/home/aschuhardt/op25/build'
[ 96%] Building CXX object op25/gr-op25_repeater/swig/CMakeFiles/op25_repeater_swig.dir/CMakeFiles/op25_repeater_swig.dir/op25_repeater_swigPYTHON_wrap.cxx.o
/home/aschuhardt/op25/build/op25/gr-op25_repeater/swig/CMakeFiles/op25_repeater_swig.dir/op25_repeater_swigPYTHON_wrap.cxx:1784:7: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
      0,                                    /* tp_print */
      ^
/usr/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
    Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
    ^
/usr/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                     ^
/home/aschuhardt/op25/build/op25/gr-op25_repeater/swig/CMakeFiles/op25_repeater_swig.dir/op25_repeater_swigPYTHON_wrap.cxx:1951:7: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
      0,                                    /* tp_print */
      ^
/usr/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
    Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
    ^
/usr/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                     ^
[ 97%] Linking CXX executable test-op25_repeater
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 97%] Built target test-op25_repeater
/home/aschuhardt/op25/build/op25/gr-op25_repeater/swig/CMakeFiles/op25_repeater_swig.dir/op25_repeater_swigPYTHON_wrap.cxx:3049:65: warning: implicit conversion from 'long' to 'double' changes value from 9223372036854775807 to 9223372036854775808 [-Wimplicit-int-float-conversion]
      if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
                            ~~~~~~~~~~~~~~~~~~~~~               ^~~~~~~~
/usr/lib/clang/10.0.1/include/limits.h:47:19: note: expanded from macro 'LONG_MAX'
#define LONG_MAX  __LONG_MAX__
                  ^~~~~~~~~~~~
<built-in>:69:22: note: expanded from here
#define __LONG_MAX__ 9223372036854775807L
                     ^~~~~~~~~~~~~~~~~~~~
/home/aschuhardt/op25/build/op25/gr-op25_repeater/swig/CMakeFiles/op25_repeater_swig.dir/op25_repeater_swigPYTHON_wrap.cxx:3180:58: warning: implicit conversion from 'unsigned long' to 'double' changes value from 18446744073709551615 to 18446744073709551616 [-Wimplicit-int-float-conversion]
      if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
                            ~~~~~~~~~~~~~~~~~~~~~        ^~~~~~~~~
/usr/lib/clang/10.0.1/include/limits.h:57:37: note: expanded from macro 'ULONG_MAX'
#define ULONG_MAX (__LONG_MAX__ *2UL+1UL)
                   ~~~~~~~~~~~~~~~~~^~~~
/home/aschuhardt/op25/build/op25/gr-op25_repeater/swig/CMakeFiles/op25_repeater_swig.dir/op25_repeater_swigPYTHON_wrap.cxx:45651:9: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
        0,                                  /* tp_print */
        ^
/usr/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
    Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
    ^
/usr/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                     ^
5 warnings generated.
[ 98%] Linking CXX shared module _op25_repeater_swig.so
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 98%] Built target op25_repeater_swig
make[2]: Entering directory '/home/aschuhardt/op25/build'
Scanning dependencies of target pygen_op25_gr_op25_repeater_swig_6ba7a
make[2]: Leaving directory '/home/aschuhardt/op25/build'
make[2]: Entering directory '/home/aschuhardt/op25/build'
[ 99%] Generating op25_repeater_swig.pyc
[100%] Generating op25_repeater_swig.pyo
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[100%] Built target pygen_op25_gr_op25_repeater_swig_6ba7a
make[1]: Leaving directory '/home/aschuhardt/op25/build'
make[1]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 24%] Built target gnuradio-op25
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 26%] Built target test-op25
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 28%] Built target pygen_op25_gr_op25_python_48794
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 28%] Built target pygen_op25_gr_op25_apps_383eb
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 29%] Built target BER
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 31%] Built target scan4sync
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 50%] Built target imbe_vocoder
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 57%] Built target op25-d2460
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 91%] Built target gnuradio-op25_repeater
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 94%] Built target test-op25_repeater
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 94%] Built target op25_repeater_swig_swig_doc
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 95%] Built target op25_repeater_swig_swig_compilation
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 97%] Built target op25_repeater_swig
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[ 99%] Built target pygen_op25_gr_op25_repeater_swig_6ba7a
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[100%] Built target pygen_op25_gr_op25_repeater_python_17b1c
make[2]: Entering directory '/home/aschuhardt/op25/build'
make[2]: Leaving directory '/home/aschuhardt/op25/build'
[100%] Built target pygen_op25_gr_op25_repeater_apps_63aff
make[1]: Leaving directory '/home/aschuhardt/op25/build'
Install the project...
-- Install configuration: ""
-- Up-to-date: /usr/local/include/op25/api.h
-- Up-to-date: /usr/local/include/op25/fsk4_demod_ff.h
-- Up-to-date: /usr/local/include/op25/fsk4_slicer_fb.h
-- Up-to-date: /usr/local/include/op25/decoder_ff.h
-- Up-to-date: /usr/local/include/op25/decoder_bf.h
-- Up-to-date: /usr/local/include/op25/pcap_source_b.h
-- Installing: /usr/local/lib/libgnuradio-op25.so
-- Up-to-date: /usr/local/lib/python3.8/site-packages/op25/__init__.py
-- Installing: /usr/local/lib/python3.8/site-packages/op25/__init__.pyc
-- Installing: /usr/local/lib/python3.8/site-packages/op25/__init__.pyo
-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/op25_fsk4_demod_ff.xml
-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/op25_fsk4_slicer_fb.xml
-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/op25_decoder_ff.xml
-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/op25_decoder_bf.xml
-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/op25_pcap_source_b.xml
-- Up-to-date: /usr/local/include/op25_repeater/api.h
-- Up-to-date: /usr/local/include/op25_repeater/vocoder.h
-- Up-to-date: /usr/local/include/op25_repeater/gardner_costas_cc.h
-- Up-to-date: /usr/local/include/op25_repeater/p25_frame_assembler.h
-- Up-to-date: /usr/local/include/op25_repeater/frame_assembler.h
-- Up-to-date: /usr/local/include/op25_repeater/analog_udp.h
-- Up-to-date: /usr/local/include/op25_repeater/rmsagc_ff.h
-- Up-to-date: /usr/local/include/op25_repeater/ambe_encoder_sb.h
-- Up-to-date: /usr/local/include/op25_repeater/ysf_tx_sb.h
-- Up-to-date: /usr/local/include/op25_repeater/dstar_tx_sb.h
-- Up-to-date: /usr/local/include/op25_repeater/fsk4_slicer_fb.h
-- Installing: /usr/local/lib/libgnuradio-op25_repeater.so
-- Installing: /usr/local/bin/scan4sync
-- Installing: /usr/local/bin/BER
-- Installing: /usr/local/lib/python3.8/site-packages/op25_repeater/_op25_repeater_swig.so
-- Set runtime path of "/usr/local/lib/python3.8/site-packages/op25_repeater/_op25_repeater_swig.so" to ""
-- Installing: /usr/local/lib/python3.8/site-packages/op25_repeater/op25_repeater_swig.py
-- Installing: /usr/local/lib/python3.8/site-packages/op25_repeater/op25_repeater_swig.pyc
-- Installing: /usr/local/lib/python3.8/site-packages/op25_repeater/op25_repeater_swig.pyo
-- Up-to-date: /usr/local/include/op25_repeater/op25_repeater/swig/op25_repeater_swig.i
-- Installing: /usr/local/include/op25_repeater/op25_repeater/swig/op25_repeater_swig_doc.i
-- Up-to-date: /usr/local/lib/python3.8/site-packages/op25_repeater/__init__.py
-- Installing: /usr/local/lib/python3.8/site-packages/op25_repeater/__init__.pyc
-- Installing: /usr/local/lib/python3.8/site-packages/op25_repeater/__init__.pyo
-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/op25_repeater_vocoder.xml
-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/op25_repeater_gardner_costas_cc.xml
-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/op25_repeater_p25_frame_assembler.xml
-- Up-to-date: /usr/local/share/gnuradio/grc/blocks/op25_repeater_fsk4_slicer_fb.xml
(master)⚡ % cd op25/gr-op25_repeater/apps/                                                      ~/op25
(master)⚡ % ./rx.py                                                  ~/op25/op25/gr-op25_repeater/apps
Traceback (most recent call last):
  File "./rx.py", line 54, in <module>
    import op25
ModuleNotFoundError: No module named 'op25'```
boatbod commented 3 years ago

Seems to work under Python3 and Ubuntu 20.04 using cmake version 3.16.3 Happy to push a fix for earlier Python2/CMake versions if someone can make a pull request.