Skip to content

[Backport v2.7-branch] net: ipv4: Check localhost for incoming packet #531

[Backport v2.7-branch] net: ipv4: Check localhost for incoming packet

[Backport v2.7-branch] net: ipv4: Check localhost for incoming packet #531

GitHub Actions / Unit Test Results failed Dec 22, 2023 in 0s

69 fail, 95 skipped, 304 pass in 10m 19s

468 tests   304 ✔️  10m 19s ⏱️
    1 suites    95 💤
    1 files      69

Results for commit d8ae7c0.

Annotations

Check warning on line 0 in native_posix:tests/drivers/build_all/modem/drivers.modem

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

tests/drivers/build_all/modem/drivers.modem.build (native_posix:tests/drivers/build_all/modem/drivers.modem) failed

artifacts/Unit Test Results (Subset native_posix)/twister.xml
Raw output
Including boilerplate (Zephyr base): /__w/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /__w/zephyr/zephyr/tests/drivers/build_all/modem
-- Zephyr version: 2.7.5 (/__w/zephyr/zephyr), build: v2.7.5-31-gd8ae7c0c0e0c
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: native_posix
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (clang/ld)
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/posix/native_posix/native_posix.dts
-- Found devicetree overlay: /__w/zephyr/zephyr/tests/drivers/build_all/modem/app.overlay
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/native_posix/tests/drivers/build_all/modem/drivers.modem.build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/drivers/build_all/modem/drivers.modem.build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/drivers/build_all/modem/drivers.modem.build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/native_posix/tests/drivers/build_all/modem/drivers.modem.build/zephyr/dts.cmake

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

Parsing /__w/zephyr/zephyr/tests/drivers/build_all/modem/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration 'modem.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/drivers/build_all/modem/drivers.modem.build/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/drivers/build_all/modem/drivers.modem.build/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/drivers/build_all/modem/drivers.modem.build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/lib/llvm-12/bin/clang
CMake Warning at ../../../../CMakeLists.txt:737 (message):
  No SOURCES given to Zephyr library: drivers__gpio

  Excluding target from build.


-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/twister-out/native_posix/tests/drivers/build_all/modem/drivers.modem.build
[1/158] Preparing syscall dependency handling

[2/158] Generating misc/generated/syscalls_subdirs.trigger
[3/158] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/158] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[5/158] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[6/158] Generating include/generated/driver-validation.h
[7/158] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
[8/158] Generating include/generated/offsets.h
[9/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[10/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[11/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[12/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[13/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[14/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[15/158] Building C object CMakeFiles/app.dir/src/main.c.obj
[16/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[17/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[18/158] Linking C static library app/libapp.a
[19/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[20/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[21/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[22/158] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[23/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[24/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[25/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[26/158] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[27/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[28/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[29/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[30/158] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[31/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[32/158] Generating linker_zephyr_prebuilt.cmd
[33/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[34/158] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/irq.c.obj
[35/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[36/158] Building C object zephyr/soc/posix/inf_clock/CMakeFiles/soc__posix__inf_clock.dir/soc.c.obj
[37/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[38/158] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[39/158] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[40/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/ring_buffer.c.obj
[41/158] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/fatal.c.obj
[42/158] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_models_top.c.obj
[43/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[44/158] Linking C static library zephyr/soc/posix/inf_clock/libsoc__posix__inf_clock.a
[45/158] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/cpuhalt.c.obj
[46/158] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/native_rtc.c.obj
[47/158] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[48/158] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/posix_core.c.obj
[49/158] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/swap.c.obj
[50/158] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/main.c.obj
[51/158] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cpu_wait.c.obj
[52/158] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/thread.c.obj
[53/158] Linking C static library zephyr/libzephyr.a
[54/158] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/timer_model.c.obj
[55/158] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/tracing.c.obj
[56/158] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_ctrl.c.obj
[57/158] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline.c.obj
[58/158] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_counter.c.obj
[59/158] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline_common.c.obj
[60/158] Linking C static library zephyr/arch/arch/posix/core/libarch__posix__core.a
[61/158] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_handler.c.obj
[62/158] Building C object zephyr/subsys/fs/CMakeFiles/subsys__fs.dir/fs_impl.c.obj
[63/158] Linking C static library zephyr/boards/posix/native_posix/libboards__posix__native_posix.a
[64/158] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[65/158] Building C object zephyr/subsys/net/l2/ppp/CMakeFiles/subsys__net__l2__ppp.dir/link.c.obj
[66/158] Building C object zephyr/subsys/net/l2/ppp/CMakeFiles/subsys__net__l2__ppp.dir/misc.c.obj
[67/158] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[68/158] Linking C static library zephyr/subsys/net/libsubsys__net.a
[69/158] Building C object zephyr/subsys/net/l2/ppp/CMakeFiles/subsys__net__l2__ppp.dir/network.c.obj
[70/158] Building C object zephyr/subsys/net/l2/ppp/CMakeFiles/subsys__net__l2__ppp.dir/lcp.c.obj
[71/158] Building C object zephyr/subsys/net/l2/ppp/CMakeFiles/subsys__net__l2__ppp.dir/ipcp.c.obj
[72/158] Building C object zephyr/subsys/net/l2/ppp/CMakeFiles/subsys__net__l2__ppp.dir/options.c.obj
[73/158] Building C object zephyr/subsys/net/l2/ppp/CMakeFiles/subsys__net__l2__ppp.dir/ppp_l2.c.obj
[74/158] Building C object zephyr/subsys/net/l2/ppp/CMakeFiles/subsys__net__l2__ppp.dir/ipv6cp.c.obj
[75/158] Building C object zephyr/subsys/net/l2/ethernet/CMakeFiles/subsys__net__l2__ethernet.dir/ethernet.c.obj
[76/158] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[77/158] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[78/158] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[79/158] Building C object zephyr/subsys/fs/CMakeFiles/subsys__fs.dir/fs.c.obj
[80/158] Linking C static library zephyr/subsys/fs/libsubsys__fs.a
[81/158] Building C object zephyr/subsys/net/l2/ethernet/CMakeFiles/subsys__net__l2__ethernet.dir/arp.c.obj
[82/158] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/nbr.c.obj
[83/158] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
FAILED: zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj 
ccache /usr/lib/llvm-12/bin/clang -DBUILD_VERSION=v2.7.5-31-gd8ae7c0c0e0c -DKERNEL -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../../../../../subsys/net/ip/. -I../../../../../../../kernel/include -I../../../../../../../arch/posix/include -I../../../../../../../include -Izephyr/include/generated -I../../../../../../../soc/posix/inf_clock -I../../../../../../../boards/posix/native_posix -I../../../../../../../subsys/net/l2 -I../../../../../../../subsys/testsuite/include -Os -Werror -imacros /__w/zephyr/zephyr/twister-out/native_posix/tests/drivers/build_all/modem/drivers.modem.build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fcolor-diagnostics -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-typedef-redefinition -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fmacro-prefix-map=/__w/zephyr/zephyr/tests/drivers/build_all/modem=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /__w/zephyr/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -MF zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj.d -o zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -c /__w/zephyr/zephyr/subsys/net/ip/ipv4.c
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:270:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) ||
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:271:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                    net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) {
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:276:45: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) {
                                                          ^~~~~~~~
3 errors generated.
[84/158] Linking C static library zephyr/subsys/net/l2/ethernet/libsubsys__net__l2__ethernet.a
[85/158] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[86/158] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6_mld.c.obj
[87/158] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/native_posix_console.c.obj
[88/158] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv6.c.obj
[89/158] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[90/158] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/uart_console.c.obj
[91/158] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[92/158] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[93/158] Building C object zephyr/drivers/modem/CMakeFiles/drivers__modem.dir/modem_receiver.c.obj
[94/158] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6.c.obj
[95/158] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[96/158] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
[97/158] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/route.c.obj
[98/158] Building C object zephyr/subsys/net/l2/ppp/CMakeFiles/subsys__net__l2__ppp.dir/fsm.c.obj
[99/158] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
[100/158] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6_nbr.c.obj
ninja: build stopped: subcommand failed.

Check warning on line 0 in native_posix:tests/net/arp/net.arp

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

tests/net/arp/net.arp (native_posix:tests/net/arp/net.arp) failed

artifacts/Unit Test Results (Subset native_posix)/twister.xml
Raw output
Including boilerplate (Zephyr base): /__w/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /__w/zephyr/zephyr/tests/net/arp
-- Zephyr version: 2.7.5 (/__w/zephyr/zephyr), build: v2.7.5-31-gd8ae7c0c0e0c
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: native_posix
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (clang/ld)
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/arp/net.arp/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/arp/net.arp/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/arp/net.arp/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/arp/net.arp/zephyr/dts.cmake

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration '/__w/zephyr/zephyr/tests/net/arp/prj.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/arp/net.arp/twister/testcase_extra.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/arp/net.arp/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/arp/net.arp/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/arp/net.arp/zephyr/include/generated/autoconf.h'
-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/lib/llvm-12/bin/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/arp/net.arp
[1/126] Preparing syscall dependency handling

[2/126] Generating misc/generated/syscalls_subdirs.trigger
[3/126] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/126] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[5/126] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[6/126] Generating include/generated/driver-validation.h
[7/126] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
[8/126] Generating include/generated/offsets.h
[9/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[10/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[11/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[12/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[13/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[14/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[15/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[16/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[17/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[18/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[19/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[20/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[21/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[22/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[23/126] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[24/126] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[25/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[26/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[27/126] Generating linker_zephyr_prebuilt.cmd
[28/126] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[29/126] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[30/126] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/irq.c.obj
[31/126] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[32/126] Building C object CMakeFiles/app.dir/src/main.c.obj
[33/126] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/cpuhalt.c.obj
[34/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[35/126] Linking C static library app/libapp.a
[36/126] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/fatal.c.obj
[37/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[38/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[39/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[40/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/native_rtc.c.obj
[41/126] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/swap.c.obj
[42/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[43/126] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/thread.c.obj
[44/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[45/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[46/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_models_top.c.obj
[47/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/main.c.obj
[48/126] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/posix_core.c.obj
[49/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/tracing.c.obj
[50/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cpu_wait.c.obj
[51/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_counter.c.obj
[52/126] Linking C static library zephyr/libzephyr.a
[53/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/timer_model.c.obj
[54/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline.c.obj
[55/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_ctrl.c.obj
[56/126] Building C object zephyr/soc/posix/inf_clock/CMakeFiles/soc__posix__inf_clock.dir/soc.c.obj
[57/126] Linking C static library zephyr/arch/arch/posix/core/libarch__posix__core.a
[58/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline_common.c.obj
[59/126] Building C object zephyr/drivers/ethernet/CMakeFiles/drivers__ethernet.dir/eth_native_posix.c.obj
[60/126] Linking C static library zephyr/soc/posix/inf_clock/libsoc__posix__inf_clock.a
[61/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_handler.c.obj
[62/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[63/126] Linking C static library zephyr/boards/posix/native_posix/libboards__posix__native_posix.a
[64/126] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest_error_hook.c.obj
[65/126] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[66/126] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest.c.obj
[67/126] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/native_posix_console.c.obj
[68/126] Building C object zephyr/drivers/ethernet/CMakeFiles/drivers__ethernet.dir/eth_native_posix_adapt.c.obj
[69/126] Linking C static library zephyr/subsys/random/libsubsys__random.a
[70/126] Linking C static library zephyr/subsys/testsuite/ztest/libsubsys__testsuite__ztest.a
[71/126] Linking C static library zephyr/drivers/console/libdrivers__console.a
[72/126] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[73/126] Linking C static library zephyr/drivers/ethernet/libdrivers__ethernet.a
[74/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[75/126] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/fake_entropy_native_posix.c.obj
[76/126] Linking C static library zephyr/subsys/net/libsubsys__net.a
[77/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[78/126] Linking C static library zephyr/drivers/entropy/libdrivers__entropy.a
[79/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj
[80/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
FAILED: zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj 
ccache /usr/lib/llvm-12/bin/clang -DBUILD_VERSION=v2.7.5-31-gd8ae7c0c0e0c -DKERNEL -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../../../../subsys/net/ip/. -I../../../../../../kernel/include -I../../../../../../arch/posix/include -I../../../../../../include -Izephyr/include/generated -I../../../../../../soc/posix/inf_clock -I../../../../../../boards/posix/native_posix -I../../../../../../subsys/net/l2 -I../../../../../../subsys/testsuite/include -I../../../../../../subsys/testsuite/ztest/include -Os -Werror -imacros /__w/zephyr/zephyr/twister-out/native_posix/tests/net/arp/net.arp/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fcolor-diagnostics -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-typedef-redefinition -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fmacro-prefix-map=/__w/zephyr/zephyr/tests/net/arp=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /__w/zephyr/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -MF zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj.d -o zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -c /__w/zephyr/zephyr/subsys/net/ip/ipv4.c
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:270:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) ||
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:271:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                    net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) {
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:276:45: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) {
                                                          ^~~~~~~~
3 errors generated.
[81/126] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[82/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
[83/126] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/native_posix_timer.c.obj
[84/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[85/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
[86/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
[87/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj
[88/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[89/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[90/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
[91/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj
[92/126] Building C object zephyr/subsys/net/l2/ethernet/CMakeFiles/subsys__net__l2__ethernet.dir/ethernet.c.obj
[93/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[94/126] Building C object zephyr/subsys/net/l2/ethernet/CMakeFiles/subsys__net__l2__ethernet.dir/arp.c.obj
[95/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[96/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
[97/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
ninja: build stopped: subcommand failed.

Check warning on line 0 in native_posix:tests/net/arp/net.arp

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

tests/net/arp/net.arp.preempt (native_posix:tests/net/arp/net.arp) failed

artifacts/Unit Test Results (Subset native_posix)/twister.xml
Raw output
Including boilerplate (Zephyr base): /__w/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /__w/zephyr/zephyr/tests/net/arp
-- Zephyr version: 2.7.5 (/__w/zephyr/zephyr), build: v2.7.5-31-gd8ae7c0c0e0c
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: native_posix
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (clang/ld)
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/arp/net.arp.preempt/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/arp/net.arp.preempt/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/arp/net.arp.preempt/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/arp/net.arp.preempt/zephyr/dts.cmake
Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration '/__w/zephyr/zephyr/tests/net/arp/prj.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/arp/net.arp.preempt/twister/testcase_extra.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/arp/net.arp.preempt/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/arp/net.arp.preempt/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/arp/net.arp.preempt/zephyr/include/generated/autoconf.h'

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/lib/llvm-12/bin/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/arp/net.arp.preempt
[1/126] Preparing syscall dependency handling

[2/126] Generating misc/generated/syscalls_subdirs.trigger
[3/126] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/126] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[5/126] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[6/126] Generating include/generated/driver-validation.h
[7/126] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
[8/126] Generating include/generated/offsets.h
[9/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[10/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[11/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[12/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[13/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[14/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[15/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[16/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[17/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[18/126] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[19/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[20/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[21/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[22/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[23/126] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[24/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[25/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[26/126] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[27/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[28/126] Generating linker_zephyr_prebuilt.cmd
[29/126] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/irq.c.obj
[30/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[31/126] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[32/126] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[33/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[34/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[35/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[36/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[37/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[38/126] Building C object CMakeFiles/app.dir/src/main.c.obj
[39/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[40/126] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/cpuhalt.c.obj
[41/126] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/fatal.c.obj
[42/126] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/swap.c.obj
[43/126] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/thread.c.obj
[44/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_models_top.c.obj
[45/126] Linking C static library app/libapp.a
[46/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/native_rtc.c.obj
[47/126] Linking C static library zephyr/libzephyr.a
[48/126] Building C object zephyr/soc/posix/inf_clock/CMakeFiles/soc__posix__inf_clock.dir/soc.c.obj
[49/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/timer_model.c.obj
[50/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/tracing.c.obj
[51/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/main.c.obj
[52/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline.c.obj
[53/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cpu_wait.c.obj
[54/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_counter.c.obj
[55/126] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/posix_core.c.obj
[56/126] Linking C static library zephyr/soc/posix/inf_clock/libsoc__posix__inf_clock.a
[57/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_ctrl.c.obj
[58/126] Building C object zephyr/drivers/ethernet/CMakeFiles/drivers__ethernet.dir/eth_native_posix.c.obj
[59/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline_common.c.obj
[60/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_handler.c.obj
[61/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[62/126] Linking C static library zephyr/arch/arch/posix/core/libarch__posix__core.a
[63/126] Linking C static library zephyr/boards/posix/native_posix/libboards__posix__native_posix.a
[64/126] Building C object zephyr/drivers/ethernet/CMakeFiles/drivers__ethernet.dir/eth_native_posix_adapt.c.obj
[65/126] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/native_posix_console.c.obj
[66/126] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest_error_hook.c.obj
[67/126] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[68/126] Linking C static library zephyr/drivers/console/libdrivers__console.a
[69/126] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest.c.obj
[70/126] Linking C static library zephyr/drivers/ethernet/libdrivers__ethernet.a
[71/126] Linking C static library zephyr/subsys/random/libsubsys__random.a
[72/126] Linking C static library zephyr/subsys/testsuite/ztest/libsubsys__testsuite__ztest.a
[73/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[74/126] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[75/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[76/126] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[77/126] Linking C static library zephyr/subsys/net/libsubsys__net.a
[78/126] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/native_posix_timer.c.obj
[79/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj
[80/126] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/fake_entropy_native_posix.c.obj
[81/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
FAILED: zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj 
ccache /usr/lib/llvm-12/bin/clang -DBUILD_VERSION=v2.7.5-31-gd8ae7c0c0e0c -DKERNEL -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../../../../subsys/net/ip/. -I../../../../../../kernel/include -I../../../../../../arch/posix/include -I../../../../../../include -Izephyr/include/generated -I../../../../../../soc/posix/inf_clock -I../../../../../../boards/posix/native_posix -I../../../../../../subsys/net/l2 -I../../../../../../subsys/testsuite/include -I../../../../../../subsys/testsuite/ztest/include -Os -Werror -imacros /__w/zephyr/zephyr/twister-out/native_posix/tests/net/arp/net.arp.preempt/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fcolor-diagnostics -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-typedef-redefinition -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fmacro-prefix-map=/__w/zephyr/zephyr/tests/net/arp=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /__w/zephyr/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -MF zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj.d -o zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -c /__w/zephyr/zephyr/subsys/net/ip/ipv4.c
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:270:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) ||
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:271:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                    net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) {
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:276:45: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) {
                                                          ^~~~~~~~
3 errors generated.
[82/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
[83/126] Building C object zephyr/subsys/net/l2/ethernet/CMakeFiles/subsys__net__l2__ethernet.dir/ethernet.c.obj
[84/126] Linking C static library zephyr/drivers/timer/libdrivers__timer.a
[85/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[86/126] Linking C static library zephyr/drivers/entropy/libdrivers__entropy.a
[87/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
[88/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[89/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[90/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
[91/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj
[92/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
[93/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj
[94/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[95/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[96/126] Building C object zephyr/subsys/net/l2/ethernet/CMakeFiles/subsys__net__l2__ethernet.dir/arp.c.obj
[97/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
[98/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
ninja: build stopped: subcommand failed.

Check warning on line 0 in native_posix:tests/net/bridge/net.eth_bridge

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

tests/net/bridge/net.eth_bridge.ip (native_posix:tests/net/bridge/net.eth_bridge) failed

artifacts/Unit Test Results (Subset native_posix)/twister.xml
Raw output
Including boilerplate (Zephyr base): /__w/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /__w/zephyr/zephyr/tests/net/bridge
-- Zephyr version: 2.7.5 (/__w/zephyr/zephyr), build: v2.7.5-31-gd8ae7c0c0e0c
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: native_posix
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (clang/ld)
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/bridge/net.eth_bridge.ip/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/bridge/net.eth_bridge.ip/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/bridge/net.eth_bridge.ip/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/bridge/net.eth_bridge.ip/zephyr/dts.cmake
Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration '/__w/zephyr/zephyr/tests/net/bridge/prj.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/bridge/net.eth_bridge.ip/twister/testcase_extra.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/bridge/net.eth_bridge.ip/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/bridge/net.eth_bridge.ip/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/bridge/net.eth_bridge.ip/zephyr/include/generated/autoconf.h'

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/lib/llvm-12/bin/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/bridge/net.eth_bridge.ip
[1/136] Preparing syscall dependency handling

[2/136] Generating misc/generated/syscalls_subdirs.trigger
[3/136] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/136] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[5/136] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[6/136] Generating include/generated/driver-validation.h
[7/136] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
[8/136] Generating include/generated/offsets.h
[9/136] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[10/136] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[11/136] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[12/136] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[13/136] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[14/136] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[15/136] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[16/136] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[17/136] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[18/136] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[19/136] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[20/136] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[21/136] Building C object CMakeFiles/app.dir/src/main.c.obj
[22/136] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[23/136] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[24/136] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[25/136] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[26/136] Generating linker_zephyr_prebuilt.cmd
[27/136] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[28/136] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[29/136] Linking C static library app/libapp.a
[30/136] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[31/136] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[32/136] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/irq.c.obj
[33/136] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[34/136] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[35/136] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/cpuhalt.c.obj
[36/136] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[37/136] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/native_rtc.c.obj
[38/136] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/fatal.c.obj
[39/136] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[40/136] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[41/136] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/swap.c.obj
[42/136] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[43/136] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_models_top.c.obj
[44/136] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[45/136] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/timer_model.c.obj
[46/136] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/main.c.obj
[47/136] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[48/136] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/thread.c.obj
[49/136] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cpu_wait.c.obj
[50/136] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_handler.c.obj
[51/136] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/posix_core.c.obj
[52/136] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_counter.c.obj
[53/136] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_ctrl.c.obj
[54/136] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline.c.obj
[55/136] Linking C static library zephyr/libzephyr.a
[56/136] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/tracing.c.obj
[57/136] Linking C static library zephyr/arch/arch/posix/core/libarch__posix__core.a
[58/136] Building C object zephyr/soc/posix/inf_clock/CMakeFiles/soc__posix__inf_clock.dir/soc.c.obj
[59/136] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[60/136] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline_common.c.obj
[61/136] Linking C static library zephyr/soc/posix/inf_clock/libsoc__posix__inf_clock.a
[62/136] Linking C static library zephyr/boards/posix/native_posix/libboards__posix__native_posix.a
[63/136] Building C object zephyr/subsys/net/l2/ethernet/CMakeFiles/subsys__net__l2__ethernet.dir/ethernet_mgmt.c.obj
[64/136] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[65/136] Building C object zephyr/subsys/net/l2/ethernet/CMakeFiles/subsys__net__l2__ethernet.dir/bridge.c.obj
[66/136] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[67/136] Linking C static library zephyr/subsys/net/libsubsys__net.a
[68/136] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[69/136] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_mgmt.c.obj
[70/136] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/nbr.c.obj
[71/136] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
FAILED: zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj 
ccache /usr/lib/llvm-12/bin/clang -DBUILD_VERSION=v2.7.5-31-gd8ae7c0c0e0c -DKERNEL -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../../../../subsys/net/ip/. -I../../../../../../kernel/include -I../../../../../../arch/posix/include -I../../../../../../include -Izephyr/include/generated -I../../../../../../soc/posix/inf_clock -I../../../../../../boards/posix/native_posix -I../../../../../../subsys/net/l2 -I../../../../../../subsys/testsuite/include -I../../../../../../subsys/testsuite/ztest/include -Os -Werror -imacros /__w/zephyr/zephyr/twister-out/native_posix/tests/net/bridge/net.eth_bridge.ip/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fcolor-diagnostics -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-typedef-redefinition -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fmacro-prefix-map=/__w/zephyr/zephyr/tests/net/bridge=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /__w/zephyr/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -MF zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj.d -o zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -c /__w/zephyr/zephyr/subsys/net/ip/ipv4.c
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:270:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) ||
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:271:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                    net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) {
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:276:45: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) {
                                                          ^~~~~~~~
3 errors generated.
[72/136] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[73/136] Building C object zephyr/subsys/net/l2/ethernet/CMakeFiles/subsys__net__l2__ethernet.dir/ethernet.c.obj
[74/136] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6_mld.c.obj
[75/136] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[76/136] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv6.c.obj
[77/136] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest.c.obj
[78/136] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[79/136] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/promiscuous.c.obj
[80/136] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[81/136] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[82/136] Building C object zephyr/subsys/net/l2/ethernet/CMakeFiles/subsys__net__l2__ethernet.dir/arp.c.obj
[83/136] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6.c.obj
[84/136] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[85/136] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
[86/136] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/route.c.obj
[87/136] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
[88/136] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6_nbr.c.obj
ninja: build stopped: subcommand failed.

Check warning on line 0 in native_posix:tests/net/checksum_offload/net.offload

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

tests/net/checksum_offload/net.offload (native_posix:tests/net/checksum_offload/net.offload) failed

artifacts/Unit Test Results (Subset native_posix)/twister.xml
Raw output
Including boilerplate (Zephyr base): /__w/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /__w/zephyr/zephyr/tests/net/checksum_offload
-- Zephyr version: 2.7.5 (/__w/zephyr/zephyr), build: v2.7.5-31-gd8ae7c0c0e0c
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: native_posix
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (clang/ld)
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/checksum_offload/net.offload/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/checksum_offload/net.offload/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/checksum_offload/net.offload/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/checksum_offload/net.offload/zephyr/dts.cmake

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration '/__w/zephyr/zephyr/tests/net/checksum_offload/prj.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/checksum_offload/net.offload/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/checksum_offload/net.offload/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/checksum_offload/net.offload/zephyr/include/generated/autoconf.h'
-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/lib/llvm-12/bin/clang
CMake Warning at ../../../CMakeLists.txt:737 (message):
  No SOURCES given to Zephyr library: drivers__ethernet

  Excluding target from build.


-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/checksum_offload/net.offload
[1/226] Preparing syscall dependency handling

[2/226] Generating misc/generated/syscalls_subdirs.trigger
[3/226] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/226] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[5/226] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[6/226] Generating include/generated/driver-validation.h
[7/226] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
[8/226] Generating include/generated/offsets.h
[9/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[10/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[11/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[12/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[13/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[14/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[15/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[16/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[17/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[18/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[19/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[20/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[21/226] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[22/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[23/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[24/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[25/226] Generating linker_zephyr_prebuilt.cmd
[26/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[27/226] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[28/226] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[29/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[30/226] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[31/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[32/226] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/irq.c.obj
[33/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[34/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[35/226] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[36/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[37/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[38/226] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[39/226] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/cpuhalt.c.obj
[40/226] Building C object CMakeFiles/app.dir/src/main.c.obj
[41/226] Building C object zephyr/soc/posix/inf_clock/CMakeFiles/soc__posix__inf_clock.dir/soc.c.obj
[42/226] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/fatal.c.obj
[43/226] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/native_rtc.c.obj
[44/226] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_models_top.c.obj
[45/226] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/timer_model.c.obj
[46/226] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/main.c.obj
[47/226] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/thread.c.obj
[48/226] Linking C static library zephyr/libzephyr.a
[49/226] Linking C static library zephyr/soc/posix/inf_clock/libsoc__posix__inf_clock.a
[50/226] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_counter.c.obj
[51/226] Linking C static library app/libapp.a
[52/226] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/posix_core.c.obj
[53/226] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/swap.c.obj
[54/226] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/tracing.c.obj
[55/226] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline.c.obj
[56/226] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cpu_wait.c.obj
[57/226] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_handler.c.obj
[58/226] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline_common.c.obj
[59/226] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_ctrl.c.obj
[60/226] Linking C static library zephyr/arch/arch/posix/core/libarch__posix__core.a
[61/226] Linking C static library zephyr/boards/posix/native_posix/libboards__posix__native_posix.a
[62/226] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[63/226] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/nbr.c.obj
[64/226] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[65/226] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[66/226] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
FAILED: zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj 
ccache /usr/lib/llvm-12/bin/clang -DBUILD_VERSION=v2.7.5-31-gd8ae7c0c0e0c -DKERNEL -DMBEDTLS_CONFIG_FILE=\"config-tls-generic.h\" -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../../../../subsys/net/ip/. -I../../../../../../kernel/include -I../../../../../../arch/posix/include -I../../../../../../include -Izephyr/include/generated -I../../../../../../soc/posix/inf_clock -I../../../../../../boards/posix/native_posix -I../../../../../../subsys/net/l2 -I../../../../../../subsys/testsuite/include -I../../../../../../subsys/testsuite/ztest/include -I/__w/zephyr/modules/crypto/mbedtls/mbedtls/include -I../../../../../../modules/mbedtls/configs -Os -Werror -imacros /__w/zephyr/zephyr/twister-out/native_posix/tests/net/checksum_offload/net.offload/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fcolor-diagnostics -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-typedef-redefinition -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fmacro-prefix-map=/__w/zephyr/zephyr/tests/net/checksum_offload=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /__w/zephyr/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -MF zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj.d -o zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -c /__w/zephyr/zephyr/subsys/net/ip/ipv4.c
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:270:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) ||
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:271:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                    net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) {
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:276:45: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) {
                                                          ^~~~~~~~
3 errors generated.
[67/226] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[68/226] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/__w/zephyr/modules/crypto/mbedtls/mbedtls/library/certs.c.obj
[69/226] Linking C static library zephyr/subsys/net/libsubsys__net.a
[70/226] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[71/226] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[72/226] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[73/226] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv6.c.obj
[74/226] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[75/226] Building C object zephyr/subsys/net/l2/ethernet/CMakeFiles/subsys__net__l2__ethernet.dir/ethernet.c.obj
[76/226] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[77/226] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[78/226] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6.c.obj
[79/226] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/route.c.obj
[80/226] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
[81/226] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6_nbr.c.obj
[82/226] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
[83/226] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/tcp2.c.obj
ninja: build stopped: subcommand failed.

Check warning on line 0 in native_posix:tests/net/context/net.context

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

tests/net/context/net.context (native_posix:tests/net/context/net.context) failed

artifacts/Unit Test Results (Subset native_posix)/twister.xml
Raw output
Including boilerplate (Zephyr base): /__w/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /__w/zephyr/zephyr/tests/net/context
-- Zephyr version: 2.7.5 (/__w/zephyr/zephyr), build: v2.7.5-31-gd8ae7c0c0e0c
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: native_posix
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (clang/ld)
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/context/net.context/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/context/net.context/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/context/net.context/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/context/net.context/zephyr/dts.cmake

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration '/__w/zephyr/zephyr/tests/net/context/prj.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/context/net.context/twister/testcase_extra.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/context/net.context/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/context/net.context/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/context/net.context/zephyr/include/generated/autoconf.h'
-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/lib/llvm-12/bin/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/context/net.context
[1/126] Preparing syscall dependency handling

[2/126] Generating misc/generated/syscalls_subdirs.trigger
[3/126] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/126] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[5/126] Generating include/generated/driver-validation.h
[6/126] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[7/126] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
[8/126] Generating include/generated/offsets.h
[9/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[10/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[11/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[12/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[13/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[14/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[15/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[16/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[17/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[18/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[19/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[20/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[21/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[22/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[23/126] Generating linker_zephyr_prebuilt.cmd
[24/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[25/126] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[26/126] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[27/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[28/126] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[29/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[30/126] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[31/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[32/126] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/irq.c.obj
[33/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[34/126] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[35/126] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/cpuhalt.c.obj
[36/126] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/fatal.c.obj
[37/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[38/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[39/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/native_rtc.c.obj
[40/126] Building C object CMakeFiles/app.dir/src/main.c.obj
[41/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[42/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[43/126] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/swap.c.obj
[44/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_models_top.c.obj
[45/126] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/thread.c.obj
[46/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cpu_wait.c.obj
[47/126] Linking C static library app/libapp.a
[48/126] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/posix_core.c.obj
[49/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/tracing.c.obj
[50/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_ctrl.c.obj
[51/126] Linking C static library zephyr/libzephyr.a
[52/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/main.c.obj
[53/126] Building C object zephyr/soc/posix/inf_clock/CMakeFiles/soc__posix__inf_clock.dir/soc.c.obj
[54/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/timer_model.c.obj
[55/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline.c.obj
[56/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_counter.c.obj
[57/126] Linking C static library zephyr/arch/arch/posix/core/libarch__posix__core.a
[58/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_handler.c.obj
[59/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[60/126] Linking C static library zephyr/soc/posix/inf_clock/libsoc__posix__inf_clock.a
[61/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline_common.c.obj
[62/126] Linking C static library zephyr/boards/posix/native_posix/libboards__posix__native_posix.a
[63/126] Building C object zephyr/subsys/net/l2/dummy/CMakeFiles/subsys__net__l2__dummy.dir/dummy.c.obj
[64/126] Linking C static library zephyr/subsys/net/l2/dummy/libsubsys__net__l2__dummy.a
[65/126] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[66/126] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[67/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[68/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6_nbr.c.obj
[69/126] Linking C static library zephyr/subsys/random/libsubsys__random.a
[70/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[71/126] Linking C static library zephyr/subsys/net/libsubsys__net.a
[72/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/nbr.c.obj
[73/126] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest.c.obj
[74/126] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest_error_hook.c.obj
[75/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[76/126] Linking C static library zephyr/subsys/testsuite/ztest/libsubsys__testsuite__ztest.a
[77/126] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/native_posix_console.c.obj
[78/126] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/fake_entropy_native_posix.c.obj
[79/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
FAILED: zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj 
ccache /usr/lib/llvm-12/bin/clang -DBUILD_VERSION=v2.7.5-31-gd8ae7c0c0e0c -DKERNEL -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../../../../subsys/net/ip/. -I../../../../../../kernel/include -I../../../../../../arch/posix/include -I../../../../../../include -Izephyr/include/generated -I../../../../../../soc/posix/inf_clock -I../../../../../../boards/posix/native_posix -I../../../../../../subsys/testsuite/include -I../../../../../../subsys/testsuite/ztest/include -Os -Werror -imacros /__w/zephyr/zephyr/twister-out/native_posix/tests/net/context/net.context/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fcolor-diagnostics -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-typedef-redefinition -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fmacro-prefix-map=/__w/zephyr/zephyr/tests/net/context=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /__w/zephyr/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -MF zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj.d -o zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -c /__w/zephyr/zephyr/subsys/net/ip/ipv4.c
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:270:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) ||
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:271:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                    net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) {
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:276:45: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) {
                                                          ^~~~~~~~
3 errors generated.
[80/126] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/native_posix_timer.c.obj
[81/126] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[82/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj
[83/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
[84/126] Linking C static library zephyr/drivers/console/libdrivers__console.a
[85/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
[86/126] Linking C static library zephyr/drivers/entropy/libdrivers__entropy.a
[87/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[88/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6.c.obj
[89/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv6.c.obj
[90/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[91/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj
[92/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
[93/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[94/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[95/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
[96/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
ninja: build stopped: subcommand failed.

Check warning on line 0 in native_posix:tests/net/dhcpv4/net.dhcp

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

tests/net/dhcpv4/net.dhcp (native_posix:tests/net/dhcpv4/net.dhcp) failed

artifacts/Unit Test Results (Subset native_posix)/twister.xml
Raw output
Including boilerplate (Zephyr base): /__w/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /__w/zephyr/zephyr/tests/net/dhcpv4
-- Zephyr version: 2.7.5 (/__w/zephyr/zephyr), build: v2.7.5-31-gd8ae7c0c0e0c
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: native_posix
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (clang/ld)
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/dhcpv4/net.dhcp/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/dhcpv4/net.dhcp/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/dhcpv4/net.dhcp/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/dhcpv4/net.dhcp/zephyr/dts.cmake

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration '/__w/zephyr/zephyr/tests/net/dhcpv4/prj.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/dhcpv4/net.dhcp/twister/testcase_extra.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/dhcpv4/net.dhcp/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/dhcpv4/net.dhcp/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/dhcpv4/net.dhcp/zephyr/include/generated/autoconf.h'
-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/lib/llvm-12/bin/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/dhcpv4/net.dhcp
[1/127] Preparing syscall dependency handling

[2/127] Generating misc/generated/syscalls_subdirs.trigger
[3/127] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/127] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[5/127] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[6/127] Generating include/generated/driver-validation.h
[7/127] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
[8/127] Generating include/generated/offsets.h
[9/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[10/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[11/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[12/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[13/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[14/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[15/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[16/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[17/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[18/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[19/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[20/127] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[21/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[22/127] Generating linker_zephyr_prebuilt.cmd
[23/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[24/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[25/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[26/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[27/127] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[28/127] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[29/127] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[30/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[31/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[32/127] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/irq.c.obj
[33/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[34/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[35/127] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[36/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[37/127] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/fatal.c.obj
[38/127] Building C object CMakeFiles/app.dir/src/main.c.obj
[39/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[40/127] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/cpuhalt.c.obj
[41/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/native_rtc.c.obj
[42/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[43/127] Building C object zephyr/soc/posix/inf_clock/CMakeFiles/soc__posix__inf_clock.dir/soc.c.obj
[44/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_models_top.c.obj
[45/127] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/swap.c.obj
[46/127] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/thread.c.obj
[47/127] Linking C static library app/libapp.a
[48/127] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/posix_core.c.obj
[49/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/timer_model.c.obj
[50/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/main.c.obj
[51/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/tracing.c.obj
[52/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_ctrl.c.obj
[53/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cpu_wait.c.obj
[54/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_counter.c.obj
[55/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline.c.obj
[56/127] Linking C static library zephyr/libzephyr.a
[57/127] Linking C static library zephyr/soc/posix/inf_clock/libsoc__posix__inf_clock.a
[58/127] Linking C static library zephyr/arch/arch/posix/core/libarch__posix__core.a
[59/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_handler.c.obj
[60/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline_common.c.obj
[61/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[62/127] Linking C static library zephyr/boards/posix/native_posix/libboards__posix__native_posix.a
[63/127] Building C object zephyr/subsys/net/l2/dummy/CMakeFiles/subsys__net__l2__dummy.dir/dummy.c.obj
[64/127] Linking C static library zephyr/subsys/net/l2/dummy/libsubsys__net__l2__dummy.a
[65/127] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[66/127] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[67/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[68/127] Linking C static library zephyr/subsys/random/libsubsys__random.a
[69/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[70/127] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest.c.obj
[71/127] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest_error_hook.c.obj
[72/127] Linking C static library zephyr/subsys/net/libsubsys__net.a
[73/127] Building C object zephyr/subsys/net/lib/dns/CMakeFiles/subsys__net__lib__dns.dir/dns_pack.c.obj
[74/127] Linking C static library zephyr/subsys/testsuite/ztest/libsubsys__testsuite__ztest.a
[75/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[76/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
FAILED: zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj 
ccache /usr/lib/llvm-12/bin/clang -DBUILD_VERSION=v2.7.5-31-gd8ae7c0c0e0c -DKERNEL -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../../../../subsys/net/ip/. -I../../../../../../kernel/include -I../../../../../../arch/posix/include -I../../../../../../include -Izephyr/include/generated -I../../../../../../soc/posix/inf_clock -I../../../../../../boards/posix/native_posix -I../../../../../../subsys/net/lib/dns/. -I../../../../../../subsys/testsuite/include -I../../../../../../subsys/testsuite/ztest/include -Os -Werror -imacros /__w/zephyr/zephyr/twister-out/native_posix/tests/net/dhcpv4/net.dhcp/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fcolor-diagnostics -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-typedef-redefinition -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fmacro-prefix-map=/__w/zephyr/zephyr/tests/net/dhcpv4=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /__w/zephyr/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -MF zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj.d -o zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -c /__w/zephyr/zephyr/subsys/net/ip/ipv4.c
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:270:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) ||
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:271:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                    net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) {
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:276:45: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) {
                                                          ^~~~~~~~
3 errors generated.
[77/127] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/native_posix_timer.c.obj
[78/127] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[79/127] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj
[80/127] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/native_posix_console.c.obj
[81/127] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/fake_entropy_native_posix.c.obj
[82/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[83/127] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
[84/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[85/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_mgmt.c.obj
[86/127] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
[87/127] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
[88/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[89/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
[90/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[91/127] Building C object zephyr/subsys/net/lib/dns/CMakeFiles/subsys__net__lib__dns.dir/resolve.c.obj
[92/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
[93/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/dhcpv4.c.obj
ninja: build stopped: subcommand failed.

Check warning on line 0 in native_posix:tests/net/dhcpv4/net.dhcp

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

tests/net/dhcpv4/net.dhcp.preempt (native_posix:tests/net/dhcpv4/net.dhcp) failed

artifacts/Unit Test Results (Subset native_posix)/twister.xml
Raw output
Including boilerplate (Zephyr base): /__w/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /__w/zephyr/zephyr/tests/net/dhcpv4
-- Zephyr version: 2.7.5 (/__w/zephyr/zephyr), build: v2.7.5-31-gd8ae7c0c0e0c
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: native_posix
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (clang/ld)
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/dhcpv4/net.dhcp.preempt/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/dhcpv4/net.dhcp.preempt/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/dhcpv4/net.dhcp.preempt/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/dhcpv4/net.dhcp.preempt/zephyr/dts.cmake
Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration '/__w/zephyr/zephyr/tests/net/dhcpv4/prj.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/dhcpv4/net.dhcp.preempt/twister/testcase_extra.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/dhcpv4/net.dhcp.preempt/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/dhcpv4/net.dhcp.preempt/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/dhcpv4/net.dhcp.preempt/zephyr/include/generated/autoconf.h'

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/lib/llvm-12/bin/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/dhcpv4/net.dhcp.preempt
[1/127] Preparing syscall dependency handling

[2/127] Generating misc/generated/syscalls_subdirs.trigger
[3/127] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/127] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[5/127] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[6/127] Generating include/generated/driver-validation.h
[7/127] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
[8/127] Generating include/generated/offsets.h
[9/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[10/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[11/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[12/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[13/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[14/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[15/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[16/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[17/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[18/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[19/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[20/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[21/127] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[22/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[23/127] Generating linker_zephyr_prebuilt.cmd
[24/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[25/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[26/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[27/127] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[28/127] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[29/127] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/irq.c.obj
[30/127] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[31/127] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[32/127] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/cpuhalt.c.obj
[33/127] Building C object CMakeFiles/app.dir/src/main.c.obj
[34/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[35/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[36/127] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/fatal.c.obj
[37/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[38/127] Linking C static library app/libapp.a
[39/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[40/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_models_top.c.obj
[41/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/native_rtc.c.obj
[42/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[43/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[44/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[45/127] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/thread.c.obj
[46/127] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/swap.c.obj
[47/127] Building C object zephyr/soc/posix/inf_clock/CMakeFiles/soc__posix__inf_clock.dir/soc.c.obj
[48/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/main.c.obj
[49/127] Linking C static library zephyr/libzephyr.a
[50/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/timer_model.c.obj
[51/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_ctrl.c.obj
[52/127] Linking C static library zephyr/soc/posix/inf_clock/libsoc__posix__inf_clock.a
[53/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cpu_wait.c.obj
[54/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_counter.c.obj
[55/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline.c.obj
[56/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_handler.c.obj
[57/127] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/posix_core.c.obj
[58/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/tracing.c.obj
[59/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[60/127] Linking C static library zephyr/arch/arch/posix/core/libarch__posix__core.a
[61/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline_common.c.obj
[62/127] Linking C static library zephyr/boards/posix/native_posix/libboards__posix__native_posix.a
[63/127] Building C object zephyr/subsys/net/l2/dummy/CMakeFiles/subsys__net__l2__dummy.dir/dummy.c.obj
[64/127] Linking C static library zephyr/subsys/net/l2/dummy/libsubsys__net__l2__dummy.a
[65/127] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[66/127] Linking C static library zephyr/subsys/random/libsubsys__random.a
[67/127] Building C object zephyr/subsys/net/lib/dns/CMakeFiles/subsys__net__lib__dns.dir/dns_pack.c.obj
[68/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[69/127] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[70/127] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest.c.obj
[71/127] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest_error_hook.c.obj
[72/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[73/127] Linking C static library zephyr/subsys/net/libsubsys__net.a
[74/127] Linking C static library zephyr/subsys/testsuite/ztest/libsubsys__testsuite__ztest.a
[75/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[76/127] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/native_posix_console.c.obj
[77/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
FAILED: zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj 
ccache /usr/lib/llvm-12/bin/clang -DBUILD_VERSION=v2.7.5-31-gd8ae7c0c0e0c -DKERNEL -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../../../../subsys/net/ip/. -I../../../../../../kernel/include -I../../../../../../arch/posix/include -I../../../../../../include -Izephyr/include/generated -I../../../../../../soc/posix/inf_clock -I../../../../../../boards/posix/native_posix -I../../../../../../subsys/net/lib/dns/. -I../../../../../../subsys/testsuite/include -I../../../../../../subsys/testsuite/ztest/include -Os -Werror -imacros /__w/zephyr/zephyr/twister-out/native_posix/tests/net/dhcpv4/net.dhcp.preempt/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fcolor-diagnostics -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-typedef-redefinition -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fmacro-prefix-map=/__w/zephyr/zephyr/tests/net/dhcpv4=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /__w/zephyr/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -MF zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj.d -o zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -c /__w/zephyr/zephyr/subsys/net/ip/ipv4.c
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:270:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) ||
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:271:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                    net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) {
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:276:45: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) {
                                                          ^~~~~~~~
3 errors generated.
[78/127] Linking C static library zephyr/drivers/console/libdrivers__console.a
[79/127] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/fake_entropy_native_posix.c.obj
[80/127] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[81/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_mgmt.c.obj
[82/127] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/native_posix_timer.c.obj
[83/127] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
[84/127] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj
[85/127] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
[86/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[87/127] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
[88/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[89/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[90/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[91/127] Building C object zephyr/subsys/net/lib/dns/CMakeFiles/subsys__net__lib__dns.dir/resolve.c.obj
[92/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
[93/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
[94/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/dhcpv4.c.obj
ninja: build stopped: subcommand failed.

Check warning on line 0 in native_posix:tests/net/ethernet_mgmt/net.ethernet_mgmt

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

tests/net/ethernet_mgmt/net.ethernet_mgmt (native_posix:tests/net/ethernet_mgmt/net.ethernet_mgmt) failed

artifacts/Unit Test Results (Subset native_posix)/twister.xml
Raw output
Including boilerplate (Zephyr base): /__w/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /__w/zephyr/zephyr/tests/net/ethernet_mgmt
-- Zephyr version: 2.7.5 (/__w/zephyr/zephyr), build: v2.7.5-31-gd8ae7c0c0e0c
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: native_posix
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (clang/ld)
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/ethernet_mgmt/net.ethernet_mgmt/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/ethernet_mgmt/net.ethernet_mgmt/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/ethernet_mgmt/net.ethernet_mgmt/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/ethernet_mgmt/net.ethernet_mgmt/zephyr/dts.cmake

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration '/__w/zephyr/zephyr/tests/net/ethernet_mgmt/prj.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/ethernet_mgmt/net.ethernet_mgmt/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/ethernet_mgmt/net.ethernet_mgmt/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/ethernet_mgmt/net.ethernet_mgmt/zephyr/include/generated/autoconf.h'
-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/lib/llvm-12/bin/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/ethernet_mgmt/net.ethernet_mgmt
[1/131] Preparing syscall dependency handling

[2/131] Generating misc/generated/syscalls_subdirs.trigger
[3/131] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/131] Generating include/generated/driver-validation.h
[5/131] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[6/131] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[7/131] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
[8/131] Generating include/generated/offsets.h
[9/131] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[10/131] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[11/131] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[12/131] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[13/131] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[14/131] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[15/131] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[16/131] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[17/131] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[18/131] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[19/131] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[20/131] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[21/131] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[22/131] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[23/131] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[24/131] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[25/131] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[26/131] Generating linker_zephyr_prebuilt.cmd
[27/131] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[28/131] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[29/131] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/irq.c.obj
[30/131] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[31/131] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[32/131] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[33/131] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[34/131] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[35/131] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/cpuhalt.c.obj
[36/131] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/fatal.c.obj
[37/131] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/native_rtc.c.obj
[38/131] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/swap.c.obj
[39/131] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_models_top.c.obj
[40/131] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[41/131] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[42/131] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[43/131] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/thread.c.obj
[44/131] Building C object CMakeFiles/app.dir/src/main.c.obj
[45/131] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[46/131] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/main.c.obj
[47/131] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/tracing.c.obj
[48/131] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/posix_core.c.obj
[49/131] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/timer_model.c.obj
[50/131] Building C object zephyr/soc/posix/inf_clock/CMakeFiles/soc__posix__inf_clock.dir/soc.c.obj
[51/131] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_ctrl.c.obj
[52/131] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cpu_wait.c.obj
[53/131] Linking C static library app/libapp.a
[54/131] Linking C static library zephyr/libzephyr.a
[55/131] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_handler.c.obj
[56/131] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_counter.c.obj
[57/131] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline.c.obj
[58/131] Linking C static library zephyr/arch/arch/posix/core/libarch__posix__core.a
[59/131] Linking C static library zephyr/soc/posix/inf_clock/libsoc__posix__inf_clock.a
[60/131] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline_common.c.obj
[61/131] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[62/131] Linking C static library zephyr/boards/posix/native_posix/libboards__posix__native_posix.a
[63/131] Building C object zephyr/subsys/net/l2/ethernet/CMakeFiles/subsys__net__l2__ethernet.dir/ethernet_mgmt.c.obj
[64/131] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6_nbr.c.obj
[65/131] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[66/131] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[67/131] Linking C static library zephyr/subsys/random/libsubsys__random.a
[68/131] Linking C static library zephyr/subsys/net/libsubsys__net.a
[69/131] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/nbr.c.obj
[70/131] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[71/131] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[72/131] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[73/131] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest.c.obj
[74/131] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
FAILED: zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj 
ccache /usr/lib/llvm-12/bin/clang -DBUILD_VERSION=v2.7.5-31-gd8ae7c0c0e0c -DKERNEL -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../../../../subsys/net/ip/. -I../../../../../../kernel/include -I../../../../../../arch/posix/include -I../../../../../../include -Izephyr/include/generated -I../../../../../../soc/posix/inf_clock -I../../../../../../boards/posix/native_posix -I../../../../../../subsys/net/l2 -I../../../../../../subsys/testsuite/include -I../../../../../../subsys/testsuite/ztest/include -Os -Werror -imacros /__w/zephyr/zephyr/twister-out/native_posix/tests/net/ethernet_mgmt/net.ethernet_mgmt/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fcolor-diagnostics -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-typedef-redefinition -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fmacro-prefix-map=/__w/zephyr/zephyr/tests/net/ethernet_mgmt=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /__w/zephyr/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -MF zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj.d -o zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -c /__w/zephyr/zephyr/subsys/net/ip/ipv4.c
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:270:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) ||
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:271:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                    net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) {
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:276:45: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) {
                                                          ^~~~~~~~
3 errors generated.
[75/131] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_mgmt.c.obj
[76/131] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest_error_hook.c.obj
[77/131] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[78/131] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/native_posix_console.c.obj
[79/131] Building C object zephyr/drivers/ethernet/CMakeFiles/drivers__ethernet.dir/eth_native_posix_adapt.c.obj
[80/131] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/fake_entropy_native_posix.c.obj
[81/131] Building C object zephyr/subsys/net/l2/ethernet/CMakeFiles/subsys__net__l2__ethernet.dir/ethernet.c.obj
[82/131] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv6.c.obj
[83/131] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[84/131] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[85/131] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6.c.obj
[86/131] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/native_posix_timer.c.obj
[87/131] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[88/131] Building C object zephyr/drivers/ethernet/CMakeFiles/drivers__ethernet.dir/eth_native_posix.c.obj
[89/131] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[90/131] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
[91/131] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
ninja: build stopped: subcommand failed.

Check warning on line 0 in native_posix:tests/net/hostname/net.hostname

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

tests/net/hostname/net.hostname (native_posix:tests/net/hostname/net.hostname) failed

artifacts/Unit Test Results (Subset native_posix)/twister.xml
Raw output
Including boilerplate (Zephyr base): /__w/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /__w/zephyr/zephyr/tests/net/hostname
-- Zephyr version: 2.7.5 (/__w/zephyr/zephyr), build: v2.7.5-31-gd8ae7c0c0e0c
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: native_posix
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (clang/ld)
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/hostname/net.hostname/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/hostname/net.hostname/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/hostname/net.hostname/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/hostname/net.hostname/zephyr/dts.cmake

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration '/__w/zephyr/zephyr/tests/net/hostname/prj.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/hostname/net.hostname/twister/testcase_extra.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/hostname/net.hostname/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/hostname/net.hostname/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/hostname/net.hostname/zephyr/include/generated/autoconf.h'
-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/lib/llvm-12/bin/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/hostname/net.hostname
[1/231] Preparing syscall dependency handling

[2/231] Generating misc/generated/syscalls_subdirs.trigger
[3/231] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/231] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[5/231] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[6/231] Generating include/generated/driver-validation.h
[7/231] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
[8/231] Generating include/generated/offsets.h
[9/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[10/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[11/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[12/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[13/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[14/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[15/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[16/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[17/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[18/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[19/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[20/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[21/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[22/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[23/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[24/231] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[25/231] Generating linker_zephyr_prebuilt.cmd
[26/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[27/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[28/231] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[29/231] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[30/231] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[31/231] Building C object CMakeFiles/app.dir/src/main.c.obj
[32/231] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/irq.c.obj
[33/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[34/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[35/231] Linking C static library app/libapp.a
[36/231] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/cpuhalt.c.obj
[37/231] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[38/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[39/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[40/231] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/native_rtc.c.obj
[41/231] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_models_top.c.obj
[42/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[43/231] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/fatal.c.obj
[44/231] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/thread.c.obj
[45/231] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/swap.c.obj
[46/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[47/231] Building C object zephyr/soc/posix/inf_clock/CMakeFiles/soc__posix__inf_clock.dir/soc.c.obj
[48/231] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/timer_model.c.obj
[49/231] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/main.c.obj
[50/231] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cpu_wait.c.obj
[51/231] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_counter.c.obj
[52/231] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_ctrl.c.obj
[53/231] Linking C static library zephyr/libzephyr.a
[54/231] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/tracing.c.obj
[55/231] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/posix_core.c.obj
[56/231] Linking C static library zephyr/soc/posix/inf_clock/libsoc__posix__inf_clock.a
[57/231] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline.c.obj
[58/231] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_handler.c.obj
[59/231] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline_common.c.obj
[60/231] Linking C static library zephyr/arch/arch/posix/core/libarch__posix__core.a
[61/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[62/231] Linking C static library zephyr/boards/posix/native_posix/libboards__posix__native_posix.a
[63/231] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/hostname.c.obj
[64/231] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[65/231] Linking C static library zephyr/subsys/net/libsubsys__net.a
[66/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[67/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/nbr.c.obj
[68/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
FAILED: zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj 
ccache /usr/lib/llvm-12/bin/clang -DBUILD_VERSION=v2.7.5-31-gd8ae7c0c0e0c -DKERNEL -DMBEDTLS_CONFIG_FILE=\"config-tls-generic.h\" -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../../../../subsys/net/ip/. -I../../../../../../kernel/include -I../../../../../../arch/posix/include -I../../../../../../include -Izephyr/include/generated -I../../../../../../soc/posix/inf_clock -I../../../../../../boards/posix/native_posix -I../../../../../../subsys/net/l2 -I../../../../../../subsys/testsuite/include -I../../../../../../subsys/testsuite/ztest/include -I/__w/zephyr/modules/crypto/mbedtls/mbedtls/include -I../../../../../../modules/mbedtls/configs -Os -Werror -imacros /__w/zephyr/zephyr/twister-out/native_posix/tests/net/hostname/net.hostname/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fcolor-diagnostics -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-typedef-redefinition -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fmacro-prefix-map=/__w/zephyr/zephyr/tests/net/hostname=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /__w/zephyr/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -MF zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj.d -o zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -c /__w/zephyr/zephyr/subsys/net/ip/ipv4.c
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:270:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) ||
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:271:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                    net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) {
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:276:45: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) {
                                                          ^~~~~~~~
3 errors generated.
[69/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[70/231] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/__w/zephyr/modules/crypto/mbedtls/mbedtls/library/blowfish.c.obj
[71/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv6.c.obj
[72/231] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[73/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[74/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[75/231] Building C object zephyr/subsys/net/l2/ethernet/CMakeFiles/subsys__net__l2__ethernet.dir/ethernet.c.obj
[76/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[77/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6.c.obj
[78/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[79/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[80/231] Building C object zephyr/subsys/net/l2/ethernet/CMakeFiles/subsys__net__l2__ethernet.dir/arp.c.obj
[81/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/route.c.obj
[82/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
[83/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
[84/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6_nbr.c.obj
[85/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/tcp2.c.obj
ninja: build stopped: subcommand failed.

Check warning on line 0 in native_posix:tests/net/hostname/net.hostname

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

tests/net/hostname/net.hostname.unique (native_posix:tests/net/hostname/net.hostname) failed

artifacts/Unit Test Results (Subset native_posix)/twister.xml
Raw output
Including boilerplate (Zephyr base): /__w/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /__w/zephyr/zephyr/tests/net/hostname
-- Zephyr version: 2.7.5 (/__w/zephyr/zephyr), build: v2.7.5-31-gd8ae7c0c0e0c
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: native_posix
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (clang/ld)
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/hostname/net.hostname.unique/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/hostname/net.hostname.unique/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/hostname/net.hostname.unique/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/hostname/net.hostname.unique/zephyr/dts.cmake

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration '/__w/zephyr/zephyr/tests/net/hostname/prj.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/hostname/net.hostname.unique/twister/testcase_extra.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/hostname/net.hostname.unique/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/hostname/net.hostname.unique/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/hostname/net.hostname.unique/zephyr/include/generated/autoconf.h'
-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/lib/llvm-12/bin/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/hostname/net.hostname.unique
[1/231] Preparing syscall dependency handling

[2/231] Generating misc/generated/syscalls_subdirs.trigger
[3/231] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/231] Generating include/generated/driver-validation.h
[5/231] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[6/231] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[7/231] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
[8/231] Generating include/generated/offsets.h
[9/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[10/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[11/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[12/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[13/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[14/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[15/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[16/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[17/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[18/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[19/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[20/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[21/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[22/231] Generating linker_zephyr_prebuilt.cmd
[23/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[24/231] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[25/231] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[26/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[27/231] Building C object CMakeFiles/app.dir/src/main.c.obj
[28/231] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/irq.c.obj
[29/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[30/231] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[31/231] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[32/231] Linking C static library app/libapp.a
[33/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[34/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[35/231] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/cpuhalt.c.obj
[36/231] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[37/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[38/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[39/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[40/231] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/fatal.c.obj
[41/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[42/231] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/native_rtc.c.obj
[43/231] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_models_top.c.obj
[44/231] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/swap.c.obj
[45/231] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[46/231] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/thread.c.obj
[47/231] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cpu_wait.c.obj
[48/231] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/main.c.obj
[49/231] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_counter.c.obj
[50/231] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/timer_model.c.obj
[51/231] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_ctrl.c.obj
[52/231] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/tracing.c.obj
[53/231] Building C object zephyr/soc/posix/inf_clock/CMakeFiles/soc__posix__inf_clock.dir/soc.c.obj
[54/231] Linking C static library zephyr/libzephyr.a
[55/231] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline.c.obj
[56/231] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/posix_core.c.obj
[57/231] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_handler.c.obj
[58/231] Linking C static library zephyr/soc/posix/inf_clock/libsoc__posix__inf_clock.a
[59/231] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline_common.c.obj
[60/231] Linking C static library zephyr/arch/arch/posix/core/libarch__posix__core.a
[61/231] Linking C static library zephyr/boards/posix/native_posix/libboards__posix__native_posix.a
[62/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[63/231] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/hostname.c.obj
[64/231] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[65/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[66/231] Linking C static library zephyr/subsys/net/libsubsys__net.a
[67/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/nbr.c.obj
[68/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[69/231] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/__w/zephyr/modules/crypto/mbedtls/mbedtls/library/blowfish.c.obj
[70/231] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[71/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
FAILED: zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj 
ccache /usr/lib/llvm-12/bin/clang -DBUILD_VERSION=v2.7.5-31-gd8ae7c0c0e0c -DKERNEL -DMBEDTLS_CONFIG_FILE=\"config-tls-generic.h\" -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../../../../subsys/net/ip/. -I../../../../../../kernel/include -I../../../../../../arch/posix/include -I../../../../../../include -Izephyr/include/generated -I../../../../../../soc/posix/inf_clock -I../../../../../../boards/posix/native_posix -I../../../../../../subsys/net/l2 -I../../../../../../subsys/testsuite/include -I../../../../../../subsys/testsuite/ztest/include -I/__w/zephyr/modules/crypto/mbedtls/mbedtls/include -I../../../../../../modules/mbedtls/configs -Os -Werror -imacros /__w/zephyr/zephyr/twister-out/native_posix/tests/net/hostname/net.hostname.unique/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fcolor-diagnostics -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-typedef-redefinition -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fmacro-prefix-map=/__w/zephyr/zephyr/tests/net/hostname=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /__w/zephyr/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -MF zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj.d -o zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -c /__w/zephyr/zephyr/subsys/net/ip/ipv4.c
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:270:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) ||
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:271:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                    net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) {
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:276:45: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) {
                                                          ^~~~~~~~
3 errors generated.
[72/231] Linking C static library zephyr/subsys/random/libsubsys__random.a
[73/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv6.c.obj
[74/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[75/231] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest_error_hook.c.obj
[76/231] Building C object zephyr/subsys/net/l2/ethernet/CMakeFiles/subsys__net__l2__ethernet.dir/ethernet.c.obj
[77/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[78/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[79/231] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest.c.obj
[80/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[81/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[82/231] Building C object zephyr/subsys/net/l2/ethernet/CMakeFiles/subsys__net__l2__ethernet.dir/arp.c.obj
[83/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6.c.obj
[84/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/route.c.obj
[85/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
[86/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6_nbr.c.obj
[87/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
[88/231] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/tcp2.c.obj
ninja: build stopped: subcommand failed.

Check warning on line 0 in native_posix:tests/net/icmpv4/net.icmpv6

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

tests/net/icmpv4/net.icmpv6 (native_posix:tests/net/icmpv4/net.icmpv6) failed

artifacts/Unit Test Results (Subset native_posix)/twister.xml
Raw output
Including boilerplate (Zephyr base): /__w/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /__w/zephyr/zephyr/tests/net/icmpv4
-- Zephyr version: 2.7.5 (/__w/zephyr/zephyr), build: v2.7.5-31-gd8ae7c0c0e0c
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: native_posix
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (clang/ld)
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/icmpv4/net.icmpv6/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/icmpv4/net.icmpv6/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/icmpv4/net.icmpv6/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/icmpv4/net.icmpv6/zephyr/dts.cmake

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration '/__w/zephyr/zephyr/tests/net/icmpv4/prj.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/icmpv4/net.icmpv6/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/icmpv4/net.icmpv6/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/icmpv4/net.icmpv6/zephyr/include/generated/autoconf.h'
-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/lib/llvm-12/bin/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/icmpv4/net.icmpv6
[1/122] Preparing syscall dependency handling

[2/122] Generating misc/generated/syscalls_subdirs.trigger
[3/122] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/122] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[5/122] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[6/122] Generating include/generated/driver-validation.h
[7/122] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
[8/122] Generating include/generated/offsets.h
[9/122] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[10/122] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[11/122] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[12/122] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[13/122] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[14/122] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[15/122] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[16/122] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[17/122] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[18/122] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[19/122] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[20/122] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[21/122] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[22/122] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[23/122] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[24/122] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[25/122] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[26/122] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[27/122] Generating linker_zephyr_prebuilt.cmd
[28/122] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[29/122] Building C object CMakeFiles/app.dir/src/main.c.obj
[30/122] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[31/122] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[32/122] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/irq.c.obj
[33/122] Linking C static library app/libapp.a
[34/122] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[35/122] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[36/122] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/cpuhalt.c.obj
[37/122] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/fatal.c.obj
[38/122] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[39/122] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[40/122] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[41/122] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[42/122] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_models_top.c.obj
[43/122] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/native_rtc.c.obj
[44/122] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/thread.c.obj
[45/122] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[46/122] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/swap.c.obj
[47/122] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/main.c.obj
[48/122] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_ctrl.c.obj
[49/122] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/tracing.c.obj
[50/122] Linking C static library zephyr/libzephyr.a
[51/122] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/timer_model.c.obj
[52/122] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cpu_wait.c.obj
[53/122] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_counter.c.obj
[54/122] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline.c.obj
[55/122] Building C object zephyr/soc/posix/inf_clock/CMakeFiles/soc__posix__inf_clock.dir/soc.c.obj
[56/122] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/posix_core.c.obj
[57/122] Linking C static library zephyr/soc/posix/inf_clock/libsoc__posix__inf_clock.a
[58/122] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_handler.c.obj
[59/122] Linking C static library zephyr/arch/arch/posix/core/libarch__posix__core.a
[60/122] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline_common.c.obj
[61/122] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[62/122] Linking C static library zephyr/boards/posix/native_posix/libboards__posix__native_posix.a
[63/122] Building C object zephyr/subsys/net/l2/dummy/CMakeFiles/subsys__net__l2__dummy.dir/dummy.c.obj
[64/122] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[65/122] Linking C static library zephyr/subsys/net/l2/dummy/libsubsys__net__l2__dummy.a
[66/122] Linking C static library zephyr/subsys/random/libsubsys__random.a
[67/122] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest_error_hook.c.obj
[68/122] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/native_posix_console.c.obj
[69/122] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/fake_entropy_native_posix.c.obj
[70/122] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[71/122] Linking C static library zephyr/drivers/console/libdrivers__console.a
[72/122] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest.c.obj
[73/122] Linking C static library zephyr/drivers/entropy/libdrivers__entropy.a
[74/122] Linking C static library zephyr/subsys/testsuite/ztest/libsubsys__testsuite__ztest.a
[75/122] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[76/122] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[77/122] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
[78/122] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj
[79/122] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[80/122] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/native_posix_timer.c.obj
[81/122] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
[82/122] Linking C static library zephyr/subsys/net/libsubsys__net.a
[83/122] Linking C static library zephyr/drivers/timer/libdrivers__timer.a
[84/122] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[85/122] Building C object zephyr/kernel/CMakeFiles/kernel.dir/version.c.obj
[86/122] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
[87/122] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
FAILED: zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj 
ccache /usr/lib/llvm-12/bin/clang -DBUILD_VERSION=v2.7.5-31-gd8ae7c0c0e0c -DKERNEL -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../../../../subsys/net/ip/. -I../../../../../../kernel/include -I../../../../../../arch/posix/include -I../../../../../../include -Izephyr/include/generated -I../../../../../../soc/posix/inf_clock -I../../../../../../boards/posix/native_posix -I../../../../../../subsys/testsuite/include -I../../../../../../subsys/testsuite/ztest/include -Os -Werror -imacros /__w/zephyr/zephyr/twister-out/native_posix/tests/net/icmpv4/net.icmpv6/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fcolor-diagnostics -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-typedef-redefinition -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fmacro-prefix-map=/__w/zephyr/zephyr/tests/net/icmpv4=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /__w/zephyr/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -MF zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj.d -o zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -c /__w/zephyr/zephyr/subsys/net/ip/ipv4.c
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:270:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) ||
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:271:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                    net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) {
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:276:45: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) {
                                                          ^~~~~~~~
3 errors generated.
[88/122] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj
[89/122] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj
[90/122] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mem_slab.c.obj
[91/122] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
[92/122] Building C object zephyr/kernel/CMakeFiles/kernel.dir/idle.c.obj
[93/122] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[94/122] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread.c.obj
[95/122] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[96/122] Building C object zephyr/kernel/CMakeFiles/kernel.dir/msg_q.c.obj
[97/122] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mailbox.c.obj
[98/122] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[99/122] Building C object zephyr/kernel/CMakeFiles/kernel.dir/queue.c.obj
[100/122] Building C object zephyr/kernel/CMakeFiles/kernel.dir/pipes.c.obj
[101/122] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mutex.c.obj
[102/122] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[103/122] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
[104/122] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
ninja: build stopped: subcommand failed.

Check warning on line 0 in native_posix:tests/net/icmpv6/net.icmpv6

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

tests/net/icmpv6/net.icmpv6 (native_posix:tests/net/icmpv6/net.icmpv6) failed

artifacts/Unit Test Results (Subset native_posix)/twister.xml
Raw output
Including boilerplate (Zephyr base): /__w/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /__w/zephyr/zephyr/tests/net/icmpv6
-- Zephyr version: 2.7.5 (/__w/zephyr/zephyr), build: v2.7.5-31-gd8ae7c0c0e0c
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: native_posix
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (clang/ld)
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/icmpv6/net.icmpv6/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/icmpv6/net.icmpv6/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/icmpv6/net.icmpv6/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/icmpv6/net.icmpv6/zephyr/dts.cmake

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration '/__w/zephyr/zephyr/tests/net/icmpv6/prj.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/icmpv6/net.icmpv6/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/icmpv6/net.icmpv6/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/icmpv6/net.icmpv6/zephyr/include/generated/autoconf.h'
-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/lib/llvm-12/bin/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/icmpv6/net.icmpv6
[1/128] Preparing syscall dependency handling

[2/128] Generating misc/generated/syscalls_subdirs.trigger
[3/128] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/128] Generating include/generated/driver-validation.h
[5/128] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[6/128] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[7/128] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
[8/128] Generating include/generated/offsets.h
[9/128] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[10/128] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[11/128] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[12/128] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[13/128] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[14/128] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[15/128] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[16/128] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[17/128] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[18/128] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[19/128] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[20/128] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[21/128] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[22/128] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[23/128] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[24/128] Generating linker_zephyr_prebuilt.cmd
[25/128] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[26/128] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[27/128] Building C object CMakeFiles/app.dir/src/main.c.obj
[28/128] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[29/128] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[30/128] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/irq.c.obj
[31/128] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/cpuhalt.c.obj
[32/128] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[33/128] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[34/128] Linking C static library app/libapp.a
[35/128] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[36/128] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[37/128] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[38/128] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[39/128] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/native_rtc.c.obj
[40/128] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/fatal.c.obj
[41/128] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[42/128] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_models_top.c.obj
[43/128] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/main.c.obj
[44/128] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[45/128] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[46/128] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/swap.c.obj
[47/128] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/thread.c.obj
[48/128] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/tracing.c.obj
[49/128] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_counter.c.obj
[50/128] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline.c.obj
[51/128] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/timer_model.c.obj
[52/128] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_ctrl.c.obj
[53/128] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cpu_wait.c.obj
[54/128] Linking C static library zephyr/libzephyr.a
[55/128] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_handler.c.obj
[56/128] Building C object zephyr/soc/posix/inf_clock/CMakeFiles/soc__posix__inf_clock.dir/soc.c.obj
[57/128] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/posix_core.c.obj
[58/128] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[59/128] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline_common.c.obj
[60/128] Linking C static library zephyr/soc/posix/inf_clock/libsoc__posix__inf_clock.a
[61/128] Linking C static library zephyr/arch/arch/posix/core/libarch__posix__core.a
[62/128] Linking C static library zephyr/boards/posix/native_posix/libboards__posix__native_posix.a
[63/128] Building C object zephyr/subsys/net/l2/dummy/CMakeFiles/subsys__net__l2__dummy.dir/dummy.c.obj
[64/128] Linking C static library zephyr/subsys/net/l2/dummy/libsubsys__net__l2__dummy.a
[65/128] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[66/128] Linking C static library zephyr/subsys/net/libsubsys__net.a
[67/128] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[68/128] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/nbr.c.obj
[69/128] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[70/128] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[71/128] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6_mld.c.obj
[72/128] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[73/128] Linking C static library zephyr/subsys/random/libsubsys__random.a
[74/128] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[75/128] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest_error_hook.c.obj
[76/128] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest.c.obj
[77/128] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/native_posix_console.c.obj
[78/128] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
FAILED: zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj 
ccache /usr/lib/llvm-12/bin/clang -DBUILD_VERSION=v2.7.5-31-gd8ae7c0c0e0c -DKERNEL -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../../../../subsys/net/ip/. -I../../../../../../kernel/include -I../../../../../../arch/posix/include -I../../../../../../include -Izephyr/include/generated -I../../../../../../soc/posix/inf_clock -I../../../../../../boards/posix/native_posix -I../../../../../../subsys/testsuite/include -I../../../../../../subsys/testsuite/ztest/include -Os -Werror -imacros /__w/zephyr/zephyr/twister-out/native_posix/tests/net/icmpv6/net.icmpv6/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fcolor-diagnostics -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-typedef-redefinition -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fmacro-prefix-map=/__w/zephyr/zephyr/tests/net/icmpv6=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /__w/zephyr/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -MF zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj.d -o zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -c /__w/zephyr/zephyr/subsys/net/ip/ipv4.c
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:270:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) ||
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:271:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                    net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) {
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:276:45: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) {
                                                          ^~~~~~~~
3 errors generated.
[79/128] Linking C static library zephyr/subsys/testsuite/ztest/libsubsys__testsuite__ztest.a
[80/128] Linking C static library zephyr/drivers/console/libdrivers__console.a
[81/128] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/fake_entropy_native_posix.c.obj
[82/128] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[83/128] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv6.c.obj
[84/128] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/native_posix_timer.c.obj
[85/128] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj
[86/128] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
[87/128] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[88/128] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
[89/128] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[90/128] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6.c.obj
[91/128] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[92/128] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
[93/128] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/route.c.obj
[94/128] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
[95/128] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6_nbr.c.obj
ninja: build stopped: subcommand failed.

Check warning on line 0 in native_posix:tests/net/iface/net.iface

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

tests/net/iface/net.iface (native_posix:tests/net/iface/net.iface) failed

artifacts/Unit Test Results (Subset native_posix)/twister.xml
Raw output
Including boilerplate (Zephyr base): /__w/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /__w/zephyr/zephyr/tests/net/iface
-- Zephyr version: 2.7.5 (/__w/zephyr/zephyr), build: v2.7.5-31-gd8ae7c0c0e0c
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: native_posix
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (clang/ld)
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/iface/net.iface/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/iface/net.iface/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/iface/net.iface/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/iface/net.iface/zephyr/dts.cmake

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration '/__w/zephyr/zephyr/tests/net/iface/prj.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/iface/net.iface/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/iface/net.iface/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/iface/net.iface/zephyr/include/generated/autoconf.h'
-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/lib/llvm-12/bin/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/iface/net.iface
[1/135] Preparing syscall dependency handling

[2/135] Generating misc/generated/syscalls_subdirs.trigger
[3/135] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/135] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[5/135] Generating include/generated/driver-validation.h
[6/135] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[7/135] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
[8/135] Generating include/generated/offsets.h
[9/135] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[10/135] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[11/135] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[12/135] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[13/135] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[14/135] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[15/135] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[16/135] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[17/135] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[18/135] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[19/135] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[20/135] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[21/135] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[22/135] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[23/135] Generating linker_zephyr_prebuilt.cmd
[24/135] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[25/135] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[26/135] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[27/135] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[28/135] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[29/135] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[30/135] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[31/135] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[32/135] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[33/135] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/irq.c.obj
[34/135] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[35/135] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/cpuhalt.c.obj
[36/135] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/thread.c.obj
[37/135] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[38/135] Building C object CMakeFiles/app.dir/src/main.c.obj
[39/135] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/posix_core.c.obj
[40/135] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/fatal.c.obj
[41/135] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/native_rtc.c.obj
[42/135] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[43/135] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/main.c.obj
[44/135] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_models_top.c.obj
[45/135] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/timer_model.c.obj
[46/135] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[47/135] Linking C static library app/libapp.a
[48/135] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/swap.c.obj
[49/135] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/tracing.c.obj
[50/135] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[51/135] Building C object zephyr/soc/posix/inf_clock/CMakeFiles/soc__posix__inf_clock.dir/soc.c.obj
[52/135] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_ctrl.c.obj
[53/135] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline.c.obj
[54/135] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cpu_wait.c.obj
[55/135] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline_common.c.obj
[56/135] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_counter.c.obj
[57/135] Linking C static library zephyr/soc/posix/inf_clock/libsoc__posix__inf_clock.a
[58/135] Linking C static library zephyr/arch/arch/posix/core/libarch__posix__core.a
[59/135] Linking C static library zephyr/libzephyr.a
[60/135] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_handler.c.obj
[61/135] Building C object zephyr/subsys/net/l2/ethernet/CMakeFiles/subsys__net__l2__ethernet.dir/ethernet_mgmt.c.obj
[62/135] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[63/135] Linking C static library zephyr/boards/posix/native_posix/libboards__posix__native_posix.a
[64/135] Building C object zephyr/subsys/net/l2/dummy/CMakeFiles/subsys__net__l2__dummy.dir/dummy.c.obj
[65/135] Linking C static library zephyr/subsys/net/l2/dummy/libsubsys__net__l2__dummy.a
[66/135] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[67/135] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[68/135] Linking C static library zephyr/subsys/net/libsubsys__net.a
[69/135] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/nbr.c.obj
[70/135] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
FAILED: zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj 
ccache /usr/lib/llvm-12/bin/clang -DBUILD_VERSION=v2.7.5-31-gd8ae7c0c0e0c -DKERNEL -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../../../../subsys/net/ip/. -I../../../../../../kernel/include -I../../../../../../arch/posix/include -I../../../../../../include -Izephyr/include/generated -I../../../../../../soc/posix/inf_clock -I../../../../../../boards/posix/native_posix -I../../../../../../subsys/net/l2 -I../../../../../../subsys/testsuite/include -I../../../../../../subsys/testsuite/ztest/include -Os -Werror -imacros /__w/zephyr/zephyr/twister-out/native_posix/tests/net/iface/net.iface/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fcolor-diagnostics -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-typedef-redefinition -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fmacro-prefix-map=/__w/zephyr/zephyr/tests/net/iface=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /__w/zephyr/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -MF zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj.d -o zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -c /__w/zephyr/zephyr/subsys/net/ip/ipv4.c
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:270:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) ||
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:271:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                    net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) {
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:276:45: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) {
                                                          ^~~~~~~~
3 errors generated.
[71/135] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[72/135] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[73/135] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[74/135] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[75/135] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_mgmt.c.obj
[76/135] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv6.c.obj
[77/135] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest.c.obj
[78/135] Building C object zephyr/subsys/net/l2/ethernet/CMakeFiles/subsys__net__l2__ethernet.dir/ethernet.c.obj
[79/135] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[80/135] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[81/135] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6.c.obj
[82/135] Building C object zephyr/subsys/net/l2/ethernet/CMakeFiles/subsys__net__l2__ethernet.dir/arp.c.obj
[83/135] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[84/135] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/route.c.obj
[85/135] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
[86/135] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
[87/135] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6_nbr.c.obj
ninja: build stopped: subcommand failed.

Check warning on line 0 in native_posix:tests/net/igmp/net.igmp

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

tests/net/igmp/net.igmp (native_posix:tests/net/igmp/net.igmp) failed

artifacts/Unit Test Results (Subset native_posix)/twister.xml
Raw output
Including boilerplate (Zephyr base): /__w/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /__w/zephyr/zephyr/tests/net/igmp
-- Zephyr version: 2.7.5 (/__w/zephyr/zephyr), build: v2.7.5-31-gd8ae7c0c0e0c
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: native_posix
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (clang/ld)
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/igmp/net.igmp/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/igmp/net.igmp/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/igmp/net.igmp/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/igmp/net.igmp/zephyr/dts.cmake

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration '/__w/zephyr/zephyr/tests/net/igmp/prj.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/igmp/net.igmp/twister/testcase_extra.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/igmp/net.igmp/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/igmp/net.igmp/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/igmp/net.igmp/zephyr/include/generated/autoconf.h'
-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/lib/llvm-12/bin/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/igmp/net.igmp
[1/124] Preparing syscall dependency handling

[2/124] Generating misc/generated/syscalls_subdirs.trigger
[3/124] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/124] Generating include/generated/driver-validation.h
[5/124] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[6/124] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[7/124] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
[8/124] Generating include/generated/offsets.h
[9/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[10/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[11/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[12/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[13/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[14/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[15/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[16/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[17/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[18/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[19/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[20/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[21/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[22/124] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[23/124] Generating linker_zephyr_prebuilt.cmd
[24/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[25/124] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[26/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[27/124] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[28/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[29/124] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/irq.c.obj
[30/124] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[31/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[32/124] Building C object CMakeFiles/app.dir/src/main.c.obj
[33/124] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/cpuhalt.c.obj
[34/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[35/124] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[36/124] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/fake_entropy_native_posix.c.obj
[37/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[38/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[39/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[40/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[41/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[42/124] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/swap.c.obj
[43/124] Linking C static library app/libapp.a
[44/124] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/main.c.obj
[45/124] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/posix_core.c.obj
[46/124] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/native_rtc.c.obj
[47/124] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/fatal.c.obj
[48/124] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_models_top.c.obj
[49/124] Linking C static library zephyr/libzephyr.a
[50/124] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline.c.obj
[51/124] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/timer_model.c.obj
[52/124] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cpu_wait.c.obj
[53/124] Building C object zephyr/soc/posix/inf_clock/CMakeFiles/soc__posix__inf_clock.dir/soc.c.obj
[54/124] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_counter.c.obj
[55/124] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/thread.c.obj
[56/124] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_ctrl.c.obj
[57/124] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/tracing.c.obj
[58/124] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_handler.c.obj
[59/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[60/124] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline_common.c.obj
[61/124] Linking C static library zephyr/soc/posix/inf_clock/libsoc__posix__inf_clock.a
[62/124] Linking C static library zephyr/arch/arch/posix/core/libarch__posix__core.a
[63/124] Linking C static library zephyr/boards/posix/native_posix/libboards__posix__native_posix.a
[64/124] Building C object zephyr/subsys/net/l2/dummy/CMakeFiles/subsys__net__l2__dummy.dir/dummy.c.obj
[65/124] Linking C static library zephyr/subsys/net/l2/dummy/libsubsys__net__l2__dummy.a
[66/124] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest_error_hook.c.obj
[67/124] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[68/124] Linking C static library zephyr/drivers/entropy/libdrivers__entropy.a
[69/124] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest.c.obj
[70/124] Linking C static library zephyr/subsys/random/libsubsys__random.a
[71/124] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[72/124] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/native_posix_console.c.obj
[73/124] Linking C static library zephyr/subsys/testsuite/ztest/libsubsys__testsuite__ztest.a
[74/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/igmp.c.obj
[75/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[76/124] Linking C static library zephyr/subsys/net/libsubsys__net.a
[77/124] Linking C static library zephyr/drivers/console/libdrivers__console.a
[78/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[79/124] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/native_posix_timer.c.obj
[80/124] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[81/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[82/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[83/124] Linking C static library zephyr/drivers/timer/libdrivers__timer.a
[84/124] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj
[85/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_mgmt.c.obj
[86/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
FAILED: zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj 
ccache /usr/lib/llvm-12/bin/clang -DBUILD_VERSION=v2.7.5-31-gd8ae7c0c0e0c -DKERNEL -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../../../../subsys/net/ip/. -I../../../../../../kernel/include -I../../../../../../arch/posix/include -I../../../../../../include -Izephyr/include/generated -I../../../../../../soc/posix/inf_clock -I../../../../../../boards/posix/native_posix -I../../../../../../subsys/testsuite/include -I../../../../../../subsys/testsuite/ztest/include -Os -Werror -imacros /__w/zephyr/zephyr/twister-out/native_posix/tests/net/igmp/net.igmp/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fcolor-diagnostics -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-typedef-redefinition -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fmacro-prefix-map=/__w/zephyr/zephyr/tests/net/igmp=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /__w/zephyr/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -MF zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj.d -o zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -c /__w/zephyr/zephyr/subsys/net/ip/ipv4.c
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:270:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) ||
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:271:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                    net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) {
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:276:45: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) {
                                                          ^~~~~~~~
3 errors generated.
[87/124] Building C object zephyr/kernel/CMakeFiles/kernel.dir/version.c.obj
[88/124] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
[89/124] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj
[90/124] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
[91/124] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
[92/124] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mem_slab.c.obj
[93/124] Building C object zephyr/kernel/CMakeFiles/kernel.dir/idle.c.obj
[94/124] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
[95/124] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj
[96/124] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mailbox.c.obj
[97/124] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread.c.obj
[98/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[99/124] Building C object zephyr/kernel/CMakeFiles/kernel.dir/msg_q.c.obj
[100/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[101/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
[102/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[103/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
ninja: build stopped: subcommand failed.

Check warning on line 0 in native_posix:tests/net/igmp/net.igmp

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

tests/net/igmp/net.igmp.preempt (native_posix:tests/net/igmp/net.igmp) failed

artifacts/Unit Test Results (Subset native_posix)/twister.xml
Raw output
Including boilerplate (Zephyr base): /__w/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /__w/zephyr/zephyr/tests/net/igmp
-- Zephyr version: 2.7.5 (/__w/zephyr/zephyr), build: v2.7.5-31-gd8ae7c0c0e0c
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: native_posix
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (clang/ld)
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/igmp/net.igmp.preempt/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/igmp/net.igmp.preempt/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/igmp/net.igmp.preempt/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/igmp/net.igmp.preempt/zephyr/dts.cmake

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration '/__w/zephyr/zephyr/tests/net/igmp/prj.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/igmp/net.igmp.preempt/twister/testcase_extra.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/igmp/net.igmp.preempt/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/igmp/net.igmp.preempt/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/igmp/net.igmp.preempt/zephyr/include/generated/autoconf.h'
-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/lib/llvm-12/bin/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/igmp/net.igmp.preempt
[1/124] Preparing syscall dependency handling

[2/124] Generating misc/generated/syscalls_subdirs.trigger
[3/124] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/124] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[5/124] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[6/124] Generating include/generated/driver-validation.h
[7/124] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
[8/124] Generating include/generated/offsets.h
[9/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[10/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[11/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[12/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[13/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[14/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[15/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[16/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[17/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[18/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[19/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[20/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[21/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[22/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[23/124] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[24/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[25/124] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[26/124] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[27/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[28/124] Generating linker_zephyr_prebuilt.cmd
[29/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[30/124] Building C object CMakeFiles/app.dir/src/main.c.obj
[31/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[32/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[33/124] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/irq.c.obj
[34/124] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[35/124] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/cpuhalt.c.obj
[36/124] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[37/124] Linking C static library app/libapp.a
[38/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[39/124] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/fake_entropy_native_posix.c.obj
[40/124] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/fatal.c.obj
[41/124] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/thread.c.obj
[42/124] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_models_top.c.obj
[43/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[44/124] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/native_rtc.c.obj
[45/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[46/124] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/tracing.c.obj
[47/124] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/swap.c.obj
[48/124] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/timer_model.c.obj
[49/124] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[50/124] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/main.c.obj
[51/124] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cpu_wait.c.obj
[52/124] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_counter.c.obj
[53/124] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_ctrl.c.obj
[54/124] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline.c.obj
[55/124] Building C object zephyr/soc/posix/inf_clock/CMakeFiles/soc__posix__inf_clock.dir/soc.c.obj
[56/124] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_handler.c.obj
[57/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[58/124] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/posix_core.c.obj
[59/124] Linking C static library zephyr/libzephyr.a
[60/124] Linking C static library zephyr/soc/posix/inf_clock/libsoc__posix__inf_clock.a
[61/124] Linking C static library zephyr/arch/arch/posix/core/libarch__posix__core.a
[62/124] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline_common.c.obj
[63/124] Building C object zephyr/subsys/net/l2/dummy/CMakeFiles/subsys__net__l2__dummy.dir/dummy.c.obj
[64/124] Linking C static library zephyr/boards/posix/native_posix/libboards__posix__native_posix.a
[65/124] Linking C static library zephyr/subsys/net/l2/dummy/libsubsys__net__l2__dummy.a
[66/124] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest_error_hook.c.obj
[67/124] Linking C static library zephyr/drivers/entropy/libdrivers__entropy.a
[68/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[69/124] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[70/124] Linking C static library zephyr/subsys/random/libsubsys__random.a
[71/124] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest.c.obj
[72/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[73/124] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[74/124] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/native_posix_console.c.obj
[75/124] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj
[76/124] Linking C static library zephyr/subsys/testsuite/ztest/libsubsys__testsuite__ztest.a
[77/124] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[78/124] Linking C static library zephyr/drivers/console/libdrivers__console.a
[79/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[80/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/igmp.c.obj
[81/124] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/native_posix_timer.c.obj
[82/124] Linking C static library zephyr/subsys/net/libsubsys__net.a
[83/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
FAILED: zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj 
ccache /usr/lib/llvm-12/bin/clang -DBUILD_VERSION=v2.7.5-31-gd8ae7c0c0e0c -DKERNEL -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../../../../subsys/net/ip/. -I../../../../../../kernel/include -I../../../../../../arch/posix/include -I../../../../../../include -Izephyr/include/generated -I../../../../../../soc/posix/inf_clock -I../../../../../../boards/posix/native_posix -I../../../../../../subsys/testsuite/include -I../../../../../../subsys/testsuite/ztest/include -Os -Werror -imacros /__w/zephyr/zephyr/twister-out/native_posix/tests/net/igmp/net.igmp.preempt/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fcolor-diagnostics -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-typedef-redefinition -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fmacro-prefix-map=/__w/zephyr/zephyr/tests/net/igmp=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /__w/zephyr/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -MF zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj.d -o zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -c /__w/zephyr/zephyr/subsys/net/ip/ipv4.c
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:270:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) ||
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:271:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                    net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) {
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:276:45: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) {
                                                          ^~~~~~~~
3 errors generated.
[84/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[85/124] Linking C static library zephyr/drivers/timer/libdrivers__timer.a
[86/124] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
[87/124] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
[88/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_mgmt.c.obj
[89/124] Building C object zephyr/kernel/CMakeFiles/kernel.dir/version.c.obj
[90/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[91/124] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
[92/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[93/124] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj
[94/124] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
[95/124] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj
[96/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[97/124] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mem_slab.c.obj
[98/124] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread.c.obj
[99/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
[100/124] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
ninja: build stopped: subcommand failed.

Check warning on line 0 in native_posix:tests/net/ip-addr/net.ip-addr

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

tests/net/ip-addr/net.ip-addr (native_posix:tests/net/ip-addr/net.ip-addr) failed

artifacts/Unit Test Results (Subset native_posix)/twister.xml
Raw output
Including boilerplate (Zephyr base): /__w/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /__w/zephyr/zephyr/tests/net/ip-addr
-- Zephyr version: 2.7.5 (/__w/zephyr/zephyr), build: v2.7.5-31-gd8ae7c0c0e0c
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: native_posix
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (clang/ld)
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/ip-addr/net.ip-addr/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/ip-addr/net.ip-addr/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/ip-addr/net.ip-addr/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/ip-addr/net.ip-addr/zephyr/dts.cmake

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration '/__w/zephyr/zephyr/tests/net/ip-addr/prj.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/ip-addr/net.ip-addr/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/ip-addr/net.ip-addr/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/ip-addr/net.ip-addr/zephyr/include/generated/autoconf.h'
-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/lib/llvm-12/bin/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/ip-addr/net.ip-addr
[1/127] Preparing syscall dependency handling

[2/127] Generating misc/generated/syscalls_subdirs.trigger
[3/127] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/127] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[5/127] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[6/127] Generating include/generated/driver-validation.h
[7/127] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
[8/127] Generating include/generated/offsets.h
[9/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[10/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[11/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[12/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[13/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[14/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[15/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[16/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[17/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[18/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[19/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[20/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[21/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[22/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[23/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[24/127] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[25/127] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[26/127] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[27/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[28/127] Generating linker_zephyr_prebuilt.cmd
[29/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[30/127] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/irq.c.obj
[31/127] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/native_posix_console.c.obj
[32/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[33/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[34/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[35/127] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[36/127] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[37/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[38/127] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/cpuhalt.c.obj
[39/127] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/posix_core.c.obj
[40/127] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/swap.c.obj
[41/127] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/thread.c.obj
[42/127] Building C object CMakeFiles/app.dir/src/main.c.obj
[43/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[44/127] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[45/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/native_rtc.c.obj
[46/127] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/fatal.c.obj
[47/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_models_top.c.obj
[48/127] Building C object zephyr/soc/posix/inf_clock/CMakeFiles/soc__posix__inf_clock.dir/soc.c.obj
[49/127] Linking C static library app/libapp.a
[50/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/tracing.c.obj
[51/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/main.c.obj
[52/127] Linking C static library zephyr/libzephyr.a
[53/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline_common.c.obj
[54/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_counter.c.obj
[55/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cpu_wait.c.obj
[56/127] Linking C static library zephyr/arch/arch/posix/core/libarch__posix__core.a
[57/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline.c.obj
[58/127] Linking C static library zephyr/soc/posix/inf_clock/libsoc__posix__inf_clock.a
[59/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_ctrl.c.obj
[60/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_handler.c.obj
[61/127] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/timer_model.c.obj
[62/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[63/127] Linking C static library zephyr/boards/posix/native_posix/libboards__posix__native_posix.a
[64/127] Building C object zephyr/subsys/net/l2/dummy/CMakeFiles/subsys__net__l2__dummy.dir/dummy.c.obj
[65/127] Linking C static library zephyr/subsys/net/l2/dummy/libsubsys__net__l2__dummy.a
[66/127] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[67/127] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[68/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[69/127] Linking C static library zephyr/subsys/net/libsubsys__net.a
[70/127] Linking C static library zephyr/subsys/random/libsubsys__random.a
[71/127] Linking C static library zephyr/drivers/console/libdrivers__console.a
[72/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[73/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[74/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/nbr.c.obj
[75/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
FAILED: zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj 
ccache /usr/lib/llvm-12/bin/clang -DBUILD_VERSION=v2.7.5-31-gd8ae7c0c0e0c -DKERNEL -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../../../../subsys/net/ip/. -I../../../../../../kernel/include -I../../../../../../arch/posix/include -I../../../../../../include -Izephyr/include/generated -I../../../../../../soc/posix/inf_clock -I../../../../../../boards/posix/native_posix -I../../../../../../subsys/testsuite/include -I../../../../../../subsys/testsuite/ztest/include -Os -Werror -imacros /__w/zephyr/zephyr/twister-out/native_posix/tests/net/ip-addr/net.ip-addr/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fcolor-diagnostics -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-typedef-redefinition -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fmacro-prefix-map=/__w/zephyr/zephyr/tests/net/ip-addr=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /__w/zephyr/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -MF zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj.d -o zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -c /__w/zephyr/zephyr/subsys/net/ip/ipv4.c
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:270:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) ||
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:271:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                    net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) {
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:276:45: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) {
                                                          ^~~~~~~~
3 errors generated.
[76/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv6.c.obj
[77/127] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest_error_hook.c.obj
[78/127] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[79/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[80/127] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest.c.obj
[81/127] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/fake_entropy_native_posix.c.obj
[82/127] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj
[83/127] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
[84/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[85/127] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/native_posix_timer.c.obj
[86/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[87/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[88/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6.c.obj
[89/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/route.c.obj
[90/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
[91/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6_nbr.c.obj
[92/127] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
ninja: build stopped: subcommand failed.

Check warning on line 0 in native_posix:tests/net/lib/dns_addremove/net.dns

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

tests/net/lib/dns_addremove/net.dns.addremove (native_posix:tests/net/lib/dns_addremove/net.dns) failed

artifacts/Unit Test Results (Subset native_posix)/twister.xml
Raw output
Including boilerplate (Zephyr base): /__w/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /__w/zephyr/zephyr/tests/net/lib/dns_addremove
-- Zephyr version: 2.7.5 (/__w/zephyr/zephyr), build: v2.7.5-31-gd8ae7c0c0e0c
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: native_posix
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (clang/ld)
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_addremove/net.dns.addremove/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_addremove/net.dns.addremove/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_addremove/net.dns.addremove/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_addremove/net.dns.addremove/zephyr/dts.cmake
Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration '/__w/zephyr/zephyr/tests/net/lib/dns_addremove/prj.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_addremove/net.dns.addremove/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_addremove/net.dns.addremove/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_addremove/net.dns.addremove/zephyr/include/generated/autoconf.h'

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/lib/llvm-12/bin/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_addremove/net.dns.addremove
[1/132] Preparing syscall dependency handling

[2/132] Generating misc/generated/syscalls_subdirs.trigger
[3/132] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/132] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[5/132] Generating include/generated/driver-validation.h
[6/132] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[7/132] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
[8/132] Generating include/generated/offsets.h
[9/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[10/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[11/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[12/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[13/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[14/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[15/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[16/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[17/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[18/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[19/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[20/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[21/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[22/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[23/132] Generating linker_zephyr_prebuilt.cmd
[24/132] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[25/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[26/132] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[27/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[28/132] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[29/132] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[30/132] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/irq.c.obj
[31/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[32/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[33/132] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[34/132] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/cpuhalt.c.obj
[35/132] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/fatal.c.obj
[36/132] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/native_rtc.c.obj
[37/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[38/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[39/132] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/thread.c.obj
[40/132] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/swap.c.obj
[41/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[42/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[43/132] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_models_top.c.obj
[44/132] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/main.c.obj
[45/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[46/132] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/posix_core.c.obj
[47/132] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_ctrl.c.obj
[48/132] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/tracing.c.obj
[49/132] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline.c.obj
[50/132] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cpu_wait.c.obj
[51/132] Building C object zephyr/soc/posix/inf_clock/CMakeFiles/soc__posix__inf_clock.dir/soc.c.obj
[52/132] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/timer_model.c.obj
[53/132] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_counter.c.obj
[54/132] Linking C static library zephyr/libzephyr.a
[55/132] Linking C static library zephyr/arch/arch/posix/core/libarch__posix__core.a
[56/132] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_handler.c.obj
[57/132] Building C object CMakeFiles/app.dir/src/main.c.obj
[58/132] Linking C static library zephyr/soc/posix/inf_clock/libsoc__posix__inf_clock.a
[59/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[60/132] Linking C static library app/libapp.a
[61/132] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline_common.c.obj
[62/132] Linking C static library zephyr/boards/posix/native_posix/libboards__posix__native_posix.a
[63/132] Building C object zephyr/subsys/net/l2/dummy/CMakeFiles/subsys__net__l2__dummy.dir/dummy.c.obj
[64/132] Linking C static library zephyr/subsys/net/l2/dummy/libsubsys__net__l2__dummy.a
[65/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[66/132] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[67/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/nbr.c.obj
[68/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6_mld.c.obj
[69/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[70/132] Linking C static library zephyr/subsys/net/libsubsys__net.a
[71/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
FAILED: zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj 
ccache /usr/lib/llvm-12/bin/clang -DBUILD_VERSION=v2.7.5-31-gd8ae7c0c0e0c -DKERNEL -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../../../../../subsys/net/ip/. -I../../../../../../../kernel/include -I../../../../../../../arch/posix/include -I../../../../../../../include -Izephyr/include/generated -I../../../../../../../soc/posix/inf_clock -I../../../../../../../boards/posix/native_posix -I../../../../../../../subsys/net/lib/dns/. -I../../../../../../../subsys/testsuite/include -I../../../../../../../subsys/testsuite/ztest/include -Os -Werror -imacros /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_addremove/net.dns.addremove/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fcolor-diagnostics -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-typedef-redefinition -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fmacro-prefix-map=/__w/zephyr/zephyr/tests/net/lib/dns_addremove=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /__w/zephyr/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -MF zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj.d -o zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -c /__w/zephyr/zephyr/subsys/net/ip/ipv4.c
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:270:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) ||
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:271:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                    net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) {
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:276:45: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) {
                                                          ^~~~~~~~
3 errors generated.
[72/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_mgmt.c.obj
[73/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[74/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv6.c.obj
[75/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[76/132] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[77/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[78/132] Building C object zephyr/subsys/net/lib/dns/CMakeFiles/subsys__net__lib__dns.dir/dns_pack.c.obj
[79/132] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest_error_hook.c.obj
[80/132] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest.c.obj
[81/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[82/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[83/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6.c.obj
[84/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
[85/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/route.c.obj
[86/132] Building C object zephyr/subsys/net/lib/dns/CMakeFiles/subsys__net__lib__dns.dir/resolve.c.obj
[87/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
[88/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6_nbr.c.obj
ninja: build stopped: subcommand failed.

Check warning on line 0 in native_posix:tests/net/lib/dns_addremove/net.dns

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

tests/net/lib/dns_addremove/net.dns.addremove.no_ipv6 (native_posix:tests/net/lib/dns_addremove/net.dns) failed

artifacts/Unit Test Results (Subset native_posix)/twister.xml
Raw output
Including boilerplate (Zephyr base): /__w/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /__w/zephyr/zephyr/tests/net/lib/dns_addremove
-- Zephyr version: 2.7.5 (/__w/zephyr/zephyr), build: v2.7.5-31-gd8ae7c0c0e0c
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: native_posix
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (clang/ld)
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_addremove/net.dns.addremove.no_ipv6/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_addremove/net.dns.addremove.no_ipv6/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_addremove/net.dns.addremove.no_ipv6/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_addremove/net.dns.addremove.no_ipv6/zephyr/dts.cmake

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration '/__w/zephyr/zephyr/tests/net/lib/dns_addremove/prj.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_addremove/net.dns.addremove.no_ipv6/twister/testcase_extra.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_addremove/net.dns.addremove.no_ipv6/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_addremove/net.dns.addremove.no_ipv6/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_addremove/net.dns.addremove.no_ipv6/zephyr/include/generated/autoconf.h'
-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/lib/llvm-12/bin/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_addremove/net.dns.addremove.no_ipv6
[1/126] Preparing syscall dependency handling

[2/126] Generating misc/generated/syscalls_subdirs.trigger
[3/126] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/126] Generating include/generated/driver-validation.h
[5/126] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[6/126] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[7/126] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
[8/126] Generating include/generated/offsets.h
[9/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[10/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[11/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[12/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[13/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[14/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[15/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[16/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[17/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[18/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[19/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[20/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[21/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[22/126] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[23/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[24/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[25/126] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[26/126] Generating linker_zephyr_prebuilt.cmd
[27/126] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[28/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[29/126] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/irq.c.obj
[30/126] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[31/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[32/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[33/126] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/cpuhalt.c.obj
[34/126] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[35/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[36/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[37/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[38/126] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/native_posix_console.c.obj
[39/126] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/thread.c.obj
[40/126] Building C object CMakeFiles/app.dir/src/main.c.obj
[41/126] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/fatal.c.obj
[42/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/native_rtc.c.obj
[43/126] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/swap.c.obj
[44/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[45/126] Linking C static library app/libapp.a
[46/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/main.c.obj
[47/126] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/posix_core.c.obj
[48/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[49/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_models_top.c.obj
[50/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/tracing.c.obj
[51/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline.c.obj
[52/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cpu_wait.c.obj
[53/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_ctrl.c.obj
[54/126] Building C object zephyr/soc/posix/inf_clock/CMakeFiles/soc__posix__inf_clock.dir/soc.c.obj
[55/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/timer_model.c.obj
[56/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_counter.c.obj
[57/126] Linking C static library zephyr/arch/arch/posix/core/libarch__posix__core.a
[58/126] Linking C static library zephyr/libzephyr.a
[59/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_handler.c.obj
[60/126] Linking C static library zephyr/soc/posix/inf_clock/libsoc__posix__inf_clock.a
[61/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[62/126] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline_common.c.obj
[63/126] Linking C static library zephyr/boards/posix/native_posix/libboards__posix__native_posix.a
[64/126] Building C object zephyr/subsys/net/l2/dummy/CMakeFiles/subsys__net__l2__dummy.dir/dummy.c.obj
[65/126] Linking C static library zephyr/subsys/net/l2/dummy/libsubsys__net__l2__dummy.a
[66/126] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[67/126] Linking C static library zephyr/drivers/console/libdrivers__console.a
[68/126] Linking C static library zephyr/subsys/random/libsubsys__random.a
[69/126] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest_error_hook.c.obj
[70/126] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest.c.obj
[71/126] Linking C static library zephyr/subsys/testsuite/ztest/libsubsys__testsuite__ztest.a
[72/126] Building C object zephyr/subsys/net/lib/dns/CMakeFiles/subsys__net__lib__dns.dir/dns_pack.c.obj
[73/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[74/126] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[75/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[76/126] Linking C static library zephyr/subsys/net/libsubsys__net.a
[77/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[78/126] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/fake_entropy_native_posix.c.obj
[79/126] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[80/126] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/native_posix_timer.c.obj
[81/126] Linking C static library zephyr/drivers/entropy/libdrivers__entropy.a
[82/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj
[83/126] Linking C static library zephyr/drivers/timer/libdrivers__timer.a
[84/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
[85/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
[86/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[87/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/version.c.obj
[88/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
FAILED: zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj 
ccache /usr/lib/llvm-12/bin/clang -DBUILD_VERSION=v2.7.5-31-gd8ae7c0c0e0c -DKERNEL -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../../../../../subsys/net/ip/. -I../../../../../../../kernel/include -I../../../../../../../arch/posix/include -I../../../../../../../include -Izephyr/include/generated -I../../../../../../../soc/posix/inf_clock -I../../../../../../../boards/posix/native_posix -I../../../../../../../subsys/net/lib/dns/. -I../../../../../../../subsys/testsuite/include -I../../../../../../../subsys/testsuite/ztest/include -Os -Werror -imacros /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_addremove/net.dns.addremove.no_ipv6/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fcolor-diagnostics -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-typedef-redefinition -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fmacro-prefix-map=/__w/zephyr/zephyr/tests/net/lib/dns_addremove=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /__w/zephyr/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -MF zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj.d -o zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -c /__w/zephyr/zephyr/subsys/net/ip/ipv4.c
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:270:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) ||
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:271:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                    net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) {
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:276:45: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) {
                                                          ^~~~~~~~
3 errors generated.
[89/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
[90/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[91/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj
[92/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_mgmt.c.obj
[93/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
[94/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj
[95/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/idle.c.obj
[96/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mem_slab.c.obj
[97/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[98/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread.c.obj
[99/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mailbox.c.obj
[100/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/msg_q.c.obj
[101/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[102/126] Building C object zephyr/subsys/net/lib/dns/CMakeFiles/subsys__net__lib__dns.dir/resolve.c.obj
[103/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mutex.c.obj
[104/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
[105/126] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
ninja: build stopped: subcommand failed.

Check warning on line 0 in native_posix:tests/net/lib/dns_resolve/net.dns

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

tests/net/lib/dns_resolve/net.dns.resolve (native_posix:tests/net/lib/dns_resolve/net.dns) failed

artifacts/Unit Test Results (Subset native_posix)/twister.xml
Raw output
Including boilerplate (Zephyr base): /__w/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /__w/zephyr/zephyr/tests/net/lib/dns_resolve
-- Zephyr version: 2.7.5 (/__w/zephyr/zephyr), build: v2.7.5-31-gd8ae7c0c0e0c
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: native_posix
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (clang/ld)
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve/zephyr/dts.cmake
Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration '/__w/zephyr/zephyr/tests/net/lib/dns_resolve/prj.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve/twister/testcase_extra.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve/zephyr/include/generated/autoconf.h'

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/lib/llvm-12/bin/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve
[1/130] Preparing syscall dependency handling

[2/130] Generating misc/generated/syscalls_subdirs.trigger
[3/130] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/130] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[5/130] Generating include/generated/driver-validation.h
[6/130] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[7/130] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
[8/130] Generating include/generated/offsets.h
[9/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[10/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[11/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[12/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[13/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[14/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[15/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[16/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[17/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[18/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[19/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[20/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[21/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[22/130] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[23/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[24/130] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[25/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[26/130] Generating linker_zephyr_prebuilt.cmd
[27/130] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[28/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[29/130] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[30/130] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/irq.c.obj
[31/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[32/130] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[33/130] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/fatal.c.obj
[34/130] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/cpuhalt.c.obj
[35/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[36/130] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_models_top.c.obj
[37/130] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/thread.c.obj
[38/130] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/native_rtc.c.obj
[39/130] Building C object CMakeFiles/app.dir/src/main.c.obj
[40/130] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/swap.c.obj
[41/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[42/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[43/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[44/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[45/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[46/130] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/posix_core.c.obj
[47/130] Building C object zephyr/soc/posix/inf_clock/CMakeFiles/soc__posix__inf_clock.dir/soc.c.obj
[48/130] Linking C static library app/libapp.a
[49/130] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/tracing.c.obj
[50/130] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/main.c.obj
[51/130] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/timer_model.c.obj
[52/130] Linking C static library zephyr/arch/arch/posix/core/libarch__posix__core.a
[53/130] Linking C static library zephyr/soc/posix/inf_clock/libsoc__posix__inf_clock.a
[54/130] Linking C static library zephyr/libzephyr.a
[55/130] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_handler.c.obj
[56/130] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_counter.c.obj
[57/130] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_ctrl.c.obj
[58/130] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cpu_wait.c.obj
[59/130] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline.c.obj
[60/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[61/130] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline_common.c.obj
[62/130] Building C object zephyr/subsys/net/l2/dummy/CMakeFiles/subsys__net__l2__dummy.dir/dummy.c.obj
[63/130] Linking C static library zephyr/boards/posix/native_posix/libboards__posix__native_posix.a
[64/130] Linking C static library zephyr/subsys/net/l2/dummy/libsubsys__net__l2__dummy.a
[65/130] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[66/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[67/130] Linking C static library zephyr/subsys/net/libsubsys__net.a
[68/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/nbr.c.obj
[69/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[70/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[71/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
FAILED: zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj 
ccache /usr/lib/llvm-12/bin/clang -DBUILD_VERSION=v2.7.5-31-gd8ae7c0c0e0c -DKERNEL -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../../../../../subsys/net/ip/. -I../../../../../../../kernel/include -I../../../../../../../arch/posix/include -I../../../../../../../include -Izephyr/include/generated -I../../../../../../../soc/posix/inf_clock -I../../../../../../../boards/posix/native_posix -I../../../../../../../subsys/net/lib/dns/. -I../../../../../../../subsys/testsuite/include -I../../../../../../../subsys/testsuite/ztest/include -Os -Werror -imacros /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fcolor-diagnostics -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-typedef-redefinition -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fmacro-prefix-map=/__w/zephyr/zephyr/tests/net/lib/dns_resolve=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /__w/zephyr/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -MF zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj.d -o zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -c /__w/zephyr/zephyr/subsys/net/ip/ipv4.c
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:270:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) ||
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:271:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                    net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) {
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:276:45: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) {
                                                          ^~~~~~~~
3 errors generated.
[72/130] Building C object zephyr/subsys/net/lib/dns/CMakeFiles/subsys__net__lib__dns.dir/dns_pack.c.obj
[73/130] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest_error_hook.c.obj
[74/130] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[75/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv6.c.obj
[76/130] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/native_posix_console.c.obj
[77/130] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest.c.obj
[78/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[79/130] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/fake_entropy_native_posix.c.obj
[80/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[81/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[82/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[83/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6.c.obj
[84/130] Building C object zephyr/subsys/net/lib/dns/CMakeFiles/subsys__net__lib__dns.dir/resolve.c.obj
[85/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/route.c.obj
[86/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
[87/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
[88/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6_nbr.c.obj
ninja: build stopped: subcommand failed.

Check warning on line 0 in native_posix:tests/net/lib/dns_resolve/net.dns

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

tests/net/lib/dns_resolve/net.dns.resolve.preempt (native_posix:tests/net/lib/dns_resolve/net.dns) failed

artifacts/Unit Test Results (Subset native_posix)/twister.xml
Raw output
Including boilerplate (Zephyr base): /__w/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /__w/zephyr/zephyr/tests/net/lib/dns_resolve
-- Zephyr version: 2.7.5 (/__w/zephyr/zephyr), build: v2.7.5-31-gd8ae7c0c0e0c
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: native_posix
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (clang/ld)
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve.preempt/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve.preempt/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve.preempt/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve.preempt/zephyr/dts.cmake

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration '/__w/zephyr/zephyr/tests/net/lib/dns_resolve/prj.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve.preempt/twister/testcase_extra.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve.preempt/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve.preempt/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve.preempt/zephyr/include/generated/autoconf.h'
-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/lib/llvm-12/bin/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve.preempt
[1/130] Preparing syscall dependency handling

[2/130] Generating misc/generated/syscalls_subdirs.trigger
[3/130] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/130] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[5/130] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[6/130] Generating include/generated/driver-validation.h
[7/130] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
[8/130] Generating include/generated/offsets.h
[9/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[10/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[11/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[12/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[13/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[14/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[15/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[16/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[17/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[18/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[19/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[20/130] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[21/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[22/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[23/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[24/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[25/130] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[26/130] Generating linker_zephyr_prebuilt.cmd
[27/130] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[28/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[29/130] Building C object CMakeFiles/app.dir/src/main.c.obj
[30/130] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/irq.c.obj
[31/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[32/130] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[33/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[34/130] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[35/130] Linking C static library app/libapp.a
[36/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[37/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[38/130] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/cpuhalt.c.obj
[39/130] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/fatal.c.obj
[40/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[41/130] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/thread.c.obj
[42/130] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/native_rtc.c.obj
[43/130] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_ctrl.c.obj
[44/130] Building C object zephyr/soc/posix/inf_clock/CMakeFiles/soc__posix__inf_clock.dir/soc.c.obj
[45/130] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_models_top.c.obj
[46/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[47/130] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[48/130] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/swap.c.obj
[49/130] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/posix_core.c.obj
[50/130] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/main.c.obj
[51/130] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/tracing.c.obj
[52/130] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_counter.c.obj
[53/130] Linking C static library zephyr/soc/posix/inf_clock/libsoc__posix__inf_clock.a
[54/130] Linking C static library zephyr/libzephyr.a
[55/130] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/timer_model.c.obj
[56/130] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline.c.obj
[57/130] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cpu_wait.c.obj
[58/130] Linking C static library zephyr/arch/arch/posix/core/libarch__posix__core.a
[59/130] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_handler.c.obj
[60/130] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline_common.c.obj
[61/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[62/130] Linking C static library zephyr/boards/posix/native_posix/libboards__posix__native_posix.a
[63/130] Building C object zephyr/subsys/net/l2/dummy/CMakeFiles/subsys__net__l2__dummy.dir/dummy.c.obj
[64/130] Linking C static library zephyr/subsys/net/l2/dummy/libsubsys__net__l2__dummy.a
[65/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[66/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
FAILED: zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj 
ccache /usr/lib/llvm-12/bin/clang -DBUILD_VERSION=v2.7.5-31-gd8ae7c0c0e0c -DKERNEL -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../../../../../subsys/net/ip/. -I../../../../../../../kernel/include -I../../../../../../../arch/posix/include -I../../../../../../../include -Izephyr/include/generated -I../../../../../../../soc/posix/inf_clock -I../../../../../../../boards/posix/native_posix -I../../../../../../../subsys/net/lib/dns/. -I../../../../../../../subsys/testsuite/include -I../../../../../../../subsys/testsuite/ztest/include -Os -Werror -imacros /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve.preempt/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fcolor-diagnostics -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-typedef-redefinition -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fmacro-prefix-map=/__w/zephyr/zephyr/tests/net/lib/dns_resolve=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /__w/zephyr/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -MF zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj.d -o zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -c /__w/zephyr/zephyr/subsys/net/ip/ipv4.c
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:270:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) ||
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:271:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                    net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) {
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:276:45: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) {
                                                          ^~~~~~~~
3 errors generated.
[67/130] Building C object zephyr/subsys/net/lib/dns/CMakeFiles/subsys__net__lib__dns.dir/dns_pack.c.obj
[68/130] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[69/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[70/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/nbr.c.obj
[71/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[72/130] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[73/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[74/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[75/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv6.c.obj
[76/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[77/130] Building C object zephyr/subsys/net/lib/dns/CMakeFiles/subsys__net__lib__dns.dir/resolve.c.obj
[78/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6.c.obj
[79/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[80/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/route.c.obj
[81/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
[82/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6_nbr.c.obj
[83/130] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
ninja: build stopped: subcommand failed.

Check warning on line 0 in native_posix:tests/net/lib/dns_resolve/net.dns

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

tests/net/lib/dns_resolve/net.dns.resolve.no_ipv6 (native_posix:tests/net/lib/dns_resolve/net.dns) failed

artifacts/Unit Test Results (Subset native_posix)/twister.xml
Raw output
Including boilerplate (Zephyr base): /__w/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /__w/zephyr/zephyr/tests/net/lib/dns_resolve
-- Zephyr version: 2.7.5 (/__w/zephyr/zephyr), build: v2.7.5-31-gd8ae7c0c0e0c
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: native_posix
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (clang/ld)
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve.no_ipv6/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve.no_ipv6/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve.no_ipv6/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve.no_ipv6/zephyr/dts.cmake

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration 'prj-no-ipv6.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve.no_ipv6/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve.no_ipv6/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve.no_ipv6/zephyr/include/generated/autoconf.h'
-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/lib/llvm-12/bin/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve.no_ipv6
[1/125] Preparing syscall dependency handling

[2/125] Generating misc/generated/syscalls_subdirs.trigger
[3/125] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/125] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[5/125] Generating include/generated/driver-validation.h
[6/125] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[7/125] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
[8/125] Generating include/generated/offsets.h
[9/125] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[10/125] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[11/125] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[12/125] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[13/125] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[14/125] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[15/125] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[16/125] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[17/125] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[18/125] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[19/125] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[20/125] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[21/125] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[22/125] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[23/125] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[24/125] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[25/125] Generating linker_zephyr_prebuilt.cmd
[26/125] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[27/125] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[28/125] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[29/125] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[30/125] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[31/125] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/irq.c.obj
[32/125] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[33/125] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/native_posix_console.c.obj
[34/125] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[35/125] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/cpuhalt.c.obj
[36/125] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/fatal.c.obj
[37/125] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[38/125] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[39/125] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/swap.c.obj
[40/125] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/native_rtc.c.obj
[41/125] Building C object CMakeFiles/app.dir/src/main.c.obj
[42/125] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/thread.c.obj
[43/125] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/main.c.obj
[44/125] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[45/125] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_models_top.c.obj
[46/125] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/timer_model.c.obj
[47/125] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[48/125] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/posix_core.c.obj
[49/125] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_handler.c.obj
[50/125] Linking C static library app/libapp.a
[51/125] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_ctrl.c.obj
[52/125] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/tracing.c.obj
[53/125] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline.c.obj
[54/125] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[55/125] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cpu_wait.c.obj
[56/125] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_counter.c.obj
[57/125] Linking C static library zephyr/arch/arch/posix/core/libarch__posix__core.a
[58/125] Building C object zephyr/soc/posix/inf_clock/CMakeFiles/soc__posix__inf_clock.dir/soc.c.obj
[59/125] Linking C static library zephyr/libzephyr.a
[60/125] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline_common.c.obj
[61/125] Linking C static library zephyr/soc/posix/inf_clock/libsoc__posix__inf_clock.a
[62/125] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[63/125] Linking C static library zephyr/boards/posix/native_posix/libboards__posix__native_posix.a
[64/125] Building C object zephyr/subsys/net/l2/dummy/CMakeFiles/subsys__net__l2__dummy.dir/dummy.c.obj
[65/125] Linking C static library zephyr/drivers/console/libdrivers__console.a
[66/125] Linking C static library zephyr/subsys/net/l2/dummy/libsubsys__net__l2__dummy.a
[67/125] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest_error_hook.c.obj
[68/125] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest.c.obj
[69/125] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[70/125] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[71/125] Linking C static library zephyr/subsys/testsuite/ztest/libsubsys__testsuite__ztest.a
[72/125] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[73/125] Linking C static library zephyr/subsys/random/libsubsys__random.a
[74/125] Linking C static library zephyr/subsys/net/libsubsys__net.a
[75/125] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[76/125] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[77/125] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/fake_entropy_native_posix.c.obj
[78/125] Building C object zephyr/subsys/net/lib/dns/CMakeFiles/subsys__net__lib__dns.dir/dns_pack.c.obj
[79/125] Linking C static library zephyr/drivers/entropy/libdrivers__entropy.a
[80/125] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[81/125] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/native_posix_timer.c.obj
[82/125] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
[83/125] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj
[84/125] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
FAILED: zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj 
ccache /usr/lib/llvm-12/bin/clang -DBUILD_VERSION=v2.7.5-31-gd8ae7c0c0e0c -DKERNEL -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../../../../../subsys/net/ip/. -I../../../../../../../kernel/include -I../../../../../../../arch/posix/include -I../../../../../../../include -Izephyr/include/generated -I../../../../../../../soc/posix/inf_clock -I../../../../../../../boards/posix/native_posix -I../../../../../../../subsys/net/lib/dns/. -I../../../../../../../subsys/testsuite/include -I../../../../../../../subsys/testsuite/ztest/include -Os -Werror -imacros /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_resolve/net.dns.resolve.no_ipv6/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fcolor-diagnostics -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-typedef-redefinition -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fmacro-prefix-map=/__w/zephyr/zephyr/tests/net/lib/dns_resolve=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /__w/zephyr/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -MF zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj.d -o zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -c /__w/zephyr/zephyr/subsys/net/ip/ipv4.c
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:270:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) ||
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:271:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                    net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) {
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:276:45: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) {
                                                          ^~~~~~~~
3 errors generated.
[85/125] Linking C static library zephyr/drivers/timer/libdrivers__timer.a
[86/125] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
[87/125] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
[88/125] Building C object zephyr/kernel/CMakeFiles/kernel.dir/version.c.obj
[89/125] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj
[90/125] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj
[91/125] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[92/125] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[93/125] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
[94/125] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mem_slab.c.obj
[95/125] Building C object zephyr/kernel/CMakeFiles/kernel.dir/idle.c.obj
[96/125] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[97/125] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread.c.obj
[98/125] Building C object zephyr/subsys/net/lib/dns/CMakeFiles/subsys__net__lib__dns.dir/resolve.c.obj
[99/125] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[100/125] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
[101/125] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
ninja: build stopped: subcommand failed.

Check warning on line 0 in native_posix:tests/net/lib/dns_sd/net.dns

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

tests/net/lib/dns_sd/net.dns.sd (native_posix:tests/net/lib/dns_sd/net.dns) failed

artifacts/Unit Test Results (Subset native_posix)/twister.xml
Raw output
Including boilerplate (Zephyr base): /__w/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /__w/zephyr/zephyr/tests/net/lib/dns_sd
-- Zephyr version: 2.7.5 (/__w/zephyr/zephyr), build: v2.7.5-31-gd8ae7c0c0e0c
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: native_posix
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (clang/ld)
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_sd/net.dns.sd/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_sd/net.dns.sd/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_sd/net.dns.sd/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_sd/net.dns.sd/zephyr/dts.cmake

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.


warning: The choice symbol DNS_SD_LOG_LEVEL_DBG (defined at
subsys/net/Kconfig.template.log_config.net:36) was selected (set =y), but no symbol ended up as the
choice selection. See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_DNS_SD_LOG_LEVEL_DBG.html and/or look
up DNS_SD_LOG_LEVEL_DBG in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration '/__w/zephyr/zephyr/tests/net/lib/dns_sd/prj.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_sd/net.dns.sd/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_sd/net.dns.sd/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_sd/net.dns.sd/zephyr/include/generated/autoconf.h'
-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/lib/llvm-12/bin/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_sd/net.dns.sd
[1/138] Preparing syscall dependency handling

[2/138] Generating misc/generated/syscalls_subdirs.trigger
[3/138] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/138] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[5/138] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[6/138] Generating include/generated/driver-validation.h
[7/138] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
[8/138] Generating include/generated/offsets.h
[9/138] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[10/138] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[11/138] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[12/138] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[13/138] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[14/138] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[15/138] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[16/138] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[17/138] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[18/138] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[19/138] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[20/138] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[21/138] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[22/138] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[23/138] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[24/138] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[25/138] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[26/138] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[27/138] Generating linker_zephyr_prebuilt.cmd
[28/138] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[29/138] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/irq.c.obj
[30/138] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[31/138] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/fatal.c.obj
[32/138] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[33/138] Building C object CMakeFiles/app.dir/src/main.c.obj
[34/138] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[35/138] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[36/138] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[37/138] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/cpuhalt.c.obj
[38/138] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[39/138] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[40/138] Linking C static library app/libapp.a
[41/138] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[42/138] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/swap.c.obj
[43/138] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/native_rtc.c.obj
[44/138] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_models_top.c.obj
[45/138] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[46/138] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/thread.c.obj
[47/138] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/main.c.obj
[48/138] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/timer_model.c.obj
[49/138] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_ctrl.c.obj
[50/138] Linking C static library zephyr/libzephyr.a
[51/138] Building C object zephyr/soc/posix/inf_clock/CMakeFiles/soc__posix__inf_clock.dir/soc.c.obj
[52/138] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline.c.obj
[53/138] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_counter.c.obj
[54/138] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/tracing.c.obj
[55/138] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/posix_core.c.obj
[56/138] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cpu_wait.c.obj
[57/138] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_handler.c.obj
[58/138] Linking C static library zephyr/soc/posix/inf_clock/libsoc__posix__inf_clock.a
[59/138] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline_common.c.obj
[60/138] Linking C static library zephyr/arch/arch/posix/core/libarch__posix__core.a
[61/138] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[62/138] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/hostname.c.obj
[63/138] Linking C static library zephyr/boards/posix/native_posix/libboards__posix__native_posix.a
[64/138] Building C object zephyr/subsys/net/l2/dummy/CMakeFiles/subsys__net__l2__dummy.dir/dummy.c.obj
[65/138] Linking C static library zephyr/subsys/net/l2/dummy/libsubsys__net__l2__dummy.a
[66/138] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[67/138] Linking C static library zephyr/subsys/net/libsubsys__net.a
[68/138] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/nbr.c.obj
[69/138] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[70/138] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[71/138] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6_mld.c.obj
[72/138] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_mgmt.c.obj
[73/138] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
FAILED: zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj 
ccache /usr/lib/llvm-12/bin/clang -DBUILD_VERSION=v2.7.5-31-gd8ae7c0c0e0c -DKERNEL -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../../../../../subsys/net/ip/. -I../../../../../../../kernel/include -I../../../../../../../arch/posix/include -I../../../../../../../include -Izephyr/include/generated -I../../../../../../../soc/posix/inf_clock -I../../../../../../../boards/posix/native_posix -I../../../../../../../subsys/net/lib/dns/. -I../../../../../../../subsys/testsuite/include -I../../../../../../../subsys/testsuite/ztest/include -Os -Werror -imacros /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_sd/net.dns.sd/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fcolor-diagnostics -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-typedef-redefinition -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fmacro-prefix-map=/__w/zephyr/zephyr/tests/net/lib/dns_sd=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /__w/zephyr/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -MF zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj.d -o zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -c /__w/zephyr/zephyr/subsys/net/ip/ipv4.c
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:270:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) ||
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:271:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                    net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) {
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:276:45: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) {
                                                          ^~~~~~~~
3 errors generated.
[74/138] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[75/138] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[76/138] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[77/138] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[78/138] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv6.c.obj
[79/138] Building C object zephyr/subsys/net/lib/dns/CMakeFiles/subsys__net__lib__dns.dir/dns_pack.c.obj
[80/138] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest.c.obj
[81/138] Building C object zephyr/subsys/net/lib/config/CMakeFiles/subsys__net__lib__config.dir/init.c.obj
[82/138] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[83/138] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[84/138] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6.c.obj
[85/138] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/route.c.obj
[86/138] Building C object zephyr/subsys/net/lib/dns/CMakeFiles/subsys__net__lib__dns.dir/mdns_responder.c.obj
[87/138] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
[88/138] Building C object zephyr/subsys/net/lib/dns/CMakeFiles/subsys__net__lib__dns.dir/dns_sd.c.obj
[89/138] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
[90/138] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv6_nbr.c.obj
ninja: build stopped: subcommand failed.

Check warning on line 0 in native_posix:tests/net/lib/dns_sd/net.dns

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

tests/net/lib/dns_sd/net.dns.sd.no_ipv6 (native_posix:tests/net/lib/dns_sd/net.dns) failed

artifacts/Unit Test Results (Subset native_posix)/twister.xml
Raw output
Including boilerplate (Zephyr base): /__w/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /__w/zephyr/zephyr/tests/net/lib/dns_sd
-- Zephyr version: 2.7.5 (/__w/zephyr/zephyr), build: v2.7.5-31-gd8ae7c0c0e0c
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: native_posix
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (clang/ld)
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_sd/net.dns.sd.no_ipv6/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_sd/net.dns.sd.no_ipv6/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_sd/net.dns.sd.no_ipv6/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_sd/net.dns.sd.no_ipv6/zephyr/dts.cmake

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.


warning: The choice symbol DNS_SD_LOG_LEVEL_DBG (defined at
subsys/net/Kconfig.template.log_config.net:36) was selected (set =y), but no symbol ended up as the
choice selection. See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_DNS_SD_LOG_LEVEL_DBG.html and/or look
up DNS_SD_LOG_LEVEL_DBG in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration 'prj-no-ipv6.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_sd/net.dns.sd.no_ipv6/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_sd/net.dns.sd.no_ipv6/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_sd/net.dns.sd.no_ipv6/zephyr/include/generated/autoconf.h'
-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/lib/llvm-12/bin/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_sd/net.dns.sd.no_ipv6
[1/132] Preparing syscall dependency handling

[2/132] Generating misc/generated/syscalls_subdirs.trigger
[3/132] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/132] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[5/132] Generating include/generated/driver-validation.h
[6/132] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[7/132] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
[8/132] Generating include/generated/offsets.h
[9/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[10/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[11/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[12/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[13/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[14/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[15/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[16/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[17/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[18/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[19/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[20/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[21/132] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[22/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[23/132] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[24/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[25/132] Generating linker_zephyr_prebuilt.cmd
[26/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[27/132] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[28/132] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[29/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[30/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[31/132] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/irq.c.obj
[32/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[33/132] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[34/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[35/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[36/132] Building C object CMakeFiles/app.dir/src/main.c.obj
[37/132] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/fatal.c.obj
[38/132] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/native_rtc.c.obj
[39/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[40/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[41/132] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/cpuhalt.c.obj
[42/132] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[43/132] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/swap.c.obj
[44/132] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/thread.c.obj
[45/132] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_models_top.c.obj
[46/132] Linking C static library app/libapp.a
[47/132] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/main.c.obj
[48/132] Linking C static library zephyr/libzephyr.a
[49/132] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cpu_wait.c.obj
[50/132] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/posix_core.c.obj
[51/132] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/tracing.c.obj
[52/132] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_ctrl.c.obj
[53/132] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/timer_model.c.obj
[54/132] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline.c.obj
[55/132] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_counter.c.obj
[56/132] Linking C static library zephyr/arch/arch/posix/core/libarch__posix__core.a
[57/132] Building C object zephyr/soc/posix/inf_clock/CMakeFiles/soc__posix__inf_clock.dir/soc.c.obj
[58/132] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline_common.c.obj
[59/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[60/132] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_handler.c.obj
[61/132] Linking C static library zephyr/soc/posix/inf_clock/libsoc__posix__inf_clock.a
[62/132] Linking C static library zephyr/boards/posix/native_posix/libboards__posix__native_posix.a
[63/132] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/hostname.c.obj
[64/132] Building C object zephyr/subsys/net/l2/dummy/CMakeFiles/subsys__net__l2__dummy.dir/dummy.c.obj
[65/132] Linking C static library zephyr/subsys/net/l2/dummy/libsubsys__net__l2__dummy.a
[66/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[67/132] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[68/132] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[69/132] Linking C static library zephyr/subsys/random/libsubsys__random.a
[70/132] Linking C static library zephyr/subsys/net/libsubsys__net.a
[71/132] Building C object zephyr/subsys/net/lib/dns/CMakeFiles/subsys__net__lib__dns.dir/dns_pack.c.obj
[72/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[73/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[74/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
FAILED: zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj 
ccache /usr/lib/llvm-12/bin/clang -DBUILD_VERSION=v2.7.5-31-gd8ae7c0c0e0c -DKERNEL -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../../../../../subsys/net/ip/. -I../../../../../../../kernel/include -I../../../../../../../arch/posix/include -I../../../../../../../include -Izephyr/include/generated -I../../../../../../../soc/posix/inf_clock -I../../../../../../../boards/posix/native_posix -I../../../../../../../subsys/net/lib/dns/. -I../../../../../../../subsys/testsuite/include -I../../../../../../../subsys/testsuite/ztest/include -Os -Werror -imacros /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/dns_sd/net.dns.sd.no_ipv6/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fcolor-diagnostics -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-typedef-redefinition -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fmacro-prefix-map=/__w/zephyr/zephyr/tests/net/lib/dns_sd=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /__w/zephyr/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -MF zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj.d -o zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -c /__w/zephyr/zephyr/subsys/net/ip/ipv4.c
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:270:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) ||
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:271:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                    net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) {
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:276:45: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) {
                                                          ^~~~~~~~
3 errors generated.
[75/132] Building C object zephyr/subsys/net/lib/config/CMakeFiles/subsys__net__lib__config.dir/init.c.obj
[76/132] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest_error_hook.c.obj
[77/132] Building C object zephyr/subsys/testsuite/ztest/CMakeFiles/subsys__testsuite__ztest.dir/src/ztest.c.obj
[78/132] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/native_posix_console.c.obj
[79/132] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/fake_entropy_native_posix.c.obj
[80/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[81/132] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[82/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_mgmt.c.obj
[83/132] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/native_posix_timer.c.obj
[84/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[85/132] Building C object zephyr/drivers/net/CMakeFiles/drivers__net.dir/loopback.c.obj
[86/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[87/132] Building C object zephyr/subsys/net/lib/dns/CMakeFiles/subsys__net__lib__dns.dir/mdns_responder.c.obj
[88/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[89/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
[90/132] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
[91/132] Building C object zephyr/subsys/net/lib/dns/CMakeFiles/subsys__net__lib__dns.dir/dns_sd.c.obj
ninja: build stopped: subcommand failed.

Check warning on line 0 in native_posix:tests/net/lib/mqtt_publisher/net.mqtt

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

tests/net/lib/mqtt_publisher/net.mqtt (native_posix:tests/net/lib/mqtt_publisher/net.mqtt) failed

artifacts/Unit Test Results (Subset native_posix)/twister.xml
Raw output
Including boilerplate (Zephyr base): /__w/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /__w/zephyr/zephyr/tests/net/lib/mqtt_publisher
-- Zephyr version: 2.7.5 (/__w/zephyr/zephyr), build: v2.7.5-31-gd8ae7c0c0e0c
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter 
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: native_posix
-- Cache files will be written to: /__w/zephyr/zephyr/.cache
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: host (clang/ld)
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/mqtt_publisher/net.mqtt/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/mqtt_publisher/net.mqtt/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/mqtt_publisher/net.mqtt/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/mqtt_publisher/net.mqtt/zephyr/dts.cmake

warning: STDOUT_CONSOLE (defined at lib/libc/Kconfig:175) was assigned the value 'y' but got the
value 'n'. Check these unsatisfied dependencies: (!NATIVE_APPLICATION) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_STDOUT_CONSOLE.html and/or look up
STDOUT_CONSOLE in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.


warning: NET_IF_UNICAST_IPV6_ADDR_COUNT (defined at subsys/net/ip/Kconfig.ipv6:24) was assigned the
value '3' but got the value ''. Check these unsatisfied dependencies: NET_IPV6 (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT.html
and/or look up NET_IF_UNICAST_IPV6_ADDR_COUNT in the menuconfig/guiconfig interface. The Application
Development Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of
the manual might be helpful too.


warning: NET_IF_MCAST_IPV6_ADDR_COUNT (defined at subsys/net/ip/Kconfig.ipv6:29) was assigned the
value '2' but got the value ''. Check these unsatisfied dependencies: NET_IPV6 (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_NET_IF_MCAST_IPV6_ADDR_COUNT.html
and/or look up NET_IF_MCAST_IPV6_ADDR_COUNT in the menuconfig/guiconfig interface. The Application
Development Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of
the manual might be helpful too.


warning: NET_IPV6_RA_RDNSS (defined at subsys/net/ip/Kconfig.ipv6:130) was assigned the value 'y'
but got the value 'n'. Check these unsatisfied dependencies: NET_IPV6_ND (=n), NET_IPV6 (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_NET_IPV6_RA_RDNSS.html and/or look up
NET_IPV6_RA_RDNSS in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.


warning: NET_CONFIG_MY_IPV6_ADDR (defined at subsys/net/lib/config/Kconfig:76) was assigned the
value '2001:db8::1' but got the value ''. Check these unsatisfied dependencies: NET_IPV6 (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_NET_CONFIG_MY_IPV6_ADDR.html and/or
look up NET_CONFIG_MY_IPV6_ADDR in the menuconfig/guiconfig interface. The Application Development
Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual
might be helpful too.


warning: NET_CONFIG_PEER_IPV6_ADDR (defined at subsys/net/lib/config/Kconfig:81) was assigned the
value '2001:db8::2' but got the value ''. Check these unsatisfied dependencies: NET_IPV6 (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_NET_CONFIG_PEER_IPV6_ADDR.html and/or
look up NET_CONFIG_PEER_IPV6_ADDR in the menuconfig/guiconfig interface. The Application Development
Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual
might be helpful too.


warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. Check these unsatisfied dependencies: (!ENTROPY_HAS_DRIVER) (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html and/or look
up TEST_RANDOM_GENERATOR in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration '/__w/zephyr/zephyr/tests/net/lib/mqtt_publisher/prj.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/mqtt_publisher/net.mqtt/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/mqtt_publisher/net.mqtt/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/mqtt_publisher/net.mqtt/zephyr/include/generated/autoconf.h'
-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /usr/lib/llvm-12/bin/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/mqtt_publisher/net.mqtt
[1/241] Preparing syscall dependency handling

[2/241] Generating misc/generated/syscalls_subdirs.trigger
[3/241] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/241] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[5/241] Generating include/generated/driver-validation.h
[6/241] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[7/241] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
[8/241] Generating include/generated/offsets.h
[9/241] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[10/241] Generating linker_zephyr_prebuilt.cmd
[11/241] Building C object CMakeFiles/app.dir/src/main.c.obj
[12/241] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[13/241] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[14/241] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[15/241] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[16/241] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[17/241] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[18/241] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[19/241] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[20/241] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[21/241] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[22/241] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[23/241] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[24/241] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[25/241] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[26/241] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[27/241] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[28/241] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[29/241] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[30/241] Building C object CMakeFiles/app.dir/src/test_mqtt_publish.c.obj
[31/241] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[32/241] Linking C static library app/libapp.a
[33/241] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[34/241] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[35/241] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/irq.c.obj
[36/241] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[37/241] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/sockets_misc.c.obj
[38/241] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[39/241] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/getaddrinfo.c.obj
[40/241] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[41/241] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/cpuhalt.c.obj
[42/241] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[43/241] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[44/241] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[45/241] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/getnameinfo.c.obj
[46/241] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/fatal.c.obj
[47/241] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/native_rtc.c.obj
[48/241] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/thread.c.obj
[49/241] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/posix_core.c.obj
[50/241] Building C object zephyr/arch/arch/posix/core/CMakeFiles/arch__posix__core.dir/swap.c.obj
[51/241] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_models_top.c.obj
[52/241] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/main.c.obj
[53/241] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/sockets_select.c.obj
[54/241] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_ctrl.c.obj
[55/241] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/tracing.c.obj
[56/241] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/hw_counter.c.obj
[57/241] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cpu_wait.c.obj
[58/241] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline.c.obj
[59/241] Linking C static library zephyr/arch/arch/posix/core/libarch__posix__core.a
[60/241] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/irq_handler.c.obj
[61/241] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/timer_model.c.obj
[62/241] Building C object zephyr/boards/posix/native_posix/CMakeFiles/boards__posix__native_posix.dir/cmdline_common.c.obj
[63/241] Building C object zephyr/soc/posix/inf_clock/CMakeFiles/soc__posix__inf_clock.dir/soc.c.obj
[64/241] Linking C static library zephyr/boards/posix/native_posix/libboards__posix__native_posix.a
[65/241] Linking C static library zephyr/soc/posix/inf_clock/libsoc__posix__inf_clock.a
[66/241] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[67/241] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[68/241] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_tc.c.obj
[69/241] Linking C static library zephyr/subsys/net/libsubsys__net.a
[70/241] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/sockets.c.obj
[71/241] Linking C static library zephyr/libzephyr.a
[72/241] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[73/241] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/udp.c.obj
[74/241] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[75/241] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj
FAILED: zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj 
ccache /usr/lib/llvm-12/bin/clang -DBUILD_VERSION=v2.7.5-31-gd8ae7c0c0e0c -DKERNEL -DMBEDTLS_CONFIG_FILE=\"config-tls-generic.h\" -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../../../../../subsys/net/ip/. -I../../../../../../../kernel/include -I../../../../../../../arch/posix/include -I../../../../../../../include -Izephyr/include/generated -I../../../../../../../soc/posix/inf_clock -I../../../../../../../boards/posix/native_posix -I../../../../../../../subsys/net/l2 -I../../../../../../../subsys/net/lib/sockets/. -I../../../../../../../subsys/testsuite/include -I../../../../../../../subsys/testsuite/ztest/include -I/__w/zephyr/modules/crypto/mbedtls/mbedtls/include -I../../../../../../../modules/mbedtls/configs -Os -Werror -imacros /__w/zephyr/zephyr/twister-out/native_posix/tests/net/lib/mqtt_publisher/net.mqtt/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fcolor-diagnostics -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-typedef-redefinition -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fmacro-prefix-map=/__w/zephyr/zephyr/tests/net/lib/mqtt_publisher=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /__w/zephyr/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -MF zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj.d -o zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/ipv4.c.obj -c /__w/zephyr/zephyr/subsys/net/ip/ipv4.c
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:270:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) ||
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:271:51: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                    net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) {
                                                                ^~~~~~~~
/__w/zephyr/zephyr/subsys/net/ip/ipv4.c:276:45: error: operand of type 'struct in_addr' where arithmetic or pointer type is required
                if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) {
                                                          ^~~~~~~~
3 errors generated.
[76/241] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt_decoder.c.obj
[77/241] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/icmpv4.c.obj
[78/241] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_mgmt.c.obj
[79/241] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt_transport.c.obj
[80/241] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt_transport_socket_tcp.c.obj
[81/241] Building C object zephyr/subsys/net/l2/ethernet/CMakeFiles/subsys__net__l2__ethernet.dir/ethernet.c.obj
[82/241] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt_encoder.c.obj
[83/241] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[84/241] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/connection.c.obj
[85/241] Building C object zephyr/subsys/net/l2/ethernet/CMakeFiles/subsys__net__l2__ethernet.dir/arp.c.obj
[86/241] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt_rx.c.obj
[87/241] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[88/241] Building C object zephyr/subsys/net/lib/config/CMakeFiles/subsys__net__lib__config.dir/init.c.obj
[89/241] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
[90/241] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
[91/241] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt.c.obj
[92/241] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/tcp2.c.obj
ninja: build stopped: subcommand failed.