See https://jenkins.osmocom.org/jenkins/job/osmocom-coverity/660/display/redirect
------------------------------------------ [...truncated 1.13 MB...] automake: of the corresponding sources. automake: You are advised to start using 'subdir-objects' option throughout your automake: project, to avoid future incompatibilities. tests/Makefile.am:21: warning: source file 'alloc/MslotTest.cpp' is in a subdirectory, tests/Makefile.am:21: but option 'subdir-objects' is disabled tests/Makefile.am:111: warning: source file 'app_info/AppInfoTest.cpp' is in a subdirectory, tests/Makefile.am:111: but option 'subdir-objects' is disabled tests/Makefile.am:38: warning: source file 'bitcomp/BitcompTest.cpp' is in a subdirectory, tests/Makefile.am:38: but option 'subdir-objects' is disabled tests/Makefile.am:38: warning: source file '../src/egprs_rlc_compression.cpp' is in a subdirectory, tests/Makefile.am:38: but option 'subdir-objects' is disabled tests/Makefile.am:97: warning: source file 'codel/codel_test.c' is in a subdirectory, tests/Makefile.am:97: but option 'subdir-objects' is disabled tests/Makefile.am:44: warning: source file 'edge/EdgeTest.cpp' is in a subdirectory, tests/Makefile.am:44: but option 'subdir-objects' is disabled tests/Makefile.am:52: warning: source file 'emu/pcu_emu.cpp' is in a subdirectory, tests/Makefile.am:52: but option 'subdir-objects' is disabled tests/Makefile.am:52: warning: source file 'emu/test_replay_gprs_attach.cpp' is in a subdirectory, tests/Makefile.am:52: but option 'subdir-objects' is disabled tests/Makefile.am:52: warning: source file 'emu/openbsc_clone.c' is in a subdirectory, tests/Makefile.am:52: but option 'subdir-objects' is disabled tests/Makefile.am:52: warning: source file 'emu/test_pdp_activation.cpp' is in a subdirectory, tests/Makefile.am:52: but option 'subdir-objects' is disabled tests/Makefile.am:103: warning: source file 'fn/FnTest.cpp' is in a subdirectory, tests/Makefile.am:103: but option 'subdir-objects' is disabled tests/Makefile.am:81: warning: source file 'llc/LlcTest.cpp' is in a subdirectory, tests/Makefile.am:81: but option 'subdir-objects' is disabled tests/Makefile.am:92: warning: source file 'llist/LListTest.cpp' is in a subdirectory, tests/Makefile.am:92: but option 'subdir-objects' is disabled tests/Makefile.am:70: warning: source file 'ms/MsTest.cpp' is in a subdirectory, tests/Makefile.am:70: but option 'subdir-objects' is disabled tests/Makefile.am:7: warning: source file 'rlcmac/RLCMACTest.cpp' is in a subdirectory, tests/Makefile.am:7: but option 'subdir-objects' is disabled tests/Makefile.am:29: warning: source file 'tbf/TbfTest.cpp' is in a subdirectory, tests/Makefile.am:29: but option 'subdir-objects' is disabled tests/Makefile.am:62: warning: source file 'types/TypesTest.cpp' is in a subdirectory, tests/Makefile.am:62: but option 'subdir-objects' is disabled + ./configure --prefix=/home/osmocom-build/osmo-ci/coverity/install-Osmocom --with-systemdsystemunitdir=no --enable-sysmocom-bts=yes --enable-sysmocom-dsp=yes configure: WARNING: unrecognized options: --enable-sysmocom-bts checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking whether make sets $(MAKE)... (cached) yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for mt... mt checking if mt is a manifest tool... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for pkg-config... /usr/bin/pkg-config checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.20... yes checking for ANSI C header files... (cached) yes checking for LIBOSMOCORE... yes checking for LIBOSMOVTY... yes checking for LIBOSMOGSM... yes checking for LIBOSMOGB... yes checking whether to enable direct DSP access for PDCH of sysmocom-bts... yes checking for sysmocom/femtobts/superfemto.h... yes checking whether to enable direct PHY access for PDCH of NuRAN Wireless Litecell 1.5 BTS... no checking whether to enable direct PHY access for PDCH of NuRAN Wireless OC-2G BTS... no checking whether to enable VTY tests... no CPPFLAGS="" CFLAGS=" -std=gnu89" CXXFLAGS=" -std=gnu++03" LDFLAGS="" checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating include/Makefile config.status: creating src/Makefile config.status: creating doc/Makefile config.status: creating doc/examples/Makefile config.status: creating tests/Makefile config.status: creating doc/manuals/Makefile config.status: creating contrib/Makefile config.status: creating contrib/systemd/Makefile config.status: creating Makefile config.status: executing tests/atconfig commands config.status: executing depfiles commands config.status: executing libtool commands configure: WARNING: unrecognized options: --enable-sysmocom-bts + make -j 8 Making all in include make[1]: Entering directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmo-pcu/include' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmo-pcu/include' Making all in src make[1]: Entering directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmo-pcu/src' CXX gprs_debug.lo CXX csn1.lo CXX gsm_rlcmac.lo CXX gprs_rlcmac.lo CXX gprs_bssgp_pcu.lo CXX gprs_rlcmac_meas.lo CXX gprs_rlcmac_ts_alloc.lo CXX gprs_rlcmac_sched.lo In file included from /home/osmocom-build/osmo-ci/coverity/install-Osmocom/include/osmocom/gsm/gsm_utils.h:33:0, from ./pcu_l1_if.h:31, from gprs_rlcmac_meas.cpp:24: /home/osmocom-build/osmo-ci/coverity/install-Osmocom/include/osmocom/gsm/protocol/gsm_04_08.h:13:6: error: use of enum ‘gsm_band’ without previous declaration enum gsm_band; ^~~~~~~~ /home/osmocom-build/osmo-ci/coverity/install-Osmocom/include/osmocom/gsm/protocol/gsm_04_08.h:77:46: error: use of enum ‘gsm_band’ without previous declaration int8_t osmo_gsm48_rfpowercap2powerclass(enum gsm_band band, uint8_t rf_power_cap); ^~~~~~~~ Makefile:800: recipe for target 'gprs_rlcmac_meas.lo' failed make[1]: *** [gprs_rlcmac_meas.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... In file included from ./bts.h:31:0, from gprs_rlcmac_ts_alloc.cpp:24: /home/osmocom-build/osmo-ci/coverity/install-Osmocom/include/osmocom/gsm/protocol/gsm_04_08.h:13:6: error: use of enum ‘gsm_band’ without previous declaration enum gsm_band; ^~~~~~~~ /home/osmocom-build/osmo-ci/coverity/install-Osmocom/include/osmocom/gsm/protocol/gsm_04_08.h:77:46: error: use of enum ‘gsm_band’ without previous declaration int8_t osmo_gsm48_rfpowercap2powerclass(enum gsm_band band, uint8_t rf_power_cap); ^~~~~~~~ Makefile:800: recipe for target 'gprs_rlcmac_ts_alloc.lo' failed make[1]: *** [gprs_rlcmac_ts_alloc.lo] Error 1 In file included from /home/osmocom-build/osmo-ci/coverity/install-Osmocom/include/osmocom/gsm/gsm_utils.h:33:0, from ./pcu_l1_if.h:31, from gprs_rlcmac.cpp:22: /home/osmocom-build/osmo-ci/coverity/install-Osmocom/include/osmocom/gsm/protocol/gsm_04_08.h:13:6: error: use of enum ‘gsm_band’ without previous declaration enum gsm_band; ^~~~~~~~ /home/osmocom-build/osmo-ci/coverity/install-Osmocom/include/osmocom/gsm/protocol/gsm_04_08.h:77:46: error: use of enum ‘gsm_band’ without previous declaration int8_t osmo_gsm48_rfpowercap2powerclass(enum gsm_band band, uint8_t rf_power_cap); ^~~~~~~~ gprs_bssgp_pcu.cpp:979:2: warning: #warning "This causes ASAN to complain. It is not critical for normal operation but should be fixed nevertheless" [-Wcpp] #warning "This causes ASAN to complain. It is not critical for normal operation but should be fixed nevertheless" ^~~~~~~ In file included from /home/osmocom-build/osmo-ci/coverity/install-Osmocom/include/osmocom/gsm/gsm48.h:10:0, from /home/osmocom-build/osmo-ci/coverity/install-Osmocom/include/osmocom/gprs/gprs_bssgp.h:9, from ./gprs_bssgp_pcu.h:32, from gprs_bssgp_pcu.cpp:22: /home/osmocom-build/osmo-ci/coverity/install-Osmocom/include/osmocom/gsm/protocol/gsm_04_08.h:13:6: error: use of enum ‘gsm_band’ without previous declaration enum gsm_band; ^~~~~~~~ /home/osmocom-build/osmo-ci/coverity/install-Osmocom/include/osmocom/gsm/protocol/gsm_04_08.h:77:46: error: use of enum ‘gsm_band’ without previous declaration int8_t osmo_gsm48_rfpowercap2powerclass(enum gsm_band band, uint8_t rf_power_cap); ^~~~~~~~ Makefile:800: recipe for target 'gprs_rlcmac.lo' failed make[1]: *** [gprs_rlcmac.lo] Error 1 Makefile:800: recipe for target 'gprs_bssgp_pcu.lo' failed make[1]: *** [gprs_bssgp_pcu.lo] Error 1 In file included from /home/osmocom-build/osmo-ci/coverity/install-Osmocom/include/osmocom/gsm/gsm48.h:10:0, from /home/osmocom-build/osmo-ci/coverity/install-Osmocom/include/osmocom/gprs/gprs_bssgp.h:9, from ./gprs_bssgp_pcu.h:32, from gprs_rlcmac_sched.cpp:20: /home/osmocom-build/osmo-ci/coverity/install-Osmocom/include/osmocom/gsm/protocol/gsm_04_08.h:13:6: error: use of enum ‘gsm_band’ without previous declaration enum gsm_band; ^~~~~~~~ /home/osmocom-build/osmo-ci/coverity/install-Osmocom/include/osmocom/gsm/protocol/gsm_04_08.h:77:46: error: use of enum ‘gsm_band’ without previous declaration int8_t osmo_gsm48_rfpowercap2powerclass(enum gsm_band band, uint8_t rf_power_cap); ^~~~~~~~ Makefile:800: recipe for target 'gprs_rlcmac_sched.lo' failed make[1]: *** [gprs_rlcmac_sched.lo] Error 1 make[1]: Leaving directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmo-pcu/src' Makefile:411: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1 [WARNING] Build command ./build_Osmocom.sh exited with code 2. Please verify that the build completed successfully. Emitted 2008 C/C++ compilation units (100%) successfully
2008 C/C++ compilation units (100%) are ready for analysis For more details, please look at: /home/osmocom-build/osmo-ci/coverity/source-Osmocom/cov-int/build-log.txt Build step 'Execute shell' marked build as failure
See https://jenkins.osmocom.org/jenkins/job/osmocom-coverity/661/display/redirect
------------------------------------------ [...truncated 1.47 MB...] CC sap_fsm.o CC sap_proto.o CC sap_interface.o CC logging.o CC networks.o CC sim.o CC sysinfo.o CC gps.o CC l1ctl_lapdm_glue.o CC utils.o AR liblayer23.a ar: `u' modifier ignored since `D' is the default (see `U') make[3]: Leaving directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/layer23/src/common' Making all in misc make[3]: Entering directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/layer23/src/misc' CC main.o ../common/main.c: In function ‘main’: ../common/main.c:265:2: warning: ‘lapdm_channel_init’ is deprecated: Use lapdm_channel_init2() instead [-Wdeprecated-declarations] lapdm_channel_init(&ms->lapdm_channel, LAPDM_MODE_MS); ^~~~~~~~~~~~~~~~~~ In file included from ../../include/osmocom/bb/common/osmocom_data.h:14:0, from ../common/main.c:24: /home/osmocom-build/osmo-ci/coverity/install-Osmocom/include/osmocom/gsm/lapdm.h:89:6: note: declared here void lapdm_channel_init(struct lapdm_channel *lc, enum lapdm_mode mode) ^~~~~~~~~~~~~~~~~~ CC app_bcch_scan.o CC bcch_scan.o CCLD bcch_scan CC app_ccch_scan.o CC rslms.o CCLD ccch_scan CC app_echo_test.o CCLD echo_test CC app_cell_log.o CC cell_log.o CC geo.o CCLD cell_log CC app_cbch_sniff.o CCLD cbch_sniff make[3]: Leaving directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/layer23/src/misc' Making all in mobile make[3]: Entering directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/layer23/src/mobile' CC gsm322.o CC gsm480_ss.o CC gsm411_sms.o CC gsm48_cc.o CC gsm48_mm.o CC gsm48_rr.o CC mnccms.o CC settings.o CC subscriber.o CC support.o CC transaction.o CC vty_interface.o CC voice.o CC mncc_sock.o CC primitives.o CC script_lua.o AR libmobile.a ar: `u' modifier ignored since `D' is the default (see `U') CC main.o CC app_mobile.o app_mobile.c: In function ‘mobile_init’: app_mobile.c:193:2: warning: ‘lapdm_channel_init’ is deprecated: Use lapdm_channel_init2() instead [-Wdeprecated-declarations] lapdm_channel_init(&ms->lapdm_channel, LAPDM_MODE_MS); ^~~~~~~~~~~~~~~~~~ In file included from ../../include/osmocom/bb/common/osmocom_data.h:14:0, from app_mobile.c:28: /home/osmocom-build/osmo-ci/coverity/install-Osmocom/include/osmocom/gsm/lapdm.h:89:6: note: declared here void lapdm_channel_init(struct lapdm_channel *lc, enum lapdm_mode mode) ^~~~~~~~~~~~~~~~~~ CCLD mobile make[3]: Leaving directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/layer23/src/mobile' make[3]: Entering directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/layer23/src' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/layer23/src' make[2]: Leaving directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/layer23/src' make[2]: Entering directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/layer23' make[2]: Nothing to be done for 'all-am'. make[2]: Leaving directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/layer23' make[1]: Leaving directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/layer23' cd host/osmocon && autoreconf -i configure.ac:13: installing './compile' configure.ac:6: installing './install-sh' configure.ac:6: installing './missing' Makefile.am:10: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') Makefile.am:17: warning: source file '$(srcdir)/../../target/firmware/comm/sercomm.c' is in a subdirectory, Makefile.am:17: but option 'subdir-objects' is disabled automake: warning: possible forward-incompatibility. automake: At least a source file is in a subdirectory, but the 'subdir-objects' automake: automake option hasn't been enabled. For now, the corresponding output automake: object file(s) will be placed in the top-level directory. However, automake: this behaviour will change in future Automake versions: they will automake: unconditionally cause object files to be placed in the same subdirectory automake: of the corresponding sources. automake: You are advised to start using 'subdir-objects' option throughout your automake: project, to avoid future incompatibilities. Makefile.am: installing './depcomp' cd host/osmocon && ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking whether make sets $(MAKE)... (cached) yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for LIBOSMOCORE... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: executing depfiles commands make -C host/osmocon make[1]: Entering directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/osmocon' echo 0.0.0.2436-a4046 > .version-t && mv .version-t .version make all-am make[2]: Entering directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/osmocon' CC osmocon.o osmocon.c: In function ‘read_file’: osmocon.c:372:8: warning: ‘fd’ may be used uninitialized in this function [-Wmaybe-uninitialized] rc = read(fd, file_data, st.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC tpu_debug.o CC sercomm.o CCLD osmocon CC osmoload.o osmoload.c: In function ‘loader_read_cb’: osmoload.c:288:10: warning: ‘length’ may be used uninitialized in this function [-Wmaybe-uninitialized] uint8_t length; ^~~~~~ osmoload.c:446:3: warning: ‘chip’ may be used uninitialized in this function [-Wmaybe-uninitialized] loader_do_flashrange(cmd, msg, chip, address, status); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ osmoload.c:287:10: note: ‘chip’ was declared here uint8_t chip; ^~~~ osmoload.c:446:3: warning: ‘status’ may be used uninitialized in this function [-Wmaybe-uninitialized] loader_do_flashrange(cmd, msg, chip, address, status); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ osmoload.c:292:11: note: ‘status’ was declared here uint32_t status; ^~~~~~ osmoload.c:433:5: warning: ‘crc’ may be used uninitialized in this function [-Wmaybe-uninitialized] printf("\nbad crc %4.4x (not %4.4x) at offset 0x%8.8x", crc, osmoload.memcrc, osmoload.memoff); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ osmoload.c:289:11: note: ‘crc’ was declared here uint16_t crc; ^~~ osmoload.c:414:4: warning: ‘data’ may be used uninitialized in this function [-Wmaybe-uninitialized] loader_do_memdump(crc, data, length); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ osmoload.c:294:8: note: ‘data’ was declared here void *data; ^~~~ osmoload.c:378:4: warning: ‘address’ may be used uninitialized in this function [-Wmaybe-uninitialized] printf("Confirmed flash erase of chip %d address 0x%8.8x, status %s\n", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ chip, address, status ? "FAILED" : "ok"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ osmoload.c:290:11: note: ‘address’ was declared here uint32_t address; ^~~~~~~ CCLD osmoload make[2]: Leaving directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/osmocon' make[1]: Leaving directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/osmocon' cd host/trxcon && autoreconf -i configure.ac:10: installing './compile' configure.ac:3: installing './install-sh' configure.ac:3: installing './missing' Makefile.am: installing './depcomp' cd host/trxcon && ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking whether make sets $(MAKE)... (cached) yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for LIBOSMOCORE... yes checking for LIBOSMOCODING... yes checking for LIBOSMOGSM... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: executing depfiles commands make -C host/trxcon make[1]: Entering directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/trxcon' echo 0.0.0 > .version-t && mv .version-t .version make all-am make[2]: Entering directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/trxcon' CC l1ctl_link.o CC l1ctl.o In file included from trx_if.h:9:0, from l1ctl.c:46: sched_trx.h:204:20: error: ‘GSM_MACBLOCK_LEN’ undeclared here (not in a function) uint8_t mr_cache[GSM_MACBLOCK_LEN]; ^~~~~~~~~~~~~~~~ Makefile:427: recipe for target 'l1ctl.o' failed make[2]: *** [l1ctl.o] Error 1 make[2]: Leaving directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/trxcon' Makefile:318: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/trxcon' Makefile:71: recipe for target 'host/trxcon/trxcon' failed make: *** [host/trxcon/trxcon] Error 2 [WARNING] Build command ./build_Osmocom.sh exited with code 2. Please verify that the build completed successfully. Emitted 2568 C/C++ compilation units (99%) successfully
2568 C/C++ compilation units (99%) are ready for analysis For more details, please look at: /home/osmocom-build/osmo-ci/coverity/source-Osmocom/cov-int/build-log.txt Build step 'Execute shell' marked build as failure
See https://jenkins.osmocom.org/jenkins/job/osmocom-coverity/662/display/redirect
------------------------------------------ [...truncated 1.47 MB...] CC sap_fsm.o CC sap_proto.o CC sap_interface.o CC logging.o CC networks.o CC sim.o CC sysinfo.o CC gps.o CC l1ctl_lapdm_glue.o CC utils.o AR liblayer23.a ar: `u' modifier ignored since `D' is the default (see `U') make[3]: Leaving directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/layer23/src/common' Making all in misc make[3]: Entering directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/layer23/src/misc' CC main.o ../common/main.c: In function ‘main’: ../common/main.c:265:2: warning: ‘lapdm_channel_init’ is deprecated: Use lapdm_channel_init2() instead [-Wdeprecated-declarations] lapdm_channel_init(&ms->lapdm_channel, LAPDM_MODE_MS); ^~~~~~~~~~~~~~~~~~ In file included from ../../include/osmocom/bb/common/osmocom_data.h:14:0, from ../common/main.c:24: /home/osmocom-build/osmo-ci/coverity/install-Osmocom/include/osmocom/gsm/lapdm.h:89:6: note: declared here void lapdm_channel_init(struct lapdm_channel *lc, enum lapdm_mode mode) ^~~~~~~~~~~~~~~~~~ CC app_bcch_scan.o CC bcch_scan.o CCLD bcch_scan CC app_ccch_scan.o CC rslms.o CCLD ccch_scan CC app_echo_test.o CCLD echo_test CC app_cell_log.o CC cell_log.o CC geo.o CCLD cell_log CC app_cbch_sniff.o CCLD cbch_sniff make[3]: Leaving directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/layer23/src/misc' Making all in mobile make[3]: Entering directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/layer23/src/mobile' CC gsm322.o CC gsm480_ss.o CC gsm411_sms.o CC gsm48_cc.o CC gsm48_mm.o CC gsm48_rr.o CC mnccms.o CC settings.o CC subscriber.o CC support.o CC transaction.o CC vty_interface.o CC voice.o CC mncc_sock.o CC primitives.o CC script_lua.o AR libmobile.a ar: `u' modifier ignored since `D' is the default (see `U') CC main.o CC app_mobile.o app_mobile.c: In function ‘mobile_init’: app_mobile.c:193:2: warning: ‘lapdm_channel_init’ is deprecated: Use lapdm_channel_init2() instead [-Wdeprecated-declarations] lapdm_channel_init(&ms->lapdm_channel, LAPDM_MODE_MS); ^~~~~~~~~~~~~~~~~~ In file included from ../../include/osmocom/bb/common/osmocom_data.h:14:0, from app_mobile.c:28: /home/osmocom-build/osmo-ci/coverity/install-Osmocom/include/osmocom/gsm/lapdm.h:89:6: note: declared here void lapdm_channel_init(struct lapdm_channel *lc, enum lapdm_mode mode) ^~~~~~~~~~~~~~~~~~ CCLD mobile make[3]: Leaving directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/layer23/src/mobile' make[3]: Entering directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/layer23/src' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/layer23/src' make[2]: Leaving directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/layer23/src' make[2]: Entering directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/layer23' make[2]: Nothing to be done for 'all-am'. make[2]: Leaving directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/layer23' make[1]: Leaving directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/layer23' cd host/osmocon && autoreconf -i configure.ac:13: installing './compile' configure.ac:6: installing './install-sh' configure.ac:6: installing './missing' Makefile.am:10: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') Makefile.am:17: warning: source file '$(srcdir)/../../target/firmware/comm/sercomm.c' is in a subdirectory, Makefile.am:17: but option 'subdir-objects' is disabled automake: warning: possible forward-incompatibility. automake: At least a source file is in a subdirectory, but the 'subdir-objects' automake: automake option hasn't been enabled. For now, the corresponding output automake: object file(s) will be placed in the top-level directory. However, automake: this behaviour will change in future Automake versions: they will automake: unconditionally cause object files to be placed in the same subdirectory automake: of the corresponding sources. automake: You are advised to start using 'subdir-objects' option throughout your automake: project, to avoid future incompatibilities. Makefile.am: installing './depcomp' cd host/osmocon && ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking whether make sets $(MAKE)... (cached) yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for LIBOSMOCORE... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: executing depfiles commands make -C host/osmocon make[1]: Entering directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/osmocon' echo 0.0.0.2436-a4046 > .version-t && mv .version-t .version make all-am make[2]: Entering directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/osmocon' CC osmocon.o osmocon.c: In function ‘read_file’: osmocon.c:372:8: warning: ‘fd’ may be used uninitialized in this function [-Wmaybe-uninitialized] rc = read(fd, file_data, st.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC tpu_debug.o CC sercomm.o CCLD osmocon CC osmoload.o osmoload.c: In function ‘loader_read_cb’: osmoload.c:288:10: warning: ‘length’ may be used uninitialized in this function [-Wmaybe-uninitialized] uint8_t length; ^~~~~~ osmoload.c:446:3: warning: ‘chip’ may be used uninitialized in this function [-Wmaybe-uninitialized] loader_do_flashrange(cmd, msg, chip, address, status); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ osmoload.c:287:10: note: ‘chip’ was declared here uint8_t chip; ^~~~ osmoload.c:446:3: warning: ‘status’ may be used uninitialized in this function [-Wmaybe-uninitialized] loader_do_flashrange(cmd, msg, chip, address, status); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ osmoload.c:292:11: note: ‘status’ was declared here uint32_t status; ^~~~~~ osmoload.c:433:5: warning: ‘crc’ may be used uninitialized in this function [-Wmaybe-uninitialized] printf("\nbad crc %4.4x (not %4.4x) at offset 0x%8.8x", crc, osmoload.memcrc, osmoload.memoff); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ osmoload.c:289:11: note: ‘crc’ was declared here uint16_t crc; ^~~ osmoload.c:414:4: warning: ‘data’ may be used uninitialized in this function [-Wmaybe-uninitialized] loader_do_memdump(crc, data, length); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ osmoload.c:294:8: note: ‘data’ was declared here void *data; ^~~~ osmoload.c:378:4: warning: ‘address’ may be used uninitialized in this function [-Wmaybe-uninitialized] printf("Confirmed flash erase of chip %d address 0x%8.8x, status %s\n", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ chip, address, status ? "FAILED" : "ok"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ osmoload.c:290:11: note: ‘address’ was declared here uint32_t address; ^~~~~~~ CCLD osmoload make[2]: Leaving directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/osmocon' make[1]: Leaving directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/osmocon' cd host/trxcon && autoreconf -i configure.ac:10: installing './compile' configure.ac:3: installing './install-sh' configure.ac:3: installing './missing' Makefile.am: installing './depcomp' cd host/trxcon && ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking whether make sets $(MAKE)... (cached) yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for LIBOSMOCORE... yes checking for LIBOSMOCODING... yes checking for LIBOSMOGSM... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: executing depfiles commands make -C host/trxcon make[1]: Entering directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/trxcon' echo 0.0.0 > .version-t && mv .version-t .version make all-am make[2]: Entering directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/trxcon' CC l1ctl_link.o CC l1ctl.o In file included from trx_if.h:9:0, from l1ctl.c:46: sched_trx.h:204:20: error: ‘GSM_MACBLOCK_LEN’ undeclared here (not in a function) uint8_t mr_cache[GSM_MACBLOCK_LEN]; ^~~~~~~~~~~~~~~~ Makefile:427: recipe for target 'l1ctl.o' failed make[2]: *** [l1ctl.o] Error 1 make[2]: Leaving directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/trxcon' Makefile:318: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory '/home/osmocom-build/osmo-ci/coverity/source-Osmocom/osmocom-bb/src/host/trxcon' Makefile:71: recipe for target 'host/trxcon/trxcon' failed make: *** [host/trxcon/trxcon] Error 2 [WARNING] Build command ./build_Osmocom.sh exited with code 2. Please verify that the build completed successfully. Emitted 2568 C/C++ compilation units (99%) successfully
2568 C/C++ compilation units (99%) are ready for analysis For more details, please look at: /home/osmocom-build/osmo-ci/coverity/source-Osmocom/cov-int/build-log.txt Build step 'Execute shell' marked build as failure
jenkins-notifications@lists.osmocom.org