jcmvbkbc wrote:Looks like it needs to be compiled with -fno-rtti. Can you share the code and build commands?
Disabling rtti helped.
As for the other errors, turned out some Arduino libraries called malloc, free, and abort. Replacing those with calls to functions from espressif SDK helped. But this is not a very robust solution as the user can legitimately include <stdlib.h> in his sketch and call malloc, which will result in linker error. So I guess these newlib functions have to be replaced or overridden in this case.