failed to compile idf when i update esp-idf.

karlno
Posts: 6
Joined: Sat Dec 08, 2018 5:54 am

failed to compile idf when i update esp-idf.

Postby karlno » Sat Dec 08, 2018 8:10 am

I had sucess compile application base esp-idf,but when i update idf to v3.2,i failed finish the compile。
when i input make menuconfig,the error log follow as:
Toolchain path: /home/kaka/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: crosstool-ng-1.22.0-80-g6c4433a
Compiler version: 5.2.0
make[1]: Entering directory '/mnt/share/esp32/esp-idf/tools/kconfig'
make[1]: /mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/check-lxdialog.sh:命令未找到
cc -c -DLOCALE -MMD /mnt/share/esp32/esp-idf/tools/kconfig/mconf.c -o mconf.o
In file included from /mnt/share/esp32/esp-idf/tools/kconfig/mconf.c:23:0:
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:38:10: error: #include expects "FILENAME" or <FILENAME>
#include CURSES_LOC
^
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:103:2: error: unknown type name ‘chtype’
chtype atr; /* Color attribute */
^
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:200:16: error: unknown type name ‘WINDOW’
int on_key_esc(WINDOW *win);
^
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:221:17: error: unknown type name ‘WINDOW’
void attr_clear(WINDOW * win, int height, int width, chtype attr);
^
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:221:54: error: unknown type name ‘chtype’
void attr_clear(WINDOW * win, int height, int width, chtype attr);
^
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:223:21: error: unknown type name ‘WINDOW’
void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x);
^
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:224:19: error: unknown type name ‘WINDOW’
void print_button(WINDOW * win, const char *label, int y, int x, int selected);
^
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:225:18: error: unknown type name ‘WINDOW’
void print_title(WINDOW *dialog, const char *title, int width);
^
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:226:15: error: unknown type name ‘WINDOW’
void draw_box(WINDOW * win, int y, int x, int height, int width, chtype box,
^
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:226:66: error: unknown type name ‘chtype’
void draw_box(WINDOW * win, int y, int x, int height, int width, chtype box,
^
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:227:8: error: unknown type name ‘chtype’
chtype border);
^
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:228:18: error: unknown type name ‘WINDOW’
void draw_shadow(WINDOW * win, int y, int x, int height, int width);
^
/mnt/share/esp32/esp-idf/tools/kconfig/mconf.c: In function ‘conf’:
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:97:29: error: ‘KEY_MAX’ undeclared (first use in this function)
#define ERRDISPLAYTOOSMALL (KEY_MAX + 1)
^
/mnt/share/esp32/esp-idf/tools/kconfig/mconf.c:671:45: note: in expansion of macro ‘ERRDISPLAYTOOSMALL’
if (res == 1 || res == KEY_ESC || res == -ERRDISPLAYTOOSMALL)
^
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:97:29: note: each undeclared identifier is reported only once for each function it appears in
#define ERRDISPLAYTOOSMALL (KEY_MAX + 1)
^
/mnt/share/esp32/esp-idf/tools/kconfig/mconf.c:671:45: note: in expansion of macro ‘ERRDISPLAYTOOSMALL’
if (res == 1 || res == KEY_ESC || res == -ERRDISPLAYTOOSMALL)
^
/mnt/share/esp32/esp-idf/tools/kconfig/mconf.c: In function ‘show_help’:
/mnt/share/esp32/esp-idf/tools/kconfig/mconf.c:793:19: warning: implicit declaration of function ‘getmaxx’ [-Wimplicit-function-declaration]
help.max_width = getmaxx(stdscr) - 10;
^
/mnt/share/esp32/esp-idf/tools/kconfig/mconf.c:793:27: error: ‘stdscr’ undeclared (first use in this function)
help.max_width = getmaxx(stdscr) - 10;
^
In file included from /mnt/share/esp32/esp-idf/tools/kconfig/mconf.c:23:0:
/mnt/share/esp32/esp-idf/tools/kconfig/mconf.c: In function ‘conf_choice’:
/mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/dialog.h:97:29: error: ‘KEY_MAX’ undeclared (first use in this function)
#define ERRDISPLAYTOOSMALL (KEY_MAX + 1)
^
/mnt/share/esp32/esp-idf/tools/kconfig/mconf.c:855:9: note: in expansion of macro ‘ERRDISPLAYTOOSMALL’
case -ERRDISPLAYTOOSMALL:
^
Makefile:171: recipe for target 'mconf.o' failed
make[1]: *** [mconf.o] Error 1
make[1]: Leaving directory '/mnt/share/esp32/esp-idf/tools/kconfig'
make: *** No rule to make target '/mnt/share/esp32/esp-idf/tools/kconfig/conf-idf', needed by '/mnt/share/esp32/projects/hello_world/build/include/config/auto.conf'。 停止。

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: failed to compile idf when i update esp-idf.

Postby ESP_igrr » Sun Dec 09, 2018 2:41 am

make[1]: /mnt/share/esp32/esp-idf/tools/kconfig/lxdialog/check-lxdialog.sh:命令未找到

Indicates that tools/kconfig/lxdialog/check-lxdialog.sh is missing, or is not executable. Either of which mean that something went wrong when updating IDF.

Please run the following in IDF directory:

ls -l tools/kconfig/lxdialog/check-lxdialog.sh

git status

And post the output of both commands here.

karlno
Posts: 6
Joined: Sat Dec 08, 2018 5:54 am

Re: failed to compile idf when i update esp-idf.

Postby karlno » Sun Dec 09, 2018 6:04 am

not this reason

kaka@kaka-VBox:/mnt/share/esp32/esp-idf$ ls -l tools/kconfig/lxdialog/check-lxdialog.sh
-rwxrwxrwx 1 root root 2431 12月 8 23:51 tools/kconfig/lxdialog/check-lxdialog.sh
kaka@kaka-VBox:/mnt/share/esp32/esp-idf$

and i test git staus,the message is too more.

kaka@kaka-VBox:/mnt/share/esp32/esp-idf$ git status > ../1.txt

1.txt content follow as:
位于分支 Branch_v3.1.1
尚未暂存以备提交的变更:
(使用 "git add <文件>..." 更新要提交的内容)
(使用 "git checkout -- <文件>..." 丢弃工作区的改动)

修改: .editorconfig
修改: .gitignore
修改: .gitlab-ci.yml
修改: .gitmodules
修改: CONTRIBUTING.rst
修改: Kconfig
修改: README.md
修改: add_path.sh
修改: components/app_trace/CMakeLists.txt
修改: components/app_trace/Kconfig
修改: components/app_trace/app_trace.c
修改: components/app_trace/app_trace_util.c
.........
修改: components/wpa_supplicant/src/wps/wps_registrar.c
修改: components/wpa_supplicant/src/wps/wps_validate.c
修改: components/xtensa-debug-module/CMakeLists.txt
修改: components/xtensa-debug-module/component.mk
修改: components/xtensa-debug-module/eri.c
修改: docs/Doxyfile
修改: docs/_static/DejaVuSans.license
修改: docs/_static/diagrams/ring-buffer/ring_buffer_read_ret_byte_buf.diag
修改: docs/_static/diagrams/ring-buffer/ring_buffer_read_ret_non_byte_buf.diag
.........
修改: docs/zh_CN/get-started/make-project.rst
修改: docs/zh_CN/get-started/windows-setup.rst
修改: docs/zh_CN/index.rst
修改: docs/zh_CN/versions.rst
修改: examples/README.md
修改: examples/bluetooth/a2dp_gatts_coex/CMakeLists.txt
修改: examples/bluetooth/a2dp_gatts_coex/Makefile
修改: examples/bluetooth/a2dp_gatts_coex/README.md
修改: examples/bluetooth/a2dp_gatts_coex/main/CMakeLists.txt
.........
修改: examples/wifi/wpa2_enterprise/main/CMakeLists.txt
修改: examples/wifi/wpa2_enterprise/main/wpa2_enterprise_main.c
修改: examples/wifi/wps/CMakeLists.txt
修改: examples/wifi/wps/README.md
修改: examples/wifi/wps/main/CMakeLists.txt
修改: examples/wifi/wps/main/wps.c
修改: make/common.mk
修改: make/component_wrapper.mk
修改: make/project.mk
修改: make/project_config.mk
修改: requirements.txt
修改: tools/ci/apply_bot_filter.py
修改: tools/ci/build_examples.sh
修改: tools/ci/build_examples_cmake.sh
修改: tools/ci/check-executable.sh
修改: tools/ci/check_examples_cmake_make.sh
修改: tools/ci/checkout_project_ref.py
修改: tools/ci/configure_ci_environment.sh
修改: tools/ci/executable-list.txt
修改: tools/ci/get-full-sources.sh
.........
修改: tools/windows/tool_setup/build_installer.sh
修改: tools/windows/tool_setup/idf_tool_setup.iss
修改: tools/windows/windows_install_prerequisites.sh

修改尚未加入提交(使用 "git add" 和/或 "git commit -a")
but when i use TortoiseGit to commit, it display "No files were changed or added since the last commit."
and i branch is v3.1.1,i checkout v3.1.1 and to change nothing.

i search on web,all tell me problem is not install libncurses5-dev, but my ubuntu has this lib.
thanks

karlno
Posts: 6
Joined: Sat Dec 08, 2018 5:54 am

Re: failed to compile idf when i update esp-idf.

Postby karlno » Sun Dec 09, 2018 8:01 am

I got the reason!
beacaus i clone the code by tortoiseGit in window 10, but i built project in ubuntu.
Line breaks of .sh files be replaced to LF,but in ubuntu the files display ^M in files.
so the complie not running right.

Who is online

Users browsing this forum: No registered users and 192 guests