Пытаюсь собрать пример из sdk-ameba-rtl8710af-v3.5a_without_NDA_GCC_V1.0.0/project/realtek_ameba1_va0_example/GCC-RELEASE
Компилятор
gcc version 5.4.1 20160609 (release) [ARM/embedded-5-branch revision 237715]
выдает ошибку
С -nostdinc не прокатило.
В mbed пишут что под новые компиляторы надо править lwip.
В то же время пример rtl00TstMinAmebaV35a от pvvx этим же компилятором собирается. Там исправлено что ли ?
Компилятор
gcc version 5.4.1 20160609 (release) [ARM/embedded-5-branch revision 237715]
выдает ошибку
Код:
/opt/gcc-arm-none-eabi-5_4-2016q2/bin/arm-none-eabi-gcc -DM3 -DCONFIG_PLATFORM_8195A -DGCC_ARMCM3 -DARDUINO_SDK -mcpu=cortex-m3 -mthumb -g2 -w -O2 -Wno-pointer-sign -fno-common -fmessage-length=0 -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-short-enums -mcpu=cortex-m3 -DF_CPU=166000000L -std=gnu99 -fsigned-char -I../inc -I../../../component/soc/realtek/common/bsp -I../../../component/os/freertos -I../../../component/os/freertos/freertos_v8.1.2/Source/include -I../../../component/os/freertos/freertos_v8.1.2/Source/portable/GCC/ARM_CM3 -I../../../component/os/os_dep/include -I../../../component/soc/realtek/8195a/misc/driver -I../../../component/common/api/network/include -I../../../component/common/api -I../../../component/common/api/platform -I../../../component/common/api/wifi -I../../../component/common/api/wifi/rtw_wpa_supplicant/src -I../../../component/common/application -I../../../component/common/application/iotdemokit -I../../../component/common/application/google -I../../../component/common/media/framework -I../../../component/common/example -I../../../component/common/example/wlan_fast_connect -I../../../component/common/mbed/api -I../../../component/common/mbed/hal -I../../../component/common/mbed/hal_ext -I../../../component/common/mbed/targets/hal/rtl8195a -I../../../component/common/network -I../../../component/common/network/lwip/lwip_v1.4.1/port/realtek/freertos -I../../../component/common/network/lwip/lwip_v1.4.1/src/include -I../../../component/common/network/lwip/lwip_v1.4.1/src/include/lwip -I../../../component/common/network/lwip/lwip_v1.4.1/src/include/ipv4 -I../../../component/common/network/lwip/lwip_v1.4.1/port/realtek -I../../../component/common/test -I../../../component/soc/realtek/8195a/cmsis -I../../../component/soc/realtek/8195a/cmsis/device -I../../../component/soc/realtek/8195a/fwlib -I../../../component/soc/realtek/8195a/fwlib/rtl8195a -I../../../component/soc/realtek/8195a/misc/rtl_std_lib/include -I../../../component/common/drivers/wlan/realtek/include -I../../../component/common/drivers/wlan/realtek/src/osdep -I../../../component/common/drivers/wlan/realtek/src/hci -I../../../component/common/drivers/wlan/realtek/src/hal -I../../../component/common/drivers/wlan/realtek/src/hal/OUTSRC -I../../../component/soc/realtek/8195a/fwlib/ram_lib/wlan/realtek/wlan_ram_map/rom -I../../../component/common/network/ssl/polarssl-1.3.8/include -I../../../component/common/network/ssl/ssl_ram_map/rom -I../../../component/common/utilities -I../../../component/soc/realtek/8195a/misc/rtl_std_lib/include -I../../../component/common/application/apple/WACServer/External/Curve25519 -I../../../component/common/application/apple/WACServer/External/GladmanAES -I../../../component/soc/realtek/8195a/fwlib/ram_lib/usb_otg/include -I../../../component/common/video/v4l2/inc -I../../../component/common/media/codec -I../../../component/common/drivers/usb_class/host/uvc/inc -I../../../component/common/drivers/usb_class/device -I../../../component/common/drivers/usb_class/device/class -I../../../component/common/file_system/fatfs -I../../../component/common/file_system/fatfs/r0.10c/include -I../../../component/common/drivers/sdio/realtek/sdio_host/inc -I../../../component/common/audio -I../../../component/common/drivers/i2s -I../../../component/common/application/xmodem -c ../../../component/common/api/at_cmd/atcmd_ethernet.c -o ../../../component/common/api/at_cmd/atcmd_ethernet.o
In file included from ../../../component/common/api/at_cmd/atcmd_ethernet.c:7:0:
../../../component/common/network/lwip/lwip_v1.4.1/src/include/lwip/sockets.h:313:8: error: redefinition of 'struct timeval'
struct timeval {
^
In file included from /opt/gcc-arm-none-eabi-5_4-2016q2/arm-none-eabi/include/sys/select.h:26:0,
from /opt/gcc-arm-none-eabi-5_4-2016q2/arm-none-eabi/include/sys/types.h:68,
from /opt/gcc-arm-none-eabi-5_4-2016q2/arm-none-eabi/include/stdio.h:48,
from ../../../component/common/api/at_cmd/atcmd_ethernet.c:1:
/opt/gcc-arm-none-eabi-5_4-2016q2/arm-none-eabi/include/sys/_timeval.h:52:8: note: originally defined here
struct timeval {
^
make[1]: *** [../../../component/common/api/at_cmd/atcmd_ethernet.o] Error 1
В mbed пишут что под новые компиляторы надо править lwip.
В то же время пример rtl00TstMinAmebaV35a от pvvx этим же компилятором собирается. Там исправлено что ли ?