Skip to content

net: lib: coap_server: common: net.coap.server.common report build failure #99153

@katgiadla

Description

@katgiadla

Describe the bug

Tests:

  • tests/net/lib/coap_server/common/net.coap.server.common,
  • tests/net/lib/coap_server/common/net.coap.server.secure
  • tests/net/socket/register/net.socket.register.tls

report build failure.

Observed for:

Regression

  • This is a regression.

Steps to reproduce

  1. go to your zephyr dir
  2. call $ZEPHYR_BASE/scripts/twister -s net.coap.server.secure -s net.coap.server.common -s net.socket.register.tls -p nrf5340dk/nrf5340/cpuapp/ns -v --inline-logs
  3. See console output with errors

Relevant log output

[48/105] Building C object modules/mbedtls/CMakeFiles/mbedTLSBase.dir/zephyr/zephyr/modules/crypto/mbedtls/library/cipher.c.obj
FAILED: modules/mbedtls/CMakeFiles/mbedTLSBase.dir/zephyr/zephyr/modules/crypto/mbedtls/library/cipher.c.obj 
ccache /home/ncs/toolchains/df3cc9d822/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DKERNEL -DK_HEAP_MEM_POOL_SIZE=0 -DMBEDTLS_CONFIG_FILE=\"config-mbedtls.h\" -DNRF5340_XXAA_APPLICATION -DNRF54L_CONFIGURATION_56_ENABLE=0 -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_TRUSTZONE_NONSECURE -DPICOLIBC_LONG_LONG_PRINTF_SCANF -DZVFS_OPEN_SIZE=8 -D_POSIX_THREAD_SAFE_FUNCTIONS=200809L -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -I/zephyr/zephyr/twister-out/nrf5340dk_nrf5340_cpuapp_ns/zephyr/tests/net/lib/coap_server/common/net.coap.server.common/common/zephyr/include/generated/zephyr -I/zephyr/zephyr/zephyr/include -I/zephyr/zephyr/twister-out/nrf5340dk_nrf5340_cpuapp_ns/zephyr/tests/net/lib/coap_server/common/net.coap.server.common/common/zephyr/include/generated -I/zephyr/zephyr/zephyr/soc/nordic -I/zephyr/zephyr/zephyr/lib/libc/picolibc/include -I/zephyr/zephyr/zephyr/lib/posix/c_lib_ext/getopt -I/zephyr/zephyr/zephyr/lib/midi2/. -I/zephyr/zephyr/zephyr/soc/nordic/nrf53/. -I/zephyr/zephyr/zephyr/soc/nordic/common/. -I/zephyr/zephyr/zephyr/subsys/testsuite/include -I/zephyr/zephyr/zephyr/subsys/testsuite/coverage -I/zephyr/zephyr/zephyr/subsys/testsuite/ztest/include -I/zephyr/zephyr/zephyr/subsys/net/lib/coap/. -I/zephyr/zephyr/modules/hal/cmsis_6/CMSIS/Core/Include -I/zephyr/zephyr/zephyr/modules/cmsis_6/. -I/zephyr/zephyr/modules/hal/microchip/include -I/zephyr/zephyr/modules/hal/nordic/nrfx -I/zephyr/zephyr/modules/hal/nordic/nrfx/drivers/include -I/zephyr/zephyr/modules/hal/nordic/nrfx/mdk -I/zephyr/zephyr/zephyr/modules/hal_nordic/nrfx/. -I/zephyr/zephyr/modules/hal/ti/mspm0/source/ti/devices/msp/. -I/zephyr/zephyr/modules/hal/ti/mspm0/source/ti/devices/msp/m0p -I/zephyr/zephyr/modules/hal/ti/mspm0/source/ti/devices/msp/peripherals -I/zephyr/zephyr/modules/hal/ti/mspm0/source/ti/devices/msp/peripherals/m0p -I/zephyr/zephyr/modules/hal/ti/mspm0/source/ti/devices/msp/peripherals/m0p/sysctl -I/zephyr/zephyr/twister-out/nrf5340dk_nrf5340_cpuapp_ns/zephyr/tests/net/lib/coap_server/common/net.coap.server.common/common/tfm/api_ns/interface/include -I/zephyr/zephyr/modules/crypto/mbedtls/include -I/zephyr/zephyr/zephyr/modules/mbedtls/configs -I/zephyr/zephyr/zephyr/modules/mbedtls/include -isystem /zephyr/zephyr/zephyr/lib/libc/common/include -fno-strict-aliasing -Werror -Os -imacros /zephyr/zephyr/twister-out/nrf5340dk_nrf5340_cpuapp_ns/zephyr/tests/net/lib/coap_server/common/net.coap.server.common/common/zephyr/include/generated/zephyr/autoconf.h -fno-printf-return-value -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft --sysroot=/home/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros /zephyr/zephyr/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/zephyr/zephyr/zephyr/tests/net/lib/coap_server/common=CMAKE_SOURCE_DIR -fmacro-prefix-map=/zephyr/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/zephyr/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=picolibc.specs -std=c99 -MD -MT modules/mbedtls/CMakeFiles/mbedTLSBase.dir/zephyr/zephyr/modules/crypto/mbedtls/library/cipher.c.obj -MF modules/mbedtls/CMakeFiles/mbedTLSBase.dir/zephyr/zephyr/modules/crypto/mbedtls/library/cipher.c.obj.d -o modules/mbedtls/CMakeFiles/mbedTLSBase.dir/zephyr/zephyr/modules/crypto/mbedtls/library/cipher.c.obj -c /zephyr/zephyr/modules/crypto/mbedtls/library/cipher.c
/modules/crypto/mbedtls/library/cipher.c: In function 'mbedtls_cipher_finish_padded':
/modules/crypto/mbedtls/library/cipher.c:1119:20: error: too many arguments to function 'ctx->get_padding'
 1119 |             return ctx->get_padding(output, mbedtls_cipher_get_block_size(ctx),
      |                    ^~~
/modules/crypto/mbedtls/library/cipher.c: In function 'mbedtls_cipher_set_padding_mode':
/modules/crypto/mbedtls/library/cipher.c:1196:30: error: assignment to 'int (*)(unsigned char *, size_t,  size_t *)' {aka 'int (*)(unsigned char *, unsigned int,  unsigned int *)'} from incompatible pointer type 'int (*)(unsigned char *, size_t,  size_t *, size_t *)' {aka 'int (*)(unsigned char *, unsigned int,  unsigned int *, unsigned int *)'} [-Werror=incompatible-pointer-types]
 1196 |             ctx->get_padding = get_no_padding;
      |                              ^
cc1: all warnings being treated as errors

Impact

Annoyance – Minor irritation; no significant impact on usability or functionality.

Environment

  • OS: Ubuntu 20.04.1 LTS
  • Toolchain Zephyr SDK 0.17.0
  • Commit SHA or Version used: dbcfb77

Additional Context

Bisection indicates for f6d24f7

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

To triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions