Repository navigation
Backlog
Labels
0.kind: bugSomething is broken6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Description
Nixpkgs version
- Beta (26.11)
Describe the bug
When building firmware for an elegoo esp32 (listed as "the classic ESP-WROOM-32 platform"), the build fails due to calling a vendored version of cmake, which is a dynamic executable.
Steps to reproduce
- Enable the NixOS module
- Attempt to build with the configuration given below, with board type esp32 dev
Expected behaviour
Build completes normally
Screenshots
No response
Relevant log output
esptool.js
Serial port WebSerial VendorID 0x10c4 ProductID 0xea60
Connecting...
Detecting chip type...
ESP32
Chip Revision: 3
Chip is ESP32-D0WD-V3 (revision 3)
Features: Wi-Fi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 58:2a:bd:db:a5:20
Uploading stub...
Running stub...
Stub running...
Flash ID: 1660c4
INFO ESPHome 2026.10.2
INFO Reading configuration /var/lib/esphome/ruud-hvac.yaml...
INFO Skipping update for https://github.com/esphome-econet/esphome-econet@main, will refresh on the next run after 13h 57min (refresh: 1d); use refresh: always to update now
INFO Skipping update for https://github.com/esphome-econet/esphome-econet@main, will refresh on the next run after 13h 57min (refresh: 1d); use refresh: always to update now
INFO Skipping update for https://github.com/esphome-econet/esphome-econet.git@main, will refresh on the next run after 13h 57min (refresh: 1d); use refresh: always to update now
INFO Generating C++ source...
INFO Setting CONFIG_LWIP_MAX_SOCKETS to 12 (TCP=6 [api=3, captive_portal=3], UDP=3 [captive_portal=1, mdns=2], TCP_LISTEN=3 [api=1, ota=1, web_server_base=1])
INFO Compiling app... Build path: /var/lib/esphome/.esphome/build/ruud-hvac
INFO Checking ESP-IDF 5.5.6 framework ...
INFO Installing ESP-IDF 5.5.6 framework ...
INFO Downloading 2 ESP-IDF tool archive(s) (2 cached, verifying): [email protected], [email protected]_20260121
Downloading ESP-IDF tools: [============== ] 23%
Downloading ESP-IDF tools: [============================================================] 100% Done...
Extracting 2 ESP-IDF tool archive(s) with 2 worker(s): [email protected], [email protected]_20260121
Extracting /var/lib/esphome/.cache/esphome/idf/dist/cmake-3.30.2-linux-x86_64.tar.gz to /var/lib/esphome/.cache/esphome/idf/tools/cmake/3.30.2
Extracting /var/lib/esphome/.cache/esphome/idf/dist/xtensa-esp-elf-14.2.0_20260121-x86_64-linux-gnu.tar.xz to /var/lib/esphome/.cache/esphome/idf/tools/xtensa-esp-elf/esp-14.2.0_20260121
ERROR: tool cmake version 3.30.2 is installed, but getting error: non-zero exit code (127) with message: Could not start dynamically linked executable: /var/lib/esphome/.cache/esphome/idf/tools/cmake/3.30.2/bin/cmake
NixOS cannot run dynamically linked executables intended for generic
linux environments out of the box. For more information, see:
https://nix.dev/permalink/stub-ld
ERROR: Failed to check the tool while installed. Removing directory /var/lib/esphome/.cache/esphome/idf/tools/cmake/3.30.2
pre-extracting [email protected] failed, leaving it to the installer: SystemExit: 1
ERROR: tool xtensa-esp-elf version esp-14.2.0_20260121 is installed, but getting error: non-zero exit code (127) with message: Could not start dynamically linked executable: /var/lib/esphome/.cache/esphome/idf/tools/xtensa-esp-elf/esp-14.2.0_20260121/xtensa-esp-elf/bin/xtensa-esp-elf-gcc
NixOS cannot run dynamically linked executables intended for generic
linux environments out of the box. For more information, see:
https://nix.dev/permalink/stub-ld
ERROR: Failed to check the tool while installed. Removing directory /var/lib/esphome/.cache/esphome/idf/tools/xtensa-esp-elf/esp-14.2.0_20260121
pre-extracting [email protected]_20260121 failed, leaving it to the installer: SystemExit: 1
2 of 2 pre-extractions failed
ERROR ESP-IDF tool archive extraction - failed (returncode=1)
WARNING ESP-IDF tool pre-extraction failed; see above
Selected targets are: esp32
Current system platform: linux-amd64
Installing tools: cmake, xtensa-esp-elf, esp-rom-elfs
Installing [email protected]
file cmake-3.30.2-linux-x86_64.tar.gz is already downloaded
Extracting /var/lib/esphome/.cache/esphome/idf/dist/cmake-3.30.2-linux-x86_64.tar.gz to /var/lib/esphome/.cache/esphome/idf/tools/cmake/3.30.2
ERROR: tool cmake version 3.30.2 is installed, but getting error: non-zero exit code (127) with message: Could not start dynamically linked executable: /var/lib/esphome/.cache/esphome/idf/tools/cmake/3.30.2/bin/cmake
NixOS cannot run dynamically linked executables intended for generic
linux environments out of the box. For more information, see:
https://nix.dev/permalink/stub-ld
ERROR: Failed to check the tool while installed. Removing directory /var/lib/esphome/.cache/esphome/idf/tools/cmake/3.30.2
ERROR ESP-IDF 5.5.6 framework installation - failed (returncode=1)
ERROR libusb-1.0.so.0 was not found on this system. If the error above mentions it (openocd fails its install check without it), install the libusb 1.0 package, e.g. libusb-1.0-0 (Debian/Ubuntu), libusb1 (Fedora) or libusb (Alpine/Arch), then run the build again.
Traceback (most recent call last):
File "/nix/store/n0lzgmw3044frgzn7nypqy6qvm887sab-esphome-2026.10.2/bin/.esphome-wrapped", line 9, in <module>
sys.exit(main())
~~~~^^
File "/nix/store/n0lzgmw3044frgzn7nypqy6qvm887sab-esphome-2026.10.2/lib/python3.14/site-packages/esphome/__main__.py", line 2776, in main
return run_esphome(sys.argv)
File "/nix/store/n0lzgmw3044frgzn7nypqy6qvm887sab-esphome-2026.10.2/lib/python3.14/site-packages/esphome/__main__.py", line 2768, in run_esphome
return POST_CONFIG_ACTIONS[args.command](args, config)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/nix/store/n0lzgmw3044frgzn7nypqy6qvm887sab-esphome-2026.10.2/lib/python3.14/site-packages/esphome/__main__.py", line 1730, in command_compile
exit_code = compile_program(args, config)
File "/nix/store/n0lzgmw3044frgzn7nypqy6qvm887sab-esphome-2026.10.2/lib/python3.14/site-packages/esphome/__main__.py", line 865, in compile_program
rc = toolchain.run_compile(config, CORE.verbose)
File "/nix/store/n0lzgmw3044frgzn7nypqy6qvm887sab-esphome-2026.10.2/lib/python3.14/site-packages/esphome/espidf/toolchain.py", line 870, in run_compile
if (rc := _configure_project(verbose)) != 0:
~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/nix/store/n0lzgmw3044frgzn7nypqy6qvm887sab-esphome-2026.10.2/lib/python3.14/site-packages/esphome/espidf/toolchain.py", line 651, in _configure_project
if (cached := load_cached_builtin_components()) is not None:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/nix/store/n0lzgmw3044frgzn7nypqy6qvm887sab-esphome-2026.10.2/lib/python3.14/site-packages/esphome/espidf/toolchain.py", line 597, in load_cached_builtin_components
if (path := _builtin_component_cache_path()) is None:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/nix/store/n0lzgmw3044frgzn7nypqy6qvm887sab-esphome-2026.10.2/lib/python3.14/site-packages/esphome/espidf/toolchain.py", line 587, in _builtin_component_cache_path
_get_idf_path() / ".esphome_component_lists" / f"{target}-{excluded_key}.json"
~~~~~~~~~~~~~^^
File "/nix/store/n0lzgmw3044frgzn7nypqy6qvm887sab-esphome-2026.10.2/lib/python3.14/site-packages/esphome/espidf/toolchain.py", line 113, in _get_idf_path
return Path(_get_esphome_esp_idf_paths(version)[0])
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/nix/store/n0lzgmw3044frgzn7nypqy6qvm887sab-esphome-2026.10.2/lib/python3.14/site-packages/esphome/espidf/toolchain.py", line 100, in _get_esphome_esp_idf_paths
paths[version] = check_esp_idf_install(
~~~~~~~~~~~~~~~~~~~~~^
version,
^^^^^^^^
targets=_get_configured_targets(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
source_url=_get_framework_source_override(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/nix/store/n0lzgmw3044frgzn7nypqy6qvm887sab-esphome-2026.10.2/lib/python3.14/site-packages/esphome/espidf/framework.py", line 1295, in check_esp_idf_install
framework_path, fresh_extract = _check_esphome_idf_framework_install(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
version, targets, tools, force=force, env=env, source_url=source_url
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/nix/store/n0lzgmw3044frgzn7nypqy6qvm887sab-esphome-2026.10.2/lib/python3.14/site-packages/esphome/espidf/framework.py", line 1087, in _check_esphome_idf_framework_install
raise RuntimeError(f"ESP-IDF {version} framework installation failure")
RuntimeError: ESP-IDF 5.5.6 framework installation failureAdditional context
Possibly related to #451760 ?
Device config:
esphome:
name: ruud-hvac
friendly_name: Ruud HVAC
logger:
api:
encryption:
key: "vxMgtxFajEv4B+CuqsBSujMBH8HvsZu99N9lgzxAshU="
ota:
- platform: esphome
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: Ruud HVAC Fallback Hotspot
password: "5EQXnE9CWJOS"
captive_portal:
substitutions:
tx_pin: GPIO21
rx_pin: GPIO20
esp32:
variant: ESP32
framework:
type: esp-idf
packages:
econet:
url: https://github.com/esphome-econet/esphome-econet
ref: main
file: econet_hvac_furnace.yaml
# Uncomment if you have a communicating Outdoor Unit
econet-hvac-odu:
url: https://github.com/esphome-econet/esphome-econet
ref: main
file: econet_hvac_odu.yaml
dashboard_import:
package_import_url: github://esphome-econet/esphome-econet/build-yaml/econet-hvac_furnace-esp32c3.yaml@${github_ref}
import_full_config: falseSystem metadata
- system:
"x86_64-linux" - host os:
Linux 6.18.64, NixOS, 26.11 (Zokor), 26.11.20261119.0bb8272 - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.35.6 - nixpkgs:
/nix/store/3i54wh5sxp6di244nvhll30wvx36ycjy-source
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
- I assert that I have read the automation/AI policy and that this issue report complies with it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Metadata
Metadata
Assignees
Labels
0.kind: bugSomething is broken6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Activity