m5stack / Core2-for-AWS-IoT-Kit

Accompanying code for use with AWS IoT Kit content. Works with PlatformIO and ESP-IDF v4.2.
https://m5stack.com/collections/m5-core/products/m5stack-core2-esp32-iot-development-kit-for-aws-iot-edukit
MIT License
127 stars 66 forks source link

Error building RainMaker Agent firmware #75

Closed Pedotech closed 2 years ago

Pedotech commented 2 years ago

Hi When I run
pio run --environment core2foraws

I get error messages:

Generating assembly for certificate bundle... CMake Error at /Users/pedrocorreia/.platformio/packages/framework-espidf@3.40200.210118/tools/cmake/scripts/data_file_embed_asm.cmake:26 (file): file failed to open for reading (No such file or directory):

/Users/pedrocorreia/aws_set/Core2-for-AWS-IoT-EduKit/Getting-Started/.pio/build/core2foraws/x509_crt_bundle

Error 1 LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF Modes: Finder ~ chain, Compatibility ~ soft Found 0 compatible libraries Scanning dependencies... No dependencies Building in release mode [.pio/build/core2foraws/.pio/build/core2foraws/x509_crt_bundle.o] Source .pio/build/core2foraws/x509_crt_bundle.S' not found, needed by target.pio/build/core2foraws/.pio/build/core2foraws/x509_crt_bundle.o'. ================================================================================================ [FAILED] Took 11.01 seconds =

My vsc and pio instalations are otherwise OK. I tried on Linux and get the same error.

Is there a missing file in gitclone?

I am stuck and very much in need of help

Pedro

rashedtalukder commented 2 years ago

@Pedotech @jaimeskatz, both of you appear to be having the same issue and both are on a UNIX system. I've been able to replicate this on Ubuntu, macOS, and Windows 10.

rashedtalukder commented 2 years ago

This appears to be a certificate expiry error https://github.com/espressif/esp-idf/issues/7621 in this root CA that mbedTLS uses.

I'll be applying a temporary workaround commit to this repo shortly.

rashedtalukder commented 2 years ago

@Pedotech @jaimeskatz, please either reclone this repo or use:

git fetch
git pull

If you receive any errors for your modified files needing to be staged, if you're ok with wiping all the changes out, you can do a git reset --hard origin/master.

I'm going to leave this open until the fix has been applied to the ESP-IDF with updated certs.

Pedotech commented 2 years ago

Hi Rashedtalukder Problem solved! Thank you Pedro

jaimeskatz commented 2 years ago

Worked for me also. Thank you!