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