build for xtensa architecture (esp32, embedded) fails with confusing error #759
-
I'm working on a somewhat nontrivial project with multiple built targets, each of which have multiple architectures. Here is the build failure I'm getting. Key point:
If I run Note that it's using this as the toolchain package, so it's quite possible that I messed something up or otherwise have introduced incompatibility with Unfortunately, the flake is hard to meaningfully simplify because of the intrinsic complexity of targeting certain embedded devices. To reproduce:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @crabdancing thanks for the reproduction! This looks like a configuration issue: although you've added
Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response @ipetkov! :) Sorry I missed that somewhat basic mistake. After trying out the first one, I got this:
This also happens when using |
Beta Was this translation helpful? Give feedback.
Hi @crabdancing thanks for the reproduction!
This looks like a configuration issue: although you've added
esp-rust
to the devshell, it isn't actually configured as the toolchain for the derivation. You'll likely need to fix one of the following:craneLib = (inputs.crane.mkLib pkgs).overrideToolchain esp-rust;
herecraneLibLLvmTools.buildPackage
here (currentlycraneLibLLvmTools
isn't used anywhere)Hope this helps!