zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
11k stars 6.69k forks source link

Build error in net/ip with LLVM/icx #3257

Closed zephyrbot closed 7 years ago

zephyrbot commented 7 years ago

Reported by Kuo-Lang Tseng:

This is extracted from report from Jayashankar, Prema and Yershov, Dmitry B on 2/28/2017 using the Zephyr v1.7.0-rc2.

quark_se_c1000_devboard tests/net/lib/mqtt_packet/test FAILED: build_error quark_se_c1000_devboard tests/net/ipv6/test FAILED: build_error quark_se_c1000_devboard tests/net/lib/http_header_fields/test FAILED: build_error quark_se_c1000_devboard samples/net/leds_demo/test FAILED: build_error quark_se_c1000_devboard samples/net/zoap_server/test_net FAILED: build_error quark_se_c1000_devboard tests/drivers/build_all/test_build_ethernet FAILED: build_error quark_se_c1000_devboard tests/net/dhcpv4/test FAILED: build_error quark_se_c1000_devboard tests/net/ieee802154/fragment/test FAILED: build_error quark_se_c1000_devboard tests/net/6lo/test FAILED: build_error quark_se_c1000_devboard samples/net/zoap_client/test FAILED: build_error quark_se_c1000_devboard samples/net/zoap_server/test FAILED: build_error quark_se_c1000_devboard tests/net/tcp/test FAILED: build_error

bash-4.2$ grep error: check_quark_se_c1000_devboard/quark_se_c1000_devboard/tests/net/lib/mqtt_packet/test/build.log -A 10 /export/users/dyershov/MCU/zephyr/subsys/net/ip/net_core.c:566:26: error: passing 'unsigned char [1200]' to parameter of type 'char ' converts between pointers to integer types with different sign [-Werror,-Wpointer-sign] rx_tid = k_thread_spawn(rx_stack, sizeof(rx_stack), ^~~~ /export/users/dyershov/MCU/zephyr/include/kernel.h:242:37: note: passing argument to parameter 'stack' here extern k_tid_t k_thread_spawn(char stack, size_t stack_size, ^ 1 error generated.

/export/users/dyershov/MCU/zephyr/subsys/net/ip/net_if.c:141:17: error: passing 'unsigned char [1200]' to parameter of type 'char ' converts between pointers to integer types with different sign [-Werror,-Wpointer-sign] k_thread_spawn(iface->tx_stack, sizeof(iface->tx_stack), ^~~~~~~ /export/users/dyershov/MCU/zephyr/include/kernel.h:242:37: note: passing argument to parameter 'stack' here extern k_tid_t k_thread_spawn(char stack, size_t stack_size, ^ 1 error generated. compilation aborted for /export/users/dyershov/MCU/zephyr/subsys/net/ip/net_if.c (code 1)

(Imported from Jira ZEP-1809)

zephyrbot commented 7 years ago

by Kuo-Lang Tseng:

Updated the priority to medium to match all other ZEPs of the same issues (e.g. GH-2668)

zephyrbot commented 7 years ago

by Jithu Joseph:

This too should be fixed by the fix for GH-3259 , ie https://gerrit.zephyrproject.org/r/#/c/11829/

zephyrbot commented 7 years ago

by Kuo-Lang Tseng:

Merged to net branch and is pending to be merged to 1.7 branch.