pycom / pycom-esp-idf

A fork of the Espressif IDF
Apache License 2.0
57 stars 61 forks source link

undifined reference to mp_thread_clean #1

Open Mungio opened 7 years ago

Mungio commented 7 years ago

Hi to everyone. I follow this guide in order to compile the example "getting-started/hello-world" for my ESP32 WiPy 2.0. After the make menuconfig command I try to do make all, but I receive the follow error:

pycom-esp-idf/components/freertos/./tasks.c:4421: undefined reference to `mp_thread_clean'

danicampora commented 7 years ago

You enabled static allocation menuconfig, right? Check the help info on that option which tells you that you are going to have to define that function that you are missing...

On 3 May 2017, at 17:08, Innocenzo Mungiello notifications@github.com wrote:

Hi to everyone. I follow this guide in order to compile the example "getting-started/hello-world" for my ESP32 WiPy 2.0. After the make menuconfig command I try to do make all, but I receive the follow error:

pycom-esp-idf/components/freertos/./tasks.c:4421: undefined reference to `mp_thread_clean'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pycom/pycom-esp-idf/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AHY-1wWXT-lrxnyUoS7gs7WuGTHhPD7kks5r2Jh2gaJpZM4NPils.

Mungio commented 7 years ago

You enabled static allocation menuconfig

I do not know. I just follow this guide. I've change anything in menuconfig.

Mungio commented 7 years ago

There is a function in pycom-esp-idf/components/freertos/task.c called portCLEAN_UP_TCB( pxTCB ); that causes the problem. I've deleted it and everything works.

But I don't think that is a good solution.

Mungio commented 7 years ago

An easiest solution is to add void mp_thread_clean(void *tbc){}

in a .c file of the example project.