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

Build Error: Missing target lib/libapp_zig.a needed by zig-sample-idf.elf during ESP32 build #27

Open
MainManu opened this issue Feb 17, 2025 · 3 comments
Labels
question Further information is requested

Comments

@MainManu
Copy link

I cannot get idf.py to build the sample.

Info

Zig version: 0.13.0
idf.py version: ESP-IDF v5.5-dev-1898-g472792eb8a-dirty
Target: ESP32

Steps to reproduce

  1. clone the repo
  2. install latest idf.py
  3. set target ESP32 (idf.py set-target esp32)
  4. build (idf.py build)

Error

make[2]: *** No rule to make target 'lib/libapp_zig.a', needed by 'zig-sample-idf.elf'. Stop. make[1]: *** [CMakeFiles/Makefile2:2564: CMakeFiles/zig-sample-idf.elf.dir/all] Error 2 make: *** [Makefile:136: all] Error 2

@kassane
Copy link
Owner

kassane commented Feb 18, 2025

Hi @MainManu,

Missing more information... Please, show full-log.
Have you already tried idf v5.4?

It seems that zig was not found to build libapp_zig. This doesn't make sense because cmake will download & run zig-xtensa by default.

@kassane kassane changed the title Not building: No rule to make target 'lib/libapp_zig.a', needed by 'zig-sample-idf.elf'. Build Error: Missing target lib/libapp_zig.a needed by zig-sample-idf.elf during ESP32 build Feb 18, 2025
@kassane kassane added the question Further information is requested label Feb 18, 2025
@kassane
Copy link
Owner

kassane commented Feb 19, 2025

I tested idf-master and I didn't get the same problem you presented.

@MainManu
Copy link
Author

Thanks for the quick reply @kassane . As I am on the move rn, I tried again on a macbook with the exact same zig and IDF version, and for some reason it built without issues. Seems to be related to the gcc or ninja versions. Will post the full logs tomorrow.

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

No branches or pull requests

2 participants