ESP-IDF failure with both make and make menuconfig

sukeshak
Posts: 50
Joined: Sat Aug 19, 2017 10:20 am
Contact:

ESP-IDF failure with both make and make menuconfig

Postby sukeshak » Thu Sep 21, 2017 11:31 pm

After updating to the latest bits of both tools and source tree... programs are not compiling
Neither make nor make menuconfig works now :(

Code: Select all

$ make
make[1]: Entering directory '/d/GitHub/esp/esp-idf/tools/kconfig'
lxdialog/check-lxdialog.sh -check cc  -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>"  -DNCURSES_WIDECHAR=1 -DLOCALE -MD -lncursesw -lintl
make[1]: *** No rule to make target '/usr/include/sys/_locale.h', needed by 'lxdialog/checklist.o'.  Stop.
make[1]: Leaving directory '/d/GitHub/esp/esp-idf/tools/kconfig'
make: *** No rule to make target '/d/GitHub/esp/esp-idf/tools/kconfig/conf', needed by '/home/sukesh/ESP32-DEV/ESP32_cpp_hello/build/include/config/auto.conf'.  Stop.

Code: Select all

$ make menuconfig
make[1]: Entering directory '/d/GitHub/esp/esp-idf/tools/kconfig'
lxdialog/check-lxdialog.sh -check cc  -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>"  -DNCURSES_WIDECHAR=1 -DLOCALE -MD -lncursesw -lintl
make[1]: *** No rule to make target '/usr/include/sys/_locale.h', needed by 'lxdialog/checklist.o'.  Stop.
make[1]: Leaving directory '/d/GitHub/esp/esp-idf/tools/kconfig'
make[1]: Entering directory '/d/GitHub/esp/esp-idf/tools/kconfig'
lxdialog/check-lxdialog.sh -check cc  -I/usr/include/ncursesw -DCURSES_LOC="<curses.h>"  -DNCURSES_WIDECHAR=1 -DLOCALE -MD -lncursesw -lintl
make[1]: *** No rule to make target '/usr/include/sys/_locale.h', needed by 'lxdialog/checklist.o'.  Stop.
make[1]: Leaving directory '/d/GitHub/esp/esp-idf/tools/kconfig'
make: *** [/d/GitHub/esp/esp-idf/make/project_config.mk:20: /d/GitHub/esp/esp-idf/tools/kconfig/mconf] Error 2
Its 5am here... so about to catch some sleep now!

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: ESP-IDF failure with both make and make menuconfig

Postby ESP_Angus » Fri Sep 22, 2017 12:03 am

Thanks for reporting this. Looks like some of the host Windows headers moved around in the environment update. Building the "config" tools generates some dependency files which point to the old headers.

"make clean" should resolve this but because of a bug it isn't. We'll get that fixed soon, but if you run the following command it should get rid of the generated dependency files which are causing this problem:

Code: Select all

rm ${IDF_PATH}/tools/kconfig/lxdialog/*.d

p-rimes
Posts: 89
Joined: Thu Jun 08, 2017 6:20 pm

Re: ESP-IDF failure with both make and make menuconfig

Postby p-rimes » Fri Sep 22, 2017 2:09 am

FYI I recently encountered the same issue after upgrading the xtensa toolchain on macOS.

sukeshak
Posts: 50
Joined: Sat Aug 19, 2017 10:20 am
Contact:

Re: ESP-IDF failure with both make and make menuconfig

Postby sukeshak » Fri Sep 22, 2017 9:26 am

ESP_Angus wrote:Thanks for reporting this. Looks like some of the host Windows headers moved around in the environment update. Building the "config" tools generates some dependency files which point to the old headers.

"make clean" should resolve this but because of a bug it isn't. We'll get that fixed soon, but if you run the following command it should get rid of the generated dependency files which are causing this problem:

Code: Select all

rm ${IDF_PATH}/tools/kconfig/lxdialog/*.d
Will try the above command.
Can you provide bug# so that I can track the fix when it happens?

sukeshak
Posts: 50
Joined: Sat Aug 19, 2017 10:20 am
Contact:

Re: ESP-IDF failure with both make and make menuconfig

Postby sukeshak » Fri Sep 22, 2017 3:09 pm

Tried it and it works now :)

iot_guy
Posts: 8
Joined: Thu Aug 31, 2017 8:16 pm

Re: ESP-IDF failure with both make and make menuconfig

Postby iot_guy » Sat Sep 30, 2017 12:57 am

I have this problem also and none of the steps above work for me.

Code: Select all

Trev@Trev-PC MSYS /c/esp/hello_world
$ make menuconfig
make[1]: Entering directory '/c/esp/esp-idf/tools/kconfig'
make[1]: *** No rule to make target '/usr/include/sys/_locale.h', needed by 'mconf.o'.  Stop.
make[1]: Leaving directory '/c/esp/esp-idf/tools/kconfig'
make[1]: Entering directory '/c/esp/esp-idf/tools/kconfig'
make[1]: *** No rule to make target '/usr/include/sys/_locale.h', needed by 'mconf.o'.  Stop.
make[1]: Leaving directory '/c/esp/esp-idf/tools/kconfig'
make: *** [/c/esp/esp-idf/make/project_config.mk:20: /c/esp/esp-idf/tools/kconfig/mconf] Error 2
This is the hello world example with no changes.
I'm using windows 7 and msys2 as per the windows install guide. I downloaded the latest tools from here:
https://dl.espressif.com/dl/esp32_win32 ... 170918.zip

I'm using the master branch (pulled and updated sub modules today).

I did have this working about 6 weeks ago (with oldder tools) including from eclipse which is still installed.

Any ideas?

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: ESP-IDF failure with both make and make menuconfig

Postby ESP_Angus » Tue Oct 03, 2017 1:16 am

iot_guy wrote:I have this problem also and none of the steps above work for me.
Just to be 100% certain we're on the same page, you've tried both "make clean" and the custom "rm" command from the previous post? Did you see any errors in the output of either of these commands?

Please also check that the IDF_PATH variable is set to the correct directory.

If none of this seems to help, could you please run this command:

Code: Select all

find $IDF_PATH/tools -name *.d -print -delete
Take a record of any output, and then try building again?

Who is online

Users browsing this forum: Bing [Bot] and 122 guests