Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fleet Provisioning build error (CA-331) #216

Closed
amitabhskrishworks opened this issue Apr 2, 2024 · 5 comments
Closed

Fleet Provisioning build error (CA-331) #216

amitabhskrishworks opened this issue Apr 2, 2024 · 5 comments

Comments

@amitabhskrishworks
Copy link

amitabhskrishworks commented Apr 2, 2024

Hello there,
I have cloned the esp-aws-iot folder using the "https://github.com/espressif/esp-aws-iot.git" .Without making any changes I tried to build the fleet_provisioning_with_csr example (given at: esp-aws-iot/examples/fleet_provisioning/fleet_provisioning_with_csr) but got stuck with build errors (mentioned below) but was able to build the mqtt/tls_mutual_auth example. Although both the examples are in same folders but i don't know why is fleet one not working.

C:/Users/Amitabh/esp/esp-aws-iot/libraries/Fleet-Provisioning-for-AWS-IoT-embedded-sdk/Fleet-Provisioning-for-AWS-IoT-embedded-sdk/source/fleet_provisioning.c:765:1: fatal error: opening dependency file esp-idf\Fleet-Provisioning-for-AWS-IoT-embedded-sdk\CMakeFiles__idf_Fleet-Provisioning-for-AWS-IoT-embedded-sdk.dir\f7893e654caf0f5cdf916ac2a3b97995\fleet_provisioning.c.obj.d: No such file or directory
765 | }
| ^
compilation terminated.
[937/947] Building C object esp-idf/corePKCS11/CMakeFiles/__idf_corePKCS11.dir/corePKCS11/source/portable/mbedtls/core_pkcs11_mbedtls.c.obj
ninja: build stopped: subcommand failed.

  • The terminal process "C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command ninja " terminated with exit code: 1.

Detailed log are in the file
fleet_prov_log_2Apr2024.txt

ESP-IDF version : v5.1.3

@github-actions github-actions bot changed the title Fleet Provisioning build error Fleet Provisioning build error (CA-331) Apr 2, 2024
@ookamipjq
Copy link

I also encountered the same problem, have you solved it?

@avsheth
Copy link
Collaborator

avsheth commented May 8, 2024

Hi @amitabhskrishworks
Issue is due to maximum filename limitation in Windows filesystem.

Can you try enabling longpaths on your Windows as instructed here.

If this doesn't work as well, can you try placing esp-aws-iot somewhere in C:\ directly for now? We will see how we can shorten the filepath of the object file for Windows. Unfortunately. we don't have a way around it as of yet.

@PaulAnurag
Copy link

Or else you can just change the name of "Fleet-Provisioning-for-AWS-IoT-embedded-sdk" to "Fleet-Provisioning".

This is easy and best solution if enabling long path does not work

@amitabhskrishworks
Copy link
Author

If change the branch to any of these then it works
release/202012.04-LTS
release/202210.01-LTS

@amitabhskrishworks
Copy link
Author

Hi @amitabhskrishworks Issue is due to maximum filename limitation in Windows filesystem.

Can you try enabling longpaths on your Windows as instructed here.

If this doesn't work as well, can you try placing esp-aws-iot somewhere in C:\ directly for now? We will see how we can shorten the filepath of the object file for Windows. Unfortunately. we don't have a way around it as of yet.

This solution worked for me
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants