New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OP25 STOPS WITH CMAKE 2 ERRORS #25
Comments
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. |
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. |
Same error for me (w ArchLinux):
|
same here whether script or by hand this on a freshly upgraded to Buster |
I ended up doing a full removal of CMAKE 3.13.3 then installing CMAKE 3.10.3 from source. worked. |
I stepped back in CMAKE versions to see when it would start compling right |
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'. |
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. |
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. |
Notes:
Running with Ninja as the generator shows this warning:
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 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 So, the solutions seem to involve, on the CMake side of things:
On the op25 side:
|
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:
Links:
I'll file a new CMake issue to track this. |
Upstream issue to track this: https://gitlab.kitware.com/cmake/cmake/issues/20067 |
CMake 3.11 included a change which made the dependency directly on the files not work in Makefile-based generators. Instead, depend on the custom target provided in that case. Fixes: boatbod#25
#34 should fix this on the OP25 side (CMake still has an issue, but this workaround exists). |
I'm still running into this issue... I tried downgrading to
|
Seems to work under Python3 and Ubuntu 20.04 using cmake version 3.16.3 |
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$ cd op25Cloning 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:
ddejr@ddejr-pc:
/op25$ mkdir build/op25$ cd buildddejr@ddejr-pc:
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/op25/build$ makeScanning 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::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:
[ 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
The text was updated successfully, but these errors were encountered: