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

Tensorflow build fix #16

Open
wants to merge 2 commits into
base: kirkstone-5.15.71-2.2.0
Choose a base branch
from

Conversation

TomaszAIR
Copy link

tensorflow-lite on kirkstone-5.15.71-2.2.0 release seems to be broken, without additional, custom changes in bbappend the build hangs on following error

/tmp/work/armv8a-poky-linux/tensorflow-lite/2.9.1-r0/git/tensorflow/lite/python/interpreter_wrapper/interpreter_wrapper_pybind11.cc
| /work/build-wayland/tmp/work/armv8a-poky-linux/tensorflow-lite/2.9.1-r0/git/tensorflow/lite/python/interpreter_wrapper/interpreter_wrapper_pybind11.cc:16:10: fatal error: pybind11/functional.h: No such file or
directory
| 16 | #include "pybind11/functional.h"
(...)
| In file included from /work/build-wayland/tmp/work/armv8a-poky-linux/tensorflow-lite/2.9.1-r0/git/tensorflow/lite/python/interpreter_wrapper/interpreter_wrapper.cc:15:
| /work/build-wayland/tmp/work/armv8a-poky-linux/tensorflow-lite/2.9.1-r0/git/tensorflow/lite/python/interpreter_wrapper/interpreter_wrapper.h:28:10: fatal error: Python.h: No such file or directory
| 28 | #include <Python.h>
| | ^~~~~~~~~~
| compilation terminated.
| ninja: build stopped: subcommand failed.
| WARNING: exit code 1 from a shell command.
ERROR: Task (/work/sources/meta-imx/meta-ml/recipes-libraries/tensorflow-lite/tensorflow-lite_2.9.1.bb:do_compile) failed with exit code '1'

Provided changes helps with finding header files and compile the tensorflow-lite recipe.

@TomaszAIR
Copy link
Author

Is there any chance that this will be reviewed? Should I assign someone?

@thochstein thochstein self-requested a review June 6, 2023 12:40
@thochstein
Copy link
Contributor

Hi @TomaszAIR , I will have a look today.

@thochstein
Copy link
Contributor

Can you give me your setup steps so I can reproduce?

@Alan01252
Copy link

This appears to still be an issue with the kirkstone branch, just following the example here cause the same issue for me.

https://developer.toradex.com/linux-bsp/application-development/machine-learning/building-machine-learning-software-with-reference-images-for-yocto-project/

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

Successfully merging this pull request may close these issues.

3 participants