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

Linking CXX executable light.elf FAILED: light.elf (CON-1523) #1254

Open
JesseDWatts opened this issue Jan 21, 2025 · 7 comments
Open

Linking CXX executable light.elf FAILED: light.elf (CON-1523) #1254

JesseDWatts opened this issue Jan 21, 2025 · 7 comments

Comments

@JesseDWatts
Copy link

I am having issues building the Light example. The first issue relates to a missing file related to bluetooth:

ninja: error: '/home/jesse/esp/esp-idf/components/bt/controller/lib_esp32c6/esp32c6-bt-lib/libble_app.a', needed by 'light.elf', missing and no known rule to make it

To get around this I disabled BT. (Future issue to fix i thought)

The second issue is Linking CXX executable light.elf accompanied with some warnings regarding SEC_CERT_DAC_PROVIDER.

OS: Ubuntu 22.04 on WSL
ESP-IDF Version: 5.5.0
Building for ESP32-C6

idf_py_stdout_output_46922.txt
idf_py_stderr_output_44462.txt

Thank you,

@github-actions github-actions bot changed the title Linking CXX executable light.elf FAILED: light.elf Linking CXX executable light.elf FAILED: light.elf (CON-1523) Jan 21, 2025
@JesseDWatts
Copy link
Author

I was able to build by following this: #758 (comment)

I believe the Bluetooth issue is related to my WSL environment. Once i work through this: https://github.com/espressif/esp-matter/blob/main/docs/en/using_chip_tool.rst I will update.

@shripad621git
Copy link
Contributor

shripad621git commented Jan 21, 2025

@JesseDWatts , both of the above issues will be resolved by the submodule update which is currently under process. The change will be available soon.
The below two links have the fixes for the above specified issues.

As of now, we support the esp-matter with esp-idf version v5.2.3.. And complete support for esp-idf v5.5 will take quite some time as esp-idf v5.5 is under development.

@JesseDWatts
Copy link
Author

@shripad621git thank you. Downgrading fixed those 2 issues. However, when I attempt to flash the firmware now I get:

`A fatal error occurred: Serial data stream stopped: Possible serial noise or corruption.
CMake Error at run_serial_tool.cmake:66 (message):

/home/jesse/.espressif/python_env/idf5.2_py3.10_env/bin/python;;/home/jesse/esp/esp-idf/components/esptool_py/esptool/esptool.py;--chip;esp32c6
failed.`

Can you suggest anything before I try a fresh install?

@shripad621git
Copy link
Contributor

@JesseDWatts , can you please check the USB cable is properly connected. Possibly you can give it a try by using some other USB cable. For more reference, you can refer to the common errors section in esp-idf.

@traderhut
Copy link

As of now, we support the esp-matter with esp-idf version v5.2.3.. And complete support for esp-idf v5.5 will take quite some time as esp-idf v5.5 is under development.

i pulled the default of the idf, and was able to build a program and load it on an ESP32 (blinking light) and that worked fine.

I've not been able to build any of the matter examples, getting what I assume is a linking error, although, the output is just returned error 1, with nothing above that that shows an error. (It's been some 20 years since I had to work in C/C++, man it makes one appreciate c# when you see things like 'error 1')

In any event, do I need to roll back my entire 'idf' system to the v5.2.3 in order to build anything if I want it to support Matter?

@traderhut
Copy link

As of now, we support the esp-matter with esp-idf version v5.2.3.. And complete support for esp-idf v5.5 will take quite some time as esp-idf v5.5 is under development.

i pulled the default of the idf, and was able to build a program and load it on an ESP32 (blinking light) and that worked fine.

I've not been able to build any of the matter examples, getting what I assume is a linking error, although, the output is just returned error 1, with nothing above that that shows an error. (It's been some 20 years since I had to work in C/C++, man it makes one appreciate c# when you see things like 'error 1')

In any event, do I need to roll back my entire 'idf' system to the v5.2.3 in order to build anything if I want it to support Matter?

I switched idf back to 5.2.3, and was able to get the blinky light again, but then when I went to load up the matter repo I got an error saying 'gn' was not installed, and I tried running the pip on the requirements.txt file (that was suggested somewhere in the help), and it said I was in an externally managed environment, and apparently Python has some cob up its * about having multiple packages and crud all installed globally... which begs the question why anyone would use Python when C# is out there.. but apparently, people actually enjoy these kind of nightmares... Anyway, I asked ChatGPT and it said, that the message that I got about creating a new environment was correct, and the best practice, so I did that... and re-ran the install.sh and it seemed to work... and now idf doesn't run anymore unless I use a different window, so apparently I have to reinstall it using this new environment which I created under the matter directory... And ChatGPT agreed this is a royal mess and 'can get complicated when you have multiple things with different requirements', yeah, DLL heck they used to call it back in the day..

So... I presume the plan is to reinstall idf using this environment and maybe everything will be fine.. or perhaps, I just wipe out the entire thing and use a Raspberry Pi instead?... Been fighting this for over 2 hours now... But at least, I got a little light blinking... no thanks to Matter code... I was so sure I'd have it able to be turned on and off using Home Assistant...

@traderhut
Copy link

I was monitoring my disk space as I was installing all this stuff.. and it appears to have sucked in about 30-50 GB of stuff in order to build a 1 MB application (there is only 2MB on the chip), which implies that it is sucking in the world in order to do a small (in terms of a windows application, a TINY) application. Is all of this stuff really needed? It is dying because someone is using 'gn' to do something and apparently that wasn't in the 50GB of stuff that it 'needed' to download in order to run.

I ran out of space multiple times loading this...

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

3 participants