Project won't build due to limbdedtls-esp32-latest library

If you are asking a question, please follow this template:
Hello!
I’ve been building a project and after a long time i got back to it.
When i’m trying to build it with sudo build --local i get the following error log:

LD /home/alex/mongoose/project/build/objs/project.elf
/home/alex/mongoose/project/build/objs/libmbedtls-esp32-latest.a(ecp_atca.o): In function ecdsa_atca_verify': /data/tmp/mos_prebuild/tmp/mos_libs/mbedtls/mbedtls/library/ecp_atca.c:175: undefined reference tombedtls_atca_is_608’
/home/alex/mongoose/project/build/objs/libmbedtls-esp32-latest.a(ecp_atca.o): In function ecp_atca_ecdh_gen_keypair': /data/tmp/mos_prebuild/tmp/mos_libs/mbedtls/mbedtls/library/ecp_atca.c:178: undefined reference tombedtls_atca_is_608’
/data/tmp/mos_prebuild/tmp/mos_libs/mbedtls/mbedtls/library/ecp_atca.c:267: undefined reference to atcab_ecdh_base' /home/alex/mongoose/project/build/objs/libmbedtls-esp32-latest.a(ecp_atca.o): In functionecp_atca_ecdh_compute_pms’:
/data/tmp/mos_prebuild/tmp/mos_libs/mbedtls/mbedtls/library/ecp_atca.c:281: undefined reference to atcab_ecdh_base' /home/alex/mongoose/project/build/objs/libmbedtls-esp32-latest.a(aes_atca.o):(.text.atca_aes_setkey+0xe): undefined reference tombedtls_atca_is_608’
/home/alex/mongoose/project/build/objs/libmbedtls-esp32-latest.a(aes_atca.o): In function atca_aes_setkey': /data/tmp/mos_prebuild/tmp/mos_libs/mbedtls/mbedtls/library/aes_atca.c:80: undefined reference toatcab_aes_encrypt’
/data/tmp/mos_prebuild/tmp/mos_libs/mbedtls/mbedtls/library/aes_atca.c:82: undefined reference to atcab_aes_decrypt' /data/tmp/mos_prebuild/tmp/mos_libs/mbedtls/mbedtls/library/aes_atca.c:85: undefined reference tombedtls_atca_is_608’
/home/alex/mongoose/project/build/objs/libmbedtls-esp32-latest.a(aes_atca.o): In function atca_aes_crypt_ecb': /data/tmp/mos_prebuild/tmp/mos_libs/mbedtls/mbedtls/library/aes_atca.c:37: undefined reference toatcab_aes_encrypt’
/data/tmp/mos_prebuild/tmp/mos_libs/mbedtls/mbedtls/library/aes_atca.c:41: undefined reference to `atcab_aes_decrypt’
collect2: error: ld returned 1 exit status
/opt/Espressif/esp-idf/make/project.mk:482: recipe for target ‘/home/alex/mongoose/project/build/objs/project.elf’ failed
make: Leaving directory ‘/app’

Can anybody help understand what the problem is?
It’s been over 5 hours trying and failing to build

Error solved.
Solution: *Clone the demo-c project found at https://github.com/mongoose-os-apps/demo-c
*Copy my essential folders(src file and mos.yml) into the new project (demo-c)
Compilation was successful