Bug #3776
openBuild fail using gcc version 7.3.0 Ubuntu 18.04.1 LTS
0%
Description
I recently upgraded from Ubuntu 16.04 lts to 18.04 lts. Before upgrading I was able to install op25 but after upgrading I am unable to.
The version of gcc I have is gcc version 7.3.0
When I attempt to build and install op25 it fails around 62% of the way through. The last error and warning displayed is as follows:
/home/user/sdr/src/op25/op25/gr-op25_repeater/lib/p25_frame_assembler_impl.cc: In member function ‘void gr::op25_repeater::p25_frame_assembler_impl::p25p2_queue_msg(int)’:
/home/user/sdr/src/op25/op25/gr-op25_repeater/lib/p25_frame_assembler_impl.cc:42:41: error: narrowing conversion of ‘255’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]
static const char wbuf2 = {0xff, 0xff}; // dummy NAC
^
/home/user/sdr/src/op25/op25/gr-op25_repeater/lib/p25_frame_assembler_impl.cc:42:41: error: narrowing conversion of ‘255’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]
op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/build.make:206: recipe for target 'op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25_frame_assembler_impl.cc.o' failed
make2: * [op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25_frame_assembler_impl.cc.o] Error 1
CMakeFiles/Makefile2:682: recipe for target 'op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/all' failed
make1: [op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: ** [all] Error 2
Attached is the full output when I attempt to build the project.
Files