-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Unable to build pregen files #27636
Comments
Did you try to use I am surprised things do not compile since CI is supposed to validate it, however at the same CI runs on linux and using build_examples, so maybe some differences there. |
That is not viable since it does not let you flash/monitor.... |
I am thinking that build_examples.py also just runs shell commands for building, so if build_examples.py works then we probably have set of commands that succeeds compiling. I see: # Commands will be run in CHIP project root.
cd "."
# Generating esp32-m5stack-all-clusters
mkdir -p /workspace/out/esp32-m5stack-all-clusters
cp examples/all-clusters-app/esp32/sdkconfig_m5stack.defaults /workspace/out/esp32-m5stack-all-clusters/sdkconfig.defaults
rm -f examples/all-clusters-app/esp32/sdkconfig
bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh;
export SDKCONFIG_DEFAULTS=/workspace/out/esp32-m5stack-all-clusters/sdkconfig.defaults
idf.py -C examples/all-clusters-app/esp32 -B /workspace/out/esp32-m5stack-all-clusters -DCHIP_CODEGEN_PREGEN_DIR=/workspace/zzz_pregenerated reconfigure'
rm -f examples/all-clusters-app/esp32/sdkconfig
# Building esp32-m5stack-all-clusters
bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh;
export SDKCONFIG_DEFAULTS=/workspace/out/esp32-m5stack-all-clusters/sdkconfig.defaults
idf.py -C examples/all-clusters-app/esp32 -B /workspace/out/esp32-m5stack-all-clusters build' so it looks like it does a |
Tried in a vscode environment via: cd examples/all-clusters-app/esp32
. /opt/espressif/esp-idf/export.sh
idf.py -DCHIP_CODEGEN_PREGEN_DIR=/workspace/zzz_pregenerated/ build and it compiled, so I wonder if the issue is mac specific after all. Although #27654 proposes a fix. |
It failed for me on Ubuntu 20.04 as well.
In this case as well I see we still have And in above steps we should not remove the sdkconfig after reconfiguration as it will regenerate again. In fact last two lines can be removed and reconfigure can be replaced with build. Shall I do that change? |
could you share the steps for Ubuntu failure? I am still failing to reproduce on the |
Got it reproduced (thanks @bzbarsky-apple !) - need to |
When I removed sdkconfig, I got I did
and the build seemed fine. |
testing, when things fail I see it tries to run:
and this is identical when it succeeds. |
When in a
so it is reproducible just running GN. What I am unclear about is what happens when it works. It seems that IDF changes some things internally in |
The diff seems to be just Apparently sdkconfig defaults enable build tests and I am guessing tests depend on some pregen bits, but general library compile for esp32 does not depend on pregen. |
@phonnakasturi-apple workarounds:
|
Above change did not do anything just built again using the default configurations. I did disable I even tried without |
Reproduction steps
Currently, I am getting the following error;
Expected result is that we must be able to build zzz_pregenerated via the command
idf.py -DCHIP_CODEGEN_PREGEN_DIR=~/connectedhomeip/zzz_pregenerated/ build
So that we can modify the endpoints from ~/connectedhomeip/zzz_pregenerated/examples/all-clusters-app/all-clusters-common/all-clusters-app/zap/app-templates/zap-generated/endpoint_config.h
and be able to flash M5 board with the respective endpoints.
Bug prevalence
always
GitHub hash of the SDK that was being used
fcf37c2
Platform
darwin
Platform Version(s)
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: