tuanpmt / esp32-mqtt

ESP32 MQTT sample project for
https://github.com/tuanpmt/espmqtt
Apache License 2.0
176 stars 50 forks source link

build error:xtensa-esp32-elf-gcc: error: 5月-06_23:44:49_CST": No such file or directory #7

Closed shenfumin closed 7 years ago

shenfumin commented 7 years ago

make[1]: Leaving directory /home/petter/work/esp32-mqtt/build/vfs' Target 'vfs-build' responsible for '/home/petter/work/esp32-mqtt/build/vfs/libvfs.a' make -C /home/petter/work/esp32-mqtt/build/wpa_supplicant -f /home/petter/work/esp-idf/make/component_wrapper.mk COMPONENT_MAKEFILE=/home/petter/work/esp-idf/components/wpa_supplicant/component.mk COMPONENT_NAME=wpa_supplicant build make[1]: Entering directory/home/petter/work/esp32-mqtt/build/wpa_supplicant' make[1]: Leaving directory /home/petter/work/esp32-mqtt/build/wpa_supplicant' Target 'wpa_supplicant-build' responsible for '/home/petter/work/esp32-mqtt/build/wpa_supplicant/libwpa_supplicant.a' make -C /home/petter/work/esp32-mqtt/build/xtensa-debug-module -f /home/petter/work/esp-idf/make/component_wrapper.mk COMPONENT_MAKEFILE=/home/petter/work/esp-idf/components/xtensa-debug-module/component.mk COMPONENT_NAME=xtensa-debug-module build make[1]: Entering directory/home/petter/work/esp32-mqtt/build/xtensa-debug-module' make[1]: Leaving directory /home/petter/work/esp32-mqtt/build/xtensa-debug-module' Target 'xtensa-debug-module-build' responsible for '/home/petter/work/esp32-mqtt/build/xtensa-debug-module/libxtensa-debug-module.a' make -C /home/petter/work/esp32-mqtt/build/main -f /home/petter/work/esp-idf/make/component_wrapper.mk COMPONENT_MAKEFILE=/home/petter/work/esp32-mqtt/main/component.mk COMPONENT_NAME=main build make[1]: Entering directory/home/petter/work/esp32-mqtt/build/main' /home/petter/work/esp-idf/make/component_common.mk:1: Deprecated feature: No longer necessary to include component_common.mk from /home/petter/work/esp32-mqtt/main/component.mk xtensa-esp32-elf-gcc -std=gnu99 -Og -ggdb -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-old-style-declaration -DWITH_POSIX -DMBEDTLS_CONFIG_FILE='"mbedtls/esp_config.h"' -DHAVE_CONFIG_H -DBUID_TIME=\"2017- 5月-06_23:45:47_CST\" -Wno-error=format= -DLOCAL_CONFIG_AVAILABLE -DESP_PLATFORM -D IDF_VER=\"v2.0-rc1-401-gf9fba35-dirty\" -MMD -MP -I /home/petter/work/esp32-mqtt/main/include -I /home/petter/work/esp-idf/components/app_update/include -I /home/petter/work/esp-idf/components/bootloader_support/include -I /home/petter/work/esp-idf/components/bt/include -I /home/petter/work/esp-idf/components/coap/port/include -I /home/petter/work/esp-idf/components/coap/port/include/coap -I /home/petter/work/esp-idf/components/coap/libcoap/include -I /home/petter/work/esp-idf/components/coap/libcoap/include/coap -I /home/petter/work/esp-idf/components/cxx/include -I /home/petter/work/esp-idf/components/driver/include -I /home/petter/work/esp-idf/components/esp32/include -I /home/petter/work/esp32-mqtt/components/espmqtt/include -I /home/petter/work/esp-idf/components/ethernet/include -I /home/petter/work/esp-idf/components/expat/port/include -I /home/petter/work/esp-idf/components/expat/include/expat -I /home/petter/work/esp-idf/components/fatfs/src -I /home/petter/work/esp-idf/components/freertos/include -I /home/petter/work/esp-idf/components/jsmn/include/ -I /home/petter/work/esp-idf/components/json/include -I /home/petter/work/esp-idf/components/json/port/include -I /home/petter/work/esp-idf/components/log/include -I /home/petter/work/esp-idf/components/lwip/include/lwip -I /home/petter/work/esp-idf/components/lwip/include/lwip/port -I /home/petter/work/esp-idf/components/lwip/include/lwip/posix -I /home/petter/work/esp-idf/components/lwip/apps/ping -I /home/petter/work/esp-idf/components/mbedtls/port/include -I /home/petter/work/esp-idf/components/mbedtls/include -I /home/petter/work/esp-idf/components/mdns/include -I /home/petter/work/esp-idf/components/micro-ecc/micro-ecc -I /home/petter/work/esp-idf/components/newlib/include -I /home/petter/work/esp-idf/components/newlib/platform_include -I /home/petter/work/esp-idf/components/nghttp/port/include -I /home/petter/work/esp-idf/components/nghttp/include -I /home/petter/work/esp-idf/components/nvs_flash/include -I /home/petter/work/esp-idf/components/openssl/include -I /home/petter/work/esp-idf/components/sdmmc/include -I /home/petter/work/esp-idf/components/spi_flash/include -I /home/petter/work/esp-idf/components/tcpip_adapter/include -I /home/petter/work/esp-idf/components/ulp/include -I /home/petter/work/esp-idf/components/vfs/include -I /home/petter/work/esp-idf/components/wpa_supplicant/include -I /home/petter/work/esp-idf/components/wpa_supplicant/port/include -I /home/petter/work/esp-idf/components/xtensa-debug-module/include -I /home/petter/work/esp32-mqtt/build/include -I. -c /home/petter/work/esp32-mqtt/main/./app_main.c -o app_main.o

shenfumin commented 7 years ago

the issue root cause is locat in the file,main/component.mk line10 DATETIME := $(shell date "+%Y-%b-%d%H:%M:%S%Z") if you used the chinese system character, there is one blank after "2017",like "2017- 5月-06_23:45:47CST" it is better as following DATETIME := $(shell date "+%Y-%m-%d%H:%M:%S_%Z")